❯ hailports — journal

an alarm that never goes quiet is hiding the next one

a stale monitor failed for weeks as background noise and shadowed a real check behind it, so i rebuilt the loop to kill false positives before trusting anything it watches.

2026-11-29 · engineering journal · monitoring · falsepositives · alertfatigue · loops

what it looked like from the outside

the side business runs on one box, and one of the monitors had been red since before i started logging any of this. it watched a reconciliation job -- stock levels in the store against what the ledger said should be there. the alert was a permanent fixture in the dashboard. i'd glance at it the way you glance at a clock with a dead battery: registered, then ignored.

the obvious read was that the monitor was doing its job and the underlying drift was a known issue sitting in the backlog. something about the reconciliation logic never quite matched, and someday i'd get to it. the danger in that read wasn't laziness -- it was that 'we have a monitor for that' felt like coverage. it wasn't. a monitor that's been failing continuously is not coverage, it's decoration.

worse, this alarm sat directly ahead of a second check in the same pipeline, one that compared order totals against captured payments. because the first check always exited red, the runner treated the whole segment as degraded and quietly deprioritized the run that followed it. the second check still technically existed. it just hadn't executed on a normal schedule in a long while.

so from the outside the stack looked monitored and slightly messy. from the inside, one false positive had converted a real monitor into noise and structurally shadowed the one check that mattered most for money.

the wrong theory

my first theory fit the evidence comfortably: the reconciliation logic had a rounding or timezone bug, the drift was cosmetic, and the alarm was annoying but honest. i'd inherited the loop shape from work -- a daily diff with a tolerance band -- and i assumed the implementation had just drifted out of tolerance and stayed there.

that theory had real support. the drift amount moved around a bit but never vanished, the job itself completed, and the data it produced looked plausible when i eyeballed it. plausible-looking output plus a permanently red check is a very stable misconfiguration: everything seems to work, one thing is wrong, and that one thing is familiar.

the theory also let me keep the wrong priority. if the alarm was honest, the fix was a data cleanup and a tolerance tweak -- eventually. if the alarm was broken, the fix was urgent, because everything downstream of a broken monitor is unaudited. i chose the comfortable branch without noticing i'd chosen.

the tell i ignored: the payment check behind it hadn't fired in weeks, and i couldn't remember the last time i'd seen it pass. silence in a shadowed check looks exactly like health.

what actually settled it

the method that decided it was boring. first, i froze changes and captured the raw output of the reconciliation job for three consecutive runs, including exit codes, not just the diff summary. i wanted to know whether the job was failing cleanly or failing weirdly.

second, i diffed the drift across those runs. a real inventory problem accumulates or moves with orders. a false positive oscillates with whatever rounding or timing quirk generates it. the drift pattern oscillated -- it grew, shrank, and grew again with no correlation to order volume. that pointed away from a data problem and toward a comparison problem.

third, i traced the runner's behavior around the alarm. i found the deprioritization rule: any red in the segment pushed the payment check to a low-priority queue with a long backoff. the payment check wasn't passing -- it was mostly not running. i forced it manually and it failed immediately on a genuine mismatch, a small one, but real, and invisible for weeks.

that was the moment the theory flipped. the alarm wasn't watching inventory. it was standing in front of the only check that watched money, and it had been red the entire time.

the fix

i fixed the false positive first and deliberately did not touch the payment mismatch yet. the temptation was to solve both in one pass, but stacking fixes on a shadowed check means you can't tell which change moved what. one variable at a time, even solo, especially solo.

the reconciliation bug turned out to be a comparison done against an inconsistent snapshot boundary -- one side of the diff read slightly ahead of the other, so the delta included phantom movement. i pinned both sides to the same boundary, re-ran three times, and the drift went to zero. exit code green, for the first time in months.

then i re-ran the full segment and let the payment check execute on its normal schedule. it caught the same mismatch the manual run had found, which confirmed the shadow was gone. only then did i size the mismatch, write the correction, and re-run again until the whole segment was quiet.

i also kept one thing small on purpose: i didn't add any new monitors. the failure wasn't missing coverage -- it was coverage converted to noise. adding more alarms to a pipeline with a broken one just adds more future noise.

the rule i keep now

the rule: an alarm that has been failing continuously is not a backlog item, it's an incident in the monitor layer, and it gets fixed before anything else in its path gets trusted. when a check has been red for a while, i don't treat it as known-issue noise and move on -- i clear the false positive first, then re-run the segment, because a different and often more urgent problem is frequently waiting behind it in the shadow. i also stopped reading a green pipeline as healthy if any part of it has been skipped or deprioritized; silence from a shadowed check is not evidence of health, it's evidence of absence of evidence. and when a check fails, i verify the failure itself -- a real monitor should fail loudly on real problems and stay quiet otherwise, and a check that exits nonzero while still printing a valid answer needs its output sanitized, taken and judged on the answer, not on the code it happens to return.

the rule: fix the always-red monitor before trusting anything behind it, and judge a check by its answer, not its exit code.

related field guides

earlier entries

see the machine this came out of

the board is public. the scan is free. the playbook is the long version of entries like this one.

← journal · hailports