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

基于跟踪的代理AI编排保证框架:合同、测试与治理

A Trace-Based Assurance Framework for Agentic AI Orchestration: Contracts, Testing, and Governance

University of Bucharest Romania;University of Bucharest \& Institute for Logic

Ciprian Paduraru, Petru-Liviu Bouruc, Alin Stefanescu

AI总结:

本文提出一种基于跟踪的代理AI编排保证框架,通过显式步骤和跟踪合同进行执行仪器化,支持机器可验证的判定和确定性回放,同时提供压力测试和结构化故障注入以评估在现实故障和退化条件下的容错能力。

摘要:

在代理AI中,大型语言模型(LLMs)越来越多地用于编排层以协调多个代理并与外部服务、检索组件和共享内存交互。在此设置中,失败不仅限于不正确的最终输出,还源于长周期交互、随机决策和外部副作用(如API调用、数据库写入和消息发送)。常见失败包括非终止、角色漂移、 unsupported claims的传播以及通过不可信上下文或外部通道的攻击。本文提出了一种保证框架,用于此类代理AI系统。执行被仪器化为消息-动作跟踪(MAT),并具有显式步骤和跟踪合同。合同提供机器可验证的判定,定位第一个违反步骤,并支持确定性回放。该框架包括压力测试,其形式化为在受限制扰动下的预算化反例搜索。它还支持在服务、检索和内存边界处的结构化故障注入,以评估在现实操作故障和退化条件下的容错能力。最后,治理被视为一个运行时组件,强制执行每个代理的能力限制和动作调解(允许、重写、阻止)在语言到动作边界。为了支持在随机种子、模型和编排配置之间的比较评估,本文定义了基于跟踪的指标,用于任务成功、终止可靠性、合同合规性、事实性指标、容错率和治理结果分布。更广泛地说,该框架旨在作为通用抽象,以支持多代理LLM系统的测试和评估,并促进在编排设计和配置之间的可重复比较。

英文摘要:

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分析而来,可能存在错误,请以论文正文为准。

↑