LazyConsensus
Optimistic execution, retroactive verification
Mechanism
Agents execute transactions immediately without waiting for global consensus, assuming everything is valid. If a conflict is detected later, they use a deterministic rollback rule (e.g., 'highest ID wins'). Maximizes speed over safety. It bypasses the blocking Quorum, executing immediately and using the TimeWarpLog to resolve conflicts retroactively.
Invariants
- Conflict resolution is pure: the same inputs always pick the same winner.
- Reverting a transaction cannot corrupt unrelated state.
- Applies only to reversible or low-stakes actions.
- Conflicts are actively detected, not merely handled if noticed.
Preconditions
- Target operations are internally reversible (no irreversible external side-effects)
- Conflict detection mechanism is active
Postconditions
- Transaction applied optimistically
- Conflict resolution triggered if divergence detected
Failure modes
- Cascading rollbacks.
- Applied to irreversible external action (email sent, funds transferred, API called)—rollback impossible, inconsistency permanent.
Where this came from
—
Builds on
- Quorum references
- TimeWarpLog references
Used by
- AtomicBid references
Identity
- Ref:
LazyConsensus#76f5 - Hash: sema:LazyConsensus#mh:SHA-256:76f5f9d3c8e5301625d4732cc79aaacf4174d411ff1fd81c0fe67f8f78382789
- Library: bootstrap 0.11.0, root a6a3d1ff0f98
- License: Not stated; check the repository