Your Coding Agent Can't Undo Its Own Mistakes
summary
UndoBench shows agents succeed in normal runs 84% of the time but only recover 47% of completed tasks across 2,880 paired trials, and naive retries cause duplicated side effects in 54% of timeout cases. EvoUndo evaluates 600 evolution tasks where 478 improvements appear but 197 (≈42%) break recoverability. The proposed system captures original state, chooses retry, restore, compensate or escalate, records a proof of state and uses an independent verifier; expanding undo ops recovers 180 of 197 failed mutations, raising accepted improvements from 281 to 461.
AI-written summary · about
chapters (12)
- 0:00Introduction to undo problem
- 1:06Undo Bench research findings
- 2:35External effects and duplicates
- 4:44Why Git revert isn't enough
- 6:10Capturing initial state evidence
- 7:36Limitations of prompt-based fixes
- 9:31Improving undo with better mechanisms
- 10:35EvoUndo algorithm explained
- 12:01Practical undo example
- 13:34When to apply undo mechanisms
- 14:58Combining UndoBench and EvoUndo
- 15:42Key takeaways and conclusion
