SpecEngineeringBench: Evaluating Coding Agents as Autonomous Specification Engineers

Xingjian Wang, Shijian Wang, Minghao Liu, Ji Zou, Zetao Yang, Xinping Lei, Yiming Liang, Shen Yan and 5 others

TokenWave AI · Independent Researcher · The University of Tokyo · Monolith Management

Published November 24, 2026 · on the feed November 25, 2026 · ▲ 15 · arXiv 2611.32973

The abstract

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.

The Brief

2:35

A short podcast summary of the paper. Written and voiced by AI.

Transcript

SpecEngineeringBench. Evaluating Coding Agents as Autonomous Specification Engineers. By Xingjian Wang and twelve others, from TokenWave AI, Independent Researcher, and two other institutions. Published on the twenty-fourth of November.

Autonomous specification engineering asks a coding agent to turn functional requirements into executable tests, and then use the results to find and confirm defects. Existing benchmarks test something easier. Their test generation tasks are explicitly specified, usually with an issue description, a designated test entry point, or a list of files to inspect. Given those clues, the agent never has to decide what to test or where to look. It skips the hard part: mapping requirements onto an implementation and going out to uncover defects nobody has pointed to.

SpecEngineeringBench evaluates two complementary capabilities as independent tasks. One is generating test suites. The other is discovering defects through execution analysis. Keeping the two apart means an agent can be strong at one and weak at the other, and the benchmark will show it. Scoring combines test validity, defect detection and coverage with the precision and recall of localization. Validity asks whether the tests are sound, coverage asks how much of the code they touch, detection asks whether they expose the recorded defects, and localization asks whether the agent can say where those defects live.

The benchmark holds one hundred instances, drawn from seventy-eight open-source Python repositories across sixteen application categories. Each instance carries multiple recorded defects, so an agent can be checked against faults that are known to be there.

Seven frontier coding agents are evaluated, and the headline is a decoupling. Tests that run and cover the code are not the same as tests that expose defects. Agents reach a ninety-one point four seven percent Head Pass Rate and eighty point four eight percent Change-focused Coverage, yet their Fail-to-Pass Rate is only twenty-six point three six percent.

Localization shows a similar fall as it gets finer. Recall is seventy-eight point one one percent at the file level, but drops to fifty-one point two nine percent at the function level. Writing tests still pays off. Compared with relying solely on the repository's existing test suites, autonomous test generation improves localization recall by four point nine nine percentage points for files, two point seven seven for functions, and two point six nine for hunks.

The benchmark separates two things that are easy to conflate: tests that pass, and tests that catch something. On the numbers reported, today's agents are far stronger at the first, and the distance to the second is what this benchmark is built to measure. Even so, the agents' own tests help them find where defects sit, which suggests that writing tests is part of investigating code, not only a way of checking it.

More with an account

Listen to every day’s papers

Daily playlists, deep dives, quests for the papers, and quizzes on their key terms.

Join free
KipQuest: the day’s AI research, as podcasts and quests. All papers Android app Privacy Contact Episodes are written and voiced by AI from each paper. Summaries can contain mistakes: the paper is the source.