Harness Hub
All papers

SpecEngineeringBench: Evaluating Coding Agents as Autonomous Specification Engineers

Xingjian Wang, Shijian Wang, Minghao Liu, Ji Zou, Zetao Yang, Xinping Lei, Yiming Liang, Shen Yan, Enduo Zhao, Xiaoyang Shen, Weihao Xuan, Jiaheng Liu, + 1 more

Verdict: Useful

Removing location hints from test-generation evaluation is a reasonable design, and the gap between passing tests and defect exposure is relevant to verifier design. Several limits apply, though: incomplete ground truth, unaddressed contamination, unclear metric denominators, unspecified agent and harness setups, and small gains with no variance reported. Together these limit how far the abstract's claims can be trusted.

  • Novelty

    3 out of 5
  • Rigor

    2 out of 5
  • Reproducibility

    2 out of 5
  • Relevance to harnesses

    3 out of 5

TL;DR

A 100-instance benchmark built from 78 Python repositories. Agents get no issue text, test entry point or file hints, and must write tests from requirements and find recorded defects. Across seven agents the paper reports a 91.47% Head Pass Rate and 80.48% Change-focused Coverage, but only a 26.36% Fail-to-Pass Rate. Localization recall falls from 78.11% at file level to 51.29% at function level.

Adversarial review by Harness Hub · Nov 27, 2026 · abstract only · Suggest a correction

Original abstract (authors’ text, select to expand)

Autonomous specification engineering requires coding agents to translate functional requirements into executable tests and use the results to discover and validate defects. However, existing benchmarks evaluate coding agents on explicitly specified test generation tasks, commonly providing an issue description, a designated test entry point, or files to inspect, leaving the ability to determine what to test and where to investigate insufficiently evaluated. Relying on such clues bypasses the challenge of mapping requirements to implementations and proactively uncovering unknown defects. We propose SpecEngineeringBench, comprising 100 instances from 78 open-source Python repositories across 16 application categories, with multiple recorded defects in each instance. Two independent tasks evaluate complementary capabilities: generating test suites and discovering defects through execution analysis. The evaluation combines test validity, defect detection, and coverage with localization precision and recall. Across seven frontier coding agents, results reveal that test validity and coverage decouple from defect exposure: agents achieve a 91.47% Head Pass Rate and 80.48% Change-focused Coverage alongside a 26.36% Fail-to-Pass Rate, while localization recall drops from 78.11% at the file level to 51.29% at the function level. Autonomous test generation improves file, function, and hunk localization recall by 4.99, 2.77, and 2.69 percentage points over relying solely on existing repository test suites.

Authors’ note

31 pages, 3figures

Filed underevaluationcoding-agentsagents

Summary

SpecEngineeringBench argues that existing test-generation benchmarks give agents an issue description, a designated test entry point or files to inspect. It instead asks agents to decide what to test and where to look from functional requirements. The benchmark has 100 instances from 78 open-source Python repositories across 16 application categories, with multiple recorded defects per instance. Two independent tasks are scored: generating test suites, and discovering defects through execution analysis. Metrics combine test validity, defect detection and coverage with localization precision and recall. Localization is reported at file, function and hunk granularity. Seven frontier coding agents are evaluated. The abstract reports that validity and coverage are high while Fail-to-Pass is low, which the authors call a decoupling. It also reports that recall drops from file to function level. Finally, agent-generated tests raise localization recall by a few percentage points over using only existing repository tests. This review is based on the abstract only. Agent identities, harnesses, budgets, seeds, metric denominators and requirement provenance are not visible.

Key findings

  • Aggregate over seven agents: 91.47% Head Pass Rate and 80.48% Change-focused Coverage, against a 26.36% Fail-to-Pass Rate (abstract).
  • Localization recall is 78.11% at file level and 51.29% at function level (abstract).
  • Autonomous test generation improves file, function and hunk localization recall by 4.99, 2.77 and 2.69 percentage points over relying only on existing repository test suites (abstract).
  • Benchmark scale: 100 instances, 78 open-source Python repositories, 16 application categories, multiple recorded defects per instance (abstract).

The paper at a glance

01Functionalrequirements, withno issue text,entry point or filehints02Agent explores therepository03Task 1: generate atest suite04Task 2: discoverdefects throughexecution analysis05Score: Head PassRate, Fail-to-PassRate,Change-focusedCoverage06Score: localizationprecision andrecall at file,function and hunklevel
  1. Functional requirements, with no issue text, entry point or file hints
  2. Agent explores the repository
  3. Task 1: generate a test suite
  4. Task 2: discover defects through execution analysis
  5. Score: Head Pass Rate, Fail-to-Pass Rate, Change-focused Coverage
  6. Score: localization precision and recall at file, function and hunk level
Fig. 1 — How the paper works, step by step (arXiv:2611.32973).
File level78.11%Function level51.29%
Fig. 2 — Localization recall by granularity (aggregate over seven agents), higher is better. Source: abstract, arXiv:2611.32973.
Data table
Localization recall by granularity (aggregate over seven agents)
Method%
File level78.11%
Function level51.29%

Why it matters

