# Replay Is a Family of Assertions: Fork-Safety in Event-Sourced Agent Runtimes

DevFeed: [Replay Is a Family of Assertions: Fork-Safety in Event-Sourced Agent Runtimes](<https://devfeed.tech/articles/replay-is-a-family-of-assertions-fork-safety-in-event-sourced-agent-runtimes-120794.md>)

Original publisher: [Read original article](<https://arxiv.org/abs/2611.06924>)

Author: Yohei Nakajima

Published: 2026-11-06T05:00:00Z

Content type: article

Language: en

Sources: [arXiv: Software Engineering](<https://devfeed.tech/sources/arxiv-software-engineering.md>)

Topics: [event-sourcing](<https://devfeed.tech/topics/event-sourcing.md>), [Agent Harness](<https://devfeed.tech/topics/agent-harness.md>), [recording](<https://devfeed.tech/topics/recording.md>)

Tags: [agent-runtimes](<https://devfeed.tech/tags/agent-runtimes.md>), [assertions](<https://devfeed.tech/tags/assertions.md>), [conditional](<https://devfeed.tech/tags/conditional.md>), [cost](<https://devfeed.tech/tags/cost.md>), [cs-pl](<https://devfeed.tech/tags/cs-pl.md>), [cs-se](<https://devfeed.tech/tags/cs-se.md>), [effect](<https://devfeed.tech/tags/effect.md>), [execution](<https://devfeed.tech/tags/execution.md>), [f-sharp](<https://devfeed.tech/tags/f-sharp.md>), [fork](<https://devfeed.tech/tags/fork.md>), [hmac](<https://devfeed.tech/tags/hmac.md>), [logs](<https://devfeed.tech/tags/logs.md>), [oracle](<https://devfeed.tech/tags/oracle.md>), [projection](<https://devfeed.tech/tags/projection.md>), [reactive](<https://devfeed.tech/tags/reactive.md>), [schedule](<https://devfeed.tech/tags/schedule.md>), [settlement](<https://devfeed.tech/tags/settlement.md>)

## AI overview

Replay and fork safety in event-sourced agent runtimes depend on which observation is promised. The paper presents an executable F# contract that separates recorded facts from effect requests and evaluates cuts for projection, strict execution replay, external continuation, or counterfactual-world observation. It shows that reactive settlement may be schedule-sensitive, general settlement may not terminate or converge, and disjoint declared writes do not rule out read or trigger interference. Across 5,540 public runtime logs, all 317,296 projection cuts met the stated observation, but 36,251 split a model request and did not license continuation; 120,969 more were conditional on serving a committed oracle result from the record without re-execution. In 121 observed forks, retained-prefix events had zero structural mismatches, but no fork crossed an external-effect boundary. A separate offline conformance fork crossed a recorded oracle boundary, with a generator checking no second fixture-oracle call and a verifier checking receipt/log consistency and a fork-bound HMAC assertion. The authors frame cheap forking as a property-indexed contract requiring explicit evidence and stated 환경

## Source excerpt

arXiv:2611.06924v1 Announce Type: cross Abstract: Event-sourced agent runtimes commonly claim deterministic replay, cheap forking, and lineage. These are families of assertions, not one guarantee. A fixed-log fold may be deterministic while reactive settlement remains schedule-sensitive; a recorded oracle result can enable zero-call replay while the original interaction still changed cost or world state; and a prefix copy cannot undo an action in a discarded suffix. We present an executable F# contract that separates facts from effect requests, makes scheduling explicit, and assesses a cut relative to projection, strict execution replay, external continuation, or a declared counterfactual-world observation. Preserved counterexamples show that general settlement is neither terminating nor confluent and that disjoint declared writes do not prevent read/trigger interference. Against 5,540 public runtime logs, all 317,296 projection cuts satisfy the stated observation, while 36,251 cuts split a model request and do not license continuation; another 120,969 are Conditional because a committed oracle result must be served from the record without re-execution. In 121 observed forks, 16,625 retained-prefix events have zero structural mismatches, but none crosses an external-effect boundary. A separate public offline conformance fork crosses a committed, recorded oracle boundary. Its generator observes that the inherited result is served without a second fixture-oracle call; its verifier checks receipt/log consistency and a fork-bound HMAC assertion under a public conformance key. The result reframes cheap forking as a property-indexed semantic contract with explicit evidence and environment preconditions.