arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2610.16859cs.CL
收藏

ANCHOR:评估基于代码仓库的智能体编码中的自然主义约束层次与排序

ANCHOR: Assessing Naturalistic Constraint Hierarchies and Ordering in Repository-Grounded Agentic Coding

Wenqiang Zhu, Xinping Lei, Zhiyi Lai, Zhengshuo Gong, Tianzhuang He, Songwei Yu, Weihao Li, Jingxuan Xu, Zihang Xu, Ziqi Miao, Gang Wu, Zhongqiu Wang, Yuhui Bai… 展开作者

Wenqiang Zhu, Xinping Lei, Zhiyi Lai, Zhengshuo Gong, Tianzhuang He, Songwei Yu, Weihao Li, Jingxuan Xu, Zihang Xu, Ziqi Miao, Gang Wu, Zhongqiu Wang, Yuhui Bai, Jie Li, Zhao Liu, Junhao Fan, Yan Wu, Yanan Wu, Jiaheng Liu, Quan Gu, Ariel Deng

AI总结:

本研究推出ANCHOR基准,评估基于代码仓库的智能体编码的工程约束遵循能力,实验显示最强系统原子合规率70.1%,失败集中在工作流排序等方面,模型与框架存在显著交互。

摘要:

对于基于代码仓库的编码智能体而言,功能正确的补丁未必是可接受的:开发者还会对任务的执行方式施加约束,包括修改范围、工作流顺序、验证、工具使用及报告。这种我们称之为工程约束遵循的能力,在当前评估中基本未被关注。我们推出ANCHOR(Assessing Naturalistic Constraint Hierarchies and Ordering in Repository-Grounded Agentic Coding),这是一个基于自然主义多语言代码仓库任务的基准,涵盖8个语言组。ANCHOR包含三部分:(i)从真实开发者交互中提炼的10个类别、78个叶类型的层次分类法;(ii)自动化流程,用于实例化基于任务的原子约束并将其组合为AND/THEN/PRIORITY类型的关系;(iii)基于轨迹的评估框架,通过基于规则的评判器和大语言模型(LLM)评判器同时检查代码差异与执行轨迹。在2个框架、10个基础模型的19种智能体配置、358个任务上,测得的最强系统为Cline框架下的Claude Opus 4.8,其原子合规率达70.1%,关系合规率达63.7%;在严格的全项FCCR准则下,19.0%的任务通过了所有评分清单项。对50个实例的约束进行的5名工程师审计显示,其可行性达94%、代码仓库一致性达94%、真实性达96%。在主要配对集(14种配置)中,添加约束后任务完成度的平均符号变化为+0.7个百分点;个体变化存在双向差异。这些结果区分了功能成功与约束合规性,失败集中在工作流排序、工具使用规范及报告方面,且模型与框架间存在显著交互。

英文摘要:

For repository-grounded coding agents, a functionally correct patch is not necessarily an acceptable one: developers also constrain how the task must be carried out-modification scope, workflow order, validation, tool use, and reporting. This capability, which we call engineering constraint following, remains largely invisible to current evaluations. We introduce ANCHOR (Assessing Naturalistic Constraint Hierarchies and Ordering in Repository-Grounded Agentic Coding), a benchmark built on naturalistic, multilingual repository tasks spanning eight language groups. ANCHOR combines (i) a hierarchical taxonomy of 10 categories and 78 leaf types distilled from real developer interactions, (ii) an automated pipeline that instantiates task-grounded atomic constraints and composes them into typed AND/THEN/PRIORITY relations, and (iii) a trajectory-grounded evaluation framework that checks both the code diff and the execution trajectory with rule-based and LLM judges. Across 19 agent configurations spanning 2 scaffolds and 10 foundation models on 358 tasks, the strongest measured system, Claude Opus 4.8 under Cline, reaches 70.1% atomic compliance and 63.7% relation compliance, while 19.0% of tasks pass every scored checklist item under the strict all-item FCCR criterion. A five-engineer audit of constraints from 50 instances reports 94% feasibility, 94% repository consistency, and 96% realism. In the primary paired set (14 configurations), the mean signed change in task completion after adding constraints is +0.7 percentage points; individual changes vary in both directions. These results distinguish functional success from constraint compliance, with failures concentrated in workflow ordering, tool-use discipline, and reporting, and substantial interactions between models and scaffolds.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