Agent recovery capability gap

Coding agents hit 84% task success but only 47% recovery when errors introduced AI Engineer
TL;DW
  • Naive retry strategies produced duplicate effects in 54% of test cases when agents couldn't distinguish failed responses from failed operations.
  • Task success rate of 84% dropped to only 47% recovery rate when injected failures occurred—success doesn't guarantee undo capability.
  • Git revert alone is insufficient; agents modify runtime state (tool logs, middleware, settings) and external systems (APIs, databases) beyond repository control.
  • Evo Undo captures state witnesses before mutations, enabling restoration to precise original values and independent verification of recovery success.
  • About 42% of capability improvements (197 of 478) introduced recovery defects—optimizations can enhance performance while breaking reliable failure recovery.
  • Recovery language expressiveness was critical: expanding undo operations improved restoration from 0% to 99% (142 of 143 cases).
  • Precise state information about what changed where improved recovery rate from 0% to 79% (38 of 48 cases).
  • Failure stage matters: before changes allow safe retry; during changes require state inspection; after changes risk duplicates without idempotency checks.
  • Recovery mechanisms must match failure type—retries for pre-change, compensation actions for external side effects, rejection for unrecoverable states.
  • Acceptable capability improvements should require both performance gains AND passing independent recovery verification, not just one criterion.

Undo Bench, a 2,880-experiment evaluation, finds agents fail to correctly undo mistakes in more than half of failure-injected runs; naive retries cause 54% duplication. Evo Undo fixes this by capturing state witnesses before mutations and expanding recovery operations beyond Git, lifting acceptable task completions from 281 to 461 of 600—a 30-point gain.