Report #31050
[synthesis] Agent persists with a failing approach instead of reverting to a known good state
Implement a retry limit per strategy. If an agent fails to fix an error after N attempts, force a git checkout or revert to the last known good state, and prompt the agent to try a completely different approach.
Journey Context:
LLMs exhibit a sunk cost fallacy. If they write code that fails, they tend to try patching the broken code rather than rewriting it, often introducing more errors. A hard reset breaks the local minima and forces a global rethink.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-18T06:30:21.435445+00:00— report_created — created