软件委托合约:衡量AI编码代理工作中的可审查性
Software Delegation Contracts: Measuring Reviewability in AI Coding-Agent Work
AI总结:
研究通过显式委托合约提升AI编码代理工作可审查性,实验发现合约虽不改善任务正确性,但显著提高证据充分性和降低审查歧义。
摘要:
AI编码代理越来越多地接受分配的软件任务,在有限权限下修改仓库,并返回工作包以供审查。先前工作提出了软件委托合约,涵盖任务、权限、返回的工作包和验收上下文,作为委托编码工作的分析单元,但未衡量其效果。本文报告了一项关于编码代理显式委托合约的受控试点研究。我们构建了一个无依赖的TypeScript API任务环境,包含种子缺陷和文档缺口,编写了五个系列的十个任务,并在三种条件下跨两个模型层级运行了64次代理执行:一个现实的问题风格提示、一个显式委托合约,以及一个带有必需证据包的合约。每次运行通过隐藏验收测试、变异检查和范围分析进行评分,然后由三位独立的条件盲审模型审查员使用固定评分标准进行审查,共192次审查。显式合约并未改善客观任务结果:所有64次运行均通过隐藏验收检查,零范围违规。但它们确实提高了可审查性。在30次配对比较中,证据充分性在22次中有所改善,没有一次恶化(5分量表上+0.83,p < 0.0001,Cliff's delta = 0.66);审查员歧义减少(p = 0.035);更改文件列表、已知限制部分、剩余风险部分和审查员检查表大多仅在合约要求时出现。合约消耗了+13%的代理令牌和+38%的挂钟时间,对较弱模型层级的影响更大。在这些小任务上,委托合约购买的是可审查性而非正确性。
英文摘要:
AI coding agents increasingly accept assigned software tasks, modify repositories under bounded authority, and return work packages for review. Prior work proposed the software delegation contract, covering the task, authority, returned work package, and acceptance context, as the unit of analysis for delegated coding work, but did not measure its effects. This paper reports a controlled pilot study of explicit delegation contracts for coding agents. We built a dependency-free TypeScript API task environment with seeded defects and documentation gaps, authored ten tasks across five families, and ran 64 agent executions across two model tiers under three conditions: a realistic issue-style prompt, an explicit delegation contract, and a contract with a required evidence bundle. Each run was scored with hidden acceptance tests, mutation checks, and scope analysis, then reviewed by three independent condition-blinded model-based reviewers using a fixed rubric, for 192 reviews. Explicit contracts did not improve objective task outcomes: all 64 runs passed hidden acceptance checks, with zero scope violations. They did improve reviewability. Evidence sufficiency improved in 22 of 30 paired comparisons and worsened in none (+0.83 on a 5-point scale, p < 0.0001, Cliff's delta = 0.66); reviewer ambiguity decreased (p = 0.035); changed-file lists, known-limitations sections, residual-risk sections, and reviewer checklists appeared mostly or only when demanded by the contract. Contracts cost +13% agent tokens and +38% wall-clock time, with larger effects for the weaker model tier. On these small tasks, delegation contracts bought reviewability rather than correctness.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。