AI
Event-Sourced Runtimes Lack True Fork Safety: New Framework Separates Replay Guarantees
Researchers formalize when "deterministic replay" and "cheap forking" actually hold in agent systems, finding that many claimed properties depend on unexamined scheduling and execution contexts.
Event-sourced agent runtimes—systems that record every action and replay them to restore state—frequently promise three key features: deterministic replay, efficient forking, and the ability to trace execution lineage. A new paper challenges those claims, arguing that each term masks multiple distinct guarantees that rarely hold together.
The Problem with Broad Assertions#
What vendors call "deterministic replay" often means different things depending on context. Replaying a fixed log might produce identical results, yet reactive components respond to scheduling in ways that break that determinism. Similarly, a recorded oracle result (a cached answer from an earlier external call) can theoretically enable zero-call replay, but the original interaction may have altered costs or modified the world in ways that make the replay semantically invalid. Finally, forking by copying a prefix of the event log cannot undo actions recorded in the suffix—a subtle but critical gap in what "cheap forking" can guarantee.
Formalizing the Contract#
The authors present an executable F# contract that makes these distinctions concrete. The framework separates immutable facts from effect requests (operations that change the world or call external services), renders scheduling explicit rather than implicit, and evaluates whether a cut point in the log satisfies one of four specific replay models: projection-based replay, strict re-execution, external continuation, or an explicitly declared counterfactual observation.
Empirical Findings#
Analysis of 5,540 public runtime logs revealed striking gaps between promise and practice:
- All 317,296 projection cuts met their stated observation goal
- 36,251 cuts split a model request, breaking assumptions needed to continue safely
- 120,969 cuts were classified "Conditional"—the cached oracle result must be served directly without re-execution, or correctness fails
- In 121 observed forks, 16,625 retained-prefix events showed zero structural mismatches, yet none crossed an external-effect boundary, suggesting forks may silently weaken guarantees at the boundary with the real world
Reframing Fork Safety#
The paper reframes "cheap forking" not as a universal property but as a with explicit preconditions tied to the environment and evidence model. This shift means vendors must declare replay guarantees hold conditions—and users can verify those claims against their actual logs, rather than trusting vague marketing language.

