Agent-generated test suites on Defects4J and on post-cutoff faults, with and without the implementation.
Evaluations of automated test generation on Defects4J generate a suite against the fixed revision of a bug and then check it against the buggy one. For a language-model agent that is not neutral: the agent reads the code it is writing tests for, and on the fixed revision that code already contains the repair.
This repository holds the data and scripts for measuring how much of an agent's apparent fault-detection ability that accounts for, and what the metrics usually reported alongside it can see.
Two suites per bug from the same agent and model, under two conditions: the agent either works in the project's source tree or sees only its javadoc. The comparison was run twice on the same 40 Defects4J bugs, and twice more on faults fixed after the model's training data ends: 28 in a third campaign and 115 in a fourth. A fifth campaign showed the agent the faulty revision of the fourth campaign's 115 faults, and a sixth asked it to look for faults there. A seventh asked it to look for faults in Defects4J's buggy versions of the 40 bugs, and an eighth asked it to look for faults in the fourth campaign's faulty revisions without naming the classes. A ninth made the fourth campaign's comparison with a second model, Claude Opus 5.5, on the 55 of its faults fixed after that model's training data ends.
The second campaign is the controlled one. Its working copies hold nothing
of the benchmark's own, a sandbox enforces the conditions, every run's
transcript is kept and audited, and the hypotheses, tests and exclusions were
fixed before the first run (data/campaign2/PROTOCOL.md).
| arm | real fault detected | mutation score | line coverage |
|---|---|---|---|
| implementation-visible | 22/39 — 56% | 54% | 85% |
| specification-only | 7/39 — 18% | 39% | 71% |
Detection is over the 39 bugs with a verdict in both arms: 16 faults are detected by the first arm alone and one by the second alone (exact McNemar, p = 2.7 × 10⁻⁴). Mutation score and coverage are over the 36 of those bugs that have every measurement in both arms. On those 36, detection loses 65% of its value, mutation score 28% and line coverage 16%. The gap between the first two losses is 37 points, with a 95% bootstrap interval of 12 to 59. That is the pre-specified test of the claim in the title.
The first campaign used Defects4J checkouts as they come.
| arm | real fault detected | mutation score | line coverage |
|---|---|---|---|
| implementation-visible | 26/36 — 72% | 58% | 86% |
| specification-only | 5/36 — 14% | 44% | 74% |
| EvoSuite (baseline) | 15/35 — 43% | 47% | 86% |
Such a checkout tells the agent more than the code does: Defects4J's own files name the bug and the tests that expose it. Without them the implementation-visible arm detects 20 of the 36 bugs it had detected 26 of. And where the first campaign only told the specification-only agent not to inspect the compiled classes, the second stopped it: 22 of 40 agents tried.
EvoSuite's row is over the suites that have each measurement: 36 for mutation, 35 for detection and 35 for coverage. Beside the second campaign's arms, on the 35 bugs where all three have a detection verdict, the rates are 57%, 43% and 20% and the mutation scores 54%, 47% and 39%.
The third campaign is on faults the model cannot have seen. The second
campaign's conditions, on 28 fix commits of Commons Lang, Commons CSV and
Commons CLI from January to September 2026, with its test and exclusions also
fixed before the first run (data/campaign3/PROTOCOL.md). Mutation score and
coverage were measured afterwards with PIT, as that protocol provides.
| arm | real fault detected | mutation score | line coverage |
|---|---|---|---|
| implementation-visible | 8/23 — 35% | 57% | 78% |
| specification-only | 5/23 — 22% | 52% | 72% |
Over the 23 subjects with a verdict in both arms and no excluded run, three faults are detected by the first arm alone and none by the second alone (exact McNemar, p = 0.25). The pre-specified test does not reject. The difference is 13 points, with a 95% bootstrap interval of 0 to 26: the direction of the Defects4J campaigns, in a corpus too small to show more. There detection loses 37.5% of its value and mutation score 8.6%. The gap between the two losses is 29 points, with an interval of −7 to 67 that includes zero, a secondary result on a corpus not sized for it.
The fourth campaign is on 115 more of them. It uses the same conditions,
on fix commits from a pool counted afterwards from the three projects' 2026
histories. They are not matched by fault type, and the sandbox was tightened
after the third campaign's audit. Its protocol (data/campaign4/PROTOCOL.md)
makes the claim in the title one of its hypotheses.
| arm | real fault detected | mutation score | line coverage |
|---|---|---|---|
| implementation-visible | 21/112 — 19% | 44% | 62% |
| specification-only | 3/112 — 3% | 50% | 68% |
Detection is over the 112 subjects with a verdict in both arms. Nineteen faults are detected by the first arm alone and one by the second alone (exact McNemar, p = 4.0 × 10⁻⁵). The difference is 16 points, with an interval of 9 to 23. Mutation score and coverage are over the 109 of those subjects in whose fixed classes PIT makes a mutant.
There detection loses 84% of its value, and mutation score none: pooled, it is higher in the arm that detects less. The gap between the two losses is 99 points, with an interval of 74 to 121, so by the test the protocol fixed the claim in the title holds on these faults.
The pooled figure leans on eight subjects whose fix is in StringUtils.
They hold a third of the mutants, and the specification-only suites cover
them more widely. As means over suites the scores are 62% and 56%, in the
usual order. Both arms detect far less than on Defects4J.
The fifth campaign shows the agent the faulty code. It runs on the fourth campaign's 115 subjects, with two arms:
- one implementation-visible arm works on the parent of the fix commit, and its suite is accepted there;
- the fourth campaign's implementation-visible arm is run again beside it, on the fix.
A suite written against the faulty revision that fails on the fix certifies
the fault. The protocol is data/campaign5/PROTOCOL.md.
| arm | fault certified or detected | mutation score | line coverage |
|---|---|---|---|
| reads the faulty code | 7/115 — 6% certified | 42% | 60% |
| reads the repaired code | 26/115 — 23% detected | 41% | 59% |
The two arms split the 115 subjects like this:
- four are certified by the first arm and detected by the second;
- three are certified only;
- 22 are detected only.
The exact McNemar test gives p = 1.6 × 10⁻⁴, and the difference is −16.5 points, with an interval of −24.3 to −8.7. The sign of the effect follows the revision the agent reads, but its size does not. Shown the faulty code, the agent locks the fault in about a quarter as often as it detects the fault from the repair. Of the 35 omissions, it certifies none, where the other arm detects ten.
Mutation score cannot tell the arms apart: pooled over the 112 subjects with a figure, it is 42% and 41%. Run twice on the same subjects, the arm that reads the repaired code changes its verdict on 15 of the 115.
During the runs, a package installation changed the machine's Java. The 111 runs still to come failed before their agent started, and were made again, as the protocol provides for such failures. Its Deviations section records what happened.
The sixth campaign asks the agent shown the faulty code to look for faults. It runs on the same 115 subjects, with two arms:
- one implementation-visible arm works on the parent of the fix commit and is asked to find bugs. Its tests that fail there are kept as its findings, and a finding that passes on the fix detects the fault;
- the fourth campaign's implementation-visible arm is run a third time beside it, on the fix.
The protocol is data/campaign6/PROTOCOL.md.
| arm | fault detected | mutation score | line coverage |
|---|---|---|---|
| reads the faulty code, asked to look for faults | 7/113 — 6% | 46% | 64% |
| reads the repaired code | 27/113 — 24% | 41% | 60% |
Detection is over the 113 subjects with a suite in both arms. Five are detected by both arms, two by the first alone and 22 by the second alone (exact McNemar, p = 3.6 × 10⁻⁵). The difference is −17.7 points, with an interval of −25.7 to −10.6. Even asked to look, the agent shown the faulty code detects the fault a quarter as often as the regression setting credits it. The seven runs that detect are exactly the seven whose closing message names the fault. Of the 74 findings, 65 do not pass on the fix. In eight runs, though, the bug they show is another subject's fault, repaired by a later fix.
Mutation score and coverage are over the 110 subjects with a figure in both arms, and the first arm's findings are not in them, since PIT needs a suite that passes. Pooled, the score is higher in the arm that detects less: 45.7% against 41.2%, +4.5 points with an interval of +0.8 to +8.4. Run three times, the arm that reads the repaired code gives verdicts that agree with a Fleiss' κ of 0.60.
The seventh campaign makes the same request on Defects4J. It runs on the 40 bugs of the first two campaigns, with two arms:
- one implementation-visible arm works on Defects4J's buggy version of each bug and is asked to find bugs, in the sixth campaign's words. A finding that passes on the fixed version detects the fault;
- the second campaign's implementation-visible arm is run a second time beside it, on the fixed version.
The protocol is data/campaign7/PROTOCOL.md.
| arm | fault detected | mutation score | line coverage |
|---|---|---|---|
| reads the faulty code, asked to look for faults | 4/39 — 10% | 54% | 84% |
| reads the repaired code | 21/39 — 54% | 53% | 83% |
Detection is over the 39 bugs with a verdict in both arms. Three are detected by both arms, one by the first alone and 18 by the second alone (exact McNemar, p = 7.6 × 10⁻⁵). The difference is −43.6 points, with an interval of −61.5 to −25.6. On Defects4J too, the agent asked to look detects the fault a fifth as often as the regression setting credits it. The gap is wider than on the post-cutoff faults. Asked to look, the agent finds about as little as there, 10% against 6%, while the arm that reads the repair detects 54% against 24%. The first arm detects none of the 22 omissions, and none of the four faults the memorisation probe flags. Of its 42 findings, 38 do not pass on the fixed version.
Mutation score and coverage are over the 37 bugs with a figure in both arms, measured with Major as in the second campaign, and the first arm's findings are not in them. Run a second time, the arm that reads the repaired code detects 21 of the 39 bugs where it had detected 22, and the two runs agree on 34 of them (κ 0.74).
The eighth campaign makes the sixth's request without naming the classes.
It runs on the fourth campaign's 115 subjects, with one arm. The agent works
on the parent of the fix commit and is asked to look for faults in the
project. Its prompt is the sixth campaign's without the list of classes the
fix changes, so the agent chooses what to test. The protocol is
data/campaign8/PROTOCOL.md. It fixes no hypothesis test, since at the rates
expected none on these subjects could tell the conditions apart: the result is
an estimate, with an exact interval.
| arm | fault detected | mutation score | line coverage |
|---|---|---|---|
| reads the faulty code, asked to look for faults in the project | 0/112 — 0% | 1.4% | 5.0% |
Detection is over the 112 subjects with a verdict. Three runs reached the turn limit without writing a test file. Asked to look in the project, without being told where, the agent detects none of the faults. The exact 95% interval runs to 3.2%. It tested a class the fix modifies in 5 of its 112 suites, and its tests executed one in 23 of 109. None of these detects the fault either. All 66 of its findings are false alarms, though in 20 runs the bug they show is another subject's fault, which a later fix repaired.
Mutation score and coverage are taken on the classes the fixes modify, over the 109 subjects with a figure, so they say mostly whether a suite reached those classes. On the 107 subjects with a figure in the sixth campaign too, the score is 1.6% against 45.6%. On the same subjects the agent told the classes had detected 7 faults, and the agent shown the repair, run three times, 35 at least once.
The ninth campaign makes the fourth's comparison with a second model.
Every earlier campaign ran Claude Sonnet 5. The ninth runs Claude Opus 5.5,
at effort high, in the same harness, with the fourth campaign's prompts,
working copies, sandbox and measurements. Its subjects are the 55 of the
fourth campaign's faults fixed from July 2026 on, after the model's training
data. A probe asked the model about each fix, and it knew none. The protocol
(data/campaign9/PROTOCOL.md) makes the fourth campaign's two hypotheses its
own.
| arm | real fault detected | mutation score | line coverage |
|---|---|---|---|
| implementation-visible | 34/54 — 63% | 76.5% | 92.4% |
| specification-only | 6/54 — 11% | 70.4% | 89.1% |
Detection is over the 54 subjects with a verdict in both arms: 29 faults are detected by the first arm alone and one by the second alone (exact McNemar, p = 5.8 × 10⁻⁸). The difference is 52 points, with an interval of 37 to 67. Mutation score and coverage are over the 52 of those subjects in whose fixed classes PIT makes a mutant. Detection loses 81% of its value between the arms and mutation score 8%. The gap between the two losses is 73 points, with an interval of 56 to 89, so by the test the protocol fixed the claim in the title holds for a second model.
On the same subjects Sonnet 5's arms had detected 9 and 2 of 54. The stronger model gains most where it reads the repair: 18 of its 34 detections are of faults that none of Sonnet 5's three runs of that condition detected. Its specification-only suites score 20 points higher on mutation than Sonnet 5's implementation-visible suites, on the 51 subjects with a figure in all four arms, and detect 6 of those faults to their 7. Both models are Anthropic's, and the harness gives each its own system prompt and tool descriptions.
Mutation score and coverage measure how much of a program a suite exercises and how hard it checks what it exercises. Neither measures where the expected values came from.
| path | what |
|---|---|
PREPRINT.md |
the write-up: method, results, threats, related work |
data/README.md |
the method record, including deviations, tooling failures and corrections |
CITATION.cff |
how to cite the work. .zenodo.json, which Zenodo reads when it archives a release, is written from it by bin/zenodo-metadata.py |
data/agent-metrics-final.csv |
per-suite detection, mutation and coverage of the first campaign and of EvoSuite; the second campaign's are in data/campaign2/results/agent-metrics.csv |
data/fault-taxonomy.csv |
hand classification of the 40 Defects4J faults |
data/memorisation-grades.csv, data/memorisation-readings.csv |
what the model recalls about each fault with no code in context: the mechanical screen and the hand readings |
data/agent-notes/ |
the notes three generation runs of the first campaign wrote to the agent's persistent memory, that campaign's only first-hand record of what an agent read |
bin/run-agent-suites.sh |
generation, first campaign, implementation-visible arm |
bin/run-spec-suites.sh |
generation, first campaign, specification-only arm (sandbox construction included) |
data/campaign2/PROTOCOL.md |
the protocol of the second campaign, fixed before any run on the sample: design, hypotheses, tests, exclusions |
data/campaign2/ |
that campaign's record: every run's transcript, prompt and settings, the packaged suites, the audit and the list of violations, Defects4J's tables and logs, and the analysis as printed |
bin/generate-suites.sh, bin/run-campaign2.sh |
generation for that campaign, both arms, with the agent isolated from the benchmark, the network and the operator's profile |
bin/audit-transcripts.py |
reads that campaign's transcripts for anything the protocol forbids |
bin/analyze-campaign2.py |
the analysis the protocol fixes |
bin/describe-campaign2.py |
descriptive figures of that campaign, written after the runs |
bin/analyze-agent-suites.sh |
measurement, wrapping Defects4J's own scripts |
bin/merge-agent-metrics.py |
merges Defects4J's tables and recomputes the mutation columns from Major's output |
bin/remeasure-cli-evosuite.sh |
measures five EvoSuite suites again with one path in Defects4J corrected |
bin/check-cobertura-instrumentation.py |
which methods of the measured classes Cobertura gives a line counter: in Csv-4's CSVParser, the one class of the sample where most have none, their lines read as never executed |
bin/remeasure-csv4-coverage.sh |
measures the line coverage of Csv-4's seven Cobertura-measured suites again, with JaCoCo beside Cobertura; output in data/csv4-coverage/ |
bin/check-recurring-findings.sh |
runs, on the projects' latest releases, the behaviours that several find-faults runs named; output in data/recurring-findings.txt |
bin/check-campaign8-findings.sh |
runs, on the projects' latest releases, the other behaviours that the eighth campaign's closing messages name; output in data/campaign8-findings.txt |
bin/report-figures.py |
recomputes most of the figures of §3 of the write-up from data/ |
bin/audit-trigger-leaks.py |
what the generated suites and run records give away about what the agent knew |
Post-cutoff replication corpora, their mining scripts and their results are
under data/postcutoff*, data/matched-*, bin/mine-postcutoff.sh,
bin/run-postcutoff.sh, bin/tally-postcutoff.py,
bin/revalidate-postcutoff.sh, bin/count-postcutoff-pool.py and
bin/classify-postcutoff-pool.py.
The third campaign, which makes the comparison on those post-cutoff subjects
under the second campaign's conditions, is under data/campaign3/: its
protocol (PROTOCOL.md), its pilot (pilot/), every run's transcript, prompt
and settings, the suites as written, the audit with the lists of violations
and of direct compiler calls, the measurement's logs and verdicts, and the
analysis as printed. Its scripts are bin/generate-postcutoff.sh,
bin/run-campaign3.sh, bin/audit-campaign3.py, bin/measure-campaign3.sh,
bin/analyze-campaign3.py, bin/campaign3-lib.sh and
bin/AgentTestRunner.java, all committed before its runs, and
bin/describe-campaign3.py, written after them. Its suites' mutation score
and coverage were measured afterwards, as its protocol provides, by
bin/mutation-campaign3.sh with bin/ExcludedTestsFilter.java, and analysed
by bin/analyze-mutation-campaign3.py; their output is in
data/campaign3/mutation/ and data/campaign3/mutation-analysis.txt.
bin/agent-sandbox.py, written after the third campaign, holds sandbox
settings for any later run, which give each run a temporary directory of its
own and hide the operating system's jars, and a check of them that calls no
model. Its output under those settings and under the two campaigns' is in
data/sandbox/. bin/probe-saved-copies.py, written after the fourth
campaign, checks in the same way how far the one exception those settings leave
reaches: the Read tool on the copy the CLI saves of a run's long output. It
reaches no further than the run's own session; the output is in
data/sandbox/ too.
The fourth campaign is under data/campaign4/. It makes the comparison on 115
of the pool's post-cutoff subjects, not matched by fault type, under those
settings. The directory holds its protocol (PROTOCOL.md), fixed before any
run on the subjects, the subjects and their records, the sandbox probe, the
pilot (pilot/), the records of its 230 runs (runs-m4/, runs-s4/,
suites/), their audit (audit.txt, violations.txt, direct-javac.txt),
the measurement of detection (results/), that of mutation score and line
coverage (mutation/), and the analysis (analysis.txt). Its scripts are
bin/subjects-campaign4.py, bin/generate-campaign4.sh,
bin/run-campaign4.sh, bin/audit-campaign4.py, bin/measure-campaign4.sh,
bin/mutation-campaign4.sh and bin/analyze-campaign4.py, all committed with
its protocol, and bin/describe-campaign4.py, written after the analysis.
They use the third campaign's bin/campaign3-lib.sh,
bin/AgentTestRunner.java and bin/ExcludedTestsFilter.java unchanged.
The fifth campaign is under data/campaign5/. It uses the fourth campaign's
115 subjects. One implementation-visible arm is shown the faulty revision, the
parent of the fix commit. The fourth campaign's implementation-visible arm is
run again beside it, on the fix commit. A suite written against the faulty
revision that fails on the fix certifies the fault. The campaign measures how
often that happens, and whether it happens as often as the other arm detects
the fault. The directory holds:
- its protocol (
PROTOCOL.md), fixed before any run on the subjects, with the deviation recorded during the runs; - the subject list;
- the output of the two sandbox checks, before the pilot and before the runs;
- the pilot (
pilot/); - the records of its 230 runs (
runs-b5/,runs-m5/,suites/), with the first attempts the harness failed (harness-failed/); - their audit (
audit.txt,violations.txt,closing-b5.txt); - the measurement (
results/), mutation score and line coverage (mutation/), and the analysis (analysis.txt).
Its scripts are bin/subjects-campaign5.py, bin/generate-campaign5.sh,
bin/run-campaign5.sh, bin/audit-campaign5.py, bin/measure-campaign5.sh,
bin/mutation-campaign5.sh and bin/analyze-campaign5.py, all committed with
its protocol, and bin/describe-campaign5.py, written after the analysis.
They use bin/campaign3-lib.sh, bin/AgentTestRunner.java,
bin/ExcludedTestsFilter.java and bin/agent-sandbox.py unchanged.
The sixth campaign is under data/campaign6/. It uses the fourth campaign's
115 subjects. One implementation-visible arm is shown the faulty revision, the
parent of the fix commit, and asked to look for faults in it. Its tests that
fail on the faulty revision are its findings, and a finding that passes on the
fix detects the fault. The fourth campaign's implementation-visible arm is run
a third time beside it, on the fix commit. The campaign measures how often the
agent asked to look detects the fault, and whether it does so as often as the
other arm. The directory holds:
- its protocol (
PROTOCOL.md), fixed before any run on the subjects; - the subject list;
- the output of the two sandbox checks, before the pilot and before the runs;
- the pilot (
pilot/); - the records of its 230 runs (
runs-f6/,runs-m6/,suites/); - their audit (
audit.txt,violations.txt,closing-f6.txt); - the measurement (
results/), mutation score and line coverage (mutation/), and the analysis (analysis.txt).
Its scripts are bin/subjects-campaign6.py, bin/generate-campaign6.sh,
bin/run-campaign6.sh, bin/audit-campaign6.py, bin/measure-campaign6.sh,
bin/mutation-campaign6.sh and bin/analyze-campaign6.py, all committed with
its protocol, and bin/describe-campaign6.py, written after the analysis.
They use bin/campaign3-lib.sh, bin/AgentTestRunner.java,
bin/ExcludedTestsFilter.java and bin/agent-sandbox.py unchanged.
The seventh campaign is under data/campaign7/. It uses the sample's 40
Defects4J bugs. One implementation-visible arm is shown Defects4J's buggy
version of each bug and asked to look for faults in it, with the sixth
campaign's request. Its tests that fail on the buggy version are its findings,
and a finding that passes on the fixed version detects the fault. The second
campaign's implementation-visible arm is run a second time beside it, on the
fixed version. The campaign measures how often the agent asked to look detects
the fault on Defects4J, and whether it does so as often as the other arm. The
directory holds:
- its protocol (
PROTOCOL.md), fixed before any run on the subjects; - the subject list;
- the output of the two sandbox checks, before the pilot and before the runs;
- the pilot (
pilot/); - the records of its 80 runs (
runs-f7/,runs-m7/,suites/); - their audit (
audit.txt,violations.txt,closing-f7.txt); - the measurement (
results/), mutation score and line coverage (mutation/), and the analysis (analysis.txt).
Its scripts are bin/subjects-campaign7.py, bin/generate-campaign7.sh,
bin/run-campaign7.sh, bin/audit-campaign7.py, bin/measure-campaign7.sh,
bin/mutation-campaign7.sh, bin/analyze-campaign7.py,
bin/disable-tests-campaign7.py, bin/campaign7-lib.sh and
bin/AgentTestRunner4.java, all committed with its protocol, and
bin/describe-campaign7.py, written after the analysis. They use
bin/agent-sandbox.py, bin/merge-agent-metrics.py and helpers of
bin/campaign3-lib.sh unchanged.
The eighth campaign is under data/campaign8/. It uses the fourth campaign's
115 post-cutoff subjects. One implementation-visible arm is shown the faulty
revision, the parent of each fix commit, and asked to look for faults in the
project. Its request is the sixth campaign's without the classes to look in.
Its tests that fail on the faulty revision are its findings, and a finding
that passes on the fix detects the fault. The campaign measures how often the
agent asked to look, without being told where, detects the fault, and where it
looks. The directory holds:
- its protocol (
PROTOCOL.md), fixed before any run on the subjects; - the subject list;
- the output of the two sandbox checks, before the pilot and before the runs;
- the pilot (
pilot/); - the records of its 115 runs (
runs-p8/,suites/), each with the classes its suite tests (.tested); - their audit (
audit.txt,violations.txt,closing-p8.txt); - the measurement (
results/), mutation score and line coverage (mutation/), and the analysis (analysis.txt).
Its scripts are bin/subjects-campaign8.py, bin/generate-campaign8.sh,
bin/run-campaign8.sh, bin/audit-campaign8.py, bin/measure-campaign8.sh,
bin/mutation-campaign8.sh, bin/analyze-campaign8.py and
bin/campaign8-lib.sh, all committed with its protocol, and
bin/describe-campaign8.py, written after the analysis. They use
bin/campaign3-lib.sh, bin/AgentTestRunner.java,
bin/ExcludedTestsFilter.java and bin/agent-sandbox.py unchanged.
The ninth campaign is under data/campaign9/. It makes the fourth campaign's
comparison again with another model, claude-opus-5-5, where every campaign
since the second ran claude-sonnet-5. Its two arms are in m4's and s4's
conditions, with their prompts and working copies, and its subjects are the
55 of the fourth campaign's fixed from 1 July 2026 on, after the model's
training data. The campaign asks whether, with this model, the arms differ in
detection and detection falls further than mutation score, and it sets its
verdicts beside Sonnet 5's on the same subjects. The directory holds:
- its protocol (
PROTOCOL.md), fixed before any run on the subjects; - the subject list;
- the output of the two sandbox checks and of the check of what the CLI
sends the model (
requests.txt), before the pilot and before the runs; - the pilot (
pilot/); - the cutoff probe: the model's answers about each subject's fix
(
cutoff-probe/), with their screen and their readings; - the records of its 110 runs (
runs-m9/,runs-s9/,suites/); - their audit (
audit.txt,violations.txt,direct-javac.txt); - the measurement (
results/), mutation score and line coverage (mutation/), and the analysis (analysis.txt); - the campaign's first design, on Defects4J, left after its pilot and
memorisation probe (
defects4j/).
Its scripts are bin/subjects-campaign9.py, bin/generate-campaign9.sh,
bin/run-campaign9.sh, bin/audit-campaign9.py, bin/measure-campaign9.sh,
bin/mutation-campaign9.sh, bin/analyze-campaign9.py,
bin/probe-cutoff-campaign9.sh, bin/grade-cutoff-campaign9.py,
bin/probe-requests-campaign9.py and bin/campaign9-lib.sh, all committed
with its protocol, and bin/describe-campaign9.py, written after the
analysis. They use bin/campaign8-lib.sh, bin/campaign3-lib.sh,
bin/AgentTestRunner.java, bin/ExcludedTestsFilter.java,
bin/agent-sandbox.py and bin/probe-saved-copies.py unchanged.
Several things, recorded here because they are easy to over-read from the table above:
- The implementation-visible figure is an upper bound, not a capability. The agent reads the repaired code, so a test written for current behaviour catches the fault by construction. That the regression evaluation setting flatters generated suites is not a new observation — Dinella et al. state it in 2022; what is measured here is the magnitude, and how little of it the usual metrics show.
- In the first campaign the implementation-visible arm was told more than the implementation. A Defects4J checkout carries Defects4J's own metadata, which names the bug and its trigger tests, and that was not removed. In 11 of the arm's 26 detections the suite or the agent's closing message shows it knew one or the other, and one of the eleven is the developer's own test, copied from a backup the checkout leaves in the tree. The second campaign removes all of it and the arm detects six fewer of 36 bugs. The campaigns differ in other ways too, reasoning effort and prompts among them, so six is an upper bound on what the metadata added, not a measurement of it.
- The second campaign is the same forty bugs. Its analysis was fixed before its runs, with the first campaign's results already known. It shows that the effect survives control on new runs. It does not show that it holds on new faults. There is one run per bug and arm in each campaign. The seventh campaign is on the same forty bugs again.
- On new faults the effect rests on one campaign. The third campaign's
test does not reject: 8/23 against 5/23, p = 0.25, three discordant pairs
where the test needed six. The fourth's does, on 112 subjects.
- Its difference, 16 points, is close to the third's 13.
- It is 22 points narrower than the second campaign's, with an interval that excludes zero. The corpora differ in project, kind of fault and build as well as in date, so the narrower gap cannot be put down to recall, and recall cannot be excluded as a part of the Defects4J figure.
- That the fixes postdate the training data rests on one check, of five issue identifiers. And only the fix is new: the code around it may be in the training data.
- The ninth campaign's test rejects too, on 54 of the same faults with another model, Claude Opus 5.5. Its probe asked the model about each fix, and the model knew none.
- The fourth campaign's H2 depends on how mutants are pooled. Pooled, mutation score rises from the implementation-visible arm to the specification-only one. As means over suites it falls by a tenth, and the implementation-visible arm is ahead in 80 of 109 subjects. Either way it falls far less than detection does. But the size of the pre-specified statistic, 99 points, comes from the pooling.
- The fourth campaign's subjects are not matched to the Defects4J sample by fault type. Weighted to it, detection is 16.0% against 3.6%.
- Each faulty-revision condition measures one request. The fifth campaign's agent is asked to make its tests pass on the code it reads, and acceptance drops any that fail there. So it measures how often tests written after faulty code lock the fault in, and one of its seven certifications rests on behaviours the fix changed besides the fault. The sixth's agent is asked to find bugs, in one explicit wording, and the prompt names the classes to look in. A vaguer request could find less. The seventh's agent is given the same request, on Defects4J, and the eighth's is given it without the names.
- The eighth campaign is an estimate from one run per subject. It fixed no test. Its agent tested a faulty class in 5 of 112 suites, so the result says mostly that it looked elsewhere. With limits other than the sixth's, 50 turns and $5, or another wording, it could look further. Its working copy keeps the test files the fix touches, which the sixth's lacked, so the comparison with the sixth differs in that as well as in the names.
- The ninth campaign compares two models of one family, in one harness.
Both are Anthropic's. The harness gives each its own system prompt and tool
descriptions, and the effort level
highis a scale of each model's own, so the comparison with Sonnet 5 sets each model beside the other as the harness configures it, and is descriptive. Its subjects are 55 of the fourth campaign's, chosen by the model's cutoff date when Sonnet 5's result on them was already known. Nothing here shows the effect with a model of another family or another agent. - A false alarm is relative to one fix. In the sixth campaign, a finding
that does not pass on the fix counts as a false alarm, and 65 of the 74 do
not. In eight runs, though, what the findings show is another subject's
fault, which a later fix repaired. In the seventh, 38 of the 42 do not pass
on the fixed version, and in two runs they show another bug's fault in the
same way. In the eighth all 66 are false alarms, and in 20 runs they show
another subject's fault. In four more runs of the eighth, a later commit
outside the pool repaired the fault the findings show. Four behaviours that
several runs name are bugs the projects had not fixed, reported to them in
November and December 2026 (
data/README.md). The count of false alarms is an upper bound on the findings that show no fault, not a measure of them. In the other direction, two seventh campaign runs name the fault and do not detect it: their tests expect a repaired behaviour other than the fix's. - Verdicts vary between runs. Each campaign has one run per subject and arm. The fifth and sixth campaigns ran the fourth's implementation-visible arm again on the same 115 subjects. Between the first two runs 15 verdicts changed (agreement 87%, κ 0.60), and between the last two 15 again (87%, κ 0.63). The seventh ran the second campaign's again on the 40 Defects4J bugs, and 5 of 39 verdicts changed (87%, κ 0.74). The between-arm differences the tests rest on are larger than that. But no single verdict should be read as a property of its subject. The ninth campaign ran the fourth's implementation-visible condition with another model, and its verdicts agree with those of the three Sonnet 5 runs with κ of 0.15 to 0.22.
- The sandbox was less tight than its settings were meant to make it. The
third campaign's audit found that the directory the harness gives commands
for temporary files is the host's own and shared by every run, in that
campaign and in the second, and that during the third it also held the
developers' tests for each fix. The transcripts, which record every command
and result, show no agent in either campaign listing that directory or
reading anything there that it had not just written. Five runs of the third
campaign did read back their own files there, or the harness's saved copy of
their own output; the exclusion rule as written leaves them out, and the
result is the same with them in (9/27 against 6/27, p = 0.25). A check made
after the campaign, with its settings and no model, confirmed that a command
could list and read that directory. Settings that close it are in
bin/agent-sandbox.py, and the fourth to ninth campaigns ran under them. None of their audits found a violation. - The sixth campaign shared its machine with an unrelated job, during the last five hours of generation and all of the measurement. No verdict rests on a test that failed by a timeout, apart from one hang that the fifth campaign's run shows too. PIT, which counts a mutant that times out as detected, was run after the job had ended.
- Contamination is measured, not bounded. A direct probe finds two of the forty faults recalled with their mechanism and two more recognised, and benchmark identifiers not memorised. But recall may be cued by the source rather than spontaneous, and the probe withholds the source. The second campaign's transcripts show no agent naming a bug, which is not the same as no agent recalling one. Shown the faulty source of the forty bugs and asked to look for faults, the seventh campaign's agent detects none of the four the probe flags. That too is what the agents did, not a bound on what they recalled.
- The earlier runs on the post-cutoff corpora were not controlled. Two corpora were mined. In their first runs the first has no valid specification-only result: a harness error recorded seven failed licence audits as seven detections. The second, matched on fault type, gave 8/13 against 4/13, p = 0.125. Those runs had the fix commit within the agent's reach and kept no transcript. On the 19 subjects where both have a verdict, their implementation-visible arm detected 13 and the third campaign's detects 7.
- What the specification-only arm detects is only described. Of its five detections in the first campaign, three are documented-contract violations and two are not, a classification made knowing the outcome. In the second campaign it detects seven faults, one of which the other arm misses.
./bin/report-figures.py recomputes most of the figures of §3 of the write-up
from data/. It counts Csv-4's line coverage as measured again
(data/csv4-coverage/); with --as-recorded it prints the figures from the
tables as they were recorded. The evidence of §3.9 is printed by
./bin/audit-trigger-leaks.py, the classification of §3.3 is recorded in
data/contract-violation.md, and some other figures are quoted from records
under data/, as the script's header describes. What the transcript audits
found is in the audit.txt and violations.txt of data/campaign2/ to
data/campaign9/. None of it needs Defects4J or model access.
./bin/analyze-campaign2.py to ./bin/analyze-campaign9.py print the second
to ninth campaigns' analyses on their own, from the tables as recorded, and
./bin/analyze-mutation-campaign3.py the third campaign's mutation figures.
No Python script under bin/ needs a package outside the standard library
except bin/zenodo-metadata.py, which reads CITATION.cff with PyYAML.
Re-measuring from the packaged suites in data/agent-suites/ and
data/campaign2/suites/ needs Defects4J v3.0.1 under Java 11 with
TZ=America/Los_Angeles (bin/analyze-agent-suites.sh). So does re-measuring
the seventh campaign's suites (bin/measure-campaign7.sh and
bin/mutation-campaign7.sh), whose scripts check for the Defects4J revision
the campaign used, v3.0.1-7-g8c16da82. So does measuring Csv-4's line
coverage again (bin/remeasure-csv4-coverage.sh), which also fetches JaCoCo
from Maven Central and checks it against the hashes written in it. The
post-cutoff corpora and the third to sixth, eighth and ninth campaigns'
suites (bin/measure-campaign3.sh to bin/measure-campaign6.sh,
bin/measure-campaign8.sh and bin/measure-campaign9.sh) need clones of the
upstream repositories, Java 11 and Maven 3.9+. Their mutation score
(bin/mutation-campaign3.sh to bin/mutation-campaign6.sh,
bin/mutation-campaign8.sh and bin/mutation-campaign9.sh) also needs PIT,
which each script fetches from Maven Central once and checks against the
hashes written in it. Regenerating the suites needs the model and costs
between $0.40 and $1 per suite at list prices.