Skip to content
English

Switch theme

arXiv 2611.32973 · cs.SE · 2026-11-24

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 more

Tokenwave.AI

In latest · #343 Added on 2026-11-26

One-line takeaway

Autonomous specification engineering requires coding agents to translate functional requirements into executable tests and use the results to discover and validate defects. 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. This paper proposes 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.

自主规格工程要求编码智能体将功能需求转化为可执行测试,并依据执行结果发现和验证缺陷。现有基准通常在已明确指定的测试生成任务上评测编码智能体,常见做法是给出问题描述、指定测试入口或待检查文件,对应测什么、到何处调查的能力评测不足。依赖这类线索会绕过将需求映射到实现、并主动发现未知缺陷这一难点。本文提出 SpecEngineeringBench,包含来自 78 个开源 Python 仓库、覆盖 16 个应用类别的 100 个实例,每个实例有多条已记录缺陷。两项独立任务分别评测互补能力:生成测试套件,以及通过执行分析发现缺陷。评测综合测试有效性、缺陷检出与覆盖率,以及定位的精确率与召回率。对七个前沿编码智能体的结果显示,测试有效性、覆盖率与缺陷暴露相互脱节:智能体达到 91.47% 的 Head Pass Rate 和 80.48% 的变更聚焦覆盖率,但 Fail-to-Pass Rate 仅为 26.36%;定位召回率从文件级的 78.11% 降至函数级的 51.29%。与仅依赖仓库已有测试套件相比,自主测试生成将文件、函数和代码块(hunk)级定位召回率分别提高 4.99、2.77 和 2.69 个百分点。

16HF upvotes
2GitHub stars
0Citations (Semantic Scholar)
33.5Buzz score

Read on arXiv PDF Hugging Face discussion Code Project page

Related papers

About this data

Metadata from the arXiv API (verified); upvotes from Hugging Face Daily Papers; citations from Semantic Scholar. Last refreshed 2026-11-30.

The takeaway is written by AIMap from the abstract; the abstract itself is not reproduced — read the original.

Data updated: Latest AI papers(UTC+8)