Fail-Open vs Fail-Closed Proxy Design for AI Agents
Runtime Policy Enforcement

Fail-Open vs Fail-Closed Proxy Design: Availability vs Control

A fail-open proxy passes agent or tool-call traffic through when policy evaluation cannot complete, prioritizing availability. A fail-closed proxy blocks that traffic under the same conditions, prioritizing control. Neither is universally correct for AI agent runtime enforcement; the right choice depends on which failure domain triggered the condition, the risk tier of the action involved, and whether policy decisions can be cached or evaluated locally to reduce reliance on a live policy engine.

The decision to fail open or fail closed only matters at the moment a proxy cannot complete a policy check: the network partitions, the policy engine crashes, an identity lookup times out, or evaluation simply takes longer than the enforcement SLA allows. In that moment, a fail-open design lets the tool call or agent action proceed as if it had been approved, prioritizing availability. A fail-closed design blocks the action until a decision can be reached, prioritizing control. Both are legitimate defaults; the question is which conditions should trigger which behavior, and for which actions.

Why the Failure Domain Matters More Than the Default

Treating "fail open" or "fail closed" as a single global setting hides the fact that different failures carry different risk. A network partition, a policy engine crash, an identity service timeout, and a latency spike are distinct failure domains, and each can reasonably warrant its own configuration rather than one blanket rule applied across all traffic.

Network Partition

Proxy loses connectivity to the policy engine or upstream services.

Policy Engine Crash

The enforcement service is unreachable or returns no decision.

Identity Service Timeout

Agent or caller identity cannot be verified in time.

Latency Spike

Policy evaluation exceeds the defined enforcement SLA.

Fail-Open vs Fail-Closed at a Glance

The two designs diverge on priority, behavior under failure, and the kind of risk each one accepts.

DimensionFail-OpenFail-Closed
PriorityAvailabilityControl
Behavior when policy evaluation failsAllows the action to proceedBlocks the action
Primary risk acceptedUnmonitored or unauthorized actions may proceedLegitimate actions may be blocked, affecting availability
Best suited toLow-risk, read-only operationsCredentialed, destructive, or high-sensitivity actions
Dependency on live policy engineReduced further if decisions can be cached or evaluated locallyHigh, unless a documented known state is defined for timeouts

Operational and Security Consequences

Fail-open designs reduce downtime risk during outages, but they only remain safe if every fail-open event is logged and alerted on, so that actions taken without a completed policy check stay visible for post-incident review and reconciliation rather than disappearing into normal traffic.

Fail-closed designs reduce exposure to unauthorized or unreviewed actions, but they turn the policy engine into a single point of failure for availability. Explicit latency and timeout thresholds matter here, consistent with NIST SC-24's requirement to fail into a documented known state rather than an implicit or undefined one.

Evaluation Criteria for Choosing a Fail Mode

Before setting a default, work through each of the following:

  • Classify failure types separately: network partition, policy engine crash, identity timeout, and latency spike each warrant their own configuration rather than one global setting.
  • Tier by action risk: default toward fail-closed for credentialed, destructive, or high-sensitivity actions, and reserve fail-open consideration for low-risk, read-only operations.
  • Define latency and timeout thresholds explicitly rather than relying on implicit defaults, consistent with NIST SC-24's requirement to fail into a documented known state.
  • Evaluate whether policy decisions can be cached or evaluated locally, reducing dependency on a live policy engine during transient outages.
  • Instrument logging and alerting for every fail-open event so unmonitored actions remain visible for post-incident review and reconciliation.

Set the default before an outage does

Fail behavior decided during an incident tends to default to whatever is easiest to ship, not whatever matches the risk of the action. Documenting fail mode per failure domain and risk tier in advance removes that pressure from the response.

Hybrid and Policy-Aware Enforcement Patterns

In practice, the most defensible design is not a single global default but a hybrid pattern: fail closed for credentialed, destructive, or high-sensitivity actions regardless of which failure domain is involved, and allow fail-open behavior only for low-risk, read-only operations, and only when policy decisions can be cached or evaluated locally. That combination narrows reliance on a live policy engine during transient outages while keeping every fail-open event logged and alerted on for reconciliation after the fact.

Define Fail Behavior Before an Outage Forces the Decision

Mapping failure domains, action risk tiers, and documented fail states in advance reduces the chance that an outage makes the availability-versus-control decision for you.

Explore Runtime Governance