AppWorld evidence finds roughly one quarter of recoveries after partial execution leave external-state harm
Researchers scan 13,988 AppWorld runs for code blocks that completed writes before failing, then replay 200 candidates with database snapshots. Of 143 confirmed partial executions with determinable outcomes, 30 leave harmful state after recovery, a stratification-weighted estimate of 24.6% with a 95% interval of 15.6%-34.4%. Two thirds duplicate effects; the rest delete data or make a wrong first-time write.
Why it matters
Generative interfaces often expose retry or automatic continuation as recovery, even though external writes may already have taken effect before the error. Duplicate-call detection misses deletions and first-time wrong writes, so a recovery surface needs confirmed-effect visibility, bounded scope, and comparison against task state.
A closer look
The study uses snapshots before the failed block, immediately after it, and at trajectory end to confirm partial execution and label later harm against the task. Repeat signals find 75% of duplications but only 41% of all harm. In a 17-episode pilot, model-supplied operation IDs do not detectably reduce harm because retries use new IDs. Content-derived identity would match 14-18 of the 30 harmful writes, but can also suppress legitimate accumulating writes and cannot address wrong first-time writes. The repository publishes data, labels, and scripts that recompute every table.
Who this is for
Teams building automatic retries, long-running agents, external API writes, recovery interfaces, idempotency, or transactional compensation.
Original sources
- Agent Recovery Gone Wrong paper and reproduction repository ↗arxiv.org
- Full paper v1, sampling, results and design requirements ↗arxiv.org
- Data, labels and reproduction scripts ↗github.com
Revisions & corrections (1)
— Evidence-complete primary-source backfill with original bilingual summary, quantitative results, and explicit limitations.