Claude Code shim tells the model about a fail-open proceed at the result gate

Open Beginner friendly
#764 0 comments 0 reactions 0 assignees View on GitHub

Maintainers usually reply within 1 day

Nobody has claimed this yet.

Assessment

Difficulty
2/5
Estimated time
1-3 hours
Newbie friendliness
76/100
Issue type
Bug
Clarity
Clearly specified
Activity status
Active
Tech stack
yaml

Research direction

Start by reading reference-implementations/agt/hosts/claude-code/claude-code.hookmap.yaml, especially PostToolUse.allow, and the README text added by PR #475. Reproduce with ACS_GUARDIAN_URL=http://127.0.0.1:1/acs and posture proceed, then find the posture test for the result gate. Done means a failure-posture allow exposes no reasoning to the model at either gate and the result-gate test covers it.

Written by the indexing model from the issue text.

Description

status:needs-triage type:bug workstream:refimpl
What is broken

In the AGT Claude Code shim, a step that proceeds because the Guardian gave no answer still tells the model why, at the result gate.

reference-implementations/agt/hosts/claude-code/claude-code.hookmap.yaml, PostToolUse.allow, writes the decision's reasoning to additionalContext. When the Guardian is unreachable and on_decision_failure is proceed, PreToolUse allows the step without telling the model, as PR #475 (Guardian reasoning in additionalContext) intends. Then PostToolUse writes this into the model's context: "no decision arrived from the guardian ... so this step was proceeded."

To reproduce, set ACS_GUARDIAN_URL=http://127.0.0.1:1/acs with posture proceed, run a tool call, and read the PostToolUse output.

PR #475 adds README and hookmap text saying the model must not learn about a fail-open proceed. That text is true at the request gate and false at the result gate.

Done when

A failure-posture allow puts no reasoning into a model-facing field at either gate, and a posture test covers the result gate. Otherwise the README text says the result gate still shows it.

Dominant language
TypeScript
Stars
183
Forks
56
Avg merge
3d 1h
Merged PRs (30d)
67

Getting set up

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from GenAI-Security-Project/agent-control-standard

All issues in GenAI-Security-Project/agent-control-standard

Similar issues

More TypeScript issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.