TRANSMISSION // 2612.02545v1
When AI Bug Diagnoses Point to the Wrong Fix
Source published
A controlled study finds that misleading explanations can shift a coding model toward symptom-level patches, while repair outcomes and screening remain uncertain.

A test can show how a program failed without revealing why. Add a plausible but incorrect explanation, and a coding model may be nudged toward a workaround instead of an underlying repair. A preprint tests that possibility while keeping the program, test log and verifier fixed.
A failing test is evidence that something went wrong. It does not always reveal the underlying cause. That distinction matters for AI coding assistants: an explanation added to an accurate test log might help the model, or steer it toward a convincing but incomplete fix.
Junyi Yang’s preprint, When Diagnostics Mislead in Verified Code Repair, asks whether an added diagnosis changes a model’s repair choices when other evidence stays the same. The study also explores whether screening methods can catch misleading explanations without rejecting useful ones.
Isolating the diagnosis
In the main experiment, researchers created synthetic programs with known defects and compared several kinds of feedback, including the original test log alone and the same log paired with a correct or incorrect diagnosis. They held the program, public execution record and verifier fixed across conditions. This paired design helps isolate the effect of the added explanation.
The researchers measured two different outcomes. In one task, the model ranked two candidate patches: a root-cause repair and a workaround that passed the public test but left another contract violation. In another, it generated a repair without seeing those candidates. An independent verifier checked whether proposed edits met the tested contract, rather than merely passing the public check.
The initial pilot used two Qwen3 checkpoints and 50 development cases. Because some results were concentrated in one family of examples, the authors ran a follow-up on 80 cases from 20 newly written synthetic source families. They also examined diagnosis screening in a small repository development panel involving real project defects.
A shift in preference, not proof of broad repair failure
In the synthetic follow-up, adding a wrong diagnosis shifted candidate rankings toward the symptom-level workaround. For 76 cases with complete scores, the family-weighted change in root-repair log odds was −0.600, with an approximate 95% interval from −1.023 to −0.177. In plain terms, the model tended to favor the root repair less when given the misleading note.
That ranking result did not translate into a clear drop in independently verified free repairs. The model passed verification on one case with the raw log and zero with the wrong diagnosis. The interval for the difference included no change, and almost all cases failed under both conditions. This near-zero success rate limits what the experiment can establish about repair outcomes: it offers more evidence about candidate preference than about how often wrong diagnoses reduce successful repairs in practice.
Correct diagnoses also produced more verified repairs than symptom-only or binary feedback in this particular synthetic setup. That result describes the tested model and cases; it is not a general estimate of how diagnosis affects repair across software projects.
The repository panel illustrates why screening is tricky. A hard screen required both a verbatim quote from the evidence and a support rating of at least 70 out of 100. It rejected all 12 wrong notes, but also rejected a useful diagnosis. A graded screen retained that diagnosis and its associated repair. Adding agreement from a second checkpoint reduced forwarded wrong notes from six to three out of 12, without changing any verified repair outcome in that panel. But agreement was no guarantee of truth: an executable probe refuted one confident explanation that had passed the agreement check.
What the evidence can—and cannot—say
The results suggest that a diagnosis can influence which patch a model prefers even when its test log is unchanged. They do not show that every misleading explanation causes a bad repair, or that a screening recipe will work reliably across codebases. The synthetic cases use bounded integer contracts, restricted edits and one repair attempt per condition. In the repository study, the screening panel was small and deliberately included cases where the raw-log system had succeeded; its outcomes should not be read as population-wide rates.
The authors describe a prospective repository holdout intended to measure the effect of appending generated diagnoses. In the preprint, the full cohort had not been registered and no holdout ranking or repair outcomes had been collected. The reported qualification work is therefore not a completed test of that planned evaluation.
This is an arXiv preprint; the supplied source does not establish peer review. The paper says replication materials are being prepared and notes limitations including narrow settings and small samples in some analyses. A cautious practical takeaway is to preserve the original test evidence, treat causal notes as hypotheses, and check a specific claim with a discriminating test when possible. The study does not establish that any one screening method is ready for general use.
- AI coding assistants
- automated program repair
- software testing
- diagnostic feedback
- large language models
- preprint
Reviewed cross-references
These connections were reviewed by a model, not independently fact-checked by a human. Similarity does not imply agreement; consult the original papers and the evidence below.
What counts as success in AI software migration?
Supporting evidence: In Yang’s synthetic repair cases, candidate workarounds passed the public check but failed independent contract checks. Zhang et al.’s survey describes migration studies in which build success or supplied tests are among several distinct forms of acceptance evidence. This offers context for treating test results as bounded evidence, not direct empirical corroboration: the survey covers migration research and does not evaluate Yang’s repair setting.
Model review: · openai-codex/gpt-6-luna
Evidence and provenance
Selected excerpts, not complete papers. PDF extraction can omit figures or damage equations, tables and reading order; sources may be preprints.
2612.02545v1 — Original paper
Excerpt reference:
static/papers/2612.02545v1.md:163-264
Basis: Paper text
Source file SHA-256:7e577098a9bda46109f2cb811df0e0ef6c52a5aece92ec35957a6ae7f32ab59f2611.29942v1 — Original paper
Excerpt reference:
static/papers/2611.29942v1.md:191-319
Basis: Paper text
Source file SHA-256:b792d40667c352278f326b7304160e183fb68e5a4530ebf15bde0dcd96ff7ede
Related reading
Automatically matched by shared topic keywords. These links do not imply that the sources agree or establish a consensus.
DynaFix gives AI code repairs a closer look at execution
Source published
Shared keywords: automated program repair, large language models, software testing
What makes a software repair hard for an AI coding agent?
Source published
Shared keywords: automated program repair, software testing
A map of prompt patterns for software engineering
Source published
Shared keywords: ai coding assistants, large language models
Why AI-written code can look right—and still need repair
Source published
Shared keywords: automated program repair
AI coding assistants struggle between embedded software designs and working code
Source published
Shared keywords: large language models