Skip to main content

Module replay_cursor

Module replay_cursor 

Source
Expand description

Replay cursor engine: reconstruct state from the event log without live side effects.

The replay loop is: Load checkpoint โ†’ Replay events โ†’ Inject recorded outputs โ†’ Reconstruct state. This engine holds only the event store, optional snapshot store, and reducer. It has no executor or step function, so live tool execution is hard-disabled during replay. Recorded action outputs (ActionSucceeded/ActionFailed) are already in the log and applied by the reducer.

Structsยง

ReplayCursor
Replay cursor: reconstructs state from the event log. No executor, no live execution.
ReplayStepIter
Iterator that yields (state_after_event, sequenced_event) when replaying step-by-step.