Validation Evidence in LLM Repair Agents: How Much of What Passes Actually Tests the Bug?
- Source
- arxiv.org
- Author
- Xiaonan Xu, Wenjing Wu
- Date

Context
A passing test is weak evidence for a bug fix if it also passes on the broken code. This study replayed repair agents' validation commands against the original buggy code, the 's candidate, and the developer's reference fix. Across 3,730 events on 110 tasks, 46% of comparable positive events carried no information distinguishing the bug. Such tests may still check other behavior; the percentage is not a count of incorrect patches. Feedback showing the buggy-code result reduced closures with inadequate evidence by 7.8 percentage points versus a matched reminder, below the researchers' predefined threshold for practical importance.
- The method captures each validation command, extracts a test-only patch, and replays it against three code states: the original buggy version, the agent's candidate, and the developer's real fix.
- A test that passes on the candidate and also on the untouched buggy code proves nothing about the reported defect. Almost a quarter of baseline runs closed with a patch whose entire positive evidence was that kind of test.
- Handing the agent the buggy-state replay result cut evidence-inadequate closures by 7.8 percentage points and raised bug-discriminating evidence by 7.4, with no measurable cost to repair success.
- The honest caveat: both effects land under the 10-point threshold the authors preregistered as practically meaningful, and about a third of the gain came from the bare reminder rather than the replay content.
- AI agent — An AI system that doesn't just answer once but works toward a goal in a loop — taking actions, reading the results, and deciding what to do next.
- LLM — A large language model — the neural network behind tools like Claude and ChatGPT, trained on huge amounts of text to predict what comes next.
“When a repair agent runs a test and sees it pass, the result is treated as evidence about the reported defect.”
“46.0% of positive comparable events carry no bug-discriminating information”
“Bug-contrast feedback reduces evidence-inadequate closure by 7.8 percentage points relative to an attention-matched reminder (p = 0.0029) and raises bug-discriminating evidence by 7.4 points (p = 0.011), with no detectable cost to repair success.”
articleWhen Passing Tests Hides Vulnerabilities: An Empirical Study of Silent Failures in Agentic SystemsWenji Bai, Muhammad Waseem, Zeeshan Rasheed, Jaakko Peltonen, Pekka Abrahamsson- postLLMs still produce bugs, but those bugs are different than what they used to be.Boris Cherny
articleEvaluating Agentic Code Repair Capabilities in Distributed SystemsYibo Yan, Huijuan Wang, Junzhou He, Yizhuo Liang, Shaoyu Wang, Huanchen Sun, Seo Jin Park
Checking sign-in…
Loading comments…
