The bug that looked impossible.
A true story from our own code. Every artifact in it is public.
The bug
A Go JSON library that people had trusted for a decade was silently losing data. Save one value, and sometimes another value disappeared. Nothing crashed. The output was still valid JSON. The library is ours — our principal built it and has maintained it for ten years, and it runs inside major cloud projects.
Why nobody caught it
Nobody's tests caught it, because the code looked fully tested. Every branch and every condition had been exercised. The problem was simpler and worse: nobody had ever written down that saving one value must not delete another. A rule that isn't written down is a rule no test can check.
The fix that lasts
Now the rule exists on paper: "saving one value must never delete another." And there is a test behind it that runs on every change to the library, forever. The bug can come back a hundred different ways; the test is waiting for all of them.
The uncomfortable part
This bug escaped our own audit too. A user caught it and reported it. So we published the whole story — what we missed, why fully-exercised code still hid it, and what we changed in our process so gaps like this get written down.
We think an audit you can check matters more than an audit that claims perfection.
▸Appendix C The fine print, for the skeptics
The technical shape: a scalar-array overwrite in Set() — the grow branch fired only for object-first arrays — silent, with valid JSON output, despite 100% MC/DC on the affected code.
The postmortem names three root causes: unspecified partitions, no output oracle, and literal pattern matching. In its own words: "MC/DC has no notion of 'correct'; it has only 'exercised.'" An unspecified partition is simply not in any check's denominator.
Reported by the community (jsonparser issues #286 and #267). We say "escaped the audit" because that is what happened.