← Lab /Software

Exact algorithm decides safety of agent checkpoint, fork, restore, and merge edits

The authors assert they can precisely determine whether any execution edit is safe and enumerate all safe continuations

Software arXiv 24 Aug 2026 Method Prototype evidence

Published as “When Can Agents Safely Checkpoint, Fork, Restore, and Merge? Exact Checking for Execution Edits”

Why it matters

Enables runtimes to safely allow agents to edit executions without risking policy violations or lost required results, a prerequisite for reliable autonomous tool-using agents.

Summary

The paper presents an exact checker that decides whether a checkpoint, fork, restore, or merge edit is safe, returning every safe continuation or a proof that none exists; the authors formalize the safety model, mechanize it in Lean, and validate the checker with 19 synthetic tests covering 2-128 results.

What they found 1

  1. The algorithm decides exact safety of an edit and either returns all safe continuations or a proof that none exist.

    “We give an algorithm that decides exactly whether an edit is safe. It returns all safe ways to continue, or proves that none exists.”

Caveats 1

  • The empirical evaluation is limited to 19 synthetic tests (2-128 results), which may not reflect performance or safety in large-scale real-world deployments.

What’s new here 4

  • Derives the complete safety condition from the immutable execution record rather than from the Agent's description.
  • Provides an exact checker that enumerates all safe ways to proceed or produces a verifiable proof of impossibility.
  • Supports all six forms of execution edits (checkpoint, fork, restore, merge variants) with atomic rule enforcement.
  • Fully mechanized in Lean with executable tests, offering a formally verified runtime protocol.