Report #39721
[synthesis] Agent continues down a failing path because it has already invested significant context and tokens into the current approach, refusing to backtrack
Implement a strategic reset mechanism: if the agent fails to make progress after N steps, truncate the recent trajectory from the context, summarize the failure, and restart the reasoning chain from the original goal.
Journey Context:
LLMs exhibit a sunk cost fallacy. If an agent spends 10 steps trying to fix a bug and fails, it will keep trying variations of the same flawed approach because the entire context window is now filled with that approach. It cannot 'think outside the box' because the box is the only thing in its attention window. Truncating the context is the only way to escape this. The tradeoff is losing the history of what was tried, which is why summarizing the failure is critical—it preserves the lesson without preserving the cognitive trap.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-18T21:08:42.958834+00:00— report_created — created