{
 "library": "bootstrap",
 "version": "0.11.0",
 "root": "a6a3d1ff0f982ee30430c5b42f3784c8ec901fd68482cfc1bc30899c1e5e48c5",
 "license": null,
 "slug": "StateAudit",
 "ref": "StateAudit#63cf",
 "hash": "sema:StateAudit#mh:SHA-256:63cfd2311667bd0cf3634a23d7c6bb15018d7903ec89e6f5453a827251d7a43c",
 "stub": "63cf",
 "layer": "Infrastructure",
 "type": "Primitives",
 "summary": "Verifying system state after an operation",
 "mechanism": "A safety pattern where an agent performs an explicit Audit#be97 of the State#4f25 immediately after a write to ensure the StateTransition#bdc0 occurred as expected. Catches silent API failures.",
 "invariants": [
  "Audit timestamp is later than the write it verifies.",
  "Compares observed State#4f25 against the StateTransition#bdc0 that was expected, not merely that a write returned."
 ],
 "parameters": {},
 "signature": [],
 "preconditions": [],
 "postconditions": [],
 "failure_modes": [
  "Silent write failure: the write reported success and the State#4f25 did not change. This is the case the pattern exists for.",
  "Audit reads a stale replica, so a successful write looks silently failed."
 ],
 "domain": "",
 "caution": "",
 "sources": [],
 "name": "StateAudit",
 "builds_on": [
  {
   "alias": "audit",
   "relation": "references",
   "library": "bootstrap",
   "slug": "Audit",
   "ref": "Audit#be97",
   "url": "https://semahash.org/vocabularies/bootstrap/patterns/Audit"
  },
  {
   "alias": "state",
   "relation": "references",
   "library": "bootstrap",
   "slug": "State",
   "ref": "State#4f25",
   "url": "https://semahash.org/vocabularies/bootstrap/patterns/State"
  },
  {
   "alias": "state_transition",
   "relation": "references",
   "library": "bootstrap",
   "slug": "StateTransition",
   "ref": "StateTransition#bdc0",
   "url": "https://semahash.org/vocabularies/bootstrap/patterns/StateTransition"
  }
 ],
 "related": [],
 "used_by": [
  {
   "slug": "SpotAudit",
   "relation": "references",
   "url": "https://semahash.org/vocabularies/bootstrap/patterns/SpotAudit"
  }
 ],
 "url": "https://semahash.org/vocabularies/bootstrap/patterns/StateAudit",
 "md_url": "https://semahash.org/vocabularies/bootstrap/patterns/StateAudit.md",
 "library_url": "https://semahash.org/vocabularies/bootstrap"
}
