Agent Auth Gateway v1.0

Guides / 7 min read

Fail Closed or Fail Open? Defaults for Agent Authorization

Published 2026-11-14 · Reviewed 2026-11-14 · By the Ingenious AI team

Every authorisation system eventually faces a call it cannot evaluate — the policy service is slow, a dependency is down, the request is malformed. In that moment your real policy is not the rules you wrote. It is the default you chose.

The short answer

Fail closed — refuse the call — for anything that spends, writes, sends or deletes, and for any call whose cost or authority cannot be established. Fail open, if anywhere, only for read-only, low-sensitivity actions with strict rate limits and a loud log entry, and even there prefer a cached or degraded answer to a fresh unchecked call. Make the choice per action class in written policy, rehearse the gateway-down scenario, and count fail-open events as incidents to review, not as uptime to celebrate.

Check your own setup as you read: run the free Spend Guard self-check or test a policy in the playground — five minutes, no signup, and the gaps it names map to the controls below.

Worked example: the outage that opened every door

During a 40-minute policy-service outage, a fictional ticketing platform, Lantern Desk, discovered its gateway defaulted to allow-with-logging 'for availability'. Its support agent kept working — and, unchecked, issued 212 refunds above its normal approval threshold, totalling $6,300, because the amount rule lived in the service that was down. The refunds were legitimate customers with real complaints, which made recovery worse: the company honoured most of them and absorbed the cost as the price of a default nobody remembered choosing.

Lantern Desk reclassified its actions. Refunds, sends and writes now fail closed: during an authorisation outage they queue with a customer-facing 'we are checking' state rather than executing. Reads fail open to a cached knowledge base with fresh-call rate limits, and every fail-open event pages the on-call. In the next outage — 25 minutes, three months later — the agent answered from cache, queued 14 actions, issued nothing, and the postmortem was one paragraph long.

The default is a policy decision, so make it deliberately

Fail-open defaults are usually inherited, not chosen: a framework's error handling, a load-balancer health check, a well-meant availability decision made by someone picturing read traffic. Audit what your stack actually does when the policy layer times out, errors, or returns something unparseable — test it, do not read it in documentation — and then re-decide per action class with the incident costs in view. Lantern Desk's $6,300 was not a bug in their rules; it was the correct execution of a default they had never examined.

Classify by consequence, not by convenience

The classification question is what an unchecked call can do. Money movement, external sends, writes and deletes fail closed — the cost of a wrong allow is money, data or trust, and it is usually irreversible. Pure reads of low-sensitivity data are the only serious fail-open candidates, and even they leak information at scale if unlimited, so they get rate limits and caching rather than a free pass. If an action class is hard to classify, that difficulty is itself information: it is probably two classes wearing one name, and should be split.

Failing closed must still fail gracefully

Fail closed does not mean fail rudely. A refused-for-outage action should queue with a clear state the user or customer can see, an agent response that explains a delay without inventing a reason, and an automatic retry of the authorisation when the policy layer recovers — with the original request intact, not a fresh guess. Teams fear fail-closed because they picture dead ends; the dead end is a design choice, not a property of the default.

Log and count every default event

Each time the default fires, that is an authorisation that did not happen, and it belongs in the decision log marked as such — allowed-by-default or denied-by-default, with the cause. Review the count weekly. A default that fires often means your policy layer's reliability is now a security property, and it should be engineered and budgeted like one, with the same seriousness as the rules it stands in for.

The outage game day

Once the defaults are set, prove them under a simulated policy-layer outage in staging — then, when the team is ready, in production during a quiet window with the on-call watching. Measure what actually happens per action class: which calls queue, which serve from cache, which page, and whether the decision log records the default events as designed. Every real stack has at least one surprise in this exercise — a health-check path that bypasses policy, a retry that converts a refusal into a loop. Finding it on game day is the entire point: the alternative is finding it, as Lantern Desk did, at $6,300 during the unplanned version.

Five actions to set failure defaults deliberately

  1. Test what your gateway actually does when the policy layer times out or errors — per action class, not from documentation.
  2. Set fail-closed as the default for spends, writes, sends and deletes, and for any call whose cost cannot be established.
  3. Allow fail-open, if at all, only for rate-limited, low-sensitivity reads, preferably served from cache.
  4. Design the fail-closed path to queue gracefully with an honest user-facing state and automatic re-authorisation on recovery.
  5. Log every default event with its cause and review the count weekly.

Source note and related guides

Figures in the worked example are illustrative, drawn from a fictional company created for this guide; the controls, failure patterns and procedures described are the gateway's documented behaviour — see the Agent Auth Gateway documentation and the policy patterns in allowlists vs denylists, spend caps and the agent kill switch. Reviewed by the Ingenious AI team, 2026-11-14.

Sources

  • NIST AI Risk Management Framework (AI RMF 1.0), the voluntary framework for managing AI risk across design, development and use: nist.gov, 2023
  • OWASP Top 10 for Large Language Model Applications, the OWASP GenAI Security Project's risk list for LLM and agent systems: owasp.org, 2025
  • RFC 6749, The OAuth 2.0 Authorization Framework, the IETF standard behind scoped, expiring access tokens: rfc-editor.org, 2012

Frequently asked questions

What does fail closed mean for an AI agent gateway?

When a call cannot be evaluated — policy service down, malformed request, unknown cost — the call is refused or queued instead of executing. The default stands in for the rules whenever the rules cannot run.

Is fail open ever acceptable?

For rate-limited, low-sensitivity reads, preferably from cache, with every event logged and paged. Lantern Desk's reads fail open to a cached knowledge base; its refunds never fail open after a $6,300 outage lesson.

Which actions must always fail closed?

Anything that spends, writes, sends or deletes, and any call whose cost or authority cannot be established. An unchecked allow in those classes converts an infrastructure outage into a money or data incident.

How do I find out what my current default is?

Test it: in a staging environment, make the policy layer time out and error, then observe each action class. Defaults are often inherited from frameworks and load balancers rather than chosen — documentation is not evidence.

Does fail closed hurt availability?

Only if the closed path is a dead end. Queue the action with an honest status, serve reads from cache, and re-authorise automatically on recovery. Lantern Desk's second outage queued 14 actions and issued nothing — with no customer impact worth a postmortem.

Governing agents in production?

Spend caps, approval queues, policy simulation, burn forecasting, and step-up lockdowns — all built into the gateway. Free tier to start. Or test policies in the playground with no signup.

Share this: X Facebook LinkedIn WhatsApp
← Step Budgets and Iteration Limits for AI… All guides How to Dry-Run an Agent Policy Change Be… →