Claude's mistakes · Failing silently
When AI-written code fails silently
Something broke and reported success, or an error was swallowed into a normal-looking empty state.
15 posts in this pattern so far.
Failing silently is one of the most common patterns among the mistakes Claude made in our apps. Something broke, and the system reported success, or turned the error into a result that looked normal: an empty list, a zero, a dash, a green status.
The cases look different on the surface. In the newsroom engine, the login to Claude died and every model call failed, but the steps reported zero stories and the run was logged as a success. A database migration Claude wrote by hand was never registered in the migration journal, so the tool skipped it, reported success, and a full trading cycle in the stock app crashed on a column that did not exist. In the same app, a news-tone job reported success with 0 rows and a parser wrote 0/0/0 for every stock: three errors that looked like empty results. A TypeScript as cast told the compiler a field existed that the query never fetched, so every sale showed a dash. A timestamp set 15 hours in the future kept every counter at zero without a single error. And a shell script with Windows line endings stopped a photo backup while the container kept reporting healthy, for seven weeks.
What they share is that the failure produced something that is also a legitimate answer. An empty result can mean there is nothing to find. Zero stories can mean a quiet day. A healthy container can mean a working backup. Code that cannot tell these apart picks the harmless reading every time, and so does the person looking at the dashboard.
The fixes follow the same line. Keep errors apart from empty results, and throw when everything fails. Treat a call that succeeds with an empty list as unverified until it has been run against the real thing; one design here could never have worked with a one-permission token, and the first call said success. Never show absence as “all ok”. And before deciding a fix does not work, check that it reached the output: one correct fix looked broken because the build that should have shipped it failed silently.
Every post below traces to a commit or a file in the app’s repository, and the rule each one left is in the rulebook.
Questions
What is a silent failure?
Code that hits an error but reports success, or turns the error into a result that looks normal: an empty list, a zero, a dash, a green status. Nothing crashes, so nobody looks.
What did the silent failures in these apps look like?
A dead login to Claude logged as a successful run with zero stories. A hand-written migration that was never registered, skipped and reported as completed. A job that reported success with 0 rows. A TypeScript cast that turned a missing field into a dash on every sale. A photo backup that stopped for seven weeks while its container reported healthy.
How do you catch them?
Keep errors apart from empty results and throw when everything fails. Treat success with an empty result as unverified. Give each failure mode its own alert, shown somewhere that does not depend on what is being checked. Test restores, not only backups. After a migration, query for what it should have created.
How long did they go unnoticed?
It varied. One design was rewritten the same day. A news source delivered nothing for three weeks, and the photo backup was dead for seven weeks. Each post says how long its flaw was in the code, where git can date it.
Failing silently 15
Closest in the research: Columbia DAPLab: Exception & error handling; Wu (2026): Class C: error swallowing and dilution
The keep-score read another recipe's log in 29% of cases
A dead Instagram token cost two days of posts, and the only sign was one console line
Three weeks of a source delivering nothing
The auth failure that was recorded as a successful run
The fix that was never built
A REST design that could not work with a one-permission token
A test variant sat idle for two days because it asked for today's matrix
The stored fund forecast was not the one the page showed
The migration that said "completed" and never ran
Missing fields and empty results rendered as «all is normal»
limit() without ORDER BY locked out whole exchanges
The image backup was silently dead for seven weeks
Three errors that looked like empty results
A type cast hid a missing field, and every sale showed a dash
A start-of-measurement timestamp set 15 hours in the future silenced all evidence