For harness builders, the relevant point is that tests which run and cover changed code are not the same as tests which expose defects. A harness that treats passing generated tests or rising coverage as a success or verification signal may be measuring the wrong thing. That bears on verifier steps, TDD-style loops and self-check stages in coding agents. The no-hints setup is also closer to autonomous use than issue-driven benchmarks. Two caveats apply. First, the abstract does not say whether the 26.36% Fail-to-Pass Rate is per test or per defect, so it does not establish that agents expose only a quarter of defects. Second, the gain from agent-written tests over existing suites is a few percentage points, with no stated compute control. So the paper does not show that adding a test-generation stage is worth its cost. It is a measurement paper, not a technique harness builders can adopt directly.

Issues (7)

  • High severity

    Ground truth is 'recorded defects', so the label set is incomplete. An agent that finds a real but unrecorded bug may lose localization precision and get no Fail-to-Pass credit. The reported defect-finding and precision numbers may therefore understate true ability. They may also favor agents that target historically fixed bugs.

  • High severity

    Contamination risk. Instances come from 78 public Python repositories whose defects and fixes are likely in commit history and training data. The abstract states no temporal cutoff or decontamination check. File-level recall of 78.11% could partly reflect memorized fix locations.

  • Medium severity

    The decoupling claim depends on metric definitions the abstract does not give. It is unclear whether the 26.36% Fail-to-Pass Rate is a fraction of generated tests or of recorded defects. If it is per test, a low value is expected, because most tests target non-defective behavior, and the contrast with the 91.47% Head Pass Rate is largely definitional. Instance-level or agent-level correlation analysis would be needed to support the claim.

  • Medium severity

    The headline numbers are aggregates over seven unnamed agents. The abstract does not state which harness each agent ran in (vendor CLI or a common scaffold), the token, time or turn budgets, or the number of seeds. Per-agent comparisons, and whether harness differences confound the results, cannot be checked.

  • Medium severity

    The gains from autonomous test generation are small: 4.99, 2.77 and 2.69 pp. On 100 instances these may fall within run-to-run variance. No confidence intervals or significance tests are reported. The abstract also does not say whether the comparison controls for the extra compute the test-generation stage consumes.

  • Medium severity

    Requirement provenance is unstated. If the functional requirements are derived from fix commits or post-fix documentation, they could leak defect locations, which would undercut the 'no hints' framing.

  • Low severity

    The benchmark is Python-only with 100 instances. Generalization to other languages, or to repositories without existing test suites, is not shown.

Questions for the authors

  • Is Fail-to-Pass Rate computed per generated test or per recorded defect?
  • Which seven agents were evaluated, in which harnesses, with what budgets, and over how many seeds?
  • How are true but unrecorded defects treated in precision and Fail-to-Pass scoring?
  • Is there a temporal cutoff relative to model training data, or any decontamination analysis?
  • How are functional requirements produced, and could they leak defect locations?
  • Are the 4.99, 2.77 and 2.69 pp recall gains significant, and do they hold at matched compute?
  • At instance level, how do coverage and Fail-to-Pass correlate?

Related in the directory

Open-source projects

Issue-driven repository benchmark, representative of the hint-providing setups this paper positions against (not named in the abstract).

More tools on the same problem

Products and open-source projects in the directory closest in meaning to this paper.

Codebase standards and spec shaping for spec-driven agent development.
Spec-driven development plugin for coding agents
Spec-driven development with organizational governance for AI coding agents.
GitHub's toolkit for spec-driven development with coding agents.
DevOps for coding agents: shape work, track a graph, judge changes.
Extract behavioral specs and test vectors from a codebase in Claude Code

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.

Fei Ding

Software development with coding agents often begins with a rough request that users refine after trying the implementation. Final correctness alone does not capture the repeated guidance this process requires. We introduce FeatureLoop, a benchmark of 61 human-reviewed tasks from 34 repositories across five primary programming languages and seven software forms. Each task follows one development goal in a persistent workspace through evolution feedback, which adds or clarifies requirements, and completion feedback, which reports failures of stated requirements. Cumulative executable checks track new behavior, repair, and preservation of earlier functionality. We evaluate 12 frontier models and find that the strongest completes 72.1% of tasks with both feedback types. Across models, however, only 15.4% of observed failed stages recover within two corrective revisions. Further analysis reveals incomplete repairs, regressions, and model-specific differences in feedback use and token efficiency, identifying obstacles to reliable, low-intervention development.

Jia Feng, Alyssa Wu +4

