{
 "library": "bootstrap",
 "version": "0.11.0",
 "root": "a6a3d1ff0f982ee30430c5b42f3784c8ec901fd68482cfc1bc30899c1e5e48c5",
 "license": null,
 "slug": "SpotAudit",
 "ref": "SpotAudit#d3a9",
 "hash": "sema:SpotAudit#mh:SHA-256:d3a9df6a57f06278d581310ad3f0cb57941311ced0fb7360a5041e9093231b8a",
 "stub": "d3a9",
 "layer": "Infrastructure",
 "type": "Verification",
 "summary": "Random sampling of internal state",
 "mechanism": "A probabilistic audit where a verifier requests a random sample of an agent's internal memory or logs. The agent must provide a Merkle proof for that specific slice. Keeps agents honest without full audits. Utilizes StateAudit#63cf.",
 "invariants": [
  "The Audit#be97 target is unpredictable to the auditee before selection.",
  "Proof is returned within `response_deadline`."
 ],
 "parameters": [
  {
   "name": "response_deadline",
   "type": "Duration",
   "range": "unspecified",
   "description": "How long the auditee has to return a proof. Referenced by the second invariant, which previously named a T_max nothing defined."
  },
  {
   "name": "sample_size",
   "type": "Integer",
   "range": "[1, 1000]",
   "description": "Slices requested per audit."
  }
 ],
 "signature": [],
 "preconditions": [
  "Auditor has authority key"
 ],
 "postconditions": [
  "Audit#be97 result published to ledger"
 ],
 "failure_modes": [
  "Privacy leakage from the sample."
 ],
 "domain": "",
 "caution": "",
 "sources": [],
 "name": "SpotAudit",
 "builds_on": [
  {
   "alias": "audit",
   "relation": "references",
   "library": "bootstrap",
   "slug": "Audit",
   "ref": "Audit#be97",
   "url": "https://semahash.org/vocabularies/bootstrap/patterns/Audit"
  },
  {
   "alias": "state_audit",
   "relation": "references",
   "library": "bootstrap",
   "slug": "StateAudit",
   "ref": "StateAudit#63cf",
   "url": "https://semahash.org/vocabularies/bootstrap/patterns/StateAudit"
  }
 ],
 "related": [],
 "used_by": [
  {
   "slug": "OathBind",
   "relation": "references",
   "url": "https://semahash.org/vocabularies/bootstrap/patterns/OathBind"
  },
  {
   "slug": "PromiseGraph",
   "relation": "references",
   "url": "https://semahash.org/vocabularies/bootstrap/patterns/PromiseGraph"
  }
 ],
 "url": "https://semahash.org/vocabularies/bootstrap/patterns/SpotAudit",
 "md_url": "https://semahash.org/vocabularies/bootstrap/patterns/SpotAudit.md",
 "library_url": "https://semahash.org/vocabularies/bootstrap"
}
