Manuscript Offprint
arXiv:2610.30635What the Specification Did Not Say: Specification-Oracle Gaps in Test-Graded Coding-Agent Benchmarks
Abstract
Coding-agent benchmarks often describe a task in natural language but grade it with tests taken from the upstream project. Passing those tests can require information the description never states—a constant's name, a module path, an exact message. We call this a specification-oracle gap: where it exists, a benchmark also measures whether an agent reproduces upstream implementation details. We formalise the gap, including the inconsistencies that chains of dependent tasks add, and build a static audit for five languages that classifies every name-, path- and literal-level dependency of every scored test (held-out precision 89.2%, recall 92.9%). On SWE-Milestone (98 graded milestones, 35 published runs), 25 milestones contain a test that depends on an unstated, non-inferable name or path. Build units with such a dependency fail in 80.6% of runs, against 48.4% for comparable units without one, and withholding a single hidden name from the reference stops its unit's tests from compiling in 126 of 128 cases. The leaderboard's ranking is robust to removing the affected tests, but they shift scores within repositories and favour agents that reproduce upstream names. Across four further benchmarks, prevalence appears to follow construction: a third or more of the tasks are affected where specifications are release notes or LLM summaries, almost none where tasks are screened or written for their tests; how much a gap costs depends on how the harness grades. We release the audit, corrected filter lists and specification addenda.
1 Introduction
Benchmarks for LLM coding agents have moved from isolated issues (Jimenez et al., 2024) to long-horizon software evolution, in which an agent carries one code base through a sequence of dependent changes (Deng et al., 2026; Le et al., 2025; Chen et al., 2026). Such benchmarks are realistic, and they can be mined automatically: a pipeline groups a project's commits into milestones, writes a natural-language specification for each, and reuses the project's own tests as the oracle.
This construction joins two artefacts of different kinds. The specification describes behaviour; the oracle is code that calls helpers, references constants, imports modules at fixed paths and compares exact messages. Whatever the oracle depends on that the specification does not state, an agent may implement the specified behaviour correctly and still fail if it names, places or phrases something differently. We call this mismatch a specification-oracle gap. Where a gap exists, the benchmark no longer measures only whether an agent implements what it was asked to implement; it also measures whether the agent reproduces upstream implementation details.
Single-task benchmarks know a version of this problem: SWE-bench Verified (OpenAI, 2024) removed tasks whose tests checked details absent from the issue. Long-horizon benchmarks raise it in a sharper form. A missing name typically fails a whole build unit, the group of tests that is compiled or loaded together—a Go package, a Rust test target, a Maven module—rather than one test; it recurs in every later milestone whose tests use it; and the milestone chain adds gaps of its own when one milestone’s reference tests depend on another milestone’s code.
We ask how large these gaps are in practice, whether they actually change agents’ results, and what they do to the conclusions drawn from a benchmark. Our contributions are:
• a definition of specification–oracle gaps for milestone benchmarks, with a taxonomy that separates under-specification (unstated, not inferable) from chain inconsistency (no agent could pass), and a model of their blast radius;
• a static audit for Go, Python, Rust, TypeScript
Correspondence: dignfei@gmail.com.
and Java that classifies every name-, path- and literal-level dependency of every required test, validated on a held-out sample labelled from public files (precision 89.2%, recall 92.9%) and running in minutes without model calls;
• a study of SWE-Milestone v1.0.2 (Deng et al., 2026) with its 35 published runs over 27 models: gaps affect 25 of 98 milestones; units with a gap fail 1.67 times as often as comparable units, and a counterfactual on the reference confirms the predicted blast radius; removing the affected tests leaves the leaderboard's ranking within what random removals of the same size produce, but shifts scores within the most affected repository; agents' reproduction of hidden names is a stable trait of the model, unrelated to its training cutoff;
• a comparison with four benchmarks built in other ways (SWE-EVO, SWE-Chain, SWE-bench Verified, DeepSWE), using only public data: prevalence follows how the task text is made, and the harness decides how much a gap costs;
• corrected filter lists and specification addenda for the benchmark, and recommendations for building test-graded benchmarks.
Our in-depth claims concern one benchmark of seven repositories; the comparison with four further benchmarks shows that the audit transfers and that prevalence depends on construction.
Grading is test-based. For each milestone the grading harness takes the upstream (gold) state at the end of the milestone, copies its test code onto the agent’s code and runs the suite. Tests are classified by their outcome on the gold states before and after the milestone, over repeated runs: fail-to-pass and none-to-pass tests (failing or absent before, passing after) are the new behaviour the milestone must deliver; pass-to-pass tests must keep passing; tests that pass before but no longer run after (pass-to-none) are not graded. Per-milestone filter lists remove tests the maintainers found invalid. Together these are the required tests. For each milestone, recall is the share of required new tests that pass, precision is for f new tests passed and b pass-to-pass tests broken, and the score is their F1; a milestone is resolved when all required tests pass. The leaderboard averages both over the graded milestones of each repository and then over repositories; the best published configuration reaches a resolve rate of 29.75% over the 98 graded milestones.
3 Motivating Example
Figure 1 illustrates how a hidden name blocks a whole build unit and recurs across milestones. Milestone M019 of go-zero adds Server-Sent Events support. Its SRS states the behaviour precisely: “detect SSE requests by checking for the Accept: text/event-stream header” and bypass the timeout handler. It does not state the names the reference introduces for this behaviour, headerAccept and valueSSE, but the reference tests of the rest/handler package use both. Because Go compiles a package’s tests together, an agent that implements the behaviour correctly but names the constant differently loses every required test of the package: 84 in M019, and between 88 and 108 in each of five other milestones that inherit the tests. The published runs show what is at stake. The runs’ source snapshots of M019 show what each wrote: 32 of 34 runs implement the bypass the specification asks for. Of the nine that also name the value valueSSE, four pass all 84 required tests (the other five lack a further name). The other 23 name it differently (valueEventStream in 17, valueTextEventStream in 2, valueSse in 1) or write the string inline, and pass none; for 13 of them the evaluation log reports no undefined name in the
Counts are over 34 of the 35 runs. One run, whose name in the release marks it as having had access to leaked information, is left out here and in Section 6.6.

Figure 1: Behaviour specified, names required. The broken bridge represents an unstated interface: go-zero M019 asks for SSE behaviour but its reference tests require valueSSE and headerAccept. Missing either name blocks the whole rest/handler package before tests execute; the dependency recurs in five other milestones. Test tiles and milestone links are schematic.
package other than valueSSE and headerAccept. Differences of this kind are invisible in an aggregate score yet decide comparisons between individual runs.
4 Specification–Oracle Gaps
4.1 Definition
A test-graded coding task gives the agent a specification in natural language and a code base to start from, and grades the result with an oracle , a set of tests taken from a reference solution. Each test depends on a set of artefacts that the solution must provide for to pass: identifiers it references (functions, types, constants, methods, fields), module or file paths it imports or mocks, and literals it compares against output (messages, formatted text). An artefact is fixed by the task if it is defined in or named in ; we write for this set and add the artefacts that conventions already present in determine (inferable names, below). Any other artefact is a free choice: an implementation that chooses it differently is equally correct. The specification–oracle gap of a test is
A test with can fail an agent that implements the specified behaviour correctly but names, places or phrases an artefact differently. The definition is not specific to long horizons; it applies to any benchmark that pairs natural-language tasks with reference tests. Behaviour that the specification leaves open lies outside and our audit.
Milestone chains. In a milestone benchmark the agent works through milestones in one tree. What it can know for milestone m is the trial base it started from—not m's reference start state, which already contains other milestones' reference code that the agent reimplemented in its own way—and the specifications of m and of its ancestors in the dependency graph. A specification names an artefact if it states it verbatim or as its words in order (SetSSESlowThreshold ~ “set SSE slow threshold”); a module path only if it names the file.
Blast radius. A gap rarely costs one test. If contains a name or a path, every test in o's build unit fails with it: the language compiles or collects the unit as a whole (Appendix A). If contains only literals, o alone fails. The tests at risk from a gap are therefore those of the units it blocks, and in build systems that stop at the first failing unit, possibly a whole milestone.
4.2 Where gaps come from
For every artefact in outside the trial base, we determine where it comes from by diffing the reference states of all milestones (Table 1). Classes A1 and A2 are under-specification: the agent could only reproduce the dependency by guessing or from memory. Class B is inconsistency along the milestone chain. B3 is the starkest: the reference test references a name that the gold end state of the same milestone does not define, so even the reference implementation cannot pass it; the benchmark has silently dropped such tests from the required set as pass-to-none. A further, order-dependent form, an order conflict, arises because milestone golds change shared APIs incompatibly (go-zero M003 makes RollingWindow generic;
| class | the dependency is |
|---|---|
| visible | defined in the trial base |
| specified | introduced by this milestone or an ancestor and named in its SRS |
| A1 | introduced by this milestone's gold change, not named in its SRS |
| A2 | introduced by an ancestor's gold change, not named in that SRS or this one |
| B1 | introduced by a milestone that is not an ancestor |
| B2 | introduced by upstream commits that belong to no milestone |
| B3 | not defined by the gold end state of the milestone itself |
Table 1: Classes of test dependencies.
M024 removes setupInterceptors): whichever milestone an agent implements first breaks the reference tests of milestones it implements later.
Not every hidden name is a guess in the dark. A dependency is inferable, and not counted as hard, if (i) it combines a name of the trial base with an affix the code base already uses systematically (Allow → AllowCtx, with 227 such pairs in go-zero); (ii) it is a new module or file whose name the specification gives, placed in an existing directory or beside existing ones, as front-end code bases do by convention; or (iii) it is a method whose signature matches an interface of the trial base or one the specification names. Conversely, a dependency can hide in a test's identifier rather than its code: if part of a scored test's name is computed from a string that only the reference defines, every test carrying it depends on that string. Rules (ii), (iii) and the identifier rule were fixed on development data before the held-out set was drawn: (ii) encodes a front-end convention, the others came from the DeepSWE review.
4.3 Implementation
Figure 2 summarises the static audit. One extractor per language reports the names, module paths and literals that each state defines and each test references; a language-independent core diffs the gold states, classifies each dependency and maps required tests to build units (details in Appendix A). The audit runs in under half an hour without model calls (RQ4).
5 Experimental Setup
We study five questions. RQ1 (prevalence): how many required tests and milestones depend on unstated, non-inferable information? RQ2 (realisa- tion): do these dependencies cause failures? RQ3 (impact): how do scores and rankings change when the affected tests are removed? RQ4 (precision and cost): how accurate and how costly is the audit? RQ5 (other benchmarks): does the gap appear in benchmarks built differently?
Subjects and runs. All seven repositories of SWE-Milestone v1.0.2 (98 graded milestones, 580,039 required tests) and its 35 published end-to-end runs (Claude Code, Codex, Gemini CLI and OpenHands (Wang et al., 2025a) with 27 models), whose per-test results are public; replayed through the harness's own scoring code, our scores match the 28 leaderboard runs to within 0.20 points. One run whose release name marks it as having had access to leaked information is kept in aggregate results and left out wherever we ask which names runs reproduced. Leaving it out everywhere changes no conclusion (it is not among the 28 leaderboard runs): the lift and odds ratio of RQ2 become 1.66 and 4.75, and Kendall's over all runs (Table 3) 0.979 by score and 0.960 by resolve rate.
Realisation. A unit is a (milestone, build unit) pair; it fails in a run when one of its required tests fails or is missing. Since units with hidden dependencies are units whose tests exercise new code, we compare them with units that also carry fail-to-pass or none-to-pass tests but no new dependency, within the same milestones, with 95% intervals from a bootstrap over milestones; we also read each failure's log for what it reports as missing, and, for Go, rebuild the reference with one hidden name renamed to see whether the predicted unit breaks.
Re-scoring removes (a) the tests in units blocked by a hard hidden dependency and (b) tests whose reference lacks a name that no environment patch supplies (conservative), and in the full variant also (c) tests that no run passes and whose cause is explained (Appendix D); we recompute the metrics with the harness, compare rankings with Kendall's -b, bootstrap over milestones, and compare against removing as many tests from randomly chosen units of matched size.
Other benchmarks. SWE-EVO (Le et al., 2025) and SWE-Chain (Lam et al., 2026) (release-level tasks), SWE-bench Verified (OpenAI, 2024) and DeepSWE 1.1 (Huang et al., 2026). The mapping is direct: S is the task text the agent sees, B the repository at the base commit, the gold change the reference patch, and the oracle the scored tests.

Figure 2: Static audit: five language extractors recover test dependencies (TS: TypeScript), and the orange crescent is , dependencies that neither the base, the specification nor inferable conventions fix. Hard name/path gaps flag all required tests in blocked build units, whereas literals flag individual tests; outputs are reasoned audit records, filter lists and specification addenda. Gold diffs distinguish under-specification (A1: current-milestone gold change; A2: ancestor gold change) from chain inconsistency (B1: non-ancestor gold change; B2: unassigned upstream commits; B3: absent from own gold); B3 tests may already be ungraded as pass-to-none.
| Repository | M | Required | Hidden | Tests at risk % | Hard M |
|---|---|---|---|---|---|
| go-zero (Go) | 23 | 43,253 | 132 | 7.1 | 15/23 |
| navidrome (Go+TS) | 9 | 13,642 | 2 | 0.3 | 2/9 |
| element-web (TS) | 18 | 94,114 | 7 | 0.1 | 7/18 |
| nushell (Rust) | 13 | 67,504 | 0 | 0.0 | 0/13 |
| dubbo (Java) | 12 | 82,863 | 1 | 0.0 | 1/12 |
| ripgrep (Rust) | 11 | 11,964 | 0 | 0.0 | 0/11 |
| scikit-learn (Py) | 12 | 266,699 | 0 | 0.0 | 0/12 |
| All | 98 | 580,039 | 142 | 0.6 | 25/98 |
Table 2: Hidden dependencies over the graded milestones (M), language in parentheses. Hidden: hard hidden names (unnamed by the SRS, absent from the trial base, not inferable), summed per milestone; Tests at risk: share of the required tests in units they block or with a hidden literal or test-level name; Hard M: milestones with at least one hard hidden dependency.
For realisation we use only public results: SWE-Chain's per-step results of nine systems, the per-instance results of the 78 SWE-bench Verified submissions in the official experiments repository that resolve at least , and DeepSWE's released trials.
6 Results
6.1 RQ1: Prevalence
Table 2 summarises the audit. 25 of the 98 graded milestones contain a required test with a hard hidden dependency; because a milestone is resolved only if all its required tests pass, an agent that does not happen to reproduce the hidden items cannot resolve them. The tests at risk are few overall (0.6% of the required tests) but concentrated: in go-zero, whose tests exercise package internals, 15 of 23 milestones are affected and 7.1% of the required tests sit in blocked units; element-web (7 of 18), navidrome (2 of 9) and dubbo (1 of 12) follow, while the repositories whose tests drive public interfaces (scikit-learn, ripgrep) and nushell have none. Most hard items are A2: names an ancestor milestone introduced without its specification stating them, which later milestones' tests rely on. The rules of Section 4 that make convention-placed paths inferable and read all ancestors' specifications reduce the count from 34 milestones to 25.
Blast radius explains why a few names matter. In go-zero, two constants, headerAccept and valueSSE, block the rest/handler package in six milestones, 84 to 108 required tests each (Section 3).
Chain inconsistency is a second, independent source. No published run built nushell's milestone G05_be6e868: its reference tests initialise a struct without a field, custom_completion, that milestone G01_48bca0a adds, so the 19 runs that had implemented G01_48bca0a first could not compile them, and the rest stopped at other build errors in the same tests. The reference tests of go-zero's M017 use names that M017's own gold state does not define (e.g. maxFormParamCount), so even the reference cannot compile them; the benchmark silently recorded such tests as pass-to-none and dropped them from the required set (Appendix H).
6.2 RQ2: Realisation
Hidden dependencies are associated with failures, though less strongly than a naive comparison suggests. Across the 35 runs, units blocked by a hard
| Var. | Runs | Mv. | Max | |||||
|---|---|---|---|---|---|---|---|---|
| Full | 35 | +0.83 | +0.51 | +2.78 | 0.980 | 0.960 | 11 | 2 |
| 28 | +0.84 | +0.47 | +2.78 | 0.984 | 0.942 | 5 | 2 | |
| Cons. | 35 | +0.37 | +0.33 | +2.04 | 0.987 | 0.979 | 8 | 1 |
| 28 | +0.39 | +0.30 | +2.04 | 0.995 | 0.972 | 2 | 1 |
Table 3: Re-scoring without hidden-dependency tests. S: Score (macro F1), R: Resolve (%); mean changes in points against the same runs scored with the v1.0.2 lists, the largest; , : Kendall with the original ranking, by Score and by Resolve; Mv.: runs whose Score rank changes; Max: largest rank change. Full waives (a) hidden-dependency units, (b) tests whose reference lacks a name (none in v1.0.2) and (c) explained all-fail tests; Cons. (conservative) only (a) and (b).
hidden dependency fail in 80.6% of (unit, run) pairs and all other units in 15.1%, but most unflagged units only hold pass-to-pass tests, which an agent passes by breaking nothing. Within the same milestones, units that carry new tests without any new dependency fail in 48.4%, and units whose new names the specification states in 52.2%; blocked units fail 1.67 times as often as the former (95% CI 1.32–2.04), while stated names make no difference (1.08, CI 0.83–1.41). The contrast survives the dependence between runs: a logistic regression with unit size and repository as covariates gives an odds ratio of 4.64 (95% CI 2.92–7.37, errors clustered by milestone and model family, Appendix B; odds ratios exceed rate ratios when nearly half of the comparison units fail), and blocked units fail 1.55 times as often as new-test units of the same repository and size (CI 1.40–1.72). The logs agree: in 27.1% of the blocked units' failures, the hidden items are the only names the run's log reports as missing, and in another 13.6% they are among them; most of the rest report no name at all.
The counterfactual isolates the mechanism without agents. Renaming one hidden identifier in the reference solution's non-test code, a counterfactual for an agent that implements the behaviour under another name, stops the unit's tests from compiling in 126 of 128 Go cases, and the tests that then fail are of those the audit predicts.
6.3 RQ3: Impact on scores and rankings
Removing the affected tests moves absolute numbers a little and rankings hardly at all (Table 3). In the full variant the 28 leaderboard runs gain +0.84 score points on average (-0.26 to +2.89) and +0.47 resolve points (up to +2.78). Kendall's -b with the published ranking is 0.984 by score and 0.942 by resolve rate. Over all 35 runs (0.980 and 0.960), these changes are within what chance produces: removing as many tests from randomly chosen units of matched size gives a median of 0.990 (score) and 0.980 (resolve), and a as low as the real one occurs in (score) and (resolve) of the random draws. Matching the random units also on repository, milestone, unit type and baseline failure rate gives and . The leaderboard's own resolution is the tighter limit: bootstrapping over milestones, all 34 pairs of neighbouring runs among the 35 have overlapping rank intervals, so the benchmark does not separate neighbours with or without the correction.
The gap matters where it concentrates. On go-zero, the mean score of the 35 runs rises from 38.33 to 42.08 and the mean resolve rate from to , which studies that report per-repository results or ablate on a single repository inherit. The effect may also be partly a property of the model: two runs of the same model in different configurations agree on which hidden names they write with median Cohen's (8 pairs), against 0.63 for runs of different models (553 pairs). With so few same-model pairs the difference is not significant, so this is exploratory (Appendix C).
6.4 RQ4: Precision and cost
We validate on (milestone, build unit) cases sampled from public data in three strata per repository—units the audit flags, unflagged units that fail as a whole in some published run (where misses would show) and unflagged units that mostly pass—and labelled from the specifications, the reference change and the tests alone. A first set of 111 cases exposed implementation errors (ancestor specifications not read, literals not normalised); after fixing them we drew a second, disjoint set of 94 cases and then all 48 remaining flagged units with 55 unflagged ones (103 cases), which a hired software expert labelled blind before comparing. Over the 65 flagged units of these two held-out rounds the audit has precision 58/65 (89.2%; 95% Wilson interval 79.4–94.7%); on the second set its recall is 13/14 (92.9%; 68.5–98.7%). One of the authors labelled the same cases independently (Cohen's and 0.96; 92 of 94 and 101 of 103 cases agree); against the author's labels, precision is 56/65. Its seven false positives are dependencies the specification implies without stating them—modules named or placed by convention, packages it says are moved, a method fixed by a protocol it names—and one identifier hidden
| Benchmark | Spec. | Flagged | Prec. | Lift |
|---|---|---|---|---|
| SWE-Milestone | LLM | 25/98 | 58/65 (89.2%) | 1.67 |
| SWE-EVO | notes | 17/48 | 24/40 (60.0%) | - |
| SWE-Chain | LLM | 64/155 | 28/40 (70.0%) | 1.12 |
| SWE-bench Verif. | issue | 3/500 | 3/4 | 3.4 |
| DeepSWE | written | 7/113 | 1/23 | - |
Table 4: The audit on five benchmarks. Spec.: how the task text is made (LLM summary, release notes, screened issue, written for it). Flagged: tasks with a hidden name, path or literal (SWE-Milestone: hard names or paths, 31 with literals; SWE-Chain: A1 only); Prec.: reviewed flags, per held-out unit for SWE-Milestone (RQ4), per item elsewhere, not comparable across rows (Verified: 3 of 4 items, in 2 of 3 instances); Lift: failure-rate ratio—SWE-Milestone: blocked build units against comparable units (RQ2); SWE-Chain: flagged against unflagged steps; Verified: name-flagged against unflagged instances; no lift for SWE-EVO (no per-task results) or DeepSWE (one confirmed).
behind Markdown escapes; we added no rule for them after seeing the sets,. Against agent behaviour, precision is lower by design: a flag means that the specification withholds a dependency, not that every agent fails (Section 6.6). A complete audit of the seven repositories from a cold cache takes 28.1 minutes on a 16-core workstation, with at most 1,333 MiB of memory and no model calls; repeated runs give identical results.
6.5 RQ5: Other benchmarks
Table 4 applies the unchanged audit to four more benchmarks (Python only except DeepSWE). The comparison is exploratory: review units and sizes differ (Appendix I). Prevalence follows construction. Where the specification is a release note (SWE-EVO) or an LLM summary told to leave out “exact messages” and “internal identifiers” (SWE-Chain), a third or more of the tasks depend on something it does not say—a module split the note never mentions, an exception message, a warning class that only the reference names; SWE-Chain’s chains also show A2 dependencies, names an earlier step introduced and no later specification states. Where issues were screened by annotators (SWE-bench Verified) or instructions were written for the tests (DeepSWE), hidden names are almost absent: of DeepSWE’s flags, only one survives review; the others are names its instructions give in prose and literals the tests pass as input.
Rare, but decisive. The two confirmed Verified instances import a name the issue never mentions (get_annotation and infer_node; IS_PYPY), each failing all 10 or 21 fail-to-pass tests at collection; none of 78 strong public submissions resolves either. In DeepSWE, the one gap hides in test identifiers: a test helper names every case after the rule's display name, "Auto Table of Contents", which only the reference defines while the instruction gives the alias auto-toc. The task has the lowest pass rate of all 113 (2.5% of 280 public trials, 28 models); in 174 of the 248 trials with a test report the cases ran under another group name—163 times "Auto TOC"—and all 41 scored identifiers counted as failed. Persistent failures in Verified mostly have other causes: of 40 unflagged instances that at most 20% of the submissions resolve, our review attributes 28 to behaviour the issue leaves open, four to test defects, three to items outside the audit's rules and five to the systems.
The harness decides whether a gap bites. SWE-Chain flags a larger share of its tasks than SWE-Milestone, yet flagged steps fail only slightly more often than others (lift 1.12, 95% CI 1.04–1.28); its harness isolates failed imports and reports them back to the agent (Appendix F).
6.6 Reproduced hidden names
A flag means that the specification withholds a dependency, not that every agent misses it. Runs reproduce 45% of the hard dependencies for which their evaluation gives evidence and 79% of the inferable ones, and we find no sign that reproduction depends on whether a model's training cutoff post-dates the upstream code (Appendix G).
7 A Corrected Benchmark and Recommendations
Corrected filter lists. For every graded milestone we extend the v1.0.2 filter list with entries that waive (a) the required tests in units blocked by a hard hidden dependency and (b) tests whose reference lacks a name that no environment patch supplies; the full variant also waives (c) tests that no published run passes and whose cause the audit explains. The lists pass the harness's own validation and can replace the benchmark's; they hold 3,321 (conservative) or 3,964 (full) entries, each with its reason.
Specification addenda. Waiving tests discards evidence. The alternative is to tell the agent what the tests need. For each of the 25 affected milestones we generate an addendum that states the interface conventions the reference tests rely on—
153 in total—without describing their implementation, e.g. “the package rest/handler must declare valueSSE (relied on by 84 required tests)”. Addenda keep the tests and remove the guessing; evaluating them requires new agent runs.
Why the generator leaves names out. SWE-Milestone’s published generation prompts tell the model not to over-specify implementation details, and its test-aligned revision pass may omit details the agent can “figure … out from the code diff”—which the agent never sees (Appendix E).
Recommendations. (1) Run a dependency audit when generating specifications, and either state the names, paths and messages the tests need or exclude tests that reach into internals. (2) Replay the reference solutions along the chain in several topological orders and repair tests that fail for any order. (3) Independently of the tests, isolate build units during grading so that one unit's compile failure cannot erase a milestone, and report unresolved names back to the agent, as SWE-Chain's harness does. (4) Publish per-test results, as SWE-Milestone does; without them neither our realisation analysis nor the re-scoring would be possible.
8 Related Work
Validity of coding benchmarks. SWE-bench (Jimenez et al., 2024) established test-based grading of agent patches. SWE-bench Verified (OpenAI, 2024) had annotators exclude tasks with underspecified issues or overly specific tests; a later audit by its authors found that most of a subset of hard instances still had tests that reject correct solutions (OpenAI, 2026), and our review of persistently failed instances points the same way. SWE-Bench+ (Aleithan et al., 2024) reported solution leakage and weak tests; EvalPlus (Liu et al., 2023), UTBoost (Yu et al., 2025) and Wang et al. (2025b) showed that passing tests can still accept wrong code; PAIChecker (Wang et al., 2026) detects misalignment between issues and their pull requests; SWE-Bench Pro Verified (Zheng et al., 2026) and SciCode-Verified (Hu et al., 2026) re-annotated benchmarks and found that defects understated model ability; Zhu et al. (2025) propose checklists for agentic benchmarks. These works audit single tasks, mostly by manual annotation, and mostly the opposite failure: tests that accept too much. We study tests that demand too much, measure it statically across five languages, and follow its effect through build units and milestone chains.
Telling the agent what the tests need. Several benchmarks state interfaces in the task: SWE-Bench Pro (Deng et al., 2025) adds requirements and interface descriptions to each task, FEA-Bench (Li et al., 2025) gives the signatures of new components, and Commit0 (Zhao et al., 2025) provides a library's specification documents. DeepSWE (Huang et al., 2026) writes instructions and verifiers for each task. Our addenda bring this practice to a mined long-horizon benchmark, and the audit shows where it is needed.
Long-horizon and multilingual benchmarks. SWE-Milestone (Deng et al., 2026), SWE-EVO (Le et al., 2025) and SWE-CI (Chen et al., 2026) evaluate agents over sequences of changes; Multi-SWE-bench (Zan et al., 2025) and SWE-PolyBench (Rashid et al., 2025) extend issue resolution beyond Python; SWE-bench-Live (Zhang et al., 2025) keeps adding fresh tasks against contamination.
Benchmarks that measure the wrong thing. In NLP, annotation artefacts let models pass natural language inference without inference (Gururangan et al., 2018), and benchmark design has been called a validity problem in its own right (Bowman and Dahl, 2021); contamination (Sainz et al., 2023) and memorisation of SWE-bench (Liang et al., 2025) raise the question of recall versus skill that our reproduction analysis touches. A specification-oracle gap is the generative analogue of an annotation artefact: the grader rewards information that the input does not contain.
9 Conclusion
Generated specifications and verbatim tests make benchmarks cheap to build and realistic to run, but they let tests depend on information the task does not state. In SWE-Milestone a quarter of the graded milestones contain such a dependency; the build units that carry one fail markedly more often than comparable units, and renaming a single hidden identifier in the reference breaks its unit just as the audit predicts. The leaderboard’s ranking survives the correction—and is, in any case, coarser than it looks—but per-repository scores shift. Across five benchmarks the gap follows how the task text is made. A dependency audit is cheap—minutes, no model calls—and we release ours with corrected filter lists and specification addenda.
Limitations
A hidden dependency is a risk, not a certain failure: agents reproduce some unspecified names, from conventions or from memory of the upstream project, so we report realisation separately and mark names derivable from base conventions as inferable. Realisation is observational: we compare blocked units with units that also test new code, within the same milestones, but the groups can still differ in difficulty; the counterfactual on the reference covers Go only. Three of our rules (convention-placed paths, interface methods, identifier-level dependencies) and the fixes of RQ4 were set on development data and frozen before the held-out set was drawn; we report the counts before and after (RQ1). DeepSWE, whose review prompted two rules, is not an out-of-sample test. Our SRS matching is lexical; a specification may describe a name in other words (over-reporting) or mention an identifier without meaning it as an interface (under-reporting). The extractors are name-level and do not type-check: they miss a new method whose name already exists on another type in the same unit, and they can flag interface methods required by external libraries. Behaviour that tests require without new names (an escaping rule, a weighting scheme) is covered only by a text heuristic that we report apart; on SWE-bench Verified such behavioural gaps explain most persistent failures we reviewed, so the audit's counts are a lower bound on how often tests demand what the task does not say. Dependencies outside the rules—keyword arguments, attribute access on objects in Python and TypeScript, strings compared through helpers—are reported only as name-level upper bounds, and test identifiers computed at run time can only be matched where the auditor reads the helper that builds them. Flagged items and persistent failures were reviewed against the task text, the tests and the reference (with LLM-drafted first-pass verdicts checked by the authors); such judgements can differ, and we release every verdict with its quotations. We study one benchmark in depth and four more by comparison; prevalence will vary with language, test style and construction, as it does across our repositories and benchmarks. The memorisation analysis is correlational. Removing tests changes what a benchmark measures; we therefore also provide specification addenda, whose effect we have not yet measured with new agent runs.
Ethics Statement
We analyse publicly released benchmark data and agent runs; no human-subjects research is involved and we run no coding agents. The held-out validation labels come from one author and a hired software expert with over ten years of full-stack development and open-source maintenance experience, recruited through personal contacts, paid US$80 per hour, well above typical annotation rates, and informed that the labels would be released; participation was voluntary. All artefacts we use are public: SWE-Milestone, its harness and its run logs (MIT), DeepSWE's tasks and published trials (Apache-2.0, each task's upstream project under its own permissive license), SWE-bench Verified (distributed with the MIT-licensed SWE-bench), the per-instance resolution records of the SWE-bench experiments repository, which states no license and from which we use only whether each instance was resolved, SWE-EVO (MIT; its dataset card also names Apache-2.0) and SWE-Chain (Apache-2.0). We use them for evaluation research, their intended use, and redistribute none of their contents beyond identifiers and short quotations. The audit could be used to tailor agents to a benchmark's hidden names; we release it to improve benchmarks, and the corrected filter lists remove the advantage such tailoring would give. Use of AI assistants. We used LLM-based coding assistants to help implement the audit and the analysis scripts, to draft first-pass verdicts for the reviews of flagged and persistently failed cases, and to edit the text. The definitions and design decisions are the authors'; every review verdict and every reported number was checked by the authors against the released data and code.
References
Reem Aleithan, Haoran Xue, Mohammad Mahdi Mohajer, Elijah Nnorom, Gias Uddin, and Song Wang. 2024. SWE-Bench+: Enhanced coding benchmark for LLMs. arXiv preprint arXiv:2410.06992.
Samuel R. Bowman and George E. Dahl. 2021. What Will it Take to Fix Benchmarking in Natural Language Understanding? In Proceedings of the 2021 Conference of the North American Chapter of the Association for Computational Linguistics: Human Language Technologies. ArXiv:2104.02145.
Jialong Chen, Xander Xu, Hu Wei, Chuan Chen, and Bing Zhao. 2026. SWE-CI: Evaluating Agent Capabilities in Maintaining Codebases via Continuous Integration. arXiv preprint arXiv:2603.03823.
Gangda Deng, Zhaoling Chen, Zhongming Yu, Haoyang Fan, Yuhong Liu, Yuxin Yang, Dhruv Parikh, Rajgopal Kannan, Le Cong, Mengdi Wang, Qian Zhang, Viktor Prasanna, Xiangru Tang, and Xingyao Wang. 2026. SWE-Milestone: Evaluating AI Agents on Continuous Software Evolution. In Proceedings of the 43rd International Conference on Machine Learning (ICML). ArXiv:2603.13428.
Xiang Deng, Jeff Da, Edwin Pan, Yannis Yiming He, Charles Ide, Kanak Garg, Niklas Lauffer, Andrew Park, Nitin Pasari, Chetan Rane, Karmini Sampath, Maya Krishnan, Srivatsa Kundurthy, Sean Hendryx, Zifan Wang, Vijay Bharadwaj, Jeff Holm, Raja Aluri, Chen Bo Calvin Zhang, and 3 others. 2025. SWE-Bench Pro: Can AI Agents Solve Long-Horizon Software Engineering Tasks? arXiv preprint arXiv:2509.16941.
Suchin Gururangan, Swabha Swayamdipta, Omer Levy, Roy Schwartz, Samuel R. Bowman, and Noah A. Smith. 2018. Annotation Artifacts in Natural Language Inference Data. In Proceedings of the 2018 Conference of the North American Chapter of the Association for Computational Linguistics: Human Language Technologies, Volume 2 (Short Papers), pages 107–112. ArXiv:1803.02324.
Sihan Hu, Lyuhan Huang, Youjin Deng, and Kun Chen. 2026. SciCode-Verified: How Benchmark Defects Underestimated the Scientific-Coding Ability of Language Models. arXiv preprint arXiv:2608.04975.
Wenqi Huang, Charley Lee, Leonard Tng, and Serena Ge. 2026. DeepSWE: Measuring Frontier Coding Agents on Original, Long-Horizon Engineering Tasks. arXiv preprint arXiv:2607.07946.
Carlos E. Jimenez, John Yang, Alexander Wettig, Shunyu Yao, Kexin Pei, Ofir Press, and Karthik Narasimhan. 2024. SWE-bench: Can Language Models Resolve Real-World GitHub Issues? In International Conference on Learning Representations (ICLR).
Man Ho Lam, Chaozheng Wang, Hange Liu, Jingyu Xiao, Haau-sing Li, Jen-tse Huang, Terry Yue Zhuo, and Michael R. Lyu. 2026. SWE-Chain: Benchmarking Coding Agents on Chained Release-Level Package Upgrades. arXiv preprint arXiv:2605.14415.
Tue Le, Minh V. T. Thai, Dung Nguyen Manh, Huy Phan Nhat, and Nghi D. Q. Bui. 2025. SWE-EVO: Benchmarking Coding Agents in Long-Horizon Software Evolution Scenarios. arXiv preprint arXiv:2512.18470.
Wei Li, Xin Zhang, Zhongxin Guo, Shaoguang Mao, Wen Luo, Guangyue Peng, Yangyu Huang, Houfeng Wang, and Scarlett Li. 2025. FEA-Bench: A Benchmark for Evaluating Repository-Level Code Generation for Feature Implementation. In Proceedings of the 63rd Annual Meeting of the Association for Computational Linguistics (Volume 1: Long Papers), pages 17160–17176.
Shanchao Liang, Spandan Garg, and Roshanak Zilouchian Moghaddam. 2025. The SWE-Bench Illusion: When State-of-the-Art LLMs Remember Instead of Reason. arXiv preprint arXiv:2506.12286.
Jiawei Liu, Chunqiu Steven Xia, Yuyao Wang, and Lingming Zhang. 2023. Is Your Code Generated by ChatGPT Really Correct? Rigorous Evaluation of Large Language Models for Code Generation. In Advances in Neural Information Processing Systems (NeurIPS). ArXiv:2305.01210.
OpenAI. 2024. Introducing SWE-bench Verified. https://openai.com/index/introducing-swe-bench-verified/.
OpenAI. 2026. Why SWE-bench Verified No Longer Measures Frontier Coding Capabilities. https://openai.com/index/why-we-no-longer-evaluate-swe-bench-verified/.
Muhammad Shihab Rashid, Christian Bock, Yuan Zhuang, Alexander Buchholz, Tim Esler, Simon Valentin, Luca Franceschi, Martin Wistuba, Prabhu Teja Sivaprasad, Woo Jung Kim, Anoop Deoras, Giovanni Zappella, and Laurent Callot. 2025. SWE-PolyBench: A multi-language benchmark for repository level evaluation of coding agents. arXiv preprint arXiv:2504.08703.
Oscar Sainz, Jon Ander Campos, Iker García-Ferrero, Julen Etxaniz, Oier Lopez de Lacalle, and Eneko Agirre. 2023. NLP Evaluation in trouble: On the Need to Measure LLM Data Contamination for each Benchmark. In Findings of the Association for Computational Linguistics: EMNLP 2023, pages 10776–10787. ArXiv:2310.18018.
Manyi Wang, Junjielong Xu, and Pinjia He. 2026. PAIChecker: Uncovering and Checking PR-Issue Misalignment in SWE-Bench-Like Benchmarks. arXiv preprint arXiv:2607.28587.
Xingyao Wang, Boxuan Li, Yufan Song, Frank F. Xu, Xiangru Tang, Mingchen Zhuge, Jiayi Pan, Yueqi Song, Bowen Li, Jaskirat Singh, Hoang H. Tran, Fuqiang Li, Ren Ma, Mingzhang Zheng, Bill Qian, Yanjun Shao, Niklas Muennighoff, Yizhe Zhang, Binyuan Hui, and 5 others. 2025a. OpenHands: An Open Platform for AI Software Developers as Generalist Agents. In International Conference on Learning Representations (ICLR). ArXiv:2407.16741.
You Wang, Michael Pradel, and Zhongxin Liu. 2025b. Are “Solved Issues” in SWE-bench Really Solved Correctly? An Empirical Study. arXiv preprint arXiv:2503.15223.
Boxi Yu, Yuxuan Zhu, Pinjia He, and Daniel Kang. 2025. UTBoost: Rigorous evaluation of coding agents on SWE-Bench. In Proceedings of the 63rd Annual Meeting of the Association for Computational Linguistics (ACL), pages 3762–3774.
Daoguang Zan, Zhirong Huang, Wei Liu, Hanwu Chen, Linhao Zhang, Shulin Xin, Lu Chen, Qi Liu, Xiaojian Zhong, Aoyan Li, Siyao Liu, Yongsheng Xiao, Liangqiang Chen, Yuyu Zhang, Jing Su, Tianyu Liu, Rui Long, Kai Shen, and Liang Xiang. 2025. Multi-SWE-bench: A Multilingual Benchmark for Issue Resolving. In Advances in Neural Information Processing Systems (NeurIPS), Datasets and Benchmarks Track.
Linghao Zhang, Shilin He, Chaoyun Zhang, Yu Kang, Bowen Li, Chengxing Xie, Junhao Wang, Maoquan Wang, Yufan Huang, Shengyu Fu, Elsie Nallipogu, Qingwei Lin, Yingnong Dang, Saravan Rajmohan, and Dongmei Zhang. 2025. SWE-bench Goes Live! In Advances in Neural Information Processing Systems (NeurIPS), Datasets and Benchmarks Track.
Wenting Zhao, Nan Jiang, Celine Lee, Justin T Chiu, Claire Cardie, Matthias Gallé, and Alexander M Rush. 2025. Commit0: Library Generation from Scratch. In International Conference on Learning Representations (ICLR). ArXiv:2412.01769.
Pujun Zheng, Zixin Shang, Shufan Jiang, Wenhui Tian, Dongsheng Zhu, Zerun Ma, Dingbo Yuan, and Qi Zhang. 2026. SWE-Bench Pro Verified: A Reliable Benchmark for Software Engineering Agents. arXiv preprint arXiv:2609.08149.
Yuxuan Zhu, Tengjun Jin, Yada Pruksachatkun, Andy Zhang, Shu Liu, Sasha Cui, Sayash Kapoor, Shayne Longpre, Kevin Meng, Rebecca Weiss, Fazl Barez, Rahul Gupta, Jwala Dhamala, Jacob Merizian, Mario Giulianelli, Harry Coppock, Cozmin Ududec, Jasjeet Sekhon, Jacob Steinhardt, and 6 others. 2025. Establishing Best Practices in Building Rigorous Agentic Benchmarks. In Advances in Neural Information Processing Systems (NeurIPS), Datasets and Benchmarks Track.
A Units and Extractors per Language
The audit has one extractor per language: Go's go/ast with object resolution and build constraints; Python's ast; tree-sitter for TypeScript, Rust and Java (Table 5). Extractors report, per state, the names each package or module defines and, per test unit and test, the names, module paths and literals it references. A language-independent core diffs the gold states of all milestones, classifies each dependency, applies the SRS and inferability rules and maps required tests to units. Required test sets are computed with the harness's own normalisation code and match the official counts on all milestones. Gold states are exported from the benchmark's images.
B Regression Details
The model of RQ2 is a logistic regression of whether a (unit, run) pair fails—a required test fails or is missing—on an indicator for a hard-blocked unit, the base-2 logarithm of the unit's number of required tests, and repository fixed effects. It is fitted over the 25 milestones that contain a hard-blocked unit, on the 3,379 pairs of their 72 blocked and 27 comparison units (new tests, no new dependency) over 35 runs; 86 of the 3,465 pairs have no readable result and are dropped. Each run is a separate observation; runs of the same model in other configurations are not merged but share a model family. Standard errors are two-way cluster-robust over milestones and 11 model families (vendor plus tier, e.g. Claude Opus or Gemini Flash); a two-way cluster bootstrap that resamples milestones and families independently (500 draws) gives 2.62–8.56. Setting the blocking indicator to zero lowers the predicted failure probability of blocked pairs by 31.9 points on average (18.3–43.7). Without the run marked as leaked, the odds ratio is 4.75 (2.99–7.54).
C Agreement Between Runs
For each pair of runs we compute Cohen’s on whether each hard hidden name was written, over the names for which both runs’ evaluations give evidence (Appendix G); the run marked as leaked is left out. Same-model pairs are runs of the same model id in two configurations (8 pairs, all other runs having a single configuration); cross-model pairs are runs of different models (553 pairs). The medians are 0.81 (95% interval 0.66–0.94) and 0.63 (0.50–0.75), from 500 bootstrap draws over the hard names; the interval of their difference, -0.17 to 0.40, comes from a bootstrap over models.
D Tests No Run Passes
Of the 6,167 required tests that no published run passes, 5,338 are attributed to the nushell milestone no run could build (its remaining test is counted under hidden literals), 646 to tests no run executed because of the environment, 50 and 14 to A1 and A2 dependencies, 5 to hidden literals and 17 to behaviour no specification describes; 97 remain unexplained.
E Why the Generator Leaves Names Out
The gap is not an oversight of the specification writer but a tension built into the prompt. SWE-Milestone’s published generation pipeline
https://github.com/DeepCommit-ai/DeepCommit, commit 2343409d, harness/gen_srs (srs_gen_v1.tmpl,
| Language | Extractor | Unit | Notes |
|---|---|---|---|
| Go | go/ast | package test binary | build constraints for linux/amd64; Ginkgo suites one unit |
| Python | ast | test module | module-level import failure fails collection; C extensions read by pattern |
| TypeScript | tree-sitter | test file | imports, jest.mock/vi.mock paths; path specified only if the SRS names the file |
| Rust | tree-sitter | cargo test target | macros and rstest cases mapped; workspace build stops at first failing target |
| Java | tree-sitter | Maven module | the multi-module build skips modules after a failed one |
Table 5: Build units and extractors per language.
instructs the model: “Do NOT over-specify: No implementation hints, no file paths, no code snippets” and to “avoid mandating specific functions, methods, or code edits”. A second, test-aligned pass is meant to restore what tests need—“Add if tests require specific naming/interfaces: ... Module constants (when tests import them)—and by default it analyses the new (none-to-pass) tests as well as the fail-to-pass ones. Two of its rules, however, work against the gaps we find: it tells the model to omit what the agent can “figure ... out from the code diff”, which the agent never sees, and for a cluster of tests that share one error signature it adds “ONE” criterion and skips the rest. Neither pass is given a unit’s existing tests, which make up 2,333 of the 3,191 required tests in blocked units and fail only because a new test in their unit cannot be built. A generator told not to over-specify, and to write one criterion per error cluster, is likely to leave out exactly the names that decide whole units.
F Harness Design
SWE-Chain's harness copies the agent's tree over the reference image, so missing modules are filled in; it turns a failed import into a placeholder, so only tests that use the name fail; and it reports failed imports back to the agent for one repair round. The build report named the hidden name in 55.9% of the system runs, and 80.9% of runs ended up writing it. SWE-Milestone's harness instead grafts the reference tests onto the agent's tree and fails whole build units, and gives no such feedback.
G Reproduced Hidden Names in Detail
Evidence. Whether a run provided a hard dependency is read from its evaluation (the release's source snapshots, which we read only for the example of Section 3, would allow a direct check): a passing required test of a unit whose build needs the dependency (Go, Rust and Java build the whole unit; Python fails module-level imports; TypeScript fails unresolved module paths) shows that it existed; a log line naming it as undefined, not found or not exported shows that it did not; otherwise the (item, run) pair is undetermined. A failed test is no evidence of a build, because some runs record every test of a unit that did not compile as failed.
Rates. Without the run marked as leaked, runs reproduce 45.2% of 2,056 determined (hard item, run) pairs and 79.0% of 1,064 inferable ones. Rates differ by repository: in go-zero 34.4% against 49.9%; in the TypeScript front ends, where most hard items are module paths, 90–100%. Before the path rule of Section 4, this contrast motivated it: the paths the rule now treats as inferable were written in 99.7% of the determined pairs (652 of 654), the paths it keeps hard in 91.5% (364 of 398).
Exposure. For each run and repository we compare the vendor-stated training (or knowledge) cutoff of the model with the release dates of the repository's interval. Within repositories, runs whose cutoff falls after the interval differ from the others by -11.9 points on hard items (permutation p = 0.24); across the runs with a stated cutoff, the partial correlation between a run's exposed share and its reproduction rate, given its official score, is -0.01 (p = 0.98). The analysis is correlational and has little power, but it gives no sign that exposure to the upstream code explains which runs reproduce hidden dependencies.
H Representative Cases
Tests the benchmark silently dropped (go-zero, B3). The reference tests of M017 use names such as maxFormParamCount that M017's own gold state does not define, so the reference solution cannot compile them. The benchmark's classification recorded the affected tests as pass-to-none, and they disappeared from the required set. The defect lowers no score, but it removes coverage that the
acceptance_test_align.tmpl, prepare_prompt.py).
milestone's requirements call for.
A milestone no run could build (nushell, order conflict). Milestone G05_be6e868 refactors the language-server tests, whose reference initialises PositionalArg without the field custom_completion that milestone G01_48bca0a adds. Agents implement both in one tree; the 19 runs that had implemented G01_48bca0a first could not compile the grafted tests because of the missing field, the other runs stopped at other build errors in the same tests, and no published run produced a single result for the milestone's 5,339 required tests.
I Reviews of the Other Benchmarks
Table 6 gives, per benchmark, what was audited, what was flagged and how the flags were reviewed. Every review applies the definition of Section 4: an item is confirmed when a scored test needs this exact name, module path or text, the task text does not give it, and the base neither defines it nor determines it by convention; otherwise it is a false positive. SWE-Milestone is reviewed per build unit by two blind annotators (RQ4). The other benchmarks are reviewed per flagged item against the task text (for SWE-EVO also the pull-request and issue text its agent instructions append), the tests and the reference change, with first-pass verdicts drafted by an LLM and checked by an author. Where a benchmark has more flags than we reviewed, the reviewed items are a random sample stratified by repository (SWE-EVO) or package (SWE-Chain), seed 20261010. Units, reviewers and sample sizes differ, so the precisions are not comparable across rows, and the intervals are wide where few items were reviewed: Table 4 is exploratory evidence that construction matters, not a controlled comparison. Every verdict, with its quotations, is released with the data.
| Benchmark | Tasks | Flag. | Rev. | Conf. | Prec. (95% CI) |
|---|---|---|---|---|---|
| SWE-Milestone | 98 | 89 | 65 | 58 | 89.2 (79.4–94.7) |
| SWE-EVO | 48 | 79 | 40 | 24 | 60.0 (44.6–73.7) |
| SWE-Chain | 155 | 357 | 40 | 28 | 70.0 (54.6–81.9) |
| SWE-bench Verif. | 500 | 4 | 4 | 3 | 75.0 (30.1–95.4) |
| DeepSWE | 113 | 23 | 23 | 1 | 4.3 (0.8–21.0) |
Table 6: Review protocol per benchmark. Tasks: graded milestones, release tasks, steps, instances, tasks. Flag.: flagged build units with a hidden dependency (SWE-Milestone) or flagged items, the frame each review sampled from (SWE-EVO counts an item once per test unit, 62 distinct). Rev.: reviewed; SWE-Milestone, the units of the two blind rounds drawn after the rules were frozen (RQ4); SWE-EVO and SWE-Chain, stratified random samples; Verified and DeepSWE, all flags. Conf.: confirmed. Prec.: confirmed among reviewed (%), Wilson interval.