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

多智能体工作流的变异测试

Mutation Testing for Multi-Agent Workflows

Carleton University(卡尔顿大学);Cisco Systems(思科系统)

Nafiseh Kahani, Mojtaba Bagherzadeh

AI总结:

本文将变异分析适配至多智能体工作流场景,提出四类共14个变异算子及三个杀死准则,通过OpenAI Agents SDK在10个工作流上评估发现任务成功式套件仅能捕获约一半权限违规。

摘要:

多智能体大语言模型(LLM)系统由显式工作流、智能体、工具、工具访问规则及委托路径定义。然而,大多数评估仅报告端到端任务成功情况,而非测试套件能否检测该协调结构中的故障,例如委托被移除、限制被静默移除、工具边路由错误或工具实现故障。我们将变异分析适配至该场景:四个类别共14个算子(委托、允许工具、限制、智能体/指令)对标准化工作流清单进行扰动,三个杀死准则用于评估套件是否能检测到变更,即针对观测到的协调结构的K-Struct、针对任务判定或步骤序列的KOutcome、针对禁止工具调用的K-Safety。每个准则通过OpenAI Agents SDK对原始工作流和变异体执行每个套件,设置k=3次重复并采用多数投票。在10个源自OpenAI Agents SDK的工作流(含49个可达智能体、47个工具、403项义务)上,评估共执行29601次智能体运行,涉及1084个变异体。我们仅将T-Struct作为全义务参考点(在三个准则下MSstrict=1.000),并测量基线套件的遗漏程度:表现最佳的套件(T-Dev*)在K-Struct下达到0.717,在K-Safety下仅为0.559。限制移除(RES-REM)是基线最难检测的故障(检测率0.19至0.28,而全义务参考点为1.000)。执行套件还可评估保留义务的算子(TOOL-FAULT、AG-SWAP、AG-PROMPTDROP),仅基于清单的预言机无法观测到这些变更。在该场景下,任务成功式套件仅能捕获约一半的权限违规。

英文摘要:

Multi-agent large language model (LLM) systems are defined by explicit workflows, agents, tools, tool-access rules, and delegation paths. Most evaluations, however, report end-to-end task success rather than whether a test suite can detect faults in this coordination structure, such as a removed delegation, a silently removed restriction, a misrouted tool edge, or a faulty tool implementation. We adapt mutation analysis to this setting, fourteen operators in four families (delegation, allowed-tool, restriction, agent/instruction) perturb a normalized workflow manifest, and three kill criteria score whether a suite catches the change, namely K-Struct on the observed coordination, KOutcome on the task verdict or step sequence, and K-Safety on a forbidden tool call. Every criterion is evaluated by executing each suite against the original and the mutant through the OpenAI Agents SDK, with k=3 repeats and a majority vote. On ten OpenAI Agents SDK-derived workflows (49 reachable agents, 47 tools, 403 obligations), the evaluation executes 29,601 agent runs over a pool of 1,084 mutants. We use T-Struct only as a full-obligation reference point (MSstrict=1.000 under all three criteria) and measure how much the baseline suites miss, the bestperforming one (T-Dev*) reaches 0.717 (K-Struct) and only 0.559 (K-Safety). Restriction-removal (RES-REM) is the least detected fault for the baselines (0.19 to 0.28 vs 1.000). Executing the suites also allows the obligation-preserving operators (TOOL-FAULT, AG-SWAP, AG-PROMPTDROP) to be evaluated. A manifest-only oracle would not witness these changes. In this setting, tasksuccess- style suites catch only about half of permission violations.

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

↑