---
title: "Auditing Overspecified Eval Tests with a Dual-Judge Rubric"
term: "Spec-Test Coverage Gap"
description: "Score task specifications against PR-mined test patches with two cross-provider LLM judges on a 1 to 4 rubric to triage overspecified eval tests."
tags:
  - testing-verification
  - evals
  - benchmarks
  - tool-agnostic
  - arxiv
aliases:
  - spec-test coverage gap
  - overspecified evaluation test audit
  - dual-judge test overspecification rubric
last_reviewed: 2026-11-28
maturity: emerging
---

# Auditing Overspecified Eval Tests with a Dual-Judge Rubric

> Scoring a task specification against its test patch with two cross-provider judges flags overspecified evaluation tests for review before scores mislead.

The Spec-Test Coverage Gap (STCG) measures how far a coding benchmark's evaluation tests go beyond what the task specification states ([Aggarwal and Hu, 2026, arXiv:2611.31839v1](https://arxiv.org/abs/2611.31839v1), §3.1). Use this audit on pull-request-mined benchmarks whose hidden evaluation tests (`FAIL_TO_PASS`) verify one original fix instead of every valid alternative. Treat the two-judge flags as a triage filter for human review or specification updates, and treat automated test relaxation as an upper-bound diagnostic.

## When this audit pays off

