index: say where a gate runs — commit/push and in the agent - #171
Merged
Merged
Conversation
The gates heading said enforced at commit/push only, but a gate compiled for tool use also refuses the write in the agent. Mark those gates and reword the heading. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Signed-off-by: Claude <noreply@anthropic.com>
jothimani-rajendran
marked this pull request as ready for review
September 27, 2026 16:27
Merged
11 tasks
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.
What
The generated
.agents/policies/INDEX.mdheaded its gates "enforced automatically at commit/push". An agent reading that could expect nothing until a commit, yet a gate compiled for tool use refuses the write during the turn. The java-security agent-kit runs on Windows showed this: Claude'sEditwas denied at PreToolUse.What changes:
## Gates — enforced automatically at commit/push, and in the agent where noted.hook.gate.on: [..., tool_use]ends with: "Also checked in the agent: before a write, or at the end of the turn, depending on the agent."Implementation:
IndexEntry.in_agentis read straight from the manifest's gateonlist.render.pyhas theGATES_HEADINGandIN_AGENT_NOTEconstants.pin-github-actions.chock syncafter release.Definition of done
chock checkpasses. The only output is the existing INDEX budget warning (1617/2000 tokens).chock check --only matrixpasseschock sync --repo . --checkcleanchock check --only verifycleanpytest -qgreen (1516 passed, 6 skipped). New test:tests/test_index_in_agent_gates.py. A tool-use gate gets the note; a commit-only gate does not.ruff check .andruff format --check .cleanClaims
🤖 Generated with Claude Code
https://claude.ai/code/session_01CzNYfzP8ymU3r4JB9Sz8Ha
Generated by Claude Code