{
 "library": "bootstrap",
 "version": "0.11.0",
 "root": "a6a3d1ff0f982ee30430c5b42f3784c8ec901fd68482cfc1bc30899c1e5e48c5",
 "license": null,
 "slug": "TimeWarpLog",
 "ref": "TimeWarpLog#755f",
 "hash": "sema:TimeWarpLog#mh:SHA-256:755f480a60517d8e99807da674019db06ab0b7b2edabcc806d833947da4446e4",
 "stub": "755f",
 "layer": "Infrastructure",
 "type": "Primitives",
 "summary": "Handling relativistic event ordering",
 "mechanism": "Events are not ordered by wall-clock time but by 'causal cones'. An Agent#e127 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#d0d3 so that once an event is admitted to a cone, no earlier-sequenced event can supersede it. Allows for massive latency tolerance. Utilizes WorldReversible#462e, CausalBarrier#cf54.",
 "invariants": [
  "Immutability: past entries cannot be modified.",
  "Indexability within retention: Seek(T) returns deterministic State#4f25(T) for any T inside `retention_window`.",
  "Causal consistency: events are accepted only if they do not contradict the current causal cone."
 ],
 "parameters": [
  {
   "name": "granularity",
   "type": "Duration",
   "range": "[1ms, 1min]",
   "description": "Resolution of time travel"
  },
  {
   "name": "index_strategy",
   "type": "Enum",
   "range": "{Time, Causal, Hybrid}",
   "description": "How to organize history"
  },
  {
   "name": "retention_window",
   "type": "Duration",
   "range": "[1h, 30d]",
   "description": "How far back to retain"
  }
 ],
 "signature": [],
 "preconditions": [
  "Storage supports append-only writes"
 ],
 "postconditions": [
  "System#f8eb state matches T_target"
 ],
 "failure_modes": [
  "User confusion about 'when' things happened."
 ],
 "domain": "",
 "caution": "Causal cone is only as trustworthy as the identities signing events. Unsigned or weakly-authenticated events can rewrite perceived history.",
 "sources": [],
 "name": "TimeWarpLog",
 "builds_on": [
  {
   "alias": "agent",
   "relation": "references",
   "library": "bootstrap",
   "slug": "Agent",
   "ref": "Agent#e127",
   "url": "https://semahash.org/vocabularies/bootstrap/patterns/Agent"
  },
  {
   "alias": "world_reversible",
   "relation": "references",
   "library": "bootstrap",
   "slug": "WorldReversible",
   "ref": "WorldReversible#462e",
   "url": "https://semahash.org/vocabularies/bootstrap/patterns/WorldReversible"
  },
  {
   "alias": "causal_barrier",
   "relation": "references",
   "library": "bootstrap",
   "slug": "CausalBarrier",
   "ref": "CausalBarrier#cf54",
   "url": "https://semahash.org/vocabularies/bootstrap/patterns/CausalBarrier"
  },
  {
   "alias": "state",
   "relation": "references",
   "library": "bootstrap",
   "slug": "State",
   "ref": "State#4f25",
   "url": "https://semahash.org/vocabularies/bootstrap/patterns/State"
  },
  {
   "alias": "system",
   "relation": "references",
   "library": "bootstrap",
   "slug": "System",
   "ref": "System#f8eb",
   "url": "https://semahash.org/vocabularies/bootstrap/patterns/System"
  },
  {
   "alias": "monotonic_counter",
   "relation": "references",
   "library": "bootstrap",
   "slug": "MonotonicCounter",
   "ref": "MonotonicCounter#d0d3",
   "url": "https://semahash.org/vocabularies/bootstrap/patterns/MonotonicCounter"
  }
 ],
 "related": [],
 "used_by": [
  {
   "slug": "Compensate",
   "relation": "references",
   "url": "https://semahash.org/vocabularies/bootstrap/patterns/Compensate"
  },
  {
   "slug": "DocumentedOverride",
   "relation": "composes_with",
   "url": "https://semahash.org/vocabularies/bootstrap/patterns/DocumentedOverride"
  },
  {
   "slug": "LazyConsensus",
   "relation": "references",
   "url": "https://semahash.org/vocabularies/bootstrap/patterns/LazyConsensus"
  },
  {
   "slug": "TraceBelief",
   "relation": "references",
   "url": "https://semahash.org/vocabularies/bootstrap/patterns/TraceBelief"
  }
 ],
 "url": "https://semahash.org/vocabularies/bootstrap/patterns/TimeWarpLog",
 "md_url": "https://semahash.org/vocabularies/bootstrap/patterns/TimeWarpLog.md",
 "library_url": "https://semahash.org/vocabularies/bootstrap"
}
