Default fail-closed on high blast radius routes (medical, legal, financial, EU AI Act high-risk), fail-open only on read-only low-stakes paths where the model's own RLHF refusal is a credible backstop; encode it as
Picture a bank vault with two security guards. One guard checks IDs at the door. If the ID scanner breaks, the bank has a choice: should the broken scanner let everyone in (fail open) or keep everyone out (fail closed)? For the vault holding gold, you keep everyone out: a wrong release is catastrophic. For the lobby coffee shop, you let people in: a wrong block annoys customers for no real safety reason. Different rooms in the same building deserve different rules. Output guardrails work the same way. The medical advice route fails closed if the safety check is unavailable. The recipe suggestion route fails open. The choice is per-route, written down, and audited.
Detailed answer & concept explanation~7 min readEverything you need to truly understand this topic: intuition, mechanics, step by step explanation, code, formulas, and worked example. Click to expand.
Everything you need to truly understand this topic: intuition, mechanics, step by step explanation, code, formulas, and worked example. Click to expand.
Everything you need to truly understand this topic: intuition, mechanics, step by step explanation, code, formulas, and worked example.
Everything important, quickly.
6 min: definitions of fail-closed and fail-open + why per-route, not global + cost-asymmetry framing + EU AI Act high-risk routes + templated graceful response design + logging requirements + game-day testing the fail-closed path.
Real products, models, and research that use this idea.
- AWS Bedrock Guardrails exposes per-guardrail fail-mode configuration (block vs none) so teams can set policy per route.
- Anthropic's Claude API documents recommended fail-closed defaults for high-stakes use cases like medical and financial advice.
- OpenAI's moderation cookbook explicitly suggests fail-closed for regulated content and fail-open for low-stakes chat.
- Sierra and Decagon, both customer-support agent vendors in 2026, encode per-route fail-modes as part of their policy DSL.
What an interviewer would ask next. Try answering before peeking at the approach.
QHow would you choose the fail-mode for a brand-new route with no historical data?
QWhat is the right alerting threshold for fail-open rate?
Don't say thisRed flags and common mistakes that signal junior thinking. Click to expand.
Red flags and common mistakes that signal junior thinking. Click to expand.
Picking a single global default. The right choice depends on the route's blast radius; treating the question as one global toggle is the failure mode.
The night-before-the-interview bullets. Scan these on the way to the call.
Primary sources. Skim if you want the original framing.
Same topic, related formats. Practice these next.