{
 "library": "bootstrap",
 "version": "0.11.0",
 "root": "a6a3d1ff0f982ee30430c5b42f3784c8ec901fd68482cfc1bc30899c1e5e48c5",
 "license": null,
 "slug": "StateLock",
 "ref": "StateLock#c9c2",
 "hash": "sema:StateLock#mh:SHA-256:c9c2809bdf97bb6ac17a8ffe428d4aa9a28294b99d64cc8a336a239d26a8afb8",
 "stub": "c9c2",
 "layer": "Society",
 "type": "Protocols",
 "summary": "Atomic coordination via temporary state fusion",
 "mechanism": "A coordination pattern where two Actor#86fcs temporarily 'fuse' a subset of their writable State#4f25. During the Lock#95c2, changes require a cryptographic signature from both. Contention triggers Backoff#9e59 and Cooldown#c288.",
 "invariants": [
  "Both Actor#86fcs sign every write to the fused State#4f25 subset.",
  "Exclusive over that subset: no third party writes it while the Lock#95c2 holds.",
  "Temporary: the fusion ends on completion or timeout, never implicitly."
 ],
 "parameters": {},
 "signature": [
  "Lock(State)"
 ],
 "preconditions": [],
 "postconditions": [],
 "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."
 ],
 "domain": "",
 "caution": "Exclusive state access — misuse enables denial of service via lock starvation.",
 "sources": [],
 "name": "StateLock",
 "builds_on": [
  {
   "alias": "backoff",
   "relation": "composes_with",
   "library": "bootstrap",
   "slug": "Backoff",
   "ref": "Backoff#9e59",
   "url": "https://semahash.org/vocabularies/bootstrap/patterns/Backoff"
  },
  {
   "alias": "cooldown",
   "relation": "composes_with",
   "library": "bootstrap",
   "slug": "Cooldown",
   "ref": "Cooldown#c288",
   "url": "https://semahash.org/vocabularies/bootstrap/patterns/Cooldown"
  },
  {
   "alias": "actor",
   "relation": "references",
   "library": "bootstrap",
   "slug": "Actor",
   "ref": "Actor#86fc",
   "url": "https://semahash.org/vocabularies/bootstrap/patterns/Actor"
  },
  {
   "alias": "state",
   "relation": "references",
   "library": "bootstrap",
   "slug": "State",
   "ref": "State#4f25",
   "url": "https://semahash.org/vocabularies/bootstrap/patterns/State"
  },
  {
   "alias": "lock",
   "relation": "references",
   "library": "bootstrap",
   "slug": "Lock",
   "ref": "Lock#95c2",
   "url": "https://semahash.org/vocabularies/bootstrap/patterns/Lock"
  }
 ],
 "related": [],
 "used_by": [
  {
   "slug": "CausalBarrier",
   "relation": "references",
   "url": "https://semahash.org/vocabularies/bootstrap/patterns/CausalBarrier"
  },
  {
   "slug": "ContinuousResourceAuction",
   "relation": "composes_with",
   "url": "https://semahash.org/vocabularies/bootstrap/patterns/ContinuousResourceAuction"
  },
  {
   "slug": "IdempotentWrite",
   "relation": "references",
   "url": "https://semahash.org/vocabularies/bootstrap/patterns/IdempotentWrite"
  },
  {
   "slug": "MonotonicCounter",
   "relation": "references",
   "url": "https://semahash.org/vocabularies/bootstrap/patterns/MonotonicCounter"
  }
 ],
 "url": "https://semahash.org/vocabularies/bootstrap/patterns/StateLock",
 "md_url": "https://semahash.org/vocabularies/bootstrap/patterns/StateLock.md",
 "library_url": "https://semahash.org/vocabularies/bootstrap"
}
