StateLock
Atomic coordination via temporary state fusion
Mechanism
A coordination pattern where two Actors temporarily 'fuse' a subset of their writable State. During the Lock, changes require a cryptographic signature from both. Contention triggers Backoff and Cooldown.
Invariants
- Both Actors sign every write to the fused State subset.
- Exclusive over that subset: no third party writes it while the Lock holds.
- Temporary: the fusion ends on completion or timeout, never implicitly.
Signature
- Lock(State)
Failure modes
- Deadlock: both parties wait for each other indefinitely.
- Livelock: lock acquired and released rapidly, denying access to others.
- Premature dissolution: state auto-dissolves while legitimate work is in progress.
Caution
Exclusive state access — misuse enables denial of service via lock starvation.
Where this came from
—
Builds on
Used by
- CausalBarrier references
- ContinuousResourceAuction composes_with
- IdempotentWrite references
- MonotonicCounter references
Identity
- Ref:
StateLock#c9c2 - Hash: sema:StateLock#mh:SHA-256:c9c2809bdf97bb6ac17a8ffe428d4aa9a28294b99d64cc8a336a239d26a8afb8
- Library: bootstrap 0.11.0, root a6a3d1ff0f98
- License: Not stated; check the repository