This is a submission for DEV's Summer Bug Smash: Smash Stories powered by Sentry.

This is the story of a bug with two layers: a crash we correctly decided not to fix — and the verdict-flipping second bug hiding behind it that we missed for a week, even though the fix for it already existed, sitting unread on disk with a note that literally said "trust this file over the exit status."

The setup

I build an AI agent harness — a control system around a language model where every claim needs receipts and every safety gate is enforced by code. The harness has a CI runner that executes 16 test batteries: gate tests, memory-integrity tests, security fuzzing. If a battery fails, the chain refuses to let changes land. The whole point of the system is that a verdict you can't trust is worse than no verdict — remember that, it's the punchline.

The crash