Replay CLI
The replay CLI is an operator-grade verification tool for deterministic state reconstruction. It replays packed node history and outputs:- Resolved state projection
- Canonical hash
What replay validates
Replay verifies that a node pack can be deterministically reconstructed under expected policy context. It is useful when you need to answer:- “Do these nodes still reconstruct cleanly?”
- “Did canonical hash change unexpectedly?”
- “Is this divergence due to data or policy timeline context?”
Basic usage
Replay with policy timeline
Use policy timeline input when validation must reflect policy-at-lamport semantics. File-based timeline:- Bare array of entries
- Wrapped object containing
timeline
Typical operator workflows
Determinism check after incident
- Capture suspect pack artifact
- Replay with expected policy context
- Compare canonical hash with expected baseline
- Investigate mismatch using room/policy history
Migration/cutover validation
- Replay before and after cutover artifacts
- Confirm expected hash behavior under timeline transitions
- Record outputs in change evidence
Promotion workflow verification
In room-family deployments, replay parent artifacts to confirm accepted promotion outcomes remain deterministic.Output interpretation
Replay prints:- Number of replayed nodes
- Resolved key/value state (UTF-8 or hex representation)
- Canonical hash
Common errors and causes
- Invalid base64 input -> artifact corruption or wrong file format
- Pack decode failure -> incompatible or malformed pack payload
- Missing parent errors -> incomplete history set
- Replay policy mismatch -> timeline context not aligned with expected environment
Operational best practices
- Version and retain replay input artifacts for critical environments
- Store canonical hash outputs alongside deployment/change evidence
- Replay with explicit timeline context in policy-governed systems
- Automate replay checks for high-risk migration and restore workflows