Research ·
SpecEngineeringBench: Evaluating Coding Agents as Autonomous Specification Engineers
SpecEngineeringBench is a new benchmark of 100 multi-defect instances from 78 Python repos that evaluates coding agents on hint-free test generation and defect discovery, showing tests that pass and cover well often miss most bugs.

Researchers propose SpecEngineeringBench, a benchmark for evaluating coding agents on autonomous specification engineering: translating functional requirements into executable tests without hints, then using those tests to find and validate defects. Unlike existing benchmarks that supply issue descriptions, test entry points, or files to inspect, it removes those clues to test whether agents can decide what to test and where to investigate.
The benchmark contains 100 instances drawn from 78 open-source Python repositories across 16 application categories, each with multiple recorded defects. It defines two complementary tasks, generating test suites and discovering defects through execution analysis, scored by test validity, defect detection, coverage, and localization precision and recall.
Across seven frontier agents, the results show test validity and coverage decouple from defect exposure: agents achieved a 91.47% head pass rate and 80.48% change-focused coverage but only a 26.36% fail-to-pass rate, while localization recall fell from 78.11% at file level to 51.29% at function level. Autonomous test generation did improve localization recall at file, function, and hunk levels by 4.99, 2.77, and 2.69 percentage points over relying solely on existing repository test suites.
For builders of AI coding tools, the key finding is that high pass rates and coverage numbers do not mean bugs are being caught; a hint-free evaluation setup gives a more honest picture of whether agents can map requirements to implementations and proactively uncover defects.
References
- Hugging Face · huggingface.co
Read the full story at Hugging Face ↗Like, save or discuss on Buzz