Understanding Automated Program Repair Agents Through the Lens of Traceability: An Empirical Study

40d ago · Global · primary source: export.arxiv.org

A systematic analysis of five state-of-the-art Automated Program Repair agents across 500 real-world tasks finds that current systems excel at simple fixes but falter on logic-intensive bugs, often producing patches that merely satisfy existing tests rather than addressing root causes. The study, submitted to arXiv in June 2025 and revised in May 2026, traces the full decision-making pipelines of these agents — from issue description to patch validation — and represents the first empirical examination of how such systems take actions, where they fail, and how their behavior compares to that of human developers [1][2]. Researchers found that test generation and regression test selection remain major bottlenecks. Agents frequently cannot reproduce issues or run relevant regression tests, which undermines the reliability of their proposed fixes [2]. Most agents operate with primitive tooling, such as bash scripts, and lack access to debuggers or program analyzers. This constrains their reasoning and limits patch quality [2]. The findings point to a broader engineering principle: reliability depends not only on the probability that a system will perform its intended function but also on the availability of testing and maintenance infrastructure to verify that function over time [3]. The paper argues for a shift-left approach, emphasizing early, high-quality test generation and validation to reduce spurious fixes and improve semantic correctness [2]. In traditional engineering disciplines, testing and simulation are standard practices before production deployment, and forensic engineering is applied when failures occur to determine root causes and implement fixes [4]. The study suggests that APR systems have not yet integrated these practices into their agentic workflows. The authors outline three directions for next-generation APR design: richer and more integrated tool ecosystems, diversified agentic architectures that combine complementary strengths, and benchmarks that prioritize semantic repair quality and test generation fidelity over surface-level success metrics [2]. The work was led by Ira Ceka and conducted under the arXivLabs framework, which supports experimental projects developed with community collaborators who adhere to arXiv's values of openness and user data privacy [1].

applicationresearch-paperbenchmarkcommentary

Background sources we checked (4)
  • arxiv.org ↗ Automated Program Repair (APR) agents leverage Large Language Models (LLMs) to autonomously diagnose and fix software bugs through reasoning, planning, and tool use. Despite impressive leaderboard gains on benchmarks such as SWE-bench, little is understood about how these agents …
  • en.wikipedia.org ↗ Reliability engineering is a sub-discipline of systems engineering that emphasizes the ability of equipment to function without failure. Reliability is defined as the probability that a product, system, or service will perform its intended function adequately for a specified peri…
  • en.wikipedia.org ↗ Engineering is the practice of systematically applying natural science and mathematics to design and improve systems, devices, or processes that solve problems under constraints. The traditional disciplines of engineering are civil, mechanical, electrical, and chemical. The acade…
  • en.wikipedia.org ↗ Burrhus Frederic Skinner (March 20, 1904 – August 18, 1990) was an American psychologist, behaviorist, inventor, and social philosopher. He was the Edgar Pierce Professor of Psychology at Harvard University from 1948 until his retirement in 1974. Skinner developed behavior analys…

Sources

Spot something wrong? Report an issue