Antithesis has published a deep look at “nightmare mode”, its tool for fault injection testing of the disk underneath your software: power cuts, half-finished writes, I/O errors and slow disks, all on demand. It’s written for people building databases, but its sharpest lesson applies to anything that keeps several systems in agreement, including the calendars you juggle every week. The most dangerous failure isn’t the one that crashes. It’s the one that reports success. (For people with three calendars, nightmare mode is just called Monday.)
What Antithesis built, and what it found
In “Nightmare mode: simulating disk failures”, Antithesis engineers Anjana Ratnayake and Teymour Aldridge explain how their simulation platform now breaks storage on purpose. They started with LazyFS, an open-source FUSE filesystem, and went on to build their own in Rust, called Amnesia, which keeps the “written” and the “really on disk” states apart, so the fuzzer can decide exactly what survives.
The faults it covers are the ones real hardware produces:
- Power loss, which is not the same as killing a process: a killed process leaves the operating system’s cache intact, while a power cut throws away everything that wasn’t flushed to disk.
- Torn writes, where only part of a write lands, or writes land in a different order from the one the program expected.
- I/O errors, such as the flush call (fsync) itself failing.
- Latency, where operations finish late or out of order, which is how concurrency bugs come out of hiding.
The examples are what make the post worth reading. In bbolt, the storage engine behind etcd, a failed flush followed by a restart let the database read a page that had never reached the disk and treat the transaction as committed; after a later power cut, it refused to open at all. And in the famous “fsyncgate” case, a failed flush made the kernel mark the unsaved data as clean, so a retry reported success while the data was simply gone. PostgreSQL’s answer was to stop retrying and recover from its own log instead.
Two lessons fall out of that. A success can hide an earlier failure. And a retry is only safe when you know what the first attempt actually did.
Fault injection testing lessons from building Calendrz
Calendrz doesn’t write to a disk in the way a database does, but it lives by the same rules. With availability mirroring, when you’re busy in one calendar we block that time in all your others, across your Google Calendar and Microsoft 365 connected accounts. That means a lot of calls to calendar providers, all day, and some of them fail. Here is where the article hit home.
The success that wiped the failure
We track errors on every connected account. When the same kind of failure happens several times in a row, we flag the account so the person can fix it, rather than leaving their calendars quietly unprotected. Just this week our founder, Liviu Tudor, fixed a bug in exactly that logic, and it is fsyncgate in miniature.
A Microsoft account’s access token gets refreshed roughly every hour, and a successful refresh used to clear every tracked error. So an account whose calendar calls failed on every attempt had its error count reset to zero about hourly, and never reached the point where we would have flagged it. The token was fine; the calendar wasn’t. The fix records where each error came from, so a working token no longer vouches for a calendar it knows nothing about. Like Antithesis, we learnt that “the last thing succeeded” is not the same as “everything is fine”.
When not to retry
Temporary failures (a provider’s server error, throttling, a timeout) don’t count against an account at all, and some writes are retried a few times. But not all of them. If a Microsoft calendar returns a server error when we create a block, we don’t send the request again, because replaying it could create a duplicate block if the first one actually went through. A duplicate block is a small thing, but it looks a lot like the double booking we exist to prevent. Instead, the next pass reads the calendars again and puts right whatever is missing. That’s our version of PostgreSQL recovering from its log: trust what’s really there, not what you hoped happened.
What to take from it
- If you build software: test the ugly failures, not just the clean ones. A crash is easy to spot; a success that hides a failure is not. Keep track of which operation failed, and decide per operation whether a retry is safe.
- If you lean on tools to keep things in agreement: the quiet failure is the expensive one. A calendar that silently stopped being protected is worse than one that tells you it needs attention.
- If agents are writing your code: this matters even more. We believe software is heading for a “lights out” setup, where people write the specs and agents write, test and ship the code. In that world nobody is reading every line, so the tests have to be nastier than reality. A fault injector is a spec the code can’t talk its way around.
The cheque is in the post, the block is definitely saved, and the meeting definitely won’t overrun. Some promises are worth checking. If you juggle several calendars, Calendrz mirrors your availability across all of them, so being busy in one means being busy in every other. Try Calendrz and let your calendars keep each other honest.







