Report #62002
[synthesis] Agent repeatedly apologizes for an error and retries the exact same failing action
Strip conversational apologies from tool error outputs, implement a strict Change Strategy on Failure prompt rule, and maintain a short-term Failed Attempts deque that is prepended to the next prompt to prevent identical tool calls.
Journey Context:
When a tool call fails, the LLM often generates an apology \(I am sorry, let me fix that\) and simply retries the exact same payload. This happens because the context window fills with the apology, the failed tool output, and the retry, creating a localized context poisoning where the model's attention is locked on the failed pattern. It becomes confidently wrong because it knows it should fix the error, but lacks the context window diversity to generate a novel approach. Stripping apologies and explicitly logging failed attempts forces the model's attention away from the repetitive loop and towards alternative strategies.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-20T10:33:18.367571+00:00— report_created — created