智能体安全应成为运行时契约

·

研究论文 · 2026/08/14

本文认为,将AI安全仅视为训练阶段属性的主流范式(如RLHF、DPO、Constitutional AI)不足以应对自主智能体执行代码、修改文件、发送消息和操作数据库等行为。作者提出,智能体安全应作为运行时契约由执行框架(harness)强制执行,包含预防性和证据性两方面:预防性通过沙箱、权限门、输出过滤和轨迹监控阻止危险行为;证据性要求提供可验证的证据(如测试运行、日志捕获、文件差异和引用依据)来证明良好行为确实发生,并以此作为任务提交的门槛。作者基于四项公开证据(52起AI智能体/LLM安全事件调查、31起虚假完成审计、12个公开智能体系统的轨迹模式审计、以及2023-2025年NeurIPS/ICML/ICLR共28560篇论文的标题审计,显示训练时与部署时论文数量存在8-12倍的不平衡)支持其观点。文章借鉴计算机安全和实验科学中已采用的运行时契约,形式化了智能体轨迹模式和证据链,提出了基于监控器组合的组合门控命题,并概述了研究议程。核心结论是:智能体AI的安全单位应是“带可检查证据的轨迹”,而非模型本身。

本文挑战了AI安全的主流范式,提出以运行时契约为核心的务实方案,并基于大量实证数据(包括安全事件、虚假完成、系统审计和论文统计)支撑论点。对于AI安全研究者、智能体系统开发者和政策制定者,本文提供了可操作的安全框架和未来研究方向,具有重要的理论和实践价值。

The dominant paradigm treats AI safety as a property to be instilled during model training via RLHF, DPO, or Constitutional AI. We argue this is structurally insufficient for autonomous agents that execute code, mutate files, send messages, and modify databases. Agent safety should be a runtime contract enforced by the harness, and the contract has two complementary faces. The preventive face blocks dangerous actions before they happen via sandboxes, permission gates, output filters, and trajectory monitors. The evidential face requires verifiable proof that good actions actually happened, gating task submission on hard evidence such as test runs, log captures, file diffs, and citation grounding. We ground the position in four lines of public evidence, with row-level protocols and data released in the supplementary JSON files: a survey of 52 documented AI-agent and LLM safety incidents, a false-completion audit with 31 non-contested core cases plus one disputed illustrative case, a trajectory-schema audit of 12 public agent systems and harnesses, and a title-level audit of all 28,560 papers accepted at NeurIPS, ICML, and ICLR 2023-2025 showing a pooled 8-12x imbalance between training-time and deployment-time publication. Two prior communities that needed to enforce safety, computer security and the experimental sciences, converged on runtime contracts with both preventive and evidential elements; agentic AI is now under the same pressure. We formalize an Agent Trajectory Schema and Evidence Chain, state a compositional gating proposition based on standard monitor composition, and outline a research agenda. The right unit of safety in agentic AI is the trajectory-with-checkable-evidence, not the model.

阅读原文

参与讨论