Agentproof: 静态验证代理工作流图
Agentproof: Static Verification of Agent Workflow Graphs
AI总结:
Agentproof通过提取四个主流代理框架的统一抽象图模型,应用六种结构检查并生成见证轨迹,评估时间安全策略,实现无需手动建模的静态验证,发现工作流中的结构缺陷和政策违规。
摘要:
代理框架越来越多地将工具使用行为编码为显式的工作流图,但安全性保证仍是一个运行时问题。这些框架通过其API暴露可分析的图结构,使预部署阶段的安全性验证成为可能,而运行时的防护措施只能反应式检查。本文提出Agentproof系统,该系统自动从四个主要代理框架(LangGraph、CrewAI、AutoGen、Google ADK)中提取统一的抽象图模型,应用六种结构检查并生成见证轨迹,并通过DSL编译到确定性有限自动机来评估时间安全策略,既通过图xDFA产品构造静态验证,又在运行时通过事件轨迹进行验证。与通用模型检查器不同,Agentproof不需要手动建模。在精心编纂的18个作者构建的工作流基准中,27%的基准包含结构缺陷(死胡同节点、不可达出口),55%违反人类门控策略,这些是先前工作所混淆的两类问题。所有15个时间策略定义都适合于七种形式的DSL片段,验证在图达到5000个节点时可以在亚秒内完成。该语料库旨在作为评估静态验证工具的可重复基准,而非作为普及研究;缺陷率反映工具在目标基准上的检测能力,而非生产系统中的基础率。尽管如此,静态图验证通过捕捉运行时工具无法检测到的拓扑级缺陷,补充了运行时防护措施。
英文摘要:
Agent frameworks increasingly encode tool-using behavior as explicit workflow graphs, yet safety enforcement remains a runtime concern. These frameworks expose analyzable graph structure through their APIs, enabling pre-deployment static verification of safety properties that runtime guardrails can only check reactively. This paper presents Agentproof, a system that automatically extracts a unified abstract graph model from four major agent frameworks (LangGraph, CrewAI, AutoGen, Google ADK), applies six structural checks with witness trace generation, and evaluates temporal safety policies via a DSL compiled to deterministic finite automata, both statically through a graph x DFA product construction and at runtime over event traces. Unlike general-purpose model checkers, Agentproof requires no manual modeling. In a curated benchmark of 18 author-constructed workflows, 27% of the benchmark contain structural defects (dead-end nodes, unreachable exits) and 55% violate a human-gate policy when enforced, distinct categories that prior work conflates. All 15 temporal policies defined fit within the seven-form DSL fragment, and verification completes in sub-second time for graphs up to 5,000 nodes. The corpus serves as a reproducible benchmark for evaluating static verification tools rather than as a prevalence study; defect rates reflect tool detection capability on a targeted benchmark, not base rates in production systems. Nonetheless, static graph verification complements runtime guardrails by catching topology-level defects that runtime tools miss unless the offending path is exercised.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。