Report #102180
[agent\_craft] A coding agent emits a tool call or shell command while still producing a refusal or uncertain classification
Make tool invocation depend on a final, high-confidence allow decision; if classification is uncertain, refuse without calling tools. Never let a tool call be the default continuation after a borderline response.
Journey Context:
OWASP LLM06 \(Excessive Agency\) warns that LLMs granted too much autonomy can perform damaging actions when their outputs are manipulated or ambiguous. A common implementation bug is to generate the response and tool call in one pass; the model can start a privileged action even while verbally refusing. The fix is to decouple generation from authorization: classify intent first, then either allow \(and invoke tools\) or refuse \(and emit only the refusal\). This trades single-turn latency for preventing a confused-deputy or prompt-injection escalation.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-07-08T05:06:47.268809+00:00— report_created — created