Gate judges a session by its own edits, measured, not guessed
ci / tests (macos-latest, python 3.10) (push) Canceled after 0s
ci / tests (macos-latest, python 3.11) (push) Canceled after 0s
ci / tests (macos-latest, python 3.13) (push) Canceled after 0s
ci / tests (macos-latest, python 3.9) (push) Canceled after 0s
ci / tests (ubuntu-latest, python 3.10) (push) Canceled after 0s
ci / tests (ubuntu-latest, python 3.11) (push) Canceled after 0s
ci / tests (ubuntu-latest, python 3.13) (push) Canceled after 0s
ci / tests (macos-latest, python 3.10) (push) Canceled after 0s
ci / tests (macos-latest, python 3.11) (push) Canceled after 0s
ci / tests (macos-latest, python 3.13) (push) Canceled after 0s
ci / tests (macos-latest, python 3.9) (push) Canceled after 0s
ci / tests (ubuntu-latest, python 3.10) (push) Canceled after 0s
ci / tests (ubuntu-latest, python 3.11) (push) Canceled after 0s
ci / tests (ubuntu-latest, python 3.13) (push) Canceled after 0s
The end-of-turn gate attributes changed files to the session that changed them: edit tool calls by path, and shell commands by a snapshot of the tree before and after. A session answers for failing checks, and is asked for a retrospective, only over its own files. Another agent's work in progress is allowed once, marked unverified, with a note that the work is not done. Single-session behaviour is unchanged, shown by a property test. Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
This commit is contained in:
1 parent
e5b603486b
commit
5744f3149c
15 files changed
+1387
-41
No files matched your search
@@ -463,7 +463,8 @@ class WidenedPropertyTests(SafetyBase):
|
||||
json.dump(obj, open(p, "w"), indent=2)
|
||||
wiring.install()
|
||||
raw = open(p, "rb").read()
|
||||
self.assertLessEqual(raw.count(b"--tool " + tool.encode()), 4, (tool, raw))
|
||||
# tick + gate + subagent gate + watch (registered for both tool events) = at most 5
|
||||
self.assertLessEqual(raw.count(b"--tool " + tool.encode()), 5, (tool, raw))
|
||||
d2 = json.load(open(p))
|
||||
for ev, entries in d2.get("hooks", {}).items():
|
||||
flat = [e.get("bash") or e.get("command") for e in entries if isinstance(e, dict)]
|
||||
|
||||
Reference in new issue
Block a user