Explain how you would tie a leading indicator to an automated rollback.
Explain how you would tie a leading indicator to an automated rollback, with the actual numbers behind where the trigger sits.
- Wire the rollback to an independent canary check, never to the model's own confidence score.Why: a model can be completely sure and completely wrong on exactly the message built to fool it.
- Write the equation out before picking a number: floor, window length, and how many straight windows in a row.Why: a threshold nobody can write as an equation is a guess with a confident tone.
- Require several bad windows in a row, not one.Why: a single ten-minute wobble in mail volume looks exactly like a broken model even when nothing is wrong.
- Price both mistakes before locking the number in: a false rollback against a missed incident.Why: one costs ten minutes and a page. The other costs hours of real invoices silently disappearing.
- Backtest the exact rule against the one real incident and six months of ordinary Tuesdays.Why: a rule that has never been run against real history is still a guess, just a dressed-up one.
- Route the trigger to an automatic revert and a page, not a line in a log nobody reads until Monday.Why: a leading indicator nobody sees fire never actually leads anything.
How to answer this, stage by stage
Nobody is grading whether you can say the word "threshold." They are grading whether you can build the actual number, out loud, and defend it. Seven moves get you there.
Let's learn
What does it actually take to let a system revert itself, with nobody's hand on the switch?
Sentrymail sits in front of a company's inbox and decides, in under a second, whether an email is safe, junk, or a phishing attempt. Anything it doesn't trust gets quarantined automatically. Before Sentrymail, an IT assistant at a client company spent about forty minutes a day picking through a shared "reported spam" folder by hand. After Sentrymail, that same person spends about five minutes a day, mostly just glancing at a summary.
Here is the turn. Say it plainly: a few extra bad classifications are never the real problem. The real problem is how long a bad model gets to keep running before anyone independent of the model catches it. On the day it mattered, a client's accountant forwarded a support ticket asking where her invoice went. That was four hours after the bad push went live, and the model's own confidence number had insisted the whole time that it knew exactly what it was doing.
At its worst, this costs real hours nobody can get back: invoices missed, wire confirmations sitting unread, one very angry client controller. And it is worth saying what would not have moved a single number that morning: catching this by watching the model's own confidence score, because a wrongly-quarantined invoice looked, to the model, exactly like every correctly-quarantined phishing email. Confident and quarantined, both times, for the same reason.
What I would leave alone: a wobble in the overall spam-catch rate, the ordinary junk mail number, does not need this kind of automatic trigger. That number moves a little every day with the mix of traffic, and a false rollback triggered off it would fire constantly and train everyone to ignore it. Save the automatic trigger for the number where a miss is genuinely expensive: real business mail wrongly buried, or real phishing wrongly let through.
The lesson: any number a model hands you about itself is an opinion, not evidence. If the only thing watching the model is the model, a rollback trigger built on it will fail exactly when it matters most, because that's precisely when the model is most likely to be wrong and sure of it at the same time.
Now here is the same thing as a story
The short version sits above. Read on for the room where the confidence-based watchdog got picked, and the Tuesday it quietly failed.
Aiko Nakagawa has run detection engineering at Sentrymail for three years, and for most of that time she has also carried the on-call pager for the classifier. Before any of this, catching a bad model push meant someone on her team scrolling a morning dashboard and eyeballing whether the shape of the graph looked right. It usually did. Sentrymail shipped a new model version most weeks, and for most of two years nothing ever went wrong loudly enough to need more than that.
Eighteen months ago, in a room with two other engineers, the team built its first real automatic alert. The model already computed a confidence number for every email it sorted, a rough sense of how sure it felt about its own answer. Wiring the alert to that number cost nothing extra to build. No new pipeline, no new data to label, nothing to maintain. It was the obviously practical call, and everyone in that room signed off on it inside twenty minutes.
For a while, it worked exactly as advertised. A couple of rough model pushes did show up as a dip in average confidence, the team caught them within an hour, and Aiko stopped thinking about the alert much at all. It was just there, quietly doing its job.
Then came a Tuesday in March. A retrained model shipped that afternoon, tuned harder to catch a new wave of phishing that mimicked real vendor invoices. It got better at that. It also started treating a specific pattern, a PDF attachment plus a dollar amount plus the word "overdue", as suspicious on sight, whether the sender was a scammer or a company's own accounts department. The model wasn't unsure about these calls. It had learned the pattern hard, and it applied it with total confidence, correct or not.
The confidence dashboard stayed flat and healthy the entire time. Average confidence held between 91 and 94 percent, same as any normal afternoon, because the model believed every one of its wrong answers exactly as much as its right ones.
The first sign anyone outside the model actually saw was a support ticket, forwarded by a colleague around 3pm: a client's accounts payable lead couldn't find an invoice she knew had been sent that morning. Aiko pulled the raw quarantine logs herself. Six percent of that client's legitimate business mail, mostly invoices and one wire confirmation, had been sitting in quarantine since the model shipped, four hours earlier. Nothing on the dashboard had ever once suggested a problem.
Here is the part that actually cost something. Rolling the model back by hand took twenty more minutes once the team knew where to look. But the four hours before that ticket landed were four hours nobody at Sentrymail could have shortened, because the one number they'd built to catch this exact failure had no way of ever catching it. It wasn't slow. It was structurally blind to a model that gets a pattern wrong with confidence.
Run the same Tuesday through the fixed design. A canary set of known-clean invoices and known-real phishing, replayed through the live model every ten minutes, would have scored 84 percent precision on the clean side within the first window after the push, 83 percent in the second, 85 percent in the third. Three straight windows under the 88 percent floor. At the thirty-minute mark, the rollback fires on its own. No support ticket needed. No accountant waiting on an invoice past lunch.
What I would tell myself, back in that eighteen-months-ago meeting: the cheapest number to build is not the same thing as the right number to trust. We picked the alert that cost us nothing because it was already sitting there. We never asked whether the thing doing the watching was allowed to be wrong about itself.
BOUND, and where each number in the trigger actually comes from
This is an estimation question dressed as a risk question, so BOUND runs the arithmetic here, not a story about a person's habit changing.
Two things worth naming directly here, since this is where the real judgment lives. The alternative on the table was the confidence-based alert already running for eighteen months, and it got ruled out on purpose, not quietly dropped: a model that has learned a wrong pattern hard applies it with the same confidence as a right one, so the number that was supposed to catch a bad deploy is blind to the exact failure that actually happened. The failure mode worth naming by name is a model being confidently wrong, the same shape as hallucination in a language model, a system that has no built-in signal for its own mistakes because it was never asked to grade itself against anything outside its own head. The guardrail is the canary set itself: known labels, replayed on a fixed schedule, scored by something the model doesn't get a vote on. That guardrail is not free. It runs a few hundred extra classifications through the live model every day that never reach a real inbox, a small but permanent slice of compute spent on watching instead of sorting, and every new model version now has to sit through a thirty-minute bake window before anyone fully trusts it, which is thirty minutes slower than the old "ship it and watch the dashboard" habit. That is the trade: a little slower, a little more compute, in exchange for catching the next confidently wrong model in half an hour instead of four.
And if you want to be sure it really works, try it somewhere else
Same five letters, an AI triage line for a veterinary telehealth company instead of an inbox, and the floor sits much closer to the baseline, because a missed real emergency costs far more than a missed spam email.
Coyle Run Veterinary Telehealth runs an AI phone and chat line that pet owners describe symptoms to, and it recommends either "get to an emergency vet now" or "a routine appointment is fine." Hendrick Salvo runs clinical operations there.
B, break it down. Roll back automatically when the model's canary emergency-catch rate, checked against a fixed set of known true-emergency symptom scripts, drops below a floor and stays there long enough to rule out one odd call.
O, own the numbers. Baseline catch rate on true-emergency scripts: 94 to 99 percent. Floor: 90 percent, only four points under baseline. Window: fifteen minutes, two in a row.
U, use a range. The floor could reasonably sit between 88 and 92 percent. Coyle Run picked the tighter end on purpose, because the cost of the miss is a life, not an inbox.
N, nail the sanity check. A false rollback here costs about fifteen minutes on an older model and one page. A missed real emergency, if the model wrongly says "routine appointment is fine," risks an animal that needed care hours earlier and a lawsuit that follows it. That gap in cost is why the floor sits so close to normal and why only two windows are required instead of three.
D, direction. Window length swings this one most. Fifteen-minute windows catch a bad model in thirty minutes; five-minute windows would catch it in ten, but would also mistake one unlucky call for a broken model far more often.
Swap the trigger and it still runs.
Speed: an interviewer caps you at ninety seconds. Skip straight to the number, whatever product it's for: floor, window length, how many windows in a row, and what each kind of mistake costs.
Cost: engineering says a canary pipeline running every ten minutes is too expensive to maintain. Widen the check to once an hour instead, and be honest that detection time grows to match, an hour instead of thirty minutes, which only works if the base rate of bad deploys is genuinely low.
The model got better, for real: say next quarter's overall accuracy genuinely improves. That still isn't proof the canary precision on legitimate mail held steady. A model tuned harder to catch more phishing can get pushier on real mail at the exact same time its aggregate number looks better.
Where people run it wrong.
They wire the automatic trigger to the model's own confidence score, because it's already there for free, and it fails exactly when the model is confidently wrong.
They set a floor that fires on one bad window, so the on-call rotation starts silencing the page within a week, and a real signal drowns in false ones.
They set the number once at launch and never run it against the next real incident, so it quietly goes stale as the traffic mix shifts underneath it.
How to use it live. Say the shape of the equation out loud before you have real numbers to plug into it: "a floor, a window length, and a consecutive-window count, sanity-checked against what each kind of mistake costs." That buys a few seconds to actually reason about the numbers instead of guessing one on the spot and hoping it sounds specific.
Flashcards (click a card to flip it)
Check yourself Score: 0 / 0
Show hint
Show answer
Show hint
Show answer
Show hint
Show answer
Show hint
Show answer
Show hint
Show answer
Show hint
Show answer
"Isn't three windows just an arbitrary number too?" Response: it's a range, not a single guess: 85 to 90 percent for the floor, two to three windows, chosen at the point that backtests clean against six months of real traffic and the one real incident. That's different from picking a number because it felt right.
From answering questions to owning outcomes.
A live workshop where you ship a working AI agent, defend a launch decision, and walk away with a portfolio recruiters can't wave off, not just more questions to study.
- A live AI agent you actually shipped
- A launch decision you can defend under pressure
- An interview-ready portfolio, not more flashcards
More on Leading vs lagging indicators for AI
- #1 Give three leading indicators of AI feature health and the lagging metric each predicts.
- #2 Why do lagging metrics fail you specifically in AI products?
- #3 Describe the leading indicators you would watch in the first 48 hours after an AI launch.
- #4 Explain how retry rate functions as a leading indicator.
- #5 What early signal predicts churn from an AI feature?
- #6 How do you build an early warning system for silent quality degradation?