解决工具代理失败后恢复时的语义有效性难题
DART: Semantic Recoverability for Structured Tool Agents

- 提出可验证的语义可恢复性机制,判断局部恢复是否合法
- 在3个LLM场景中实现100%正确恢复,基线方法全失败
- 适合高可靠性要求的智能体系统,如金融、医疗应用
当结构化工具代理在执行过程中失败时,运行时面临两难:重播整个任务安全但低效;从本地检查点恢复高效但可能导致已提交的下游工作与不存在的上游历史绑定。这一矛盾在承诺敏感场景中尤为突出,即回滚仅针对单个失败实例,而下游消费者已基于其输出采取行动。现有恢复方法仅提供机械回滚,缺乏判断局部恢复后语义是否仍有效的标准。本文将此缺口形式化为语义可恢复性,并提出DART——一个模块化运行时。DART能定位失败实例,认证该实例的语义可恢复边界,对齐检查点至这些边界,并选择满足依赖和效果约束的可接受恢复点,以保留已提交的下游工作,或直接阻止不安全回滚。在三个基于LLM的领域及基于LangGraph的外部验证中,DART成功恢复了所有基线方法失败的承诺敏感案例;五域安全审计未发现任何不安全的允许回滚。结果表明,控制器合法性不等于语义有效性,可靠的局部恢复需显式可接受性检查。
原文摘要 · Abstract (English)
When a structured tool agent fails mid-execution, the runtime faces a dilemma: replaying the entire task is safe but wasteful, while restoring from a local checkpoint is efficient but can leave committed downstream work tied to an upstream history that no longer exists. This tension is acute in commitment-sensitive settings, where rollback targets a single failed instance yet downstream consumers have already acted on its output. Existing recovery approaches provide mechanical rollback but no criterion for whether a local restore remains semantically valid after downstream commitment. We formalize this gap as semantic recoverability and address it in DART, a modular runtime that localizes the failed instance, certifies semantically recoverable boundaries of that instance, aligns checkpoints to those boundaries, and selects an admissible restore point that preserves committed downstream work under dependency and effect constraints-or blocks otherwise. Across three LLM-driven domains and external validation on a LangGraph-based substrate, DART correctly recovers all evaluated commitment-sensitive cases where baseline local recovery fails, and a five-domain safety audit finds no unsafe admitted rollbacks. These results show that controller legality does not imply semantic validity, and that sound local recovery requires an explicit admissibility check.
Thank you to arXiv for use of its open access interoperability. PaperDance 不是 arXiv 官方产品;中文卡片由大模型生成,请以原文为准。