Vaulth AI
Decision 4 of 10

Fail closed where it protects the user, fail open where it protects the user

One decision from Vaulth AI, which asks: Who should hold a family's medical records — the hospital that produced them, the app that displays them, or the family they describe?


Sessions are short-lived, and a person can sign out one device or all of them. Revocation is checked on every request, which raises the real question: what happens when the system that remembers revocations is unreachable?

That path fails closed. The alternative — treating a session that cannot be checked as not revoked — would mean an outage silently reinstates every session a user has ever revoked.

The login-lockout counters do the exact opposite and fail open, for the same reason read the other way: an outage must not become a global lockout that denies users their own records. The rule is not "fail closed"; the rule is that the direction of failure is chosen per surface, according to which way the user gets hurt.

Failure direction chosen per surface rather than as a blanket rule When the revocation cache is unreachable, the revocation check fails closed and refuses the request, because treating an unverifiable token as not-revoked would silently reinstate every session a user has revoked. The login lockout counters fail open and allow the attempt, because a cache outage must not become a global lockout denying users access to their own records. The direction of failure is chosen per surface according to which way the user is harmed. CACHE UNREACHABLETOKEN REVOCATIONrevocation checkREFUSEFAIL CLOSEDa cache outage must not silently reinstateevery session the user has ever revokedLOGIN LOCKOUTattempt countersALLOWFAIL OPENa cache outage must not become a globallockout that denies users their own recordsThe rule is not "fail closed". The direction of failure is chosenper surface, by which way the user gets hurt.
Fig. 05 — The same outage, two opposite answers. Both are the safe one.

The same posture runs through the infrastructure. Internal services refuse to start without their secrets rather than starting open.

Your opinion

Would you have decided this differently?

Where do you stand?

What gets published. I read every opinion and publish substantive ones, including those that disagree with me, as a scroll on this page. I may add a reply. I leave out spam, abuse and anything off-topic, so please include only what you’d be happy to see in public.

Where it goes. I keep your opinion, your stance and, if you allow it, your name in a database run by Neon. I don’t ask for your email or store your IP address, but Netlify, which hosts this site, may log it when it handles your request. To have yours removed, email pkrishna@vaulthai.health. A published opinion is removed from the site, though it can remain in my site’s version history.

Next