CausalBarrier
Enforcing strict event ordering
Mechanism
A middleware layer that buffers incoming messages and releases them to the agent ONLY when all their causal dependencies are met. Guarantees the agent never sees an 'impossible' state. It maintains a StateLock on the event processing queue, releasing it only when all causal predecessors have been observed.
Invariants
- Causal Ordering: Event E cannot be processed until all Dependencies(E) are processed
- Events before barrier cannot affect events after.
- No Impossible States: Agent state never violates causal consistency
Parameters
- on_undeliverable: type=Enum, range={block, drop, escalate}, description=What happens to a buffered message whose dependencies never arrive. The barrier never releases it out of order — that would breach causal ordering — so the choice is how long to hold it and what to do instead.
- party_count: type=Integer, range=[2, 100], description=Participants tracked
- timeout: type=Duration, range=[1s, 1h], description=How long a message waits before on_undeliverable applies
Failure modes
- Buffer overflow if dependencies never arrive.
Where this came from
—
Builds on
Used by
- TimeWarpLog references
Identity
- Ref:
CausalBarrier#cf54 - Hash: sema:CausalBarrier#mh:SHA-256:cf54b35c9236d8fd2db3ca4f35ab5bdaac79c17052d9095aaa5fa6f143507809
- Library: bootstrap 0.11.0, root a6a3d1ff0f98
- License: Not stated; check the repository