DART:结构化工具代理的语义可恢复性
DART: Semantic Recoverability for Structured Tool Agents
AI总结:
针对结构化工具代理执行失败时局部恢复可能破坏下游已提交工作的语义一致性问题,提出DART运行时系统,通过形式化语义可恢复性并实施可接受性检查,在依赖和效果约束下选择安全的恢复点。
摘要:
当结构化工具代理在执行过程中失败时,运行时面临两难:重放整个任务安全但浪费资源,而从本地检查点恢复高效但可能使已提交的下游工作与不再存在的上游历史相关联。这种紧张关系在承诺敏感场景中尤为突出,其中回滚目标是一个失败的实例,但下游消费者已经对其输出采取了行动。现有的恢复方法提供机械回滚,但没有标准来判断本地恢复在下游提交后是否保持语义有效。我们将这一差距形式化为语义可恢复性,并在DART中解决它,DART是一个模块化运行时,它定位失败实例,认证该实例的语义可恢复边界,将检查点对齐到这些边界,并选择一个可接受的恢复点,该恢复点在依赖和效果约束下保留已提交的下游工作——否则阻止恢复。在三个LLM驱动的领域以及基于LangGraph的基板上的外部验证中,DART正确恢复了所有评估的承诺敏感案例,而基线局部恢复失败,并且一个五领域安全审计未发现不安全的允许回滚。这些结果表明,控制器的合法性并不意味着语义有效性,而合理的局部恢复需要明确的可接受性检查。
英文摘要:
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.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。