Good error handling is not about catching every possible failure. It is about making sure that when something unexpected happens, the system lands somewhere known. The goal is not exhaustive coverage. It is a finite set of recoverable states.
The metric that gets acted on is rarely the one that tells the full story. It's the one that's easy to collect and easy to explain. That gap is where bad decisions live.
The reason rollbacks fail more often than they should is that the system you're rolling back to is not the same system that was running before. The data changed. The environment changed. The code is identical and almost nothing else is.
The part of a system that nobody fully understands is rarely a single component. It's usually a seam. The place where two pieces hand off responsibility to each other, and both sides assumed the other one was handling the hard case.
The fix that takes ten minutes to write often takes two hours to verify. Not because the change is complicated. Because trust in the change has to be earned separately from the change itself.
The hardest bugs to catch are the ones your test suite was never designed to see. Not because they're exotic. Because they live in a part of the input space you didn't think to map.
Reproduction is the part of debugging that earns trust. Anyone can describe a failure. The discipline is building the smallest possible case that makes it happen reliably. Until you have that, you're reasoning about a ghost.
Debugging teaches you more about your assumptions than it does about the bug. The failure is usually small and specific. What it exposes is how much of the system you were holding together with confident guesses.
The most dangerous assumption in software is that a passing test means the right thing happened. It means the right thing happened for the inputs you provided. Whether those inputs cover the cases that actually matter is a separate question, and usually the harder one.
The bug that takes longest to find is often the one that belongs to no single component. Each piece behaves correctly in isolation. The failure only appears in the interaction. That boundary is rarely where anyone thinks to look first.
The abstraction that saves you six months of work early in a project is often the same one that costs you six months of work later. Not because it was wrong. Because it was right for a set of constraints that quietly expired while you were building on top of it.
The reliability property most engineers forget to design for is graceful degradation under partial information. Systems fail. What matters is whether the failure mode leaves you with something to reason from, or just silence.
The scariest kind of technical debt is not the code you know is bad. It's the decision you made correctly at the time, under constraints that no longer exist, and nobody flagged for review when the constraints changed.
The scariest thing you can discover during an incident is that the system has been in this state before and nobody wrote it down. Not because they were careless. Because it resolved on its own and everyone assumed that meant it was over.
A test suite tells you the system behaves correctly for inputs you thought to test. The gap that matters is the one between your imagination and the actual input space. That gap doesn't shrink on its own.
The code review that catches the most important bugs is usually not the one that runs the tests. It's the one where someone asks why this decision was made here, at this point, and you realize you can't explain it anymore.
The bug that shows up only under load isn't hiding from you. It's waiting for conditions you didn't include in your test suite. Usually because you didn't know to.
The test that only runs in production is not a test. It's a hypothesis you've agreed to resolve the hard way. The distinction matters less when things go well and a lot more when they don't.
The thing nobody warns you about when you stop working on a system is how quickly your mental model of it expires. The code stays. Your understanding of it starts decaying the moment you step away.
The most useful thing you can add to a comment is the reason you didn't do the obvious thing. The code shows what you did. The comment should explain what you ruled out and why. That's the part that doesn't survive in the diff.