The end-of-turn gate rebuilt on risk profiles; non-findings refused as retro findings

The gate enforces exactly what the profile requires, lists everything missing in
one message, closes a green unit when a finding is recorded, lets a paused unit
stop silently, never blocks a subagent, records a release as unverified, and says
at commit time when the checks have not passed on the tree. Size thresholds and
the floors file are gone. 'It went well' and similar are refused as findings.

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
This commit is contained in:
swaitsandClaude Fable 5.2 committed 2026-11-23 12:16:29 -07:00
commit 216f39e8f7
31 files changed
+2383 -1807

No files matched your search

+1 -1
View File
@@ -345,7 +345,7 @@ class PauseTests(UnitCase):
self.assertEqual(c["pauses"][0]["what"], "the owner's decision")
stop = json.dumps({"session_id": "p1", "cwd": self.proj, "hook_event_name": "Stop", "stop_hook_active": False})
self.sisi("tick", stdin=json.dumps({"session_id": "p1", "cwd": self.proj, "hook_event_name": "SessionStart"}))
open(os.path.join(self.proj, "new.txt"), "w").write("x") # a change after the pause
open(os.path.join(self.proj, "new.py"), "w").write("x = 1\n") # a change after the pause
self.assertIn("block", self.sisi("gate", stdin=stop).stdout)
self.assertEqual(C.load(self.contract_path)["status"], "open") # the wait ended
self.assertTrue(C.load(self.contract_path)["pauses"][0]["until"])