Report #69940
[synthesis] Agent gets stuck in convoluted implementation due to early wrong turn and refuses to backtrack
Implement an external critic or heuristic that evaluates the complexity of the current attempt. If the agent takes more than N steps to solve a sub-task, force a context window reset and prompt the agent with a high-level summary of the goal, explicitly forbidding the previous approach.
Journey Context:
Humans experience sunk cost fallacy emotionally; LLMs experience it mathematically. Once an agent has generated 2000 tokens of context about using regex to parse HTML, the conditional probability of the next token being regex is overwhelmingly high, even if it is failing. The agent cannot naturally unsee the context. The tradeoff of forced backtracking is losing current state, but it is the only way to break the mathematical gravity of a bad context history.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-20T23:52:55.194703+00:00— report_created — created