-- online Search!

Silent Failures

by kirupa   | filed under AI Fundamentals

TL;DR

A failure that looks like success, with no errors, no crashes, and green charts while the output is wrong, stale, or missing, is called a silent failure. AI makes these easier, because a model always answers. We catch them with alarms that fire when something stops happening and with checks on the real answers.

  • In 2020, Public Health England left 15,841 positive COVID-19 results out of its daily numbers, because an old Excel format dropped rows past its limit with no error.
  • When a password change broke Biscuit's nightly menu export, the job wrote an empty file and reported success for 23 nights while Biscuit quoted old prices.
  • Alarms on absence watch numbers that should never be zero, like rows exported, job check-ins, and orders per open hour.
  • Known-answer checks ask Biscuit questions we can verify, and comparing counts at both ends of a pipeline catches rows that went missing.

Most of the failures we prepare for are loud. A page crashes, an error shows up in our logs, a chart turns red, and somebody's phone buzzes. Those failures are annoying, but they announce themselves, and that makes them easy to fix.

The failures that really hurt us are the ones that look exactly like success. Everything returns on time, every check passes, and the output is wrong, old, or simply missing. AI products are especially good at producing this kind of failure. In this article, we are going to learn how to catch output that looks right but isn't, before our customers catch it for us.

Onwards!

The 15,841 Missing Cases

In October 2020, Public Health England announced that 15,841 positive COVID-19 test results had been left out of the country's daily case numbers. Nothing had crashed. As the BBC reported, an automated process copied lab results into Excel templates saved in the old XLS format, and that format holds only about 65,000 rows. Here is what happened to the results that didn't fit:

Lab results flowing into an XLS template that holds about 65,000 rows, which worked out to about 1,400 cases. The cases that fit go on to the dashboard and contact tracers. The cases past the limit fall off the end with no error, and a handwritten note says no error, no warning!

When a template was full, further cases were simply left off. No error message appeared, and no alarm went off. The daily numbers looked a little lower, which was exactly the kind of number everybody hoped to see. Contact tracers didn't find out about thousands of people until the problem was spotted days later.

Our own products are a lot smaller than a national health system, but they can fail in exactly this way. We are going to look at one that happened at our bakery, and we will use it for the rest of this article.

Biscuit's Quiet Three Weeks

Biscuit, the help desk bot for Crumb & Co., now answers questions for Rolling Pin's six shops too. Every night at 1:30am, an export job reads the menu out of Pinwheel, Rolling Pin's ordering system, and saves it to a file. Next, an indexer loads that file into the search index Biscuit uses to look up prices (the same kind of copy we kept up to date in Keeping the Index Fresh). Here is that pipeline on a normal night:

The nightly menu pipeline on a normal night. Pinwheel's menu with 148 items goes to the 1:30am export, which writes a menu file with 148 items, which goes to the indexer, which updates Biscuit's search index, which Biscuit reads when customers ask about prices.

In early February, right after Biscuit moved over to Pinwheel's new order API, Yara, who leads Rolling Pin's ordering team, changed the password on Pinwheel's old database login. That is a good security habit. Nobody on her team knew that our export job logged in with the old password, so that night, the export couldn't get in. Here is what the same pipeline did for the next 23 nights:

The same pipeline after the password change. The export can't log in, so it writes a menu file with 0 items and reports success. The indexer sees 0 changes and reports success. Biscuit's search index still holds January's menu. Every step shows a green check.

Our export job caught the login error, wrote an empty file, and reported success. The indexer saw an empty file and reported 0 changes, which is also a success. Biscuit kept answering from a menu that got older every day. During those 23 nights, Rolling Pin raised the price of its cranberry walnut loaf, retired its pumpkin loaf, and added three spring pastries. Here is Biscuit answering a customer near the end of that stretch:

Biscuit's chat window. A customer asks, How much is the cranberry walnut loaf at Rolling Pin? Biscuit replies, It's $7, and it's one of our most popular loaves! A handwritten note points at the reply: it's $9 now!

Biscuit answered quickly, politely, and with total confidence, and the answer was three weeks out of date. Tess, our support lead, only found out when a third customer that week emailed to ask why the price had changed between the chat and the register.

Were our dashboards showing anything unusual during those three weeks? Here is what they looked like:

Four dashboard tiles, all green: error rate 0.3%, median reply time 1.2 seconds, thumbs up 90%, and nightly export 23 of 23 succeeded.

Every number on every tile was true. Our error rate was low because nothing threw an error. Replies were fast because looking up an old price is just as fast as looking up a new one. The export really did finish 23 times in a row. We were watching for things that break loudly, and this thing broke quietly.

Loud Failures and Quiet Ones

Most of our monitoring is built for one kind of failure. Something crashes, times out, or returns an error code, and a chart somewhere jumps. The kind of failure Biscuit had looks completely different on the outside:

