PCM: A Proof-Carrying Message Protocol for Verifiable Multi-Agent Communication

Agent Multi-agent Collaboration AI Safety / AI Ethics PIAAP RA
2026年10月29日
当一个AI智能体向另一个AI智能体声称“测试已通过”或“该退款已获人工批准”时,接收方仅能依赖发送方的单方面陈述。尽管A2A(Agent-to-Agent)与MCP(Multi-Party Communication Protocol)协议可对通信信道进行身份认证,但问题恰恰在于:发送方本身即为可信度存疑的一方;因此,一个被恶意提示注入(prompt-injected)的智能体,完全可能借由多智能体系统,将捏造的事实与虚假的权限“洗白”并流通出去。为此,我们提出“附带证明的消息”(Proof-Carrying Messages, PCM)协议:在该协议中,每一项主张(claim)均须附带可验证的证据——即来自一个仅可追加(append-only)、且该智能体自身无权写入的Merkle日志的记录,并配以包含该记录位置的包含性证明(inclusion proof),且该证明须由一个该智能体无法控制的、独立的认证签署者(attesting signer)进行数字签名。接收方可在离线状态下验证消息,并对每项主张给出三值判定结果:已证实(proven)、未证实(unproven)或失败(failed)。仅基于智能体自身报告而提出的主张,永远无法被判定为“已证实”。权限(authority)以授权链(grant chains)的形式传递,其根节点必须是日志中明确记录的人工审批行为;且该授权链只能逐级收窄(即权限不可扩大、不可越权下放)。我们明确定义了四类主张、一种类型化的免责条款代数(typed caveat algebra)、具备容错能力的重放规则(replay rules,确保系统重启后仍能正确处理消息),以及严格形式化的语义解释(strict readings),从而保证不同独立验证者之间判定结果的一致性;同时,我们形式化地证明了该协议所具备的各项安全性质。在一项预先设定的基准测试中,我们使用了真实运行场景中产生的926条消息,其中712条为恶意伪造消息,涵盖16种不同类别;PCM协议仅接受了10条伪造消息,且全部属于“过期证据”(stale evidence)——误判率仅为1.4%(95%置信区间为0.8%–2.6%)。相比之下,基础A2A协议接受了全部712条伪造消息;而六种已部署协议的建模实现(包括:采用签名化Agent Cards的A2A、uAgents、RFC 9421、SCITT、AP2及可验证意图协议Verifiable Intent)则分别接受了504至712条伪造消息。两名独立验证者对全部926条消息的判定结果完全一致,且单条消息的验证耗时约为1毫秒。
When one AI agent tells another that "the tests passed" or "a person approved this refund", the receiver has only the sender's word. A2A and MCP authenticate the channel, but the sender is the party in doubt, so a prompt-injected agent can launder fabricated facts and authority through a multi-agent system. We present Proof-Carrying Messages (PCM), a protocol in which each claim carries evidence: records from an append-only Merkle log that the agent cannot write, with inclusion proofs, signed by an attesting signer the agent cannot control. Receivers check messages offline and give each claim a three-valued result: proven, unproven or failed. A claim that rests only on the agent's own report is never proven. Authority travels as grant chains rooted in a recorded human approval, and the chains can only narrow. We specify four claim types, a typed caveat algebra, replay rules that survive restarts, and strict readings that make independent verifiers agree, and we prove the resulting security properties. On a pre-specified benchmark of 926 messages from real runs, 712 of them lies in 16 classes, PCM accepts 10 lies, all of them stale evidence (1.4%, 95% CI 0.8-2.6%). Plain A2A accepts all 712, and models of six deployed protocols (A2A with signed Agent Cards, uAgents, RFC 9421, SCITT, AP2, Verifiable Intent) accept 504-712. Two independent verifiers agree on all 926 verdicts, and verification takes about 1 ms.
许愿