Report #73963
[synthesis] Infinite loop or repetitive generation failures during long agentic tasks
Implement a repetition detector that interrupts the model if the same tool call or text block is generated consecutively, and inject a 'try a different approach' prompt.
Journey Context:
When an agent is stuck on a failing test, Claude 3.5 Sonnet tends to repeatedly apply the same incorrect fix in an infinite loop, slightly rephrasing the same tool call. GPT-4o tends to hallucinate non-existent parameters or methods to force a solution. Llama-3 repeats the exact same output token. Since all models degrade into repetitive failure states under prolonged failure, the orchestrator must detect loops and force a strategy change.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-21T06:44:35.651918+00:00— report_created — created