{
 "library": "bootstrap",
 "version": "0.11.0",
 "root": "a6a3d1ff0f982ee30430c5b42f3784c8ec901fd68482cfc1bc30899c1e5e48c5",
 "license": null,
 "slug": "InputGuard",
 "ref": "InputGuard#0ba7",
 "hash": "sema:InputGuard#mh:SHA-256:0ba715e91627fa1f6759a739da0d4159cac6404c8b45b6e97910d98ef0e8a079",
 "stub": "0ba7",
 "layer": "Infrastructure",
 "type": "Verification",
 "summary": "Input validation and sanitization",
 "mechanism": "A validation filter that sanitizes inputs before they reach a sensitive component. It enforces schema compliance, type safety, and constraint satisfaction. On violation it applies FailClosed#dfbc behaviour, rejecting the input and logging the attempt.",
 "invariants": [
  "Declares the schema or constraint it enforces.",
  "Names the component it guards.",
  "No input reaches the guarded component without satisfying that constraint."
 ],
 "parameters": {},
 "signature": [],
 "preconditions": [],
 "postconditions": [],
 "failure_modes": [
  "Bypass via unexpected encoding or type coercion.",
  "Overly permissive schema allows malformed input through."
 ],
 "domain": "",
 "caution": "Validation boundary — bypass enables injection or unexpected state.",
 "sources": [],
 "name": "InputGuard",
 "builds_on": [
  {
   "alias": "fail_closed",
   "relation": "references",
   "library": "bootstrap",
   "slug": "FailClosed",
   "ref": "FailClosed#dfbc",
   "url": "https://semahash.org/vocabularies/bootstrap/patterns/FailClosed"
  }
 ],
 "related": [],
 "used_by": [
  {
   "slug": "AgentSandbox",
   "relation": "composes_with",
   "url": "https://semahash.org/vocabularies/bootstrap/patterns/AgentSandbox"
  },
  {
   "slug": "DataMinimization",
   "relation": "references",
   "url": "https://semahash.org/vocabularies/bootstrap/patterns/DataMinimization"
  },
  {
   "slug": "HackDetect",
   "relation": "references",
   "url": "https://semahash.org/vocabularies/bootstrap/patterns/HackDetect"
  },
  {
   "slug": "PromptChain",
   "relation": "composes_with",
   "url": "https://semahash.org/vocabularies/bootstrap/patterns/PromptChain"
  },
  {
   "slug": "ToolInvoke",
   "relation": "composes_with",
   "url": "https://semahash.org/vocabularies/bootstrap/patterns/ToolInvoke"
  }
 ],
 "url": "https://semahash.org/vocabularies/bootstrap/patterns/InputGuard",
 "md_url": "https://semahash.org/vocabularies/bootstrap/patterns/InputGuard.md",
 "library_url": "https://semahash.org/vocabularies/bootstrap"
}
