← all writing
01 · 25 Nov 2026 · 7 MIN READ

23% of SWE-bench Verified tasks test details the issue never asked for

If your agent fails a SWE-bench Verified task, there's roughly a one-in-four chance the task was graded on something the issue never asked for. That's the uncomfortable number in Spec-Test Coverage Gap: Detecting Overspecified Tests in SWE-Bench-Style Benchmarks, by Avi Aggarwal and Yiran Hu, and it matters well beyond leaderboard politics. Most of us building coding agents have an internal eval that works exactly like SWE-bench: take a real fix, keep its tests hidden, ask the agent to reproduce the behaviour. This paper is a measured account of how that setup quietly punishes correct work.

The finding I keep coming back to isn't the prevalence figure. It's that you can detect the problem from the issue text and the test patch alone, without running anything, and with an error rate you can actually state.

Flagged tasks resolve at 31%, everything else at 88%

The authors define a four-point scale. A 1 means the tests check the described behaviour almost verbatim. A 2 adds only what a careful reader would infer, like a standard exception type. A 3 pins one valid choice the issue left open: an exact message, an order, a specific value. A 4 checks how the fix was written: a sentinel value, internal state, a private method, a new name nobody specified.

Anything scored 3 or 4 means some reasonable fix fails. Here's what that looks like across the two big benchmarks:

The obvious objection is that flagged tasks are just harder. The authors checked: at every difficulty level, flagged tasks sit more than 50 points lower in mean resolve rate. Difficulty doesn't explain the gap.

One example makes it concrete. In django-16667 the issue asks that SelectDateWidget stop crashing on very large dates. The test requires value_from_datadict to return exactly "0-0-0". A fix that returns the submitted values, which is arguably more sensible, fails. That's not a hard task. That's a task with one accepted answer and an issue that doesn't tell you what it is.

Two judges with no repo access, and a 4% false-flag rate

The detection method is cheap enough that I'd copy it. Two LLM judges from different providers (the paper uses claude-opus-5-5 and gpt-6.1-sol at high reasoning effort) see only the specification and the test patch. No repository, no reference fix. A task is flagged when both score it 3 or higher, and the final score is the lower of the two.

Validation used existing evidence rather than new labels: 112 tasks OpenAI had already excluded from Verified, 75 Pro tasks that had been repaired for overly narrow tests, and 157 Verified tasks that annotators cleared and that 90%+ of top submissions solve with differing patches. The prompt was tuned on a dev split and frozen before the test split was scored, against targets set in advance.

The single-judge numbers are the practical lesson. One eager judge flags almost a fifth of fine tasks. Requiring agreement is what makes the output usable, which matches what I've seen with LLM-as-judge setups generally: a second, differently trained model is a better filter than a better prompt.

The relaxer had to keep the broken code failing

Flagging is a claim. The part that convinced me is the execution check. The authors took 2,186 failed patches from the top 30 Verified submissions, restricted to patches that failed only the evaluation tests, not regression tests, across 108 flagged tasks. Then a model loosened the flagged tests under tight rules: only relax requirements the spec leaves open, never add, rename or delete tests, and decline if nothing qualifies.

A relaxation counted only if at least one test still failed on the unfixed repo, the reference fix still passed, and every patch that resolved the original task still resolved it. Valid relaxations came out for 93 of 108 tasks, with a median change of 11 lines.

61% of the failed patches then passed.

The controls are what keep this honest. On 79 unflagged tasks, the same relaxer declined every single one. Forced to loosen one requirement anyway, 29% of control patches flipped, and the authors' manual review suggests those flips mostly fixed the reported case while missing a related case the removed requirement covered. So relaxing tests isn't free: some flips on flagged tasks will be the same kind of false pass. The paper says as much and calls its leaderboard numbers upper bounds, not corrected scores.

Counting these patches as resolved would add 33 to 60 tasks to each top-30 submission.

Median gain is 45 tasks, up to 12 percentage points, and 28 of the 30 submissions would change rank, some by 10 places. Under the forced control, gains were only 2 to 6 tasks.

There are gaps I'd want closed before treating this as settled. Pro gets weaker treatment: there are no known-fine Pro tasks, so its false-flag rate is assumed rather than measured, and execution confirmation only covers Verified. Validation used clear cases, so borderline accuracy is unknown. The relaxer is the same model as one of the judges and reads their findings. And only a sample of flipped patches was inspected by hand. None of that kills the result, but it means the 35% Pro figure deserves less weight than the 23% Verified one.

What I'm running against my own eval suite

The leaderboard reshuffle is interesting but it's someone else's problem. The bigger point for builders is that every internal benchmark built from merged PRs inherits the same flaw, probably worse, because nobody audited it. If you mine your own repo for issue-plus-test tasks to compare agent configs or harness changes, some fraction of your failures are the agent picking a different valid design and getting marked wrong.

That changes how I read eval deltas. When a harness tweak moves the score by three points, the question now includes: did it make the agent better, or did it make the agent more likely to guess the original author's exact error string? Those are different things, and on overspecified tasks only the second one pays.

Concretely, three changes:

The open question the paper raises but doesn't answer is the nastier one. If top agents occasionally pass level-4 tasks, are they inferring the hidden detail or remembering it? The authors list it as future work. I'd bet a meaningful share of high scores on the strictest tasks are recall, and that a benchmark scrubbed of overspecification would compress the leaderboard more than any model release this year.


Working on something similar?

Say hello — I read every email.