diff --git a/deploy/hooks/capture_stop.py b/deploy/hooks/capture_stop.py index 5661681..0cd3877 100644 --- a/deploy/hooks/capture_stop.py +++ b/deploy/hooks/capture_stop.py @@ -3,7 +3,7 @@ Reads the Stop hook JSON from stdin, extracts the last user prompt from the transcript JSONL, and POSTs to the AtoCore /interactions -endpoint in conservative mode (reinforce=false, no extraction). +endpoint with reinforcement enabled (no extraction). Fail-open: always exits 0, logs errors to stderr only. @@ -81,7 +81,7 @@ def _capture() -> None: "client": "claude-code", "session_id": session_id, "project": project, - "reinforce": False, + "reinforce": True, } body = json.dumps(payload, ensure_ascii=True).encode("utf-8") diff --git a/tests/test_capture_stop.py b/tests/test_capture_stop.py index 2fcd481..3fbf375 100644 --- a/tests/test_capture_stop.py +++ b/tests/test_capture_stop.py @@ -183,7 +183,7 @@ class TestCapture: assert body["prompt"] == "Please explain how the backup system works in detail" assert body["client"] == "claude-code" assert body["session_id"] == "test-session-123" - assert body["reinforce"] is False + assert body["reinforce"] is True @mock.patch("capture_stop.urllib.request.urlopen") def test_skips_when_disabled(self, mock_urlopen, tmp_path):