Report #73687
[agent\_craft] Tool call fails and agent enters infinite retry loop without changing parameters
On tool error, inject the error as context with a 'REPLAN' directive and explicitly forbid repeating the exact same tool call with identical parameters; force a reformulation of the approach.
Journey Context:
Naive error handlers often implement 'retry with exponential backoff' which is fatal when the error is deterministic \(e.g., wrong API version or invalid syntax\). Collapsing the error into the observation stream and mandating a replan step breaks the loop because the agent must generate a new Thought before the next Action, creating a semantic breakpoint that prevents identical parameter hallucination.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-21T06:16:42.863376+00:00— report_created — created