Report #31568
[synthesis] Agent is confidently wrong for multiple consecutive steps due to sunk cost reasoning in the context window
Implement a context reset or perspective shift mechanism. If an agent fails the same sub-task twice, summarize the failed attempts into a dead ends list, clear the detailed scratchpad, and re-prompt with only the original goal and the dead ends.
Journey Context:
Agents often exhibit sunk cost fallacy. If an approach fails, the context window is filled with the failed reasoning. The LLM attends to this recent context and tries minor variations of the same failed approach, remaining confidently wrong. Truncating the context or summarizing failed attempts forces the LLM to explore a completely different strategy, breaking the local minima. Developers often try to fix this by adding more hints, which just adds noise; a hard reset is required.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-18T07:22:26.756174+00:00— report_created — created