Run a dual-judge STCG pass under three conditions ([Aggarwal and Hu, 2026, arXiv:2611.31839v1](https://arxiv.org/abs/2611.31839v1)):

- Your tests enforce behavioral or implementation choices that static checks miss. A static [specification-oracle gap audit](specification-oracle-gap-audit.md) finds unnamed identifiers without model calls. STCG catches exact error messages, sentinel values, private methods, and unrequested code paths. The panel flagged 23% (117 of 500; 95% CI 20 to 27%) of SWE-bench Verified tasks (§5, Table 5). On public SWE-bench Pro, it flagged 35% (258 of 731; 95% CI 32 to 39%).
- You need cheap screening before spending expert review time. Judging all tasks with both models took 2,686 API calls and cost $94 at standard list prices (Appendix J, Table 14).
- You can review or clarify flagged tasks. Across the top 30 public Verified submissions, flagged tasks averaged a 31% resolve rate against 88% for unflagged tasks (§5.1). Inside every OpenAI difficulty tier, flagged tasks trailed unflagged tasks by more than 50 percentage points (Appendix E).

## How the dual-judge rubric works

Each judge sees only the task specification, the `FAIL_TO_PASS` test names, and the test patch (`+`, `-`, and context lines). On SWE-bench Pro, the specification includes the requirements and interface fields; neither the repository nor the reference fix is shown ([Aggarwal and Hu, 2026, arXiv:2611.31839v1](https://arxiv.org/abs/2611.31839v1), §3.2).

The prompt asks each judge to list every requirement the graded tests impose (Appendix A). The judge marks each requirement as settled by specification, settled by convention or existing code, or open. For each open requirement, the judge describes a reasonable correct fix that violates it, then assigns a 1 to 4 score (§3.1, Table 2):

| Score | Classification | What the evaluation tests check |
|---|---|---|
| 1 | Directly specified | Behavior the specification describes, or its reproduction example, near-verbatim |
| 2 | Reasonably specified | Details a careful reader infers, such as a standard exception type or existing pattern |
| 3 | Mildly overspecified | Observable behavior pinning one valid choice, such as an exact message, order, or value |
| 4 | Significantly overspecified | Implementation details: a sentinel value, internal state, a private method, an unmentioned name, or a different code path |

Two cross-provider judges (`claude-opus-5-5` and `gpt-6.1-sol`, high reasoning effort) run the same prompt (§3.2). The panel takes the lower score and flags a task only when both score 3 or 4. Tasks with a 2-point or larger split are marked uncertain (§3.2).

On a held-out 206-task test split, the panel reached 89% recall (100 of 112; 95% CI 82 to 94%). Its false-flag rate was 4% (4 of 94; 95% CI 2 to 10%) ([Aggarwal and Hu, 2026, arXiv:2611.31839v1](https://arxiv.org/abs/2611.31839v1), §4.3, Table 4). The judges agreed on 91% of binary flags (Cohen's kappa 0.82). Recall was 97% (65 of 67) on `openai_excluded` and 78% (35 of 45) on `pro_narrow_original`, where structured specs settled more details (§4.3).

Dev-split ablations (138 tasks) measured sensitivity across three changes (§6, Table 6). An identical rerun changed 6 panel flags. Adding the reference fix changed 5 flags, raised kappa from 0.78 to 0.87, and cut uncertain tasks from 10 to 5. Replacing the rubric with one paragraph cut recall from 81% to 72% and raised false flags from 3% to 6%, mostly via GPT on Pro.

## Executable confirmation and its limits

To test flags against failed patches, `claude-opus-5-5` was instructed to relax only open requirements inside the test patch ([Aggarwal and Hu, 2026, arXiv:2611.31839v1](https://arxiv.org/abs/2611.31839v1), §7.1). The run covered 108 flagged Verified tasks with 2,186 failing top-30 candidate patches that passed all regression tests (§7.1). The authors kept a relaxation only if it met three checks (§7.1):

- At least one evaluation test still failed on the unfixed repo.
- The reference fix passed all tests.
- Previously resolving patches still passed.

The authors used the 87 tasks flagged by one judge to develop the relaxer prompt and excluded them from confirmation (§7.1). Controls therefore compare clear cases on both sides.

With judge findings, 93 relaxations passed checks and the relaxer declined 15 tasks (§7.2, Table 7). Overall, 61% (1,331 of 2,186; 95% CI 52 to 69%) of candidates flipped. Under the same prompt without findings, the relaxer declined all 79 neither-judge-flagged control tasks (0% flip) and relaxed 82 of 108 flagged tasks (49% flip; 95% CI 40 to 58%). Under a forced-relaxation control on those 79 tasks (417 candidates), 29% (120 of 417; 95% CI 13 to 45%) flipped. Five tasks produced 96 of those 120 flips, and inspecting 2 to 4 flipped patches per task showed missed related cases in 4 of the 5 tasks (§7.2).

Counting every flagged-task flip as resolved would add 33 to 60 tasks (median 45, up to 12 percentage points) per top-30 submission (§7.2, Appendix H). That shift would reorder 28 of 30 submissions by up to 10 places. The authors treat these gains as upper bounds, not corrected scores (§7.2, §8).

## Why it works

Tests lifted from historical pull requests verify one developer's patch instead of every valid alternative ([Aggarwal and Hu, 2026, arXiv:2611.31839v1](https://arxiv.org/abs/2611.31839v1), §1). Listing each test requirement and constructing a violating reasonable fix exposes semantic overspecification that static dependency checks miss. Withholding the reference fix prevents anchoring on one solution (§3.2). Taking the lower score across two providers suppresses single-model over-flagging: on the test split, GPT alone reached 94% recall with an 18% false-flag rate, which the panel cut to 4% (§4.3, Table 4).

## When this backfires

- Automated relaxation bounds tests from one side only. Passing the reference fix and failing unfixed code does not prove a loosened test still rejects wrong patches ([Aggarwal and Hu, 2026, arXiv:2611.31839v1](https://arxiv.org/abs/2611.31839v1), §8). The opposite failure already hits the same benchmark. SWE-ABS strengthened Verified tests and rejected 2,184 of 11,041 (19.78%) passing top-30 patches. The top agent's score fell from 78.80% to 62.20% ([Yu et al., 2026, arXiv:2603.00520v1](https://arxiv.org/abs/2603.00520v1)). When you own the benchmark, clarify the task specification with interface addenda instead of weakening the test oracle.
- Judges see no repository code. Without codebase context, a judge cannot tell whether local conventions settle a tested detail or whether a code path is unreachable; both false flags and misses follow ([Aggarwal and Hu, 2026, arXiv:2611.31839v1](https://arxiv.org/abs/2611.31839v1), §8).
- Cross-provider panels still share correlated errors. On 1,000 entropy-stratified ChaosNLI-MNLI items, 9 judges from 7 model families yielded 2.18 effective independent votes at a mean pairwise phi of 0.391 ([Kohli, 2026, arXiv:2605.29800v1](https://arxiv.org/abs/2605.29800v1), §4.1). On STCG's test split, Claude alone matched the two-judge panel at 89% recall and 4% false flags ([Aggarwal and Hu, 2026, arXiv:2611.31839v1](https://arxiv.org/abs/2611.31839v1), §4.3, Table 4).
- The relaxer is not independent of the judges. Reusing `claude-opus-5-5` as both judge and relaxer means its control refusals and flagged edits partly repeat its own verdict ([Aggarwal and Hu, 2026, arXiv:2611.31839v1](https://arxiv.org/abs/2611.31839v1), §8).
- Borderline tasks and Pro negatives remain unvalidated. Pro has no known-fine validation set and no executable confirmation ([Aggarwal and Hu, 2026, arXiv:2611.31839v1](https://arxiv.org/abs/2611.31839v1), §8). Across whole benchmarks, 10% (71 of 731) of Pro and 11% (57 of 500) of Verified tasks drew a 2-point or larger judge split (Table 5).

## Example

Two Verified tasks show what STCG catches and why automated relaxation stays an upper bound ([Aggarwal and Hu, 2026, arXiv:2611.31839v1](https://arxiv.org/abs/2611.31839v1), Table 1, Table 10, §8):

1. `django-16667` (sentinel return value). The issue asks that `SelectDateWidget` stop crashing with `OverflowError` on very large year, month, or day inputs, with no return value specified. The evaluation test requires `value_from_datadict` to return `"0-0-0"`. A valid fix that returns the submitted values, as the widget already does for other invalid dates, fails the test.
2. `pylint-4661` (contradicted specification and one-sided relaxation). The issue asks to stop using `~/.pylint.d` and follow the XDG specification (`~/.local/share/<program>`). The original test asserts `PYLINT_HOME` equals `appdirs.user_cache_dir("pylint")`, the cache directory. No top-30 submission resolved the original task. All 30 candidates flipped under the relaxed test. That check accepted any absolute path naming `pylint` outside `~/.pylint.d` and the home root. A wrong patch using `/tmp/pylint` also passes.

## Key Takeaways

- Use a two-judge STCG pass to triage PR-mined evaluation suites for behavioral overspecification before committing expert review hours or trusting tight leaderboard margins.
- Take the lower score across two cross-provider judges without showing the reference fix, and send tasks with a 2-point or larger split to human review.
- Read test-relaxation flip rates as upper bounds on withheld credit, because one-sided checks cannot prove a loosened test still rejects wrong patches.
- Clarify the task specification when you control the benchmark instead of auto-loosening tests, since PR-mined suites also carry weak tests that pass wrong fixes.

## Related

- [Specification-Oracle Gap Audits for Test-Graded Evals](specification-oracle-gap-audit.md) — static, model-free audit for unnamed identifiers and paths, complementing STCG's behavioral rubric
- [LLM-Driven Benchmark Auditing](llm-benchmark-auditing.md) — multi-artifact LLM auditing across specs, fixtures, and grading scripts, requiring human or author confirmation
- [Rank Resolution: Reading a Converged Coding-Agent Leaderboard](rank-resolution-converged-leaderboards.md) — paired discordant-instance power analysis on SWE-bench Verified’s top thirty
- [Detecting Self-Preference in a Single LLM Judge](judge-self-preference-detection.md) — why multi-judge panels lose effective votes to correlated errors and how to stratify judge bias
- [Meta-Evaluate the LLM Judge Before Trusting Rubric Verdicts](meta-evaluate-llm-judge-rubric-verification.md) — calibrating a rubric judge against human labels before scaling it to unlabeled tasks
