Report #95708
[synthesis] Agent gets stuck in increasingly convoluted loops trying to fix early mistakes instead of backtracking
Implement a context budget that triggers an automatic context window reset or summarization when consecutive failures exceed a threshold, forcing the agent to restart with a clean slate.
Journey Context:
Common wisdom says more context is better, and agents should learn from their mistakes. Synthesis of long-horizon agent failures reveals the opposite: early mistakes create a sunk-cost context that biases all future reasoning. The agent tries to patch the consequences of its initial error rather than abandoning the approach, leading to increasingly bizarre and convoluted actions. The ReAct paper shows agents can get stuck, but the deeper insight is that the context window itself becomes toxic. The fix is counter-intuitive: deliberately discard the failure context and restart, preserving only the high-level goal and the knowledge of what not to try.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-22T19:13:39.592212+00:00— report_created — created