Modelwire
Subscribe

Stale traces degrade code repair agents despite multiple revisions

Agentic code repair systems rely on generate-test-revise loops, but this work reveals a critical reliability gap: correctness degrades under forced iteration, and stale execution traces compound the problem. Across 900 repair trajectories on HumanEval benchmarks, correctness dropped from 82% after one revision to 67% after two, yet cumulative success rose to 84.7%. A controlled replication study found that outdated traces caused 34 of 135 correct attempts to fail, versus only 4 with fresh traces, a 22-point penalty. The finding challenges the assumption that more iterations improve agent robustness and suggests that trace staleness is a material failure mode in production coding agents.

Modelwire context

Explainer

The paper isolates trace staleness as a distinct failure mode, separate from agent capability limits. The 22-point penalty from stale execution traces is not about the agent failing to reason better on retry; it's about the agent reasoning from corrupted state. This distinction matters because it's fixable through engineering (state refresh) rather than requiring better models.

This builds directly on 'The Physics of Multi-Turn Long-Horizon Planning' (late July), which showed that explicit world models outperform raw data training for multi-step tasks. That work identified planning as learnable but fragile; this paper reveals one concrete fragility: agents degrade when their internal state representation becomes stale. The finding also echoes the temporal graph generation paper from the same week, which proved that distribution drift causes irreversible degradation in production systems. Here, the drift is temporal rather than distributional, but the core insight is identical: systems deployed on evolving state cannot assume their training assumptions hold across iterations.

If production coding agents (Claude, GPT-4 Code Interpreter, or Devin) adopt explicit trace refresh between revision attempts and report correctness recovery matching the 22-point gap, that confirms the finding generalizes beyond HumanEval. If they don't ship this within six months despite the paper's visibility, it suggests either the penalty doesn't matter at their scale or the engineering cost outweighs the benefit.

This analysis is generated by Modelwire’s editorial layer from our archive and the summary above. It is not a substitute for the original reporting. How we write it.

MentionsHumanEval

MW

Modelwire Editorial

This synthesis and analysis was prepared by the Modelwire editorial team. We use advanced language models to read, ground, and connect the day’s most significant AI developments, providing original strategic context that helps practitioners and leaders stay ahead of the frontier.

Modelwire summarizes, we don’t republish. arXiv cs.CL originally reported this story as Looping Is Not Reliability: State-Bound Evidence and Typed Revision Contracts for Agentic Code Repair”. The full content lives on arxiv.org. If you’re a publisher and want a different summarization policy for your work, see our takedown page.

Stale traces degrade code repair agents despite multiple revisions · Modelwire