“我们该批准吗?”面向自主编码智能体的后果感知审批机制 "Shall We Approve?" Consequence-Aware Approval for Autonomous Coding Agents 预印本

⚠️ 本文为 预印本(arXiv 公开版本),尚未经过正式同行评审。作者自发公开,结论未经期刊审稿验证,阅读时请知悉。
发布时间:2026-10-29
⬇️ 1 次下载
👁️ 预览文献
💡 AI 中文简介
编码智能体常靠自动审批器判断一条shell命令能否执行,但现有审批器只看命令文本,看不到命令实际调用的代码和工作区状态,容易放行危险操作。作者提出Caper:先把命令放进快照沙箱里试运行,把观察到的实际影响整理成报告交给独立审批器判断,批准就提交、拦截就回滚并给出可操作的理由。在SABER基准上有害结果率仅6.7%,远低于其他系统的14.8%以上;在自建YoloFS-Ext基准上为7.8%,其他系统至少35.3%。
领域人工智能安全 / 智能体系统与代码生成
适合谁读需要一定专业背景(智能体安全、程序分析方向的研究者与工程师)
核心贡献提出后果感知的审批范式:不依赖命令文本,而是先在快照沙箱中预执行命令、观察真实影响再决策;并配套提交/回滚机制,使拦截结果附带智能体可据此修正的理由。
关键数据SABER基准有害结果率6.7%(对比系统≥14.8%);自建YoloFS-Ext基准7.8%(对比系统≥35.3%),同时仅误拦1.0%的安全孪生任务。
推荐理由如果你在做编码智能体的权限与安全,这篇用“先试跑再审批”的思路把危险命令拦得又准又少误伤,数据很有说服力。
关键词["编码智能体", "命令审批", "沙箱预执行", "后果感知", "智能体安全", "权限控制"]

原文摘要

查看英文原文摘要

Coding agents increasingly rely on automated approvers to decide whether a proposed shell command may run. Existing approvers, from rule-based checkers to guardrail models and deployed permission classifiers, base their decisions on the text of the request and command. Yet a command's behavior depends on the code it invokes and the state of the workspace, and systems that observe file changes leave the assessment to the agent or a human after execution. We present Caper, a consequence-aware approval mechanism that pre-executes each command in a snapshotted sandbox, provides an independent approver with a bounded report of its observed effects, commits allowed commands, and rolls back blocked ones with a reason the agent can act on. Compared with six existing systems, Caper achieves the lowest harmful-outcome rate on SABER (6.7% versus at least 14.8%) and YoloFS-Ext, a benchmark we build in which harmful behavior is hidden inside invoked tools (7.8% versus at least 35.3%), while blocking 1.0% of the safe twins of the dangerous tasks in YoloFS-Ext.