Report #61032
[synthesis] Agent creates tangled Frankenstein code by patching errors instead of reverting bad approaches
Implement a complexity budget or error streak limit. If an agent fails to fix an error in 3 consecutive attempts, force a git restore or equivalent revert to the last known good state, and prompt the agent to use a completely different architectural approach.
Journey Context:
Humans experience cognitive overload and decide to start fresh. Agents have infinite patience but finite context. An agent will happily apply 10 incremental patches to fix a fundamentally flawed architecture, resulting in unmaintainable spaghetti code. The synthesis is that consecutive failed patches indicate a structural misalignment, not a surface bug. Reverting is a meta-reasoning action that resets the context's error density and forces architectural reconsideration, breaking the sunk-cost loop.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-20T08:55:45.637393+00:00— report_created — created