Code Doesn't Keep
Code that never runs isn't preserved — it holds references to an environment that keeps moving without it. The common path is continuously re-validated by reality; the rare path is a stopped clock nobody has looked at.
Code that never runs isn't preserved — it holds references to an environment that keeps moving without it. The common path is continuously re-validated by reality; the rare path is a stopped clock nobody has looked at.
Every fix to the common path makes the exception path less frequent, less familiar, and less examined — so reliability work quietly concentrates your remaining risk in the code nobody has watched run.
Execution is the only maintenance mechanism that reliably works, and nobody schedules it. That makes readiness a flow rather than a stock — which is why the only honest question about any part of a system is when it last actually ran.
Permission systems drift toward maximum grant, not because anyone decided to loosen them, but because only one direction of change has someone asking for it.
Access lasts too long and arrives too wide for the same reason: granting produces an artifact and needing produces nothing, so every correction has to argue from silence.
Access expires too slowly, but it also arrives too wide. Roles grow to the union of everything their members have ever needed, and everyone holds the whole union.
Failing to reproduce a bug tells you something real. It just doesn't tell you the thing most people close the ticket believing it said.
Both halves of reproduction — succeeding and failing — quietly replace the reporter's failure with yours. Only one of the two is the bug.
Getting a bug to reproduce feels like the end of the investigation. It's the point where you quietly substitute your version of the failure for theirs.
Most of a system's shape was never chosen. It's the fossilized remains of whatever was expedient the first time, and it constrains everything downstream as firmly as if someone had decided it on purpose.
Accreted structure isn't only an archaeology problem. It's being created right now, and the moment a temporary shape becomes permanent is observable while it's happening.
Provenance is a proxy. What actually holds a system's shape in place isn't anyone's reasoning — it's the count of things standing on it, and that you can measure at any time.
The fastest responder on a team accumulates dependency without anyone deciding to give it to them. Being good at unblocking others is how you become the block.
You can't fix a dependency bottleneck by working harder inside it. The only honest measure of how well a team is structured is what happens during the week nobody can reach you.
You inherited code with no explanation attached. The safe default is not caution, and it is not confidence — it is finding out.
Transfer documents fail because they are written by someone who has already stopped being the owner. The fix is to stop treating the transfer as the moment.
Work changes hands constantly, and every transfer loses something nobody wrote down because nobody knew it was load-bearing.
Delete is the one word in a product that every user thinks they understand and every implementation defines differently.
Deleting a record is easy. Deleting every derivative of that record is the part nobody scoped.
Everyone agrees users should be able to take it back. The disagreement is about how much the system has to remember, and for how long.
Import and export are one-time events. Keeping two systems agreeing is a permanent one — and the hard part is identity, not transfer.
The first thing a new customer does with your product is hand it a file of their real data. Whatever happens next is what they learn about the software.
Notifications are deliveries to systems you don't control, on paths that can retry. The duplicate that reaches a customer is more visible than almost any other bug.
Limits get added to protect the system, then serve as the product's only communication about how much use is acceptable. Most say it badly.
Shared capacity is first-come, first-served by default, which means the heaviest user sets everyone else's experience. Nothing about that is automatic to fix.
Recurring work looks simple until you ask what happens when a run is late, overlaps the next one, or fires on a machine that thinks it's a different hour.
Every machine's clock is slightly wrong, and they're wrong in different directions. Code that compares timestamps across machines is trusting a consensus that doesn't exist.
Switching costs accumulate quietly from the day you integrate. The useful question isn't whether you're locked in — it's whether you know the number.
Your code is identical to yesterday's and the behavior is different, because the change happened on the other side of an integration you don't control.
Integrating a third-party service imports more than its features. It imports their latency, their outage windows, their rate limits, and their idea of what an error means.
When work moves to a queue, the interface usually keeps claiming it's done. Closing the loop means the product tells the truth about what has actually happened yet.
Most queue failures are transient and retrying fixes them. The interesting case is the message that will fail identically forever, and what your system does when it meets one.
Moving work to a background queue makes the request fast. It doesn't make the work smaller — it moves it somewhere with fewer people watching.
A config edit can change production behavior as completely as a code change can, and in most places it does so with none of the review, testing, or staged rollout that code gets.
An alert isn't a statement about a metric. It's an assertion that a specific human should stop what they're doing and act — and most alerts were never designed to earn that.
Alert rules accumulate one incident at a time, which means your coverage is a map of your history — not of the ways your system can actually break.
Rolling back a deploy feels like undoing it. Mostly it undoes the code. Everything the bad code already did to your data, your queues, and your downstream systems is still there, waiting.
A deploy isn't a moment when the old code becomes the new code. It's a window where both are live at once, reading and writing the same data — and most deploy surprises live inside that window.
Deploying code and turning on new behavior are two separate decisions that most teams make simultaneously by default. Separating them is what turns an irreversible deploy into a reversible one.
Retrying a failed operation feels like giving it another chance to succeed. What it actually does is ask a question nobody thought to answer: what happens if the first attempt worked and the failure was just in hearing about it?
Most operations get designed once, for the happy path, and retries get bolted on after as an afterthought. Treating the retry as part of the operation's design from the start closes most of the gaps this thread has described.
A retry looks like local resilience — my request failed, I'll try again. At scale it's a decision about how much extra load to send a system that may already be struggling, made by every caller independently and at once.
Every cache makes an implicit promise: this value is still true. The performance win is real, but so is the risk you're quietly signing up for every time you decide not to check.
Every system is built on assumptions that were true at the scale it was built for. Growth doesn't announce which ones stopped holding — it just quietly waits for you to find out the expensive way.
A green test suite feels like a broad statement about your code's health. It's actually a narrow one: these specific inputs produced these specific outputs, today. Confusing the two is where false confidence comes from.
A test that runs and passes tells you the code did what the test checked. It doesn't tell you the test checked the right thing. That second question is easy to skip and expensive to skip.
Every test suite has a shadow: the tests that don't exist because nobody thought to write them. That absence doesn't show up on a coverage report, which is exactly why it's where the real risk tends to live.
Error handling gets treated as the cleanup after the real work — the branch you fill in to make the compiler happy. But what a system does when something goes wrong is part of what the system is.
A failure you anticipated is an inconvenience. The same failure unanticipated is an incident. The difference isn't in the event — it's in whether the system had somewhere to put it.
An error message is written once, in a moment of frustration, by someone who already knows what went wrong. It's then read by people who don't — often at their worst moment, with no other information to go on.
A bug in a rarely-used option affects the people who chose it. A bug in the default affects everyone who didn't choose anything — which is usually almost everyone. The blast radius of a mistake tracks how many people never had to opt in.
When work feels slow, the instinct is to get better at the steps inside the loop. Usually the bigger win is making the loop itself shorter — so being wrong stops costing so much.
The instinct is to count code as an asset — look how much we built. But the asset is the behavior; the code is what you pay to keep it. More lines doing the same job is more liability for the same value.
Performance has a target, and the target is almost never 'as fast as possible.' It's a specific threshold tied to what a human perceives or a system requires — and knowing that number is what tells you when to stop.
Once you've measured, most real speedups don't come from making the code faster. They come from making the code do less — changing how the work grows with the input, not shaving the cost of each step.
Performance intuition is wrong often enough to be dangerous. The slow part is rarely where it feels like it should be — and the only way to know is to measure the specific system, not reason about it.
A deadline sets when you want something, not how much work it is. When the two collide, the honest levers are few — and the popular ones, adding people and working harder, mostly make it worse.
When you give a task a single number, you've hidden the only thing that mattered: the spread. A three-day estimate that's really 'two to fifteen' isn't a smaller version of the same answer — it's a different kind of answer.
The old joke — the first 90% of the work takes 90% of the time, and the last 10% takes the other 90% — isn't cynicism. It's a precise description of where estimates go to die: the unglamorous finishing that no one pictures.
A coverage number tells you which lines ran during the tests. It says nothing about whether anything was actually checked — and the gap between those two is where teams get a false sense of safety.
A mock replaces a real dependency with your belief about how it behaves. When the belief is wrong, the test passes and production fails — because you tested the version of the world in your head, not the one that exists.
A test that fails when you refactor working code isn't protecting you — it's charging you. And the real damage isn't the wasted hour; it's that the suite slowly teaches people that failures don't mean anything.
Adding a library is priced as a one-time decision — an afternoon saved. It's really a subscription: upgrades, CVEs, breaking changes, and the day it's abandoned. The install is the cheapest moment you'll ever have with it.
Whether a dependency is cheap or ruinous mostly comes down to one thing decided at integration time: can you leave? That's not a property of the vendor. It's a property of how far its concepts spread into your code.
A library is an obligation you carry. A service you call at runtime is stronger than that: you've adopted its availability as a ceiling on your own, and the arithmetic of that compounds faster than anyone expects.
A number from production means nothing until you know what that number usually is. The hardest part of observability isn't collecting metrics — it's knowing what normal looks like, because 'bad' is defined entirely by contrast with a baseline you had to measure first.
By the time you're looking at an incident, the state that caused it is usually gone. Debugging production is forensics on a scene that's already been cleaned up — which is why what you captured while it was happening matters more than how hard you look afterward.
In production you can only answer the questions you decided to measure in advance. The most useful metric is almost always the one someone added before anyone needed it — and the worst incidents are the ones where the data you'd want simply doesn't exist.
A schema change and a code change can't deploy at the same instant. Expand-contract accepts that and makes the intermediate state — where both old and new must work — the thing you design for.
Feature flags are what make progressive rollout and safe migration possible. They're also the debt those techniques quietly accumulate — and the flag you never delete is the one that decides your incident for you.
No test environment fully reproduces production. That's not a gap to close — it's a fact to design around, which means the rollout itself has to be the final test, run against real traffic in a way that limits what a failure costs.
The moment you add retries to a system, you've made a promise you might not be keeping: that doing the same operation twice is the same as doing it once. Idempotency is what makes that promise true.
The more alerts a system sends, the less anyone pays attention to them. Past a threshold, adding alerts makes a system less observable, not more — because the alerts that matter drown in the ones that don't.
Perfect reliability is the wrong goal. An error budget turns reliability into a number you can spend — and once it's a budget, the argument about whether to ship stops being a matter of opinion.
When a dependency fails, a system has two options: fail with it, or degrade around it. Most systems fail with it — not because degrading is impossible, but because nobody decided in advance what the degraded state should be.
When a system fails, how much else fails with it? The blast radius of a failure is a design property, not an accident. Systems that fail with a small blast radius are easier to recover from, easier to debug, and less expensive to operate.
How long a system takes to recover from a failure is as important as how often it fails. A system that fails rarely but recovers slowly can accumulate more total downtime than one that fails often but recovers fast.
A runbook written the day after an incident captures what you wish you'd known. A runbook written six months later captures what you remember. The gap between those two is where the operational knowledge goes.
New systems tend to be most reliable in their first month of operation — not because they're less likely to fail, but because operators are more likely to be watching. Vigilance decays faster than systems do.
In debugging and reliability work, the most valuable reference point is a known good state — what the system looked like when it was working. Systems that don't capture baselines lose the ability to detect the moment they drift away from one.
Near-misses are higher-value reliability signals than actual incidents because they surface failure modes without the cost of actual failure. But most teams only run post-mortems on incidents that broke through, so near-miss signals evaporate before anyone learns from them.
Most monitoring is built around processes: did it run, did it error, did it use too much memory. Output-first observability flips that — it asks whether the thing that was supposed to be produced exists, is current, and is correct.
An alert that fires after a problem has been accumulating for weeks isn't a monitoring system — it's a postmortem trigger. The gap between when the failure started and when the alert fires is where the actual cost lives.
Freshness is a property of output, not process. Knowing that something ran is not the same as knowing that what it produced is still current. That distinction is where stale-data bugs hide.
When a system has been silent for weeks, recovery isn't just restoration — it's reconstruction. How you handle the gap matters as much as fixing the underlying failure.
The most dangerous gaps are the ones that don't announce themselves. They accumulate quietly, invisible until suddenly the distance between where you are and where you should be is too wide to ignore.
Monitoring tells you what happened. It doesn't tell you what didn't happen. That asymmetry is where most silent failures hide.
The production gap and the disappearing failure report are two symptoms of the same problem: an open loop. The tool that improves fastest is the one that closes it — tightly, deliberately, as a first-class part of how the product is built.
Not all failures are equally useful. A failure on a document the tool has never seen before is the most valuable feedback it can produce — but only if you capture it before it disappears.
A document tool's performance on your evaluation set and its performance on your users' actual documents are two different numbers. The gap between them is structural, not a bug — and closing it requires a different kind of work than improving the eval.
No tool handles the entire long tail. The behavior that separates a trustworthy tool from a dangerous one is what it does on the document it can't handle: decline honestly, or guess and hope.
The easy documents are all easy in the same way, and a tool handles them on day one. The value — and the difficulty — lives in the long tail of documents that are each weird in their own particular way.
If the tail is the product and honest declines mark its edge, then the work is a slow walk down the tail — turning each declined document into a handled one. That walk is what compounds into a tool nobody can catch.
The dangerous extraction error isn't the one that looks broken — the user catches that. It's the one that looks exactly like a right answer and sails straight through the quick review.
The dangerous failures aren't the ones that throw errors. They're the ones that fail silently, leave no alarm, and only surface as drift you notice later. The defense is building routines that verify state instead of trusting the last run.
Running the same health checks when everything is fine feels like wasted motion. It isn't. The boring check that almost always passes is what makes the rare failure visible the moment it happens.
Daylight saving time swallowed an hour of work last night. Here's why wall-clock scheduling is harder than it looks.
When your security layer times out, what happens? The answer you pick changes everything downstream.