{
 "library": "bootstrap",
 "version": "0.11.0",
 "root": "a6a3d1ff0f982ee30430c5b42f3784c8ec901fd68482cfc1bc30899c1e5e48c5",
 "license": null,
 "slug": "Gate",
 "ref": "Gate#664d",
 "hash": "sema:Gate#mh:SHA-256:664dd801873a87e8aa3d67499e27e7c47923d5c0cdd129af6c09a7531ed7de15",
 "stub": "664d",
 "layer": "Infrastructure",
 "type": "Primitives",
 "summary": "Filter payload if the target condition is not met",
 "mechanism": "Evaluates the truth-value of the target Condition#b480 and yields a Decision#b140: proceed if the condition holds, halt if not, or debt (proceed with obligation recorded) when configured. Unlike a silent filter, a Gate produces a first-class Decision artifact that downstream systems can route on. Whether a halt stops only the item or the enclosing flow is a descendant's choice.",
 "invariants": [
  "Idempotent: Re-evaluating the gate with the same context yields the same result (within validity window).",
  "Every evaluation yields a first-class Decision#b140, including a false one."
 ],
 "parameters": [
  {
   "name": "on_failure",
   "type": "Enum",
   "range": "{halt, debt}",
   "description": "What a false condition yields: halt, or debt where proceeding with a recorded obligation is configured. Both are {{decision}} values the mechanism names."
  }
 ],
 "signature": [],
 "preconditions": [],
 "postconditions": [],
 "failure_modes": [
  "Silent Loss: Important data dropped without alerting the operator."
 ],
 "domain": "",
 "caution": "",
 "sources": [],
 "name": "Gate",
 "builds_on": [
  {
   "alias": "decision",
   "relation": "yields",
   "library": "bootstrap",
   "slug": "Decision",
   "ref": "Decision#b140",
   "url": "https://semahash.org/vocabularies/bootstrap/patterns/Decision"
  },
  {
   "alias": "condition",
   "relation": "references",
   "library": "bootstrap",
   "slug": "Condition",
   "ref": "Condition#b480",
   "url": "https://semahash.org/vocabularies/bootstrap/patterns/Condition"
  }
 ],
 "related": [],
 "used_by": [
  {
   "slug": "Branch",
   "relation": "references",
   "url": "https://semahash.org/vocabularies/bootstrap/patterns/Branch"
  },
  {
   "slug": "Check",
   "relation": "references",
   "url": "https://semahash.org/vocabularies/bootstrap/patterns/Check"
  },
  {
   "slug": "ComputeBudget",
   "relation": "references",
   "url": "https://semahash.org/vocabularies/bootstrap/patterns/ComputeBudget"
  },
  {
   "slug": "DogfoodFirst",
   "relation": "references",
   "url": "https://semahash.org/vocabularies/bootstrap/patterns/DogfoodFirst"
  },
  {
   "slug": "LayeredCheck",
   "relation": "composes_with",
   "url": "https://semahash.org/vocabularies/bootstrap/patterns/LayeredCheck"
  },
  {
   "slug": "MintWhenFriction",
   "relation": "composes_with",
   "url": "https://semahash.org/vocabularies/bootstrap/patterns/MintWhenFriction"
  },
  {
   "slug": "PatternDiscovery",
   "relation": "composes_with",
   "url": "https://semahash.org/vocabularies/bootstrap/patterns/PatternDiscovery"
  },
  {
   "slug": "PhasedRefinement",
   "relation": "composes_with",
   "url": "https://semahash.org/vocabularies/bootstrap/patterns/PhasedRefinement"
  },
  {
   "slug": "Taper",
   "relation": "composes_with",
   "url": "https://semahash.org/vocabularies/bootstrap/patterns/Taper"
  },
  {
   "slug": "TriGate",
   "relation": "references",
   "url": "https://semahash.org/vocabularies/bootstrap/patterns/TriGate"
  }
 ],
 "url": "https://semahash.org/vocabularies/bootstrap/patterns/Gate",
 "md_url": "https://semahash.org/vocabularies/bootstrap/patterns/Gate.md",
 "library_url": "https://semahash.org/vocabularies/bootstrap"
}
