VIGIL:AI代理技能中行为规范的运行时执行
VIGIL: Runtime Enforcement of Behavioral Specifications in AI Agent Skills
AI总结:
提出VIGIL框架,通过符号策略语言将自然语言规范转化为SMT约束,实现代理系统跨技能行为策略的运行时监控,检测违规召回率>95%。
摘要:
代理系统越来越多地通过第三方技能行动,允许模型生成的决策影响文件、通信渠道和网络物理设备。这些技能通常包含定义访问权限、披露限制、执行权限和所需前提条件的自然语言规范。尽管此类规范描述了技能行为的预期边界,但它们本身并不提供可执行的运行时执行。执行它们会带来上下文粒度挑战:即使为特定任务上下文编写了策略,监控器仍必须决定观察哪些事件、保留哪些状态、推理到执行中的多远以及在哪里干预。选择错误的粒度可能会阻止良性执行或遗漏仅在多个操作中出现的违规。然而,大多数现有的执行机制假设固定的事件模型或执行点。在这项工作中,我们提出了VIGIL,一个面向代理系统的端到端运行时执行框架。VIGIL根据技能规范中的行为策略、操作员定义的约束以及跨多个技能的全局规则检查代理的实际执行轨迹。为了使此类策略可执行,VIGIL引入了一种策略语言,该语言捕获代理-工具事件上的上下文特定执行要求,包括时间依赖、参数约束和值流条件。该语言与符号评估规则配对,将策略转化为有限轨迹上的SMT约束,使VIGIL能够检测依赖于事件顺序、参数关系或跨调用值流的违规,而不是依赖固定的单调用过滤器。在涵盖办公文档、操作和工程任务的实际LLM代理运行中,VIGIL以超过95%的召回率和低于10%的误报率检测策略违规。
英文摘要:
Agentic systems increasingly act through third-party skills, allowing model-generated decisions to affect files, communication channels, and cyber-physical devices. These skills often include natural-language specifications that define access permissions, disclosure limits, execution privileges, and required preconditions. Although such specifications describe the intended boundaries of skill behavior, they do not by themselves provide executable runtime enforcement. Enforcing them raises a contextual granularity challenge: even when a policy is written for a particular task context, a monitor must still decide which events to observe, what state to retain, how far across the execution to reason, and where to intervene. Choosing the wrong granularity can either block benign executions or miss violations that emerge only across multiple actions. Most existing enforcement mechanisms, however, assume a fixed event model or enforcement point. In this work, we present VIGIL, an end-to-end runtime enforcement framework for agentic systems. VIGIL checks an agent's actual execution trace against behavioral policies from skill specifications, operator-defined constraints, and global rules spanning multiple skills. To make such policies executable, VIGIL introduces a policy language that captures context-specific enforcement requirements over agent-tool events, including temporal dependencies, argument constraints, and value-flow conditions. The language is paired with symbolic evaluation rules that translate policies into SMT constraints over finite traces, allowing VIGIL to detect violations that depend on event order, argument relationships, or cross-call value flow rather than relying on fixed single-call filters. On real LLM-agent runs spanning office-document, operational, and engineering tasks, VIGIL detects policy violations with over 95% recall and a false-positive rate below 10%.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。