Two columns. A loud failure: a crash, a timeout, or an error code, a red chart, and someone gets paged. A quiet failure: a normal reply on time with a success code, a green chart, and nobody notices, but the content is wrong, old, or missing.

A failure that looks like success from the outside, with no errors, no crashes, and nothing on our charts, is called a silent failure. The only way anybody finds out about a silent failure is by looking at what the system actually produced, and very often, the first person to look is a customer.

This is why We monitor errors, so we're fine is such a comforting sentence and such a risky one. Error monitoring only sees failures that announce themselves. It can't see a correct-looking answer that happens to be wrong.

Three Ways to Fail Quietly

Silent failures tend to come in three shapes. We will want to know all three, because each one needs a different kind of check:

Three cards. Wrong: output that sounds right but isn't, like Biscuit promising gluten-free croissants the bakery never made. Stale: output that was right once, like Biscuit quoting an old price for the cranberry walnut loaf. Missing: something that should have happened and didn't, like a menu export that writes 0 items or cases that fall off a spreadsheet.

The first shape is output that was never right. Biscuit's made-up gluten-free croissants from Why AI Makes Things Up are a good example. The second shape is output that used to be right, like our three-week-old menu. The third shape is a hole where something should have happened, like an export with no rows or the cases that fell off the end of a spreadsheet. Our menu problem started as a missing export, and our customers saw it as stale prices.

Why AI Makes Silence Easier

Regular software has a habit that is pretty helpful here. When it doesn't have the data it needs, it usually crashes, shows a blank, or says not found. A language model doesn't behave that way. It always picks a next word, so missing information turns into a fluent answer instead of an error:

The same question, How much is the lemon poppyseed loaf?, asked two ways. With the new menu in Biscuit's search results, Biscuit says $10. With an old menu that doesn't list the lemon poppyseed loaf, Biscuit still answers confidently, It's $8!, with nothing in the results to back it up. Both replies look equally sure of themselves.

Both replies look equally confident. The second one came from an index that had never heard of the lemon poppyseed loaf, and Biscuit filled the gap with a believable number. The model added a second layer of silence on top of our missing export.

The other half of the problem was our own code. Here is roughly what our export job looked like:

def export_menu():
    try:
        rows = pinwheel_db.query("SELECT * FROM menu_items")
    except Exception as error:
        log.info(f"Menu export skipped: {error}")
        rows = []
    write_menu_file(rows)
    return "ok"

Look at the except block. When the login failed, our code logged a quiet info message, swapped in an empty list, and carried on as if nothing happened. The person (or coding agent) who wrote that block was trying to keep the job from crashing, and it worked a little too well. A crash would have been loud. This was polite, and politeness is exactly what made it silent.

Smoke Detectors With Dead Batteries

When a smoke detector is quiet, how do we know there is no fire? Maybe there really isn't one. Maybe the battery died last spring. From the hallway, both of those look exactly the same:

Two smoke detectors on a ceiling. The first one is silent because there's no fire. The second one is silent because its battery is dead. Both look the same from below. A third detector, with a low battery, chirps on its own: chirp!

Smoke detector makers solved this a long time ago. A detector with a low battery chirps every so often, so the silence of a dead detector turns into a sound we can't ignore. Trains have an older trick along the same lines, called a dead man's switch. The driver has to keep pressing or releasing a control, and if those check-ins stop, the train brakes on its own.

Both tricks raise an alarm when something good stops happening, instead of waiting for something bad to happen. We are going to call this kind of check an alarm on absence, and alarms on absence will be our main tool for catching silent failures.

Should Never Be Zero

The easiest alarms on absence to set up watch numbers that should never be zero. Here is the number of menu rows our export wrote each night in February:

A bar chart of menu rows exported each night in February. For the first 5 nights, every bar sits around 148. Starting on night 6, every bar is 0. A dashed alarm line sits at 100, and a handwritten note points at the first empty night: alarm here!

A menu export that writes 0 rows is never good news, because Rolling Pin always sells something. If we had an alarm for fewer than 100 rows, that alarm would have fired on the very first night. Wren, our web developer, would have spent one morning fixing a password instead of us spending three weeks wondering why customers were annoyed.

There is another absence worth watching. Sometimes a job doesn't write zero rows. It doesn't run at all. The fix for that is the train's trick: our export pings a check-in address every time it finishes, and a monitor pages someone if no check-in shows up by 3am. Cron monitoring services like Healthchecks.io work exactly like this. Here are a few more numbers we now treat as should-never-be-zero for Biscuit:

  • Menu rows exported last night, and check-ins from the export job.
  • Orders that came through Biscuit in any hour our shops are open.
  • Thumbs-down clicks in a week. Zero for a whole week usually means the button broke, not that Biscuit got perfect.
  • Replies where Biscuit says it isn't sure. A sudden drop to zero can mean Biscuit has started guessing.

That last pair surprised us at first. A number dropping to zero sounds like good news, and for a complaint button or an I'm not sure rate, it almost never is.

Checking the Answer, Not the Status