Coding agents can now turn a well-specified ticket into a patch that passes its tests. Experienced engineers also notice risks the request never mentioned, question flawed premises, reuse what already exists and say plainly what they did and did not check. We present sudo L7, a benchmark of 60 software-engineering tasks written by staff-level engineers, mostly in private production codebases and each built around a place where a frontier model failed. A task pairs a realistic, underspecified request with a hidden, expert-authored rubric of atomic criteria (1,287 in all), tagged with eight behavioral dimensions from functional correctness to truthful reporting. An agentic grader reads the agent's transcript, inspects and runs its code, and treats test output as evidence. An attempt passes only if it meets every criterion of the two highest severities, and more than half of these gating criteria test something other than functional correctness. On the public leaderboard as of November 2026 (19 models, each in its developer's harness or in OpenCode, three attempts per task), Claude Fable 5.2 passes 52.2% of attempts, Claude Sonnet 5.5 50.6% and Claude Opus 5.5 46.1%. GPT-6.1 Sol, Claude Fable 5.1 and GPT-6 Astra pass 31-34%, and the other 13 models at most 18.9%. In a human-label study, three candidate model graders each agreed with a software engineer on 85-86% of criterion verdicts, about as often as two engineers agreed with each other. Cases from the benchmark show how one unsupported claim can fail an otherwise strong attempt and illustrate two sides of engineering judgment: flagging hidden hazards and avoiding needless work.

Nick Heiner, Ian Niebres +3

Software-engineering research relies on benchmarks that evaluate new techniques on a set of problem instances. Unfortunately, manually constructing benchmarks is labor-intensive, as researchers must find suitable instances, prepare execution environments, establish expected outcomes, and validate correctness. This paper presents BenchMeUp, an approach for automatically creating software-engineering benchmarks from natural-language specifications. Given a specification defining the desired instances, data sources, and evaluation procedures, BenchMeUp generates search rules and a construction plan, invokes parallel LLM agents that identify candidate instances and construct executable instances, validates the results in fresh execution environments, and packages the instances behind a unified command-line interface. We evaluate the approach on four tasks: program repair, issue reproduction, compiler autotuning, and fixing static-analysis warnings. Targeting 50 instances per task (200 in total), BenchMeUp constructs 198 instances, of which 196 (99\%) are successfully packaged. Search and construction take 36 minutes and \$0.79 per instance, on average. Evaluating eight existing techniques on the generated benchmarks, we find that 189 of 196 packaged instances (96\%) support end-to-end evaluation, allowing users to study the effectiveness of the techniques. Checking every constructed instance against its source, the specification, and its expected outcome, we find that 180 of 198 (91\%) meet all criteria, compared with 10 of 200 instances delivered by Codex (general-purpose coding agent). Overall, we show that LLM-based agents can automate benchmark construction across diverse software-engineering tasks and produce executable instances that existing techniques can use, while validity beyond execution still needs to be checked.

Islem Bouzenia, Michael Pradel

Many defects violate project rules that the code itself does not reveal, such as layering constraints or required tests. We study whether LLM coding agents repair such violations better when an external checker reports them, with their location and a repair goal. Three models, a small, medium and large model, driven by an AI agent, worked on 25 pull requests with 31 planted defects in ten open-source projects, plus 5 correct controls, five times alone and five times with findings from CodeAssure (CA), a commercial checker. We also compare with GitHub Copilot code review, and compare CodeAssure's detection with nine free static-analysis tools run out of the box, including Semgrep and SonarQube Community. Counting a run as repaired only when the repaired code also compiles and keeps its feature, CA findings raised the repair rate from 26% to 69% for the smallest model, from 46% to 90% for the medium model and from 45% to 93% for the largest model (pull-request-level p < 0.001), and from 39% to 84% over all runs. Every Java, TypeScript and Python repair compiled. We found that agents often cleared a defect by deleting a newly added file. Metrics based on whether the defect is gone count feature deletion as a success. The largest model alone did so in 44 of 125 runs. CA includes a check for deleted files that largely prevents this. In an ablation with the check turned off, removals rose from 9 to 65 out of 375 runs and the repair rate fell to 54% (small), 70% (medium) and 85% (large model). The CA workflow also outperformed Copilot code review (p < 0.001). Together, the free tools detected 8 of the 31 defects, and CA detected all 31. With CA, the medium model repaired 90% of runs, against 45% for the largest model alone, at about one fifth of the mean cost per run ($0.17 against $0.91).

Laura Wynter

As coding agents become more capable, developers increasingly use them to fix bugs through multi-turn interactions. Existing benchmarks do not adequately cover this scenario. Most present a complete issue report in a single turn without interaction. Their evaluation can produce both false positives and false negatives, accepting incorrect patches or rejecting correct ones. We introduce UserSWE for evaluating coding agents' ability to fix repository-level bugs through multi-turn interactions with dynamic users and execution-grounded verdicts at every turn. Its construction pipeline turns repository history and existing single-turn benchmarks into multi-turn tasks. At each turn, information pools constrain what the simulated user can reveal, while a persona chain sampled from a transition model calibrated on 20,859 development sessions governs how it speaks. Tests run after every turn, and a pair of agents from different model families writes and gates each verdict, using test results as primary evidence and model judgment only for aspects the tests cannot resolve. We evaluate eleven agents on 72 tasks from 42 repositories and find that agent rankings change with the interaction budget. Claude Fable 5.1 resolves the most tasks in one turn, GPT-6-Astra resolves the most by the eighth turn, and Claude Opus 5 leads at most intermediate budgets. These results indicate that single-turn performance is insufficient to characterize interactive coding ability.

Zhan-Yu Wu, Ji Luo +6

The Harness Hub newsletter

New harness companies, projects, releases and the monthly State of Harness report, in your inbox.