qualitylab

Observability · Blast radius

Check the data is fit before you consume it

tier II/cost to adopt: medium/active

Validating incoming data against an inferred schema and a distribution baseline, before it reaches training or serving, converts a silent input-fitness failure into a visible one at the boundary where it entered.

Do this firstEvery change runs the suite before a human looks at it

This is not determinism. Determinism asks whether processing repeated; this asks whether the input was fit to process at all, and a perfectly repeatable pipeline will reproduce a corrupted feature exactly.

The production evidence is about where the check sits rather than how clever it is. Type, domain, presence and value-count constraints, plus a distance measure between the current batch’s distribution and the last one, caught new-column, missing-feature and wrong-type anomalies at detection rates near or above 97% in a system processing trillions of examples a day. The firing rates are the part worth copying: single digits, with roughly half to two-thirds of fired alerts leading to an actual fix.

The counterevidence sets the ceiling. Averaged across eight detection tools on five real datasets, precision was about 47% and recall about 36%, and no tool dominated. Some errors — a misspelled name, a wrong-but-plausible address — were structurally undetectable by any of them.

The decoy

Stacking every check you can think of. Coverage bought that way costs precision on a measured curve: across eight error-detection tools, taking the union of all of them reached 99% recall at 39% precision on one dataset. Most of what then fires is wrong, and an on-call who learns that stops reading.

Evidence

Counterevidence

Last reviewed 2026-08-19.