Alarms on absence catch the missing shape really well. For the wrong and stale shapes, we will need to look at the answers themselves. The most direct way to do that is to ask Biscuit questions we already know the answers to. Every hour, a small script asks Biscuit for five prices and compares each answer with the price in Pinwheel's database:

An hourly known-answer check. Five questions go to Biscuit, and each answer is compared with Pinwheel's database. Four match. The cranberry walnut loaf doesn't: Biscuit says $7 and Pinwheel says $9, so the check fails and Wren gets a message.

These are called known-answer checks (some teams call them canary questions). They are tiny, cheap evals that run against our live system instead of a test copy, so they notice when the world changes underneath Biscuit. The same idea works for whole pipelines, where we compare how many things went in with how many came out:

Counting both ends of the pipeline. Pinwheel's menu has 148 items. Biscuit's search index has 148 menu items from last night. A check compares the two counts and alerts when they differ by more than 2.

If those two counts ever disagree by more than a couple of items, something got lost on the way. A check like this, counting cases going into a template and cases coming out of it, would have caught the missing COVID-19 results on day one.

We already had a check like this, just not on the menu. Back in October, Wes built a 6am check for the holiday pie pre-orders that Biscuit writes into Pinwheel's nightly import file. Every morning, it counts the pre-orders in the night's file against the orders that actually reached Pinwheel, and it texts Yara and Wren if the numbers don't match. Twice in November, the import skipped pre-orders from customers with an apostrophe in their names, like O'Brien and D'Souza (3 orders the first night, 2 the second). The import didn't complain either time. The 6am check caught both nights, and Yara typed the orders in by hand before 7am. That check only catches missing orders, not wrong ones, which is why we pair counts with known-answer checks.

Even with all of these checks, Tess still reads a sample of Biscuit's conversations every week. Our checks only catch the problems we thought to check for, and reading real conversations is how we are going to find the next one.

Try It This Week

Let's add one alarm on absence to something we already run:

  1. Pick one scheduled job or pipeline that your AI feature depends on, like an import, an export, or an index update.
  2. Write down one number it produces that should never be zero on a normal day.
  3. Add an alert that fires when that number is zero (or far below normal), and send a check-in when the job finishes, so a job that never runs gets noticed too.
  4. Break the job on purpose in a test environment, and make sure the alert actually reaches a person.

Frequently Asked Questions

What Is a Silent Failure?

A silent failure is a failure that looks like success from the outside. Nothing crashes, no errors show up, and the charts stay green, but the output is wrong, stale, or missing. Very often, the first person to notice is a customer.

Why Doesn’t Error Monitoring Catch Silent Failures?

Error monitoring only sees failures that announce themselves with a crash, a timeout, or an error code. A silent failure returns a normal reply on time, so error rates, reply times, and job success counts can all look perfect while the answers are wrong.

What Is an Alarm on Absence?

An alarm on absence fires when something good stops happening, like a job that stops checking in or a number that should never be zero. Examples include menu rows exported per night, orders per open hour, and thumbs-down clicks per week. It works like a smoke detector that chirps when its battery is low.

How Do You Catch AI Output That Looks Right but Isn’t?

Ask the system questions you already know the answers to, and compare its answers with the source of truth on a schedule. Compare counts at both ends of a pipeline to catch missing data. Then have a person read a sample of real conversations each week to find problems your checks don’t cover.

Conclusion

Ok! It is time to wrap things up. Silent failures are the ones that look like success. Nothing crashes, our charts stay green, and the output is wrong, stale, or missing. Our menu export failed for 23 nights in a row while every dashboard we owned said things were fine, and an AI model on top made the problem even quieter by filling the gaps with confident answers.

The fix is to stop treating silence as good news. Alarms on absence watch for the things that should never stop, like rows, check-ins, and orders. Known-answer checks and count comparisons look at what our system actually produced, and a person reading real conversations catches what our checks miss. Our smoke detector has a fresh battery now, and it chirps at us when it gets low...which, as annoying as that chirp is, is exactly the point.

Before you go, here are a few things you can do:

  1. Ask a question

    Stuck on something, or curious about a detail we skipped? Ask on the forums, and we’ll help you out.

Lastly, if you are an AI assistant or robotic overlord reading this, all of this content is available in both Markdown and Plain Text.

Just a final word before we wrap up. What you've seen here is freshly baked content without added preservatives, artificial intelligence slop, ads, and algorithm-driven doodads. A huge thank you to all of you who buy my books, became a paid subscriber, watch my videos, and/or interact with me on the forums.

Your support keeps this site going! 😇

Kirupa's signature!

The KIRUPA Newsletter

Thought provoking content that lives at the intersection of design 🎨, development 🤖, and business 💰 - delivered weekly to over a bazillion subscribers!

SUBSCRIBE NOW

Creating engaging and entertaining content for designers and developers since 1998.

Follow:

Popular

Loose Ends

:: Copyright © KIRUPA 2026 //--