Daily Tech Briefing
AI 科技速览

每天 5 分钟内学习 AI。获取最新的人工智能新闻,理解其重要性,并学习如何将其应用于您的工作。

AI 快讯
arXiv Machine Learning · 2026/8/4 15:45:31

Resume Means Resume: A Machine-Checked Conformance Contract for Checkpoint, Interrupt, and Resume Semantics in Workflow Persistence Layers

AI 中文解读
这项研究揭示了AI工作流系统一个令人担忧的现状:当程序意外中断后恢复运行时,不同框架对“恢复”的理解竟然大相径庭。研究团队测试了五个主流框架,发现它们不仅行为各异,甚至违背了自己声称的规则——有的重复执行已完成的操作,有的悄悄保存了无效数据却假装成功。更严重的是,在并发场景下,多个进程同时恢复一个中断任务,会导致同一个操作被执行多次,就像多人同时按电梯按钮,电梯却停了好几次。团队开发了一套验证工具,能严格检查系统是否遵循“恢复即恢复”的承诺,并修复了部分框架的缺陷。虽然普通用户不会直接接触这些底层技术,但AI助手、自动化办公工具都依赖这类系统。如果恢复机制不可靠,你在AI平台上的长任务可能因一次崩溃而重复扣费、重复发送邮件,甚至产生数据错乱。这项研究为行业敲响了警钟,也提供了可落地的修复方案,让AI服务更值得信赖。
A framework that persists execution state so a run can be interrupted, survive a crash, and continue must decide what a resume means for effects that already fired. Five widely deployed agent workflow frameworks answer differently, none exposes a machine-checkable contract, and behavior violates even the fragments they state. The RESUME CONTRACT states six properties over the persistence API (prefix continuation, effect exactly-once, fork determinism, checkpoint validity, consume-once, recovery determinism), plus fork-intent and liveness obligations. A TLA+ model checks a reference semantics exhaustively, unchanged at scaled bounds (7.4 million states); a 39-cell fault matrix yields the separating models independence requires, and consume-once splits, its consumption clause independent of all six others. A deterministic, LLM-free harness measures them at pinned releases. LangGraph 1.2.9 durably records a second resume value and never consults it, persists schema-invalid state silently, and re-executes durably recorded work after a real SIGKILL: exactly-once across interrupts, at-least-once across crashes, on one API. CrewAI 1.15.2 re-executes completed effect-bearing methods against its written claim; pydantic-graph 1.x cannot resume after a mid-node crash; no two probed frameworks share a conformance profile. Consume-once holds sequentially and fails under concurrent delivery: k processes resuming one parked interrupt fire the gated effect k times, saturation 1.0 in 36 of 40 cells, and the failure crosses hosts. REMIT, a reference sequencer whose Verus-verified recovery core is line-identical to the shipped executable, repairs the fork and validity cells. The cross-process cell is repaired at the read path, and that repair ships: an opt-in gate claims consumption in the shared store, serving one racer and refusing the rest before any node executes.
分享
阅读原文