面向软件维护中编码智能体的自主性边界:边界契约的试点研究
Toward Bounding Coding-Agent Autonomy in Software Maintenance: A Pilot Study of Boundary Contracts
AI总结:
本研究提出边界契约,经试点显示其可提升基于Codex的编码智能体在软件维护中的编辑选择F1、必需行为覆盖率及严格可接受补丁数,为编码智能体操作边界的研究提供初步证据。
摘要:
随着编码智能体获得更大的软件仓库修改自主权,仅相关上下文无法定义其操作权限。某工件可能与维护任务相关但不适宜编辑,反之,另一工件可能未在请求中明确提及却需修改。本文探索边界契约(Boundary Contracts),这是一种机器可读的抽象,可在仓库修改开始前明确任务特定的工件角色(可编辑、仅检查、必需、受保护)。我们对来自真实企业仓库的40项维护任务开展试点研究,对比有无边界契约信息的同一基于Codex的编码智能体。边界感知条件下,宏编辑选择F1从0.440提升至0.682,必需行为覆盖率从0.429提升至0.673,严格可接受补丁数量从40项中的9项增至40项中的18项。为探究这些提升是否仅由文件定位改进所致,我们额外分析21项任务,其中两种条件均修改至少一个相同文件,编辑选择性和补丁结果仍存在差异,为明确工件角色可能超越定位影响维护行为提供初步证据。本试点未确立边界契约的普遍有效性,而是为更广泛的研究问题提供初步证据:随着仓库级维护自主性日益增强,应如何生成、验证、修订并最终执行编码智能体的操作边界?
英文摘要:
As coding agents gain greater autonomy to modify software repositories, relevant context alone does not define their operational authority. An artifact may be relevant to a maintenance task while being inappropriate to edit; conversely, another artifact may be required even when it is not explicitly mentioned in the request. We explore Boundary Contracts, a machine-readable abstraction that makes task-specific artifact roles (editable, inspect-only, required, and protected) explicit before repository modification begins. We conduct a pilot study on 40 maintenance tasks from a real enterprise repository, comparing the same Codex-based coding agent with and without Boundary Contract information. The boundary-informed condition improves macro edit-selection F1 from 0.440 to 0.682, required-behavior coverage from 0.429 to 0.673, and the number of strictly acceptable patches from 9 of 40 to 18 of 40. To probe whether these gains are explained only by improved file localization, we additionally analyze 21 tasks in which both conditions modify at least one identical file. Differences remain in edit selectivity and patch outcomes, providing initial evidence that explicit artifact roles may influence maintenance behavior beyond localization alone. This pilot does not establish the general effectiveness of Boundary Contracts. Rather, it provides initial evidence for a broader research question: how should the operational boundaries of coding agents be generated, validated, revised, and ultimately enforced as repository-level maintenance becomes increasingly autonomous?
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。