merge queue: checking #780 on main (16dfdc7) - #800
Closed
mergify[bot] wants to merge 2 commits into
Closed
mergify[bot] wants to merge 2 commits into
mergify[bot] wants to merge 2 commits into
Conversation
… a key Claude Code never sends
detect.py read `payload["tools_used"]` (or `tool_names`). A real Claude Code
Stop payload has neither key -- captured live and committed as
tests/fixtures/claude-stop-payload.json. So `_tools_used` always returned the
empty set, the discharge branch in record_turn was unreachable, and every
Stop turn that emitted a tag was judged as "ran no verification tool".
Live state of the ledger before this change: 35 rows across 25 session
caches, 0 resolved, oldest 72 turns old.
The suite was green over the dead path because every test supplied
`tools_used` itself. The tests now build their payloads from the captured
fixture's key set and drive a real captured transcript, and a contract test
walks detect.py's AST for every `payload.get("k")` and fails if the key is
absent from the captured payload.
Tools now come from transcript_path, the way scope-lock/detect.py already
reads them. The read has three outcomes: a set, an empty set, and None for
unchecked. Unchecked neither refuses the turn nor discharges a row, and says
why on stderr.
Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
Change-Id: I0ec5bbd9e302c882c2f4aa68df4fa4e0e4d33595
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
🎉 This pull request has been checked successfully and will be merged soon. 🎉
#780 is queued for merge on branch main (16dfdc7).
This pull request has been created by Mergify to check the mergeability of #780.
You don't need to do anything. Mergify will close this pull request automatically when it is complete.
Required conditions of queue rule
admin-bypassfor merge:check-success = lintcheck-success = testcheck-success = validateRequired conditions to stay in the queue:
-draftbase=mainlabel=admin-bypass