TimeWarpLog
Handling relativistic event ordering
Mechanism
Events are not ordered by wall-clock time but by 'causal cones'. An Agent accepts an event from the 'past' if it doesn't contradict its current causal cone. The log's append position is driven by a MonotonicCounter so that once an event is admitted to a cone, no earlier-sequenced event can supersede it. Allows for massive latency tolerance. Utilizes WorldReversible, CausalBarrier.
Invariants
- Immutability: past entries cannot be modified.
- Indexability within retention: Seek(T) returns deterministic State(T) for any T inside `retention_window`.
- Causal consistency: events are accepted only if they do not contradict the current causal cone.
Parameters
- granularity: type=Duration, range=[1ms, 1min], description=Resolution of time travel
- index_strategy: type=Enum, range={Time, Causal, Hybrid}, description=How to organize history
- retention_window: type=Duration, range=[1h, 30d], description=How far back to retain
Preconditions
- Storage supports append-only writes
Postconditions
- System state matches T_target
Failure modes
- User confusion about 'when' things happened.
Caution
Causal cone is only as trustworthy as the identities signing events. Unsigned or weakly-authenticated events can rewrite perceived history.
Where this came from
—
Builds on
- Agent references
- WorldReversible references
- CausalBarrier references
- State references
- System references
- MonotonicCounter references
Used by
- Compensate references
- DocumentedOverride composes_with
- LazyConsensus references
- TraceBelief references
Identity
- Ref:
TimeWarpLog#755f - Hash: sema:TimeWarpLog#mh:SHA-256:755f480a60517d8e99807da674019db06ab0b7b2edabcc806d833947da4446e4
- Library: bootstrap 0.11.0, root a6a3d1ff0f98
- License: Not stated; check the repository