Agent 与自动化 4.0 · 优秀 2026-08-04 · 论文

Resume Means Resume: A Machine-Checked Conformance Contract for Checkpoint, Interrupt, and Resum...

论文指出 agent workflow 框架对 checkpointinterruptresume 的语义并不一致,且很少给出机器可检查契约作者提出 RESUME CONTRACT,用 prefix continuationeffect exactly-oncefork determinismcheckpoint validityconsume-oncerecovery determinism 等性质约束持久化 API,并用 TLA+ 与 LLM-free harness 检查多个框架它把长任务恢复从体验问题提升为可验证的副作用语义问题

打开原文回到归档

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

  • ID: 697f2ce6
  • Original URL: https://arxiv.org/abs/2608.03836
  • PDF: https://arxiv.org/pdf/2608.03836v1
  • Author(s): Sajjad Khan
  • Date: 2026-08-04
  • Category: agents
  • Source type: paper
  • Tags: workflow-persistence, checkpointing, resume-semantics, agent-frameworks, tla-plus
  • Quality score: 4/5
  • Fetched at: 2026-08-06T15:43:42+00:00
  • Obsidian evidence: OpenClaw定时任务/论文流水线/2026-08-06-论文流水线.md

中文导读

论文指出 agent workflow 框架对 checkpoint、interrupt、resume 的语义并不一致,且很少给出机器可检查契约。作者提出 RESUME CONTRACT,用 prefix continuation、effect exactly-once、fork determinism、checkpoint validity、consume-once、recovery determinism 等性质约束持久化 API,并用 TLA+ 与 LLM-free harness 检查多个框架。它把“长任务恢复”从体验问题提升为可验证的副作用语义问题。

为什么值得关注

高度贴合 Hermes cron、长期 agent workflow 与中断恢复的工程边界。

English Summary

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.

原文摘要 / Source Excerpt

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

Abstract

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.