Module replay
Expand description
Replay harness implementing JOURNAL_SPEC §9.2.
replay reads events from a JournalReader (or any iterator),
feeds them through the pure reduce function, and returns the
final PortfolioState with its deterministic hash.
Structs§
- Checkpoint
Data - Pre-loaded checkpoint state used to skip early events during replay.
- Replay
Config - Configuration for a replay run.
- Replay
Result - Result of a successful replay.
Functions§
- load_
checkpoint_ data - Deserialize a [
Checkpoint] snapshot and validate the hash. - replay
- Replay events from an iterator through the reducer.
- replay_
from_ journal - Replay directly from a journal file.
- scan_
last_ checkpoint - Scan a journal file forward and return the last [
Checkpoint] event found.