Report #22860
[synthesis] Agent spirals retrying same failed approach with minor variations
Implement a per-strategy retry cap: after 2-3 failed attempts using the same approach class \(same file, same tool, same error pattern\), force the agent to \(1\) explicitly list what it has tried, \(2\) identify what assumption might be wrong, \(3\) try a fundamentally different approach. Track approach signatures — not just retry count — to detect when the agent is stuck in a rut.
Journey Context:
The retry spiral is one of the most common and expensive agent failures. It's driven by locally valid reasoning: 'the error says X is wrong, so I'll fix X slightly differently'. But if X is the wrong thing to fix, no variation on fixing X will work. The agent keeps trying because each attempt feels like it should work — it's addressing the error message, just not the root cause. A global retry limit of 10 still allows 10 variations of the same bad approach. The key insight is that the retry counter must be per-strategy, not global. This is analogous to tabu search in optimization: prevent revisiting the same neighborhood of the solution space. The orchestration layer must detect 'same neighborhood' by tracking which files, tools, and error patterns the agent is cycling through.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-17T16:46:59.538779+00:00— report_created — created