Spec-Test Coverage Gap: Detecting Overspecified Tests in SWE-Bench-Style Benchmarks
- Source
- arxiv.org
- Publisher
- Avi Aggarwal
- Author
- Avi Aggarwal, Yiran Hu
- Date

Context
and SWE-bench Pro score a by applying its fix to a real repository and running hidden tests taken from the change that originally fixed the issue. Those tests were written to confirm one fix, so some of them demand details the task description never states. In one Verified task, the issue asks only that a Django date widget stop crashing on an absurdly large year, but the test requires it to return exactly the string "0-0-0"; a fix that stops the crash some other reasonable way still fails. Avi Aggarwal and Yiran Hu of Purdue University call such tests overspecified and estimate that they affect about a quarter of Verified and a third of public Pro tasks (arXiv).
Their measure, the Spec-Test Coverage Gap, rates each task from 1 (the tests check only what the task describes) to 4 (the tests check how the original fix was written, such as a private method or a sentinel value). Two judges from different model families, Anthropic's Claude Opus 5.5 and OpenAI's GPT-6.1 Sol, see only what an agent is told plus the test code, without the repository or the reference fix, and a task is flagged only when both score it 3 or higher. On 206 held-out tasks whose status was already known from earlier human audits and agent results, the panel flagged 89% of the known-overspecified tasks and 4% of the known-fine ones. Requiring both judges to agree mattered: GPT-6.1 Sol alone flagged 18% of the fine tasks.
Applied to whole benchmarks, the panel flagged 23% of Verified (117 of 500) and 35% of public Pro (258 of 731). On Verified, the top 30 public submissions resolve 31% of flagged tasks on average against 88% of the rest. Because a hard task could simply attract flags, the authors also ran code. Claude Opus 5.5 loosened only the requirements the judges had pointed to, and a loosened test counted only if it still failed the unfixed code, still passed the original fix, and still passed every patch that had already resolved the task. Of 2,186 failed patches from top-30 submissions that broke only these evaluation tests, 61% then passed. As a control, the same model was forced to loosen tests on tasks neither judge flagged, and 29% of comparable patches passed, most of them from five tasks the judges had scored just below the threshold. Given the same prompt without the judges' findings, it declined to loosen any of the 79 control tasks but loosened 82 of the 108 flagged ones.
Counting every patch that passes the loosened tests as solved would add 33 to 60 tasks to each top-30 Verified submission, up to 12 percentage points, and change the rank of 28 of the 30. The authors present this as an upper bound, not a corrected score: a patch that passes may be wrong in exactly the part the loosened test no longer checks, and their checks stop a relaxation from being too strict but not from being too loose. The relaxer is the same model as one judge and reads the judges' findings, the judges cannot see repository conventions that might justify a test, and Pro has no known-fine tasks, so its false-flag rate is unmeasured and the test-running confirmation covers Verified only.
The finding bears on where the is moving its coding scores. In a Latent Space interview, OpenAI's Frontier Evals team said Verified is saturated and contaminated and pointed to SWE-bench Pro instead, yet this panel flags a larger share of the original public Pro tasks, with the caveat that the Pro figure lacks a measured error rate. A separate revision, SWE-Bench Pro V2, has separately repaired or retired 480 of those 731 tasks; this paper does not score that revised set. For anyone reading these leaderboards, the practical point is that a gap of a few points between top agents can sit within the range that test strictness alone can move, and the panel offers a cheap, measured way to find the tasks responsible.
- A task is flagged only when both judges, Claude Opus 5.5 and GPT-6.1 Sol, score it 3 or higher on the 1-4 scale; on 206 validation tasks this caught 89% of human-identified overspecified tasks with a 4% false-flag rate.
- The judges flag 23% of SWE-bench Verified tasks and 35% of the 731 public SWE-bench Pro tasks as overspecified.
- The top 30 Verified submissions resolve 31% of flagged tasks on average versus 88% of the other tasks, a 57-point gap.
- After the authors loosened overspecified requirements, 61% of 2,186 failed patches passed, adding 33 to 60 tasks per top-30 submission and up to 12 points of resolve rate.
- SWE-bench — The standard benchmark for AI coding agents: real GitHub issues from real repositories, scored by whether the agent's patch passes the project's own tests.
- Agent mode — A mode in which one agent can inspect, edit, run commands, and iterate toward an outcome.
- Field — One named piece of a record, such as name or approved_on; a record is one entity's set of values, one per field.
- Large language model — A model trained on large amounts of data to process and generate language.
articleTestSuiteBench: Coding Agents Struggle to Generate Strong Test Suites from SpecificationsKazuki Egashira, Niels M\"undler-Sasahara, Mark Niklas M\"uller, Martin Vechev
articleSWE-Bench Pro V2: A Cleaner, Harder-to-Game Coding BenchmarkSoham Dan, Jeff Da, Sanyam Bhutani, Miguel Romero Calvo, Ivan Guevara, Fernando Carabedo, Jose Bernal, Julio Reyna, Luis Leandro Monsalve Mendez, Ying Liu, Daniel Yue Zhang
articleTestJack: Should you trust the results in coding benchmarks? Agentic Coding Benchmarks Auditing via Evaluator EvolutionShuangjie Yao, Hao Wang, Koushik Sen, Simin Chen, Baishakhi Ray, Dawn Song