back to diaries

The Bug That Ships the Product

An essay on load-bearing bugs — how mature systems, teams, and organizations quietly adapt to their own flaws until the flaw becomes the foundation, and why removing it is more dangerous than leaving it in.

The Bug That Became Infrastructure

"The bug you can reproduce is a puzzle. The one you can't is a ghost story."

Every mature codebase has a bug that cannot be fixed. Not because no one knows how but because fixing it would break something worse. This has happened to the best of us. Engineers name it the "load-bearing bug" or a "shadow process". It's strange that the systems have quietly adapted to the defect, routing around it so seamlessly that the bug has become infrastructure. And don't you dare remove it, cause if you do, you end up with a cascade of failures in components that were never formally coupled to it but had learned to depend on its exact misbehavior. As the wise men say, "Never touch a running system, unless it's on fire. And sometimes not even then."

When the Glitch Becomes the Glue

It is not metaphorical that the bug is "infrastructure", it's rather a structural law that applies anywhere systems grow by accretion instead of design. It is like the game of Jenga. When organizations keep piling patchwork on top of patchwork, they too develop load-bearing bugs and once everyone learns to route around that "broken approval process" you get a de facto workflow. Apparently, the "glitch" in the system has become the "glue" holding the teams together. Remove the broken process and you don't get efficiency. You get silence, because the workaround was the real workflow.

The deeper insight is that optimization and resilience are often in direct tension. An optimized system has no slack, no redundancy, no weird vestigial pathways. It does exactly what it's supposed to. But a resilient system is full of strange detours, unofficial communications, and yes, bugs that accidentally provide fault tolerance. The messiness isn't entropy. It's the immune system.

Why Rewrites Fail and Best Practices Don't Travel

This is why rewrites fail because the only thing scarier than the bug is the five-word horror story: 'Let's rebuild it from scratch.' The old system's architecture isn't just its intended design but also the thousands of micro adaptations that accumulated around every flaw, every edge case, every Thursday morning when something broke and someone patched it with duct tape that quietly held for six years. A rewrite fondly preserves the blueprint but discards the scar tissue that once made it survive the contact with reality.

This is why "best practices" often fail when they are imported from the outside. A practice is only 'best' because of the specific problems it grew up with. When you transplant it into a new office, a new environment without those same problems, you end up solving a mystery that doesn't exist while ignoring the fire right in front of you. Besides, the systems that last aren't the ones with the fewest bugs but the ones whose bugs have been promoted to features by everything built on top of them.