Society · Protocols

StateLock

Atomic coordination via temporary state fusion

Definition

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

  1. Both Actors sign every write to the fused State subset.
  2. Exclusive over that subset: no third party writes it while the Lock holds.
  3. Temporary: the fusion ends on completion or timeout, never implicitly.

Risks

Failure modes

  1. Deadlock

    both parties wait for each other indefinitely.

  2. Livelock

    lock acquired and released rapidly, denying access to others.

  3. Premature dissolution

    state auto-dissolves while legitimate work is in progress.

Caution

Exclusive state access — misuse enables denial of service via lock starvation.

Relationships

Builds on

Composes with

Infrastructure

Backoff

Delay subsequent attempts after failure or contention

Infrastructure

Cooldown

Mandatory delay between repeated actions

References

Infrastructure

Actor

A capability-bearing entity

Physics

Lock

Mutual exclusion enforcement

Infrastructure

State

System condition at time T

Used by

References

Composes with

Reference

Signature

  • Lock(State)

Identity

Ref
StateLock#c9c2
Sema ID
sema:StateLock#mh:SHA-256:c9c2809bdf97bb6ac17a8ffe428d4aa9a28294b99d64cc8a336a239d26a8afb8
Ring
0
Tier
1
Updated
2026-11-11
Supersedes
  • sema:StateLock#mh:SHA-256:774b674f80993c49b0a348c384397f80027af319faa3440813d9d53b3eaa6a14
  • sema:StateLock#mh:SHA-256:b91b68adbca94d80103e153ae63a987cbd7fb3a29463a5c8e6d88132b85cfa9a
  • sema:StateLock#mh:SHA-256:7cd86a9de68522b752366ef04de32f743b57ef16232866522ccdafb1f35c6da9
  • sema:StateLock#mh:SHA-256:8bde7c49752578e5c76e46d33b995497728f486d69d99ff618b9dbeaa7586c78