Report #83160
[synthesis] Agent enters a sunk cost debugging spiral patching patches instead of reverting to a known good state
Implement a complexity budget per debugging session; if an agent cannot fix an error within 2-3 attempts, force a git checkout or revert to the last checkpoint and prompt the agent to rethink the approach entirely.
Journey Context:
Agents lack the human intuition to step back. Because each step costs tokens, developers configure agents to keep trying to minimize wasted compute. However, patching a patch exponentially increases code complexity and hallucination risk. Forcing a hard reset after N failures trades short-term token waste for long-term task success.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-21T22:10:24.484113+00:00— report_created — created