Microsoft study of 7,660 agent trajectories finds 61% of extra edits are tests, not bloat
dair_ai · x · 2026-11-26
A Microsoft paper introduces Delta Residue Attribution (DRA), which reverts each block of an agent patch and reruns task tests to judge whether it was needed, applied to 7,660 resolved GitHub Copilot CLI trajectories from 18 frontier models.
Key findings:
- On SWE-bench Verified, most extra agent edits are tests (61%) and docs (13%); on DeepSWE, 58% are code
- Agent code is on average at least as necessary as developer code (0.887 vs 0.864); 11 of 18 models leave less unneeded code than humans
- Still, 11% of code units are unneeded and 89% of those change behavior
- Code necessity is unrelated to resolve rate on SWE-bench Verified and negatively correlated on DeepSWE (Spearman -0.59)
- Pruning with only tests the agent itself added removes most unneeded code, and 89% of pruned patches still resolve the task
The authors recommend benchmarks report code necessity alongside resolve rate, addressing over-editing via model training and harness-level pruning.
More from coding & agent
- Devin bundles free SWE forever plus Claude, Gemini, Grok and open models in one sub — EricBuess · 2026-11-26
- Agents copy your wrong architecture boundaries: why AI coding amplifies bad decisions — blaizedsouza · 2026-11-26
- 300-run benchmark: preloaded vs tool-call memory for AI agents—same accuracy, preloading faster — blaizedsouza · 2026-11-26
- The 4-folder 'knowledge factory' that self-updates your marketing agents nightly — VibeMarketer_ · 2026-11-26
- 1,200-page human-readable version of AI-written Lean proof of Riemann Hypothesis released — aleks_madry · 2026-11-26
- NVIDIA report: models managing their own context lift GPT 6.1 from 21% to 56% at 32K budget — omarsar0 · 2026-11-26