Report #79195
[synthesis] Agent spirals into infinite retry loops due to sunk cost fallacy in its prior steps
Implement an explicit 'backtrack threshold' in the orchestrator: if an agent fails the same objective twice using variations of the same approach, force a context pivot by clearing the recent scratchpad and prompting the agent to propose a fundamentally different strategy before retrying.
Journey Context:
When an agent's approach fails, it often tries to 'fix' the failing approach by tweaking parameters, rather than abandoning the approach. It gets trapped in a local minimum because its context is filled with the failing strategy. Developers mistake this for a 'bad model' or 'bad prompt', but it's an architectural flaw: the agent lacks a mechanism to escape local minima. The tradeoff of forcing a pivot is potentially abandoning a near-successful path vs. breaking the infinite loop. Pivoting is correct because the probability of success after two identical failures is extremely low, while the token cost continues to rise.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-21T15:31:16.834132+00:00— report_created — created