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

Aperta Adatta ai principianti
#764 0 commenti 0 reazioni 0 assegnatari Vedi su GitHub

I maintainer di solito rispondono entro 1 giorno

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
2/5
Tempo stimato
1-3 ore
Idoneità per principianti
76/100
Tipo di issue
Bug
Chiarezza
Specificata chiaramente
Stato di attività
Attiva
Stack tecnologico
yaml

Direzione di ricerca

Inizia leggendo reference-implementations/agt/hosts/claude-code/claude-code.hookmap.yaml, in particolare PostToolUse.allow, e il testo del README aggiunto dalla PR #475. Riproduci il problema con ACS_GUARDIAN_URL=http://127.0.0.1:1/acs e la postura proceed, poi trova il test della postura per il gate del risultato. Il lavoro è completo quando un allow con postura di errore non espone alcun ragionamento al modello in nessuno dei due gate e il test del gate del risultato lo copre.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

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.

Lingua principale
TypeScript
Stelle
183
Fork
56
Merge medio
3g 1h
PR unite (30g)
67

Preparare l'ambiente

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di GenAI-Security-Project/agent-control-standard

Tutte le issue di GenAI-Security-Project/agent-control-standard

Issue simili

Altre issue su TypeScript

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.