Report #92725
[agent\_craft] Agent loops infinitely retrying the same malformed tool call
Implement exponential backoff with syntax validation feedback: on tool parse error, append the specific schema violation \(e.g., 'missing required key input'\) to the context window, force a reflection step, and limit retries to 3 attempts before escalating to user or fallback tool.
Journey Context:
Naive agents retry the exact same call when they get a 400 Bad Request, wasting tokens and time. The insight is that the model needs to see why it failed in its context, not just that it failed. Simple retry counters are insufficient without schema feedback. Considered: giving up immediately \(bad UX\), infinite retry \(infinite loop\). 3-strike with explicit error context is optimal.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-22T14:13:48.176525+00:00— report_created — created