AI 编程 4.0 · 优秀 2026-11-24 · 论文

SpecEngineeringBench: Evaluating Coding Agents as Autonomous Specification Engineers

SpecEngineeringBench 把编码 agent 当作自主规格工程师:只给功能需求,不给 issue入口或文件线索,要求生成可执行测试并经执行分析发现定位缺陷基准含 78 个开源 Python 仓库的 100 个实例,每个带多个已记录缺陷七个前沿 agent 显示测试有效性与缺陷暴露脱钩:91.47% Head Pass Rate80.48% 变更聚焦覆盖率,Fail-to-Pass 率仅 26.36%;定位召回从文件级 78.11% 跌至函数级 51.29%自主生成的测试让文件/函数/hunk 定位召回提升 4.99/2.77/2.69 个百分点

打开原文回到归档

SpecEngineeringBench: Evaluating Coding Agents as Autonomous Specification Engineers

  • ID: 2e24b076
  • 原文链接: https://arxiv.org/abs/2611.32973
  • PDF: https://arxiv.org/pdf/2611.32973
  • 作者: Xingjian Wang, Shijian Wang, Minghao Liu, Ji Zou, Zetao Yang, Xinping Lei, Yiming Liang, Shen Yan, Enduo Zhao, Xiaoyang Shen, Weihao Xuan, Jiaheng Liu, Ge Zhang
  • 日期: 2026-11-24
  • 更新: 2026-11-24
  • 分类: coding
  • 来源类型: paper
  • 标签: coding-agents, benchmark, testing, specification
  • 质量评分: 4/5
  • 抓取时间: 2026-11-29T04:20:30Z

中文导读

SpecEngineeringBench 把编码 agent 当作自主规格工程师:只给功能需求,不给 issue入口或文件线索,要求生成可执行测试并经执行分析发现定位缺陷基准含 78 个开源 Python 仓库的 100 个实例,每个带多个已记录缺陷七个前沿 agent 显示测试有效性与缺陷暴露脱钩:91.47% Head Pass Rate80.48% 变更聚焦覆盖率,Fail-to-Pass 率仅 26.36%;定位召回从文件级 78.11% 跌至函数级 51.29%自主生成的测试让文件/函数/hunk 定位召回提升 4.99/2.77/2.69 个百分点

为什么值得关注

SpecEngineeringBench: 91% test validity but only 26% fail-to-pass defect discovery writing tests is not finding bugs.

它把「规格工程」独立成评测维度:只给功能需求、不给 issue 描述或文件线索时,七个前沿 agent 测试有效性高达 91.47%,但 Fail-to-Pass 缺陷发现率仅 26.36%,定位召回从文件级 78.11% 跌到函数级 51.29%——量化了「会写测试」与「会找缺陷」之间的真实缺口。

关键信息

  • 论文标题: 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, Ge Zhang
  • arXiv: https://arxiv.org/abs/2611.32973
  • PDF: https://arxiv.org/pdf/2611.32973
  • 发布时间: 2026-11-24
  • arXiv 分类: cs.SE
  • 关联标签: coding-agents, benchmark, testing, specification

English 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.

English Summary

SpecEngineeringBench evaluates coding agents as autonomous specification engineers: given only functional requirements no issue description, test entry points, or files-to-inspect clues an agent must generate executable tests and use execution analysis to find and validate defects. Its 100 instances span 78 open-source Python repositories and 16 categories, each with multiple recorded defects, scored on test validity, defect detection, coverage, localization precision and recall. Across seven frontier coding agents, test validity and coverage decouple from defect exposure: 91.47% Head Pass Rate and 80.48% change-focused coverage come alongside only a 26.36% Fail-to-Pass Rate, and localization recall falls from 78.11% at file level to 51.29% at function level. Autonomous test generation lifts file/function/hunk localization recall by 4.99/2.77/2.69 points over repository test suites.

Obsidian Notes

  • 内容获取路径:本次运行 opencli arxiv paper <arxiv_id> -f json 一次成功,页面由 arXiv 元数据与摘要回填。
  • 中文导读与价值判断均锚定在条目已有摘要、论文摘要、作者、日期与分类信息上;未添加论文摘要之外的实验细节。
  • 现代站点生成器按 content/{entry.id}.md 查找内容页;本文件写入 canonical content 目录,而不是 openclaw/content/。