Finishing is not the same as being careful

A paper posted to arXiv this week, Back Up Before You Regret, measures something coding agents are rarely tested on: whether they preserve state before they overwrite it.

The headline result is a gap. Across six frontier models, the agents completed an average of 86.1% of the tasks put to them. They backed up before a destructive step 15.2% of the time. The authors state the conclusion flatly: task completion does not imply backup awareness.

A developer at a desk looking at two monitors showing code
Illustration: RegretBench draws its 205 tasks from regret moments posted to X, GitHub and Stack Overflow. Stock photograph. ThisIsEngineering · pexels · Pexels License

Where the test cases come from

The benchmark, RegretBench, is 205 executable tasks, and its construction is the interesting part. The authors built them from real regret moments harvested from X, GitHub and Stack Overflow: cases where someone wished they had kept something they later needed. A file overwritten, an environment reconfigured, a branch force-pushed.

That sourcing matters because the failure mode it tests is not hypothetical. Coding agents now act autonomously on real state — files, software environments, configurations — and the loss is not a wrong answer that can be regenerated. It is work that is gone.

The authors are Xu Li, Simon Yu, Minzhou Pan, Yiyou Sun, Zhaorun Chen, Bo Li and Weiyan Shi. The paper was submitted on 20 October.

The proposed fix is cheap

Alongside the benchmark the authors propose BackUpper, a plug-in for an agent harness that inspects each tool call and copies the affected state before the call modifies it. It uses rule-based strategies for the common cases and a lightweight subagent for the ones the rules do not cover, and the rule table grows as the subagent makes new decisions.

The reported numbers for it are specific. BackUpper covers every regret-moment action in the benchmark. Restored states come back at 92.2% average similarity to the originals. It costs $0.014 per task and uses seven times fewer tokens than having the main agent do its own backups. Where a user has stated preferences about what is worth preserving, it matches human judgements with an 84.5% F1 score.

Stacked metal card-index drawers labelled with call-number ranges
Illustration: the authors report restored states at 92.2% average similarity to the originals. Stock photograph. Magda Ehlers · pexels · Pexels License

What the gap says about evaluation

The finding is less about any one model than about what agent benchmarks measure. Almost all of them score completion: did the agent produce the right output, pass the test, close the issue. Almost none score what the agent did to the machine on the way there.

An agent that completes 86% of tasks and preserves state 15% of the time scores well on every benchmark in common use. That is a measurement problem, not a model problem, and the paper’s contribution is to put a number on the part nobody was counting.

These figures come from the authors’ own harness and have not been independently reproduced. What to watch is whether backup awareness, or reversibility more generally, starts appearing as a scored axis in the agent benchmarks the labs cite.