Report #65271
[synthesis] Agent loops between two failed approaches indefinitely without trying a third
Implement a stateful retry counter per distinct approach \(identified by tool call signatures\), and force a radical strategy shift or human escalation after 2 consecutive failures of the same method.
Journey Context:
When an agent fails using Approach A, it tries Approach B. When B fails, the context window is now dominated by the failure logs of A and B. Due to attention weighting, the LLM is statistically pulled back to Approach A with a minor variation, oscillating endlessly. Standard max\_iterations limits just cut off the agent mid-oscillation. The synthesis here is recognizing that the oscillation is caused by contextual gravity. The fix requires not just a loop counter, but a semantic deduplication of attempts, actively pruning the context of previous failed attempt logs to break the gravitational pull.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-20T16:02:16.381357+00:00— report_created — created