An e-commerce company has trained a new jailbreak classifier for its shopping assistant. It scored well on an offline labelled set, but the team worries it will block legitimate shoppers, especially in segments the test set covered thinly (Turkish-language chats, B2B buyers, the mobile app). Which rollout plan is best?
Show the answer and explanation
Correct answer: C, Run it in log-only (shadow) mode on live traffic first: record the would-block rate, have reviewers label a sample of flagged messages per segment to estimate false positives, then ramp up enforcement segment by segment.
Explanation Guardrails
A guardrail is a model acting on live traffic and needs the same release discipline as any other model. Shadow (log-only) mode runs the classifier on every real message and records what it would have blocked, without blocking anything.
What shadow mode gives you:
- Would-block rate, overall and per segment (language, channel, customer type). A rate far above the expected share of attacks is a red flag before any shopper is affected.
- Estimated false positives: reviewers label a random sample of flagged messages in each segment. The share of flagged messages that are benign, times the would-block volume, estimates how many legitimate messages enforcement would block.
- Threshold tuning on real data, per segment if needed, instead of on an offline set whose mix differs from production.
Then ramp up enforcement: switch on blocking for segments with acceptable precision first, keep a kill switch, and monitor block rate, appeals and complaints.
Why the alternatives are weaker:
- Day-one enforcement exposes every shopper before the false-positive rate is known; complaints lag, are heavily under-reported (most wrongly blocked shoppers simply leave) and, as an overall rate, hide a badly hit segment.
- A 5% enforcement test also blocks real users blind, and rare blocks barely move conversion, least of all in thin segments where 5% of traffic is tiny, so "no significant drop" mostly reflects low power, not safety.
- Offline F1 assumes the test set matches production, and the brief says it covers the risky segments thinly.
Interview tip: describe a guardrail launch as "shadow, sample and label, per-segment thresholds, staged enforcement with a kill switch", and add that you replay known attacks to check recall, because labelling flagged items only measures precision.