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 等 13 人
Tokenwave.AI
在最新榜 #343 本站收录于 2026-11-26
一句话要点
自主规格工程要求编码智能体将功能需求转化为可执行测试,并依据执行结果发现和验证缺陷。现有基准通常在已明确指定的测试生成任务上评测编码智能体,常见做法是给出问题描述、指定测试入口或待检查文件,对应测什么、到何处调查的能力评测不足。依赖这类线索会绕过将需求映射到实现、并主动发现未知缺陷这一难点。本文提出 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 个百分点。
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构建了100个来自78个开源Python项目的真实实例,每个包含多个已知缺陷,涵盖16类应用领域,支持测试生成与缺陷发现两个独立任务评估。
- 实验显示,尽管测试有效性和覆盖率较高(头通过率91.47%,覆盖率达80.48%),但缺陷定位在函数层级的召回率仅51.29%,显著低于文件层级的78.11%,表明定位能力存在明显短板。
- 与依赖已有测试套件相比,自主生成测试使文件、函数和代码块(hunk)级别的定位召回率分别提升4.99、2.77和2.69个百分点,验证了自主测试在工程诊断中的实际价值。
English overview
SpecEngineeringBench introduces a new benchmark for evaluating coding agents in autonomous specification engineering, where agents must translate requirements into tests and discover defects through execution. It includes 100 real-world instances from open-source Python projects with known defects. The evaluation assesses test generation and defect discovery, showing that test validity and coverage do not guarantee defect exposure. Agents achieve high test quality but poor localization at the function level. Self-generated tests significantly improve defect localization accuracy across multiple levels.
只根据 arXiv 官方摘要,由开源模型整理,经数字/专名自动核对(必须在摘要中出现),以论文原文为准。
阅读 arXiv 原文 PDF Hugging Face 讨论 代码仓库 项目页
相关论文
- 同机构 · REE: A Scientific Research Entrance Exam for AI Agents 2026-11-25 · Tokenwave.AI
- 同机构 · SWE-CoWork: Benchmarking Coding Agents as Digital Employees in Organizations 2026-11-15 · Tokenwave.AI
- 同主题 · AgentSWE: Can Coding Agents Build the Agent You Actually Want? 2026-10-09
- 同主题 · Doc2Harness: Benchmarking LLMs on Long-Horizon Harness Engineering of Coding Agents 2026-10-14
- 同期 · Lazy Agents Answer Against Their Own Beliefs: Reinforcement Learning with Verifiable Beliefs Teaches Them to Act on What They Believe 2026-11-24
数据说明
元数据来自 arXiv API(已核实);点赞来自 Hugging Face 每日论文;引用来自 Semantic Scholar。最近刷新 2026-11-30。
要点由本站根据摘要自写,不转载摘要原文,请阅读原文。