{
 "library": "bootstrap",
 "version": "0.11.0",
 "root": "a6a3d1ff0f982ee30430c5b42f3784c8ec901fd68482cfc1bc30899c1e5e48c5",
 "license": null,
 "slug": "GracefulDegradation",
 "ref": "GracefulDegradation#6633",
 "hash": "sema:GracefulDegradation#mh:SHA-256:6633433b9b713c199d43b085ec6e07183544183c507e5c9673aafa0518135df9",
 "stub": "6633",
 "layer": "Society",
 "type": "Protocols",
 "summary": "When verification fails, fall back to inline definition",
 "mechanism": "Resolution Fallback Strategy#3dc5. When a Pattern_ID is not found in local storage, the system attempts to resolve it via secondary channels (Inline Payload -> Network Request) rather than halting immediately. Crucially, any definition acquired this way must be cryptographically verified against the requested Pattern_ID. It defaults to FailClosed#dfbc if verification fails, but attempts to parse verified inline definitions to maintain continuity.",
 "invariants": [
  "A definition enters local storage only if it validates fully.",
  "An externally acquired definition is hashed and verified against the requested ID before loading.",
  "Rejects definitions larger than `max_def_size`.",
  "Expands inline definitions no deeper than `max_recursion_depth`.",
  "Defaults to FailClosed#dfbc when verification fails."
 ],
 "parameters": [
  {
   "name": "max_def_size",
   "type": "PositiveInteger",
   "range": "unspecified",
   "description": "Largest inline definition accepted, in bytes. Deliberately uncapped; default 100KB."
  },
  {
   "name": "max_recursion_depth",
   "type": "Integer",
   "range": "[1, 5]",
   "description": "Depth of inline-definition expansion permitted before the chain is refused."
  }
 ],
 "signature": [],
 "preconditions": [
  "Message#bf6d contains fallback data OR sender is reachable",
  "Pattern lookup failed"
 ],
 "postconditions": [
  "Pattern resolved and locally minted OR Transaction aborted"
 ],
 "failure_modes": [
  "Hash Mismatch: Inline definition claims to be Pattern#X but hashes to Pattern#Y (Spoofing).",
  "DoS via Definition: Sender includes massive multi-megabyte 'definition' to exhaust receiver memory.",
  "Dependency Hell: Inline definition references other unknown patterns, triggering recursive lookups."
 ],
 "domain": "",
 "caution": "",
 "sources": [],
 "name": "GracefulDegradation",
 "builds_on": [
  {
   "alias": "message",
   "relation": "references",
   "library": "bootstrap",
   "slug": "Message",
   "ref": "Message#bf6d",
   "url": "https://semahash.org/vocabularies/bootstrap/patterns/Message"
  },
  {
   "alias": "fail_closed",
   "relation": "references",
   "library": "bootstrap",
   "slug": "FailClosed",
   "ref": "FailClosed#dfbc",
   "url": "https://semahash.org/vocabularies/bootstrap/patterns/FailClosed"
  },
  {
   "alias": "strategy",
   "relation": "references",
   "library": "bootstrap",
   "slug": "Strategy",
   "ref": "Strategy#3dc5",
   "url": "https://semahash.org/vocabularies/bootstrap/patterns/Strategy"
  }
 ],
 "related": [],
 "used_by": [
  {
   "slug": "Gardener",
   "relation": "references",
   "url": "https://semahash.org/vocabularies/bootstrap/patterns/Gardener"
  }
 ],
 "url": "https://semahash.org/vocabularies/bootstrap/patterns/GracefulDegradation",
 "md_url": "https://semahash.org/vocabularies/bootstrap/patterns/GracefulDegradation.md",
 "library_url": "https://semahash.org/vocabularies/bootstrap"
}
