[论文解读] A Trace-Based Assurance Framework for Agentic AI Orchestration: Contracts, Testing, and Governance
本文提出一种基于轨迹的代理式 AI 系统保障框架,引入 Message-Action Traces (MAT)、可机器校验的契约、带有有界扰动的压力测试、故障注入,以及在语言到行动边界的运行时治理。
In Agentic AI, Large Language Models (LLMs) are increasingly used in the orchestration layer to coordinate multiple agents and to interact with external services, retrieval components, and shared memory. In this setting, failures are not limited to incorrect final outputs. They also arise from long-horizon interaction, stochastic decisions, and external side effects (such as API calls, database writes, and message sends). Common failures include non-termination, role drift, propagation of unsupported claims, and attacks via untrusted context or external channels. This paper presents an assurance framework for such Agentic AI systems. Executions are instrumented as Message-Action Traces (MAT) with explicit step and trace contracts. Contracts provide machine-checkable verdicts, localize the first violating step, and support deterministic replay. The framework includes stress testing, formulated as a budgeted counterexample search over bounded perturbations. It also supports structured fault injection at service, retrieval, and memory boundaries to assess containment under realistic operational faults and degraded conditions. Finally, governance is treated as a runtime component, enforcing per-agent capability limits and action mediation (allow, rewrite, block) at the language-to-action boundary. To support comparative evaluations across stochastic seeds, models, and orchestration configurations, the paper defines trace-based metrics for task success, termination reliability, contract compliance, factuality indicators, containment rate, and governance outcome distributions. More broadly, the framework is intended as a common abstraction to support testing and evaluation of multi-agent LLM systems, and to facilitate reproducible comparison across orchestration designs and configurations.
研究动机与目标
- 定义多代理 AI 编排的系统模型和故障分类。
- 引入 Message-Action Traces (MAT) 及具有逐步和轨迹契约的运行时验证。
- 将压力测试开发为预算内的对照例搜索,以暴露契约违规。
- 在服务、检索和内存接口中注入结构化故障以测试 containment(容纳性)。
- 提出治理机制,对每个代理的能力集合进行约束,并在接口边界介入行动的治理。
提出的方法
- 将执行表示为携带来源信息与契约裁定的 Message-Action Traces (MAT)。
- 在 MAT 记录上定义逐步契约,在前缀上定义轨迹契约以检测违规。
- 将对抗性压力测试表述为在预算内的扰动搜索,以触发契约违规(最小化扰动成本)。
- 在外部接口(服务、检索、内存)注入结构化故障,并在现实故障下评估 containment。
- 实施运行时治理,设定逐个代理的能力集与策略盾(允许、改写、阻止)来介入工具调用。

实验结果
研究问题
- RQ1如何将多代理 LLM 的执行建模为带契约的基于轨迹的运行时验证系统?
- RQ2在代理工作流中需要哪些契约与来源信息以检测终止性、安全性与事实性违规?
- RQ3基于扰动的压力测试如何在成本预算内发现契约违规?
- RQ4在语言到行动边界的治理如何量化与执行,以约束代理的自治性?
主要发现
- 提出并形式化了一个将契约、压力测试、故障注入与治理结合在一起的面向代理式 AI 系统的统一框架。
- MAT 记录使得定位首次违规步骤并进行回放以用于调试和回归测试成为可能。
- 预算化扰动搜索能够识别在最小成本下违反轨迹契约的调度,从而暴露并调试失效。
- 跨接口的结构化故障注入在现实工作故障下评估 containment。
- 治理机制提供可衡量的结果,如契约遵守和跨运行的 containment 率(在轨迹上定义的度量)。

阅读本论文
在 Nubint 阅读器中打开原文,边读边就任意段落提问。
在 Nubint 中阅读本论文本解读由 AI 根据论文原文生成,引用前请核对原文。