{
 "library": "bootstrap",
 "version": "0.11.0",
 "root": "a6a3d1ff0f982ee30430c5b42f3784c8ec901fd68482cfc1bc30899c1e5e48c5",
 "license": null,
 "slug": "FailClosed",
 "ref": "FailClosed#dfbc",
 "hash": "sema:FailClosed#mh:SHA-256:dfbcf50c68d036ae4f18719bf59f41eddd83b5510bd60ff1326f8854240d8066",
 "stub": "dfbc",
 "layer": "Infrastructure",
 "type": "Primitives",
 "summary": "Default-deny policy for uncertain states",
 "mechanism": "Safety Default. If an operation fails, times out, or returns an ambiguous result, the system MUST treat it as a Negative (Deny/Stop/Reject). Prevents 'bypass on error' vulnerabilities. It acts as the wrapper for input guarding, OutputGuard#3618, and CircuitBreaker#3caa, enforcing a default-deny policy on any error or ambiguity.",
 "invariants": [
  "Default Deny: Ambiguity == Rejection.",
  "Error Atomicity: Partial failure = Total failure (Transaction Rollback)."
 ],
 "parameters": [
  {
   "name": "timeout_action",
   "type": "Enum",
   "range": "{Reject, BoundedRetry}",
   "description": "Default: Reject. BoundedRetry defers the denial, it does not replace it. A fallback route on error is excluded — that is bypass-on-error."
  },
  {
   "name": "retry_limit",
   "type": "PositiveInteger",
   "range": "[1, 10]",
   "description": "Attempts before Rejecting when timeout_action is BoundedRetry."
  }
 ],
 "signature": [],
 "preconditions": [
  "Fallible operation initiated"
 ],
 "postconditions": [
  "System#f8eb state remains invariant (no side effects) OR Operation succeeds"
 ],
 "failure_modes": [
  "Availability Hit: System#f8eb shuts down during minor outages (False Positive Denial).",
  "Dependency Deadlock: a non-critical dependency fails and the system locks up; compounds along a chain of fail-closed dependencies."
 ],
 "domain": "",
 "caution": "",
 "sources": [],
 "name": "FailClosed",
 "builds_on": [
  {
   "alias": "circuit_breaker",
   "relation": "references",
   "library": "bootstrap",
   "slug": "CircuitBreaker",
   "ref": "CircuitBreaker#3caa",
   "url": "https://semahash.org/vocabularies/bootstrap/patterns/CircuitBreaker"
  },
  {
   "alias": "output_guard",
   "relation": "references",
   "library": "bootstrap",
   "slug": "OutputGuard",
   "ref": "OutputGuard#3618",
   "url": "https://semahash.org/vocabularies/bootstrap/patterns/OutputGuard"
  },
  {
   "alias": "system",
   "relation": "references",
   "library": "bootstrap",
   "slug": "System",
   "ref": "System#f8eb",
   "url": "https://semahash.org/vocabularies/bootstrap/patterns/System"
  }
 ],
 "related": [
  {
   "alias": null,
   "relation": "related",
   "library": "bootstrap",
   "slug": "ErrorCostAsymmetry",
   "ref": "ErrorCostAsymmetry#b542",
   "url": "https://semahash.org/vocabularies/bootstrap/patterns/ErrorCostAsymmetry"
  }
 ],
 "used_by": [
  {
   "slug": "AgentProtocol",
   "relation": "references",
   "url": "https://semahash.org/vocabularies/bootstrap/patterns/AgentProtocol"
  },
  {
   "slug": "Exception",
   "relation": "references",
   "url": "https://semahash.org/vocabularies/bootstrap/patterns/Exception"
  },
  {
   "slug": "GracefulDegradation",
   "relation": "references",
   "url": "https://semahash.org/vocabularies/bootstrap/patterns/GracefulDegradation"
  },
  {
   "slug": "InputGuard",
   "relation": "references",
   "url": "https://semahash.org/vocabularies/bootstrap/patterns/InputGuard"
  },
  {
   "slug": "ThreeLevelCollision",
   "relation": "references",
   "url": "https://semahash.org/vocabularies/bootstrap/patterns/ThreeLevelCollision"
  },
  {
   "slug": "ToolDiscovery",
   "relation": "composes_with",
   "url": "https://semahash.org/vocabularies/bootstrap/patterns/ToolDiscovery"
  }
 ],
 "url": "https://semahash.org/vocabularies/bootstrap/patterns/FailClosed",
 "md_url": "https://semahash.org/vocabularies/bootstrap/patterns/FailClosed.md",
 "library_url": "https://semahash.org/vocabularies/bootstrap"
}
