UndoBench:在工具使用型AI智能体中分离任务能力与恢复能力
研究论文 · 2026/10/06
工具使用型AI代理正日益部署于企业软件系统中,但广泛使用的基准主要评估名义任务完成情况,将基线规划能力与操作故障恢复混为一谈。我们提出了UndoBench,一个涵盖8个企业领域、36个基础工作流和36个故障场景的基准,通过相同种子下的反事实配对试验以及线路级效应历史和环境状态预言机,将任务能力与恢复能力解耦。在12个留出的TEST工作流上,使用两个开放权重模型、两个框架和三种恢复范式(5,760次执行/2,880对配对试验)在冻结的丢失确认研究中,名义能力达到83.54%,而条件恢复成功率(CRSR)降至46.72%,朴素重试在53.33%的试验中产生重复外部效应。对商业API模型的扩展重现了这种能力-恢复分离。跨互补执行边界的评估表明恢复是阶段依赖的:在突变前,方法表现相似,在有能力试验中无重复效应;在部分突变期间,朴素重试、每次调用幂等性和零特权日志在评估的复合工作流上崩溃;在提交后但确认前,验证和服务器端幂等性显著提高了安全性。这些发现表明,仅评估名义完成会掩盖自主代理中关键的、阶段依赖的恢复漏洞。
该研究揭示了当前AI代理评估中忽视的关键恢复能力漏洞,提出了新的基准和方法,对企业级部署的可靠性和安全性有重要影响。
Tool-using AI agents are increasingly deployed across enterprise software systems, yet widely used benchmarks primarily evaluate nominal task completion, conflating baseline planning competence with operational fault recovery. We introduce UndoBench, a benchmark spanning 36 base workflows and 36 fault scenarios across 8 enterprise domains, decoupling task competence from recovery capability via counterfactual paired trials under identical seeds alongside wire-level effect-history and environment-state oracles. On 12 held-out TEST workflows across two open-weight models, two frameworks, and three recovery paradigms (5,760 executions / 2,880 paired trials) in the frozen lost-acknowledgment study, nominal competence reached 83.54% while conditional recovery success rate (CRSR) fell to 46.72%, with naive retry producing duplicate external effects in 53.33% of trials. Extensions to commercial API models reproduced this competence-recovery separation. Evaluations across complementary execution boundaries show that recovery is phase-dependent: before mutation, methods perform similarly without duplicate effects among capable trials; during partial mutation, naive retry, per-call idempotency, and zero-privilege journaling collapse on the evaluated composite workflows; after commit but before acknowledgment, verification and server-side idempotency substantially improve safety. These findings demonstrate that evaluating nominal completion alone masks critical, phase-dependent recovery vulnerabilities in autonomous agents.