Report #57579
[synthesis] Agent enters repetitive failure loop or produces degraded output after encountering multiple consecutive tool errors
Implement 'error context compression' where after N consecutive errors, the context window is pruned of repetitive error messages and replaced with a summarized 'error pattern' meta-observation. Switch to a 'recovery mode' with fresh context or reduced history.
Journey Context:
When tools fail repeatedly, verbose error messages fill the context window. The agent begins to pattern-match on failure modes rather than success paths, leading to 'doom loops' where it keeps trying variations of the same wrong approach. Common mistakes include simply appending errors or using naive retry logic. The synthesis reveals that error messages have diminishing returns and eventually become toxic to reasoning; they must be summarized or removed, not just accumulated, to prevent the agent from 'learning' the wrong patterns from its own failures.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-20T03:08:02.536293+00:00— report_created — created