arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2610.19818cs.AI
收藏

并非所有监控都适用:面向智能体AI的与形式主义无关的运行时验证

One Monitor Does Not Fit All: Formalism-Agnostic Runtime Verification for Agentic AI

University of Modena and Reggio Emilia(摩德纳和雷焦艾米利亚大学)

Angelo Ferrando

AI总结:

针对智能体AI系统,提出与监控形式主义无关的AgenticRV运行时验证架构,结合多监控器实现安全控制,支持多框架,实验验证其有效性与复用性。

摘要:

智能体AI系统结合了模型决策、可变状态、工具调用以及对外部智能体的委托,监控它们需要来自不同执行边界的观测,而预防则需要在操作产生效果前进行控制。我们提出了AgenticRV,一种运行时验证架构,它将这些边界与监控形式主义分离开来:适配器发出规范事件,每个监控器接收其自身的投影和抽象,决策策略使用归一化的判定结果来选择由负责适配器支持的反应。我们形式化了观测何时足够、监控器替换可保留决策,以及阻塞可防止不安全效果;还区分了被拒绝的尝试与已完成的效果,避免了“被阻塞的请求必须使每个监控器永久处于违规状态”的假设。该Python实现支持LangGraph、MCP和A2A。一项受控的LangGraph实验结合了外部Reelay时间监控器与程序化报告监控器,消融实验表明所选需求需要这两者;差异检查和跨适配器测试提供了进一步的集成证据;一个大语言模型驱动的事件响应示例展示了相同的执行路径,现有微基准测试则隔离了框架开销。结果支持在明确的控制边界处复用监控方法,前提是满足所述的观测和部署假设。

英文摘要:

Agentic AI systems combine model decisions, mutable state, tool calls, and delegation to external agents. Monitoring them requires observations from different execution boundaries, while prevention requires control before an operation produces its effect. We present AgenticRV, a runtime-verification architecture that separates these boundaries from the monitoring formalism. Adapters emit canonical events; each monitor receives its own projection and abstraction; and a decision policy uses normalised verdicts to select a reaction supported by the responsible adapter. We formalise when observations suffice, monitor replacement preserves decisions, and blocking prevents unsafe effects. We also distinguish rejected attempts from completed effects, avoiding the assumption that a blocked request must leave every monitor in a permanent violation state. The Python implementation supports LangGraph, MCP, and A2A. A controlled LangGraph experiment combines an external Reelay temporal monitor with a programmatic report monitor; ablations show why both are needed for the selected requirements. Differential checks and cross-adapter tests provide further integration evidence. An LLM-driven incident-response example illustrates the same enforcement path, while existing microbenchmarks isolate framework costs. The results support reuse of monitoring methods at explicit control boundaries, subject to the stated observation and deployment assumptions.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