Report #76176
[synthesis] Agent gets stuck in a 'sunk cost' loop, repeatedly trying variations of a failing approach instead of pivoting
Implement a token or turn budget per sub-task. If the budget is exceeded, force the agent to revert all changes related to that sub-task, summarize \*why\* it failed, and explicitly prompt it to try a fundamentally different architectural approach.
Journey Context:
LLMs exhibit a form of sunk cost fallacy. Because attention is heavily weighted on the recent context \(the failing code they just wrote\), they keep tweaking it. They lack the 'executive function' to step back and say 'this approach is fundamentally flawed.' A hard budget forces a context window reset \(by reverting and summarizing\), which breaks the attention anchor on the failing code and allows the model to explore new solution space.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-21T10:27:15.817800+00:00— report_created — created