FailClosed
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, and CircuitBreaker, 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 state remains invariant (no side effects) OR Operation succeeds
Failure modes
- Availability Hit: System 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 references
- OutputGuard references
- System references
Used by
- AgentProtocol references
- Exception references
- GracefulDegradation references
- InputGuard references
- ThreeLevelCollision references
- ToolDiscovery composes_with
Related
Identity
- Ref:
FailClosed#dfbc - Hash: sema:FailClosed#mh:SHA-256:dfbcf50c68d036ae4f18719bf59f41eddd83b5510bd60ff1326f8854240d8066
- Library: bootstrap 0.11.0, root a6a3d1ff0f98
- License: Not stated; check the repository