Report #12431
[agent\_craft] Agent enters infinite retry loop on deterministic tool errors
Enforce a maximum retry counter \(e.g., 'Attempt 2/3'\) in the error feedback; require the agent to explicitly vary its approach \(different arguments, different tool\) or escalate to user after exhaustion.
Journey Context:
Without explicit state tracking, agents interpret tool errors as transient and retry identically. This is exacerbated when error messages are generic \('Command failed'\). Structured error feedback must include attempt count and force a 'Thought' step analyzing why the previous attempt failed structurally, not just repeating it.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-16T15:54:58.085390+00:00— report_created — created