---
library: "bootstrap"
slug: "FailClosed"
name: "FailClosed"
ref: "FailClosed#dfbc"
hash: "sema:FailClosed#mh:SHA-256:dfbcf50c68d036ae4f18719bf59f41eddd83b5510bd60ff1326f8854240d8066"
type: "Primitives"
layer: "Infrastructure"
version: "0.11.0"
root: "a6a3d1ff0f982ee30430c5b42f3784c8ec901fd68482cfc1bc30899c1e5e48c5"
license: null
url: "https://semahash.org/vocabularies/bootstrap/patterns/FailClosed"
---

# FailClosed

Default-deny policy for uncertain states

Infrastructure · Primitives

## 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](https://semahash.org/vocabularies/bootstrap/patterns/OutputGuard.md), and [CircuitBreaker](https://semahash.org/vocabularies/bootstrap/patterns/CircuitBreaker.md), enforcing a default-deny policy on any error or ambiguity.

## Invariants

- Default Deny: Ambiguity == Rejection.
- Error Atomicity: Partial failure = Total failure (Transaction Rollback).

## Parameters

- 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.
- retry_limit: type=PositiveInteger, range=[1, 10], description=Attempts before Rejecting when timeout_action is BoundedRetry.

## Preconditions

- Fallible operation initiated

## Postconditions

- [System](https://semahash.org/vocabularies/bootstrap/patterns/System.md) state remains invariant (no side effects) OR Operation succeeds

## Failure modes

- Availability Hit: [System](https://semahash.org/vocabularies/bootstrap/patterns/System.md) 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.

## Where this came from

—

## Builds on

- [CircuitBreaker](https://semahash.org/vocabularies/bootstrap/patterns/CircuitBreaker.md) (references)
- [OutputGuard](https://semahash.org/vocabularies/bootstrap/patterns/OutputGuard.md) (references)
- [System](https://semahash.org/vocabularies/bootstrap/patterns/System.md) (references)

## Used by

- [AgentProtocol](https://semahash.org/vocabularies/bootstrap/patterns/AgentProtocol.md) (references)
- [Exception](https://semahash.org/vocabularies/bootstrap/patterns/Exception.md) (references)
- [GracefulDegradation](https://semahash.org/vocabularies/bootstrap/patterns/GracefulDegradation.md) (references)
- [InputGuard](https://semahash.org/vocabularies/bootstrap/patterns/InputGuard.md) (references)
- [ThreeLevelCollision](https://semahash.org/vocabularies/bootstrap/patterns/ThreeLevelCollision.md) (references)
- [ToolDiscovery](https://semahash.org/vocabularies/bootstrap/patterns/ToolDiscovery.md) (composes_with)

## Related

- [ErrorCostAsymmetry](https://semahash.org/vocabularies/bootstrap/patterns/ErrorCostAsymmetry.md)

## Identity

- Library: bootstrap 0.11.0 (root a6a3d1ff0f98)
- Ref: FailClosed#dfbc
- Hash: sema:FailClosed#mh:SHA-256:dfbcf50c68d036ae4f18719bf59f41eddd83b5510bd60ff1326f8854240d8066

## Links

- Page: https://semahash.org/vocabularies/bootstrap/patterns/FailClosed
- JSON: https://semahash.org/vocabularies/bootstrap/patterns/FailClosed.json
- Library: https://semahash.org/vocabularies/bootstrap
- Library index: https://semahash.org/vocabularies/bootstrap/index.json
