Infrastructure · Primitives

FailClosed

Default-deny policy for uncertain states

Definition

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.

Preconditions

  1. Fallible operation initiated

Postconditions

  1. System state remains invariant (no side effects) OR Operation succeeds

Invariants

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

Risks

Failure modes

  1. Availability Hit

    System shuts down during minor outages (False Positive Denial).

  2. Dependency Deadlock

    a non-critical dependency fails and the system locks up; compounds along a chain of fail-closed dependencies.

Relationships

Builds on

References

System

Complex whole of interacting parts

Used by

References

Society

AgentProtocol

Standard patterns for multi-agent coordination

Composes with

Society

ToolDiscovery

Discover and invoke external tools via structured capability manifests

Reference

Parameters

timeout_action Enum, {Reject, BoundedRetry}
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 PositiveInteger, [1, 10]
Attempts before Rejecting when timeout_action is BoundedRetry.

Identity

Ref
FailClosed#dfbc
Sema ID
sema:FailClosed#mh:SHA-256:dfbcf50c68d036ae4f18719bf59f41eddd83b5510bd60ff1326f8854240d8066
Ring
0
Tier
1
Updated
2026-11-11
Supersedes
  • sema:FailClosed#mh:SHA-256:ae79e8e091ca9f68f749936a99d55a386fba49254f9e7e958806b16b860332a1
  • sema:FailClosed#mh:SHA-256:eae70da02880916a695d85d3752a59e16201c9f81b8a9af238d31863b3b6b157
  • sema:FailClosed#mh:SHA-256:408814ddae0d3fa2b4022f997c1feab5eef743a155cdedeba75bc42d26e467ac
  • sema:FailClosed#mh:SHA-256:ac1b0e4a6452ffc852d32a25914ef7907a49428004765f92e68ac7d232530ad0
  • sema:FailClosed#mh:SHA-256:d23bf6663e53ecbee5c12a120f4fe379c1dfe8bc05f0b9bf2250703d4131faaf