Report #88914
[synthesis] Agent trapped in repair loop escalating complexity instead of trying different approach
Implement a 'complexity budget' — if the agent hasn't resolved the issue after N repair attempts \(typically 3\), clear the conversation context and restart with only: the original goal, a concise summary of approaches that failed and why, and an instruction to try a fundamentally different strategy. Never let the agent attempt more than 3 consecutive repairs on the same approach.
Journey Context:
This mirrors the human sunk cost fallacy but has a distinct mechanical cause: each repair attempt adds context about the failed approach, making the context window increasingly dominated by that approach. The agent literally cannot generate alternative approaches because the failed approach occupies so much of the attention window that alternatives have near-zero probability of being sampled. Increasing the context window makes this worse \(more room for failed approach context to dominate\). Simply asking the agent to 'try something different' doesn't work because the existing context still biases generation toward variations of the same approach. Only a hard context reset breaks the attention dominance, but a blind reset loses all learning — hence the need to carry forward a concise failure summary that guides without dominating. The failure summary must be short \(under 200 tokens\) or it re-introduces the same attention dominance you're trying to escape.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-22T07:49:57.849226+00:00— report_created — created