arXiv:2610.22760cs.AIOct 2026

Manuscript Offprint

arXiv:2610.22760

Between Spoilers and Guesswork: Avoiding Over-Specification in Coding Benchmarks

Yuanzhe Liu, Bastian Lipka, Avraham Shinnar, Jatin Ganhotra, Yao Ma, Martin Hirzel

Open access. PaperVantage converted this article to text, so layout and figures may differ from the original.

ABSTRACT

Benchmarks drive AI progress, but are hampered by task under-specification and over-specification. Task under-specification causes guesswork, where solutions have to make things up, or worse, resort to contamination or reward hacking. Task over-specification causes spoilers, where solutions can bypass some of the harder steps the benchmark was supposed to measure. Since future-looking benchmarks should be difficult, over-specification reduces a benchmark's shelflife of community adoption. Repository-level coding benchmarks have helped the field progress but experience unnecessary churn due to both over- and under-specification. For instance, SWE-bench Pro, FEA-bench, Doc2Feat-bench, and Multi-SWE-bench all tackle under-specification by augmenting task statements with hints derived from ground truth. We show that leaking ground-truth information into the task statement causes over-specification in some of these benchmarks. We experiment with various specification levels, trying to thread the needle between spoilers and guesswork. Based on these results, we recommend techniques for deriving parsimonious hints. We will release our hints so the community can obtain more reliable signals from popular benchmarks.

1 INTRODUCTION

Repository-level coding benchmarks have contributed to great advancements in coding agents by evaluating them via executing held-out tests against their proposed patches (Jimenez et al., 2024). For these evaluations to measure implementation ability, the task description and available repositories have to communicate the requirements enforced by the tests. Achieving this alignment has proven difficult. OpenAI introduced SWE-bench Verified to reduce underspecification and unfair testing (OpenAI, 2024). It later recommended SWE-bench Pro after finding test flaws and contamination in Verified (OpenAI, 2026b), then withdrew that recommendation after finding underspecified prompts and overly restrictive tests in Pro (OpenAI, 2026a). This churn is evidence for both the importance and difficulty of this problem. One source of misalignment is a test that requires a particular new function, class, file, or attribute name that the agent cannot infer from the task description or repository. The problem is especially relevant to feature-addition benchmarks (Li et al., 2025; Deng et al., 2025a), where the new names may be entirely missing in the existing repository. An agent can then implement the requested behavior correctly yet fail solely because it chose a different name. Recovering these unstated interface choices introduces guesswork into an evaluation intended to measure software implementation ability.

To reduce this guesswork, several benchmarks augment task descriptions with information derived from reference implementations and test patches (Deng et al., 2025a; Li et al., 2025; Deng et al., 2025b; Badertdinov et al., 2026). We refer to these additions as hints. Figure 1 provides an overview of how hints are generated and used in repository-level coding benchmarks. An agent receives a task description dissued_{issue} and existing code and tests (cold,told)(c_{old}, t_{old}), and produces code cgenc_{gen} evaluated against held-out tests tnewt_{new}. A hint generator additionally accesses the reference code cnewc_{new} and held-out

∗^{*}Work was done while the first author interned at IBM.

Figure

Figure 1: To hint (perchance spoilers) or not to hint (guesswork): that is the question for repository-level coding benchmarks.

Figure

Figure 2: DefUse hints generation pipeline.

tests to produce dhintsd_{hints}, an extra input to the agent. Hints can expose details that an agent needs to satisfy the evaluation, but the reference implementation also contains design decisions that the benchmark may intend the agent to make independently. Disclosing these decisions introduces spoilers, i.e., information that supplies part of the implementation work being evaluated. Prior work documents solution leakage through issue reports and comments as a major problem for SWE-bench (Aleithan et al., 2024). Therefore, identifier hint construction faces a tension between underspecification, which leaves agents guessing about hidden constraints, and over-specification, which leaks parts of the solution. Higher solve rates alone cannot distinguish between resolving guesswork and supplying spoilers. Our goal is to study identifier hint constructions that clarify the interface required by the tests while leaving implementation choices to the agent.

A design space for hints. We consider hint construction through two design decisions: identifier selection and identifier projection. Selection determines which program entities are disclosed, such as file changes, functions edits, etc. Identifier projection asks how much is revealed about each selected entity. For instance, if a function identifier is selected, then its name, its signature, its location, or its semantics descriptions are all valid information to be considered being revealed. Existing hint schemes combine different choices along both dimensions (Deng et al., 2025a; Li et al., 2025; Deng et al., 2025b), making it difficult to attribute performance differences to either choice when comparing complete schemes. Separating selection from projection allows us to examine these choices through controlled comparisons.

Guided by this distinction, this paper proposes DefUse for identifier selection and Declaration for identifier projection. DefUse targets identifiers through which the implementation and its tests interact. Declaration reveals interface attributes while omitting semantic descriptions and implementation guidance. Together, these policies aim to reduce guesswork about the required identifiers while limiting spoilers about how to implement it.

We compare selection and projection policies across five repository-level coding benchmarks spanning Python and Java. We complement these comparisons with hint attribute ablations and an LLM-based assessment on SWE-bench Pro, examining both task resolution and disclosure of reference-solution information. Our findings indicate that performance gains can accompany greater disclosure of implementation choices, motivating evaluation beyond solve rates alone. Together, these findings motivate combining DefUse selection with Declaration projection to reduce guesswork about required interfaces while limit spoilers about implementation choices.

The source code of our hint generation pipeline and the resulting hints are available open-source: https://github.com/IBM/swe-hints/.

Contributions. This paper makes three contributions:

• It characterizes identifier hints through selection and projection, providing a common framework for comparing existing benchmark policies.

• It introduces DefUse and Declaration, two policies designed to expose test-facing interfaces while limiting additional reference-derived information.

Table 1: What each hint scheme discloses. DefUse is ours improved from Doc2Feat. Doc2Feat means the identifier hints extraction used in the Doc2Feat benchmark. FEA-Bench presents two hint selection: brief and detailed. In SWE Bench Pro, the authors assign "Requirements" as the essential hints, and make "Interface" optional.

Hint schemeSelectionProjection
AuthorRuleNameTypePathSignatureSemanticsBehaviourDocument Change
DefUseautodef-use✓✓new files✓———
Doc2Featautonew ∩ test✓✓new files————
FEA-Bench Briefautonew defs✓✓✓✓———
FEA-Bench Detailedautonew defs✓✓✓✓docstring—✓
SWE-bench Pro Interfacehumanmanual✓✓✓✓✓——
SWE-bench Pro Interface + Requirementshumanmanual✓✓✓✓✓✓—
  • It reports controlled comparisons and attribute ablations across five benchmarks and three language models, examining how hint construction affects measured task resolution. Additionally, it adopts an LLM judge to assess information necessity, solution disclosure, and behavioral guidance.

To the extent that benchmarks drive AI progress, we hope that finding the right balance between spoilers and guesswork in coding benchmarks will ultimately contribute to more reliable coding assistants.

References (35)