Manuscript Offprint

arXiv:2610.30635

What the Specification Did Not Say: Specification-Oracle Gaps in Test-Graded Coding-Agent Benchmarks

Fei Ding

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.

References (21)