谁来验证构建者?面向智能体生成软件的独立保障机制
Who Verifies the Builder? Toward Independent Assurance for Agent-Produced Software
AI总结:
本文针对智能体生成软件的验证问题,提出构建与验证分离的框架,经预注册研究验证,该框架可更有效检测构建者遗漏的故障并揭示规范歧义。
摘要:
编码智能体如今能够实现规范、编写并运行测试、修复故障,以及宣布结果可发布。当同一智能体系统同时生成软件及其正确性证据时,通过的测试套件便不再是独立证据:可见测试会成为优化目标,代码与测试可能对规范存在相同误解,且构建者自身的测试可能存在不足。本文指出,智能体生成的软件需要一个在结构上独立于构建层的保障层。我们刻画了利益相关者意图与生产之间的四类差距(需求差距、一致性差距、评估差距和模型差距),并确定验证可缩小其中哪些差距。我们提出一个将构建与验证分离的框架,引入一份验证契约,说明发布前必须证明的内容,并在规范优先阶段(无法访问实现)和基于变异分析、属性测试与模糊测试的实现感知阶段组织验证,最终生成一份保障报告,将发布决策留给人类。我们在一项预注册研究中评估了该框架,研究对象为三个有状态服务(其中两个由第三方模型编写)和一个EvalPlus试点。构建者的程序是正确的,但其自身测试遗漏了细微交互:来自新上下文的验证器检测出了46个植入故障中更多的故障(霍尔姆校正后p=0.006),并揭示了规范的歧义,代价是出现了罕见的错误预言。来自另一个提供商的验证器未增加检测量。
英文摘要:
Coding agents can now implement a specification, write and run tests, repair failures, and declare the result ready for release. When the same agentic system produces both the software and the evidence of its correctness, a passing test suite is no longer independent evidence: visible tests become an optimization target, code and tests may share one misinterpretation of the specification, and the builder's own tests may simply be incomplete. This paper argues that agent-produced software requires an assurance plane that is structurally independent of the build plane. We characterize four gaps between stakeholder intent and production (requirement, conformance, evaluation, and model gaps) and identify which of them verification can close. We propose a framework that separates building from verifying, introduces a Verification Contract stating what must be demonstrated before release, and organizes verification in a specification-first phase without access to the implementation and an implementation-aware phase based on mutation analysis, property-based testing, and fuzzing, with an assurance report that leaves the release decision to a human. We evaluate the framework in a pre-registered study on three stateful services, two of them written by third-party models, and an EvalPlus pilot. The builder's programs were correct, but its own tests missed subtle interactions: a verifier in a fresh context detected more of the 46 seeded faults than the builder's tests (Holm-corrected p = 0.006) and surfaced the ambiguities of the specification, at the price of rare false oracles. A verifier from another provider did not add detection.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。