Zenaique

Decide between synchronous blocking and asynchronous logging for a new guardrail

Flashcard·Medium·4.0 · 0·~30s·Asked atAndurilDoordashShield Ai
Attempt it
TL;DR

Block synchronously only for irreversible or regulated harm; ship every other guardrail in shadow mode first and promote once the false-positive rate is measured.

Memory aid
Sign in to see the mnemonic that makes this stick.
Easy to grasp

Imagine adding a new smoke detector to a kitchen. You could wire it straight to the building sprinklers, but if it cries wolf on toast for a week, the whole kitchen floods. The safer move is to let the detector just blink and log for a while, watch how often it triggers on real cooking, calibrate it, and only then wire it to the sprinklers. Guardrails work the same way. A brand-new classifier on the live response path that misfires once in fifty calls becomes a worse outage than the harm it was trying to stop. Letting it log silently first turns guesses into measured rates, and turns the rollout from a coin flip into a calm graduation.

Concept explanation~2 min read

Everything you need to truly understand this topic: intuition, mechanics, step by step explanation, code, formulas, and worked example. Click to expand.

Almost every conversation about adding a new guardrail starts at the wrong question: 'should this classifier block?' The right first question is 'is the harm we are blocking irreversible the moment it ships?' That single axis splits guardrail rollouts into two completely different control loops. One demands synchronous enforcement on the hot path from day zero and accepts the false-positive cost. The other earns its way onto the hot path through a measured shadow stage and a confidence-band staged rollout.

This walkthrough breaks down both loops, the metrics that decide promotion, the architecture that lets a shadow stage exist without affecting user-visible latency, and the appeal path that keeps the first wave of false positives from becoming churn.

Mental model: sync blocking is for harms you cannot un-ship. Async logging is the default for everything else. The promotion path is data, not opinion.

The two-question test that decides the mode

Question one: is the harm irreversible?

Irreversible means once the response reaches the user, the harm has materialized in a way no later action can reverse. PII in output is irreversible because the user can copy, screenshot, and exfiltrate it the moment it renders. Defamation about a real person is irreversible because the legal cause of action attaches at publication. Regulated financial or medical advice in a HIPAA or SOC2 route is irreversible because the audit trail records the disclosure regardless of what happens next.

Reversible harms still hurt but allow a recovery path. Off-topic responses, tone mismatches, weak refusals, low-quality citations,the user is annoyed, you fix the prompt or the classifier, and the next response is better. The harm does not attach permanently.

Question two: is the classifier calibrated on this traffic mix?

Every new classifier has unknown false-positive and false-negative rates on your specific distribution. A model that scored 99.5 percent on the vendor's benchmark can have 3 percent FPR on your traffic because your prompts look nothing like the benchmark.

The two answers combine into a quadrant. Irreversible plus uncalibrated is the hard case: you sync-block on day zero and you eat the FPR pain, because waiting for shadow data costs more than the false positives. Every other combination starts async.

Why a fresh classifier always needs a shadow stage
The confidence-band staged rollout
Appeal paths and architecture that makes shadow possible
Sign in to unlock the full deep dive.

Situations where this technique stops working.

Sign in to see when this approach fails.

2–4 min · Everything important, quickly.

Sign in to see the quick scan of the deep dive.

Real products, models, and research that use this idea.

  • Anthropic publishes detailed deployment notes describing staged rollout of harm classifiers on Claude,async logging precedes any synchronous blocking on most policy categories.
  • OpenAI's Moderation API is positioned as an async-first signal; product teams decide independently whether to block or warn on each category.
Sign in to see more production examples.

What an interviewer would ask next. Try answering before peeking at the approach.

QHow do you set the promotion threshold from shadow to synchronous block?
A

Combine product policy (acceptable FPR for this route) with measured shadow FPR per confidence band. Typically: promote the band where shadow FPR is below 0.5 percent and recall on the red-team set exceeds 90 percent. Document the policy so a future audit can reproduce the call.

2 more follow-ups an interviewer would ask next. Sign in to reveal them.

Red flags & common mistakes

The phrases that signal junior thinking. Click to expand.

Most common mistake

Promoting a fresh classifier straight to synchronous blocking without measuring its live false-positive rate, then watching real traffic refuse legitimate prompts.

Sign in to see all red flags and common mistakes.

60 second bullets to scan on the way to the call.

  • The two-question test (irreversible? calibrated?) for sync versus async

  • Why a fresh classifier's live FPR is always unknown until shadow data exists

Sign in to unlock the revision sheet.

Primary sources. Browse if you want the original framing.

Similar questions

Same topic, related formats. Practice these next.

4 curated
Next question
Pick the strongest reason…
MCQ·Medium