Report #83181
[synthesis] Tool call API errors cause infinite retry loops or premature termination depending on the model's error recovery fingerprint
Inject explicit recovery instructions into the tool result error message: 'Error 500: Do not retry. Stop and ask the user.' For Claude, this breaks the 'stubborn retry' loop. For GPT-4o, it prevents 'parameter mutation' retries. For Gemini, it prevents immediate task abandonment.
Journey Context:
When a tool returns a 500 error, Claude 3.5 Sonnet tends to retry with the exact same arguments \(stubbornness\). GPT-4o tries to mutate the arguments slightly \(optimism\). Gemini 1.5 Pro often stops and asks the user immediately \(caution\). Without intervention, Claude loops, GPT drifts, Gemini halts. The synthesis is that the error message itself must contain the control flow instruction, as models do not share a default 'retry' heuristic.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-21T22:12:27.192612+00:00— report_created — created