Your Data Validation Suite Is a Mess.
From the publisher’s feed, collected in the ZeroLabs newsroom.
Practitioner summary · ACM JDIQ (under review)A framework for fixing it, and where LLMs actually help.Most data quality checks aren’t designed. They’re scar tissue.If you’ve worked on a data governance team for more than a year, you’ve seen this pattern. A check gets added the week after a defect blows up a dashboard. Another survives from a migration project nobody remembers the details of anymore. Six months later you’re staring at a validation suite that works, technically, but nobody can answer two basic questions about it.What kind of check is this? Is it confirming a column exists, that a foreign key resolves, that a business rule holds, that the data showed up on time? And where should it actually run? At the source system, mid-transformation, when it lands in the warehouse, or at the BI layer where someone is about to make a decision off it?These aren’t pedantic questions. A schema check that only runs after a malformed column has already been consumed downstream has already done its damage. A freshness check that only runs at the source can’t catch staleness introduced by a transformation job that silently stalled. Where a check runs decides whether it prevents anything or just documents the postmortem.I wrote a paper about this, currently under review at ACM’s Journal of Data and Information Quality. What follows is the practical version: no citations, no literature review, just the framework and an honest account of where LLMs genuinely help versus where the hype outruns the reality.01 / The taxonomyEight kinds of checks, not fiftyMost validation logic, no matter how organically it grew, falls into eight buckets. The trick isn’t inventing new categories. It’s forcing every check you have into exactly one of these.Figure 1 — The eight-type taxonomy. Every check in a suite maps to exactly one bucket. Colour previews where that type belongs, the placement formalised in Figure 2.None of this is novel in isolation. What’s useful is the forcing function. Once every check sits in exactly one bucket, the shape of your validation suite becomes visible for the first time, and so do its gaps.02 / PlacementWhere each type actually belongsHere’s the part that’s more actionable than the taxonomy itself. Map a generic pipeline to four boundaries, source extraction, in-flight transformation, staging and load, and BI consumption, and most check types have an obvious best home. Catch structural and format problems as early and cheaply as possible. Business logic can only be checked once the data has reached the stage where that logic, or that audience, actually exists.figure 2 — The placement framework. Four pipeline boundaries and the natural home for each check type. Freshness appears at two boundaries on purpose.One nuance is worth calling out. A freshness check placed only at BI consumption will catch staleness, but by the time it fires the diagnostic trail back to the root cause is long and cold. A lightweight freshness check at the source, did the nightly extract finish on schedule?, catches the same class of problem closer to where it started. That’s defense in depth, and it isn’t free; you’re paying compute twice. So do it selectively, not everywhere.03 / The auditAuditing a suite you inheritedHere’s the real payoff. Take an existing, organically grown 22-check suite, the kind every team has, and run it through this taxonomy retroactively. You’ll almost always find the same pattern. Business-rule and referential-integrity checks are overrepresented, because those get added reactively after a visible defect. Statistical and freshness checks are underrepresented, because their absence doesn’t produce an obvious symptom until a stale or anomalous number has already misled someone.Map the same suite against the four stages and a second pattern shows up. Checks cluster wherever the team has the most direct visibility, usually staging and load, while the edges, source extraction and BI consumption, are comparatively bare. Which is a problem, because those edges are exactly where type and format defects and freshness defects are easiest to catch.Suddenly your validation suite isn’t an opaque pile of historical fixes. It’s a matrix with visible holes in it.04 / Where LLMs helpWhere LLMs help, and where I’m deliberately not claiming muchThis is the part people want to skip to, so let me be direct about scope first. I’m proposing two narrow, specific roles for an LLM here, not “AI fixes data quality.”Figure 3 — Two roles for one model. Propose candidate checks from documentation, and classify checks you already have. Every output is a reviewed first draft, never a verdict.Role one: reading documentation to propose candidate checks. Schemas, data dictionaries, and business specs are full of validation logic nobody has translated into actual checks. A data dictionary entry saying a ship date “should not precede order date” is a fully specified business-rule check sitting in plain English, waiting for someone to notice it. An LLM reading that documentation can propose it as a structured candidate, name, description, target columns, specification, pseudocode, instead of waiting for a human to stumble across the same sentence buried in a 40-page spec nobody reads end to end.Role two: classifying checks you already have. Given a check’s specification, an LLM can classify it against the eight-type taxonomy and recommend where it should run, with a confidence score. That’s what turns the “audit your inherited 22-check suite” workflow into something fast, instead of a week of manual archaeology.Here’s where I want to be careful, because this is exactly the kind of claim that’s easy to oversell. I tested the classification function against a deliberately tricky case: a check confirming an ERP extract job finished on time. Technically that’s a freshness check, but it belongs at the source, not the default BI-consumption slot the taxonomy assigns most freshness checks. The model first defaulted to the wrong stage, then dropped its confidence and flagged the conflict itself. That’s the system working as intended: low confidence routing an ambiguous case to a human, instead of confidently filing it in the wrong place.But I’m not reporting an accuracy number for that, and the reason matters more than the result. The reference label for that check and the model’s classification were both produced against the same taxonomy I wrote. Comparing them and computing a match rate would be circular; it would only confirm that the same reasoning process agrees with itself, not that an independent classifier is reliable. A real validation needs labels produced by someone, or something, that never saw the classification being tested. I didn’t have that, so I didn’t claim it.This matters beyond intellectual honesty. There’s a live debate in the AI-research literature about whether LLM coding and analysis assistance actually speeds people up. One well-known study found professional developers were slower with AI tools than without, even while they believed they’d been faster. Other studies, run differently, find solid gains. The honest state of the evidence is that it depends, a lot, on the task and how you measure it. I’d rather say that plainly than dress up an illustrative example as proof.05 / The playbookWhat I’d actually do with thisIf you’re on a data governance or platform team, the useful exercise isn’t “go implement an LLM pipeline.” It’s this. Take your actual validation suite and manually sort every check into the eight types. It takes an afternoon and it’s genuinely revealing. Then map it against the four stages and look for where checks cluster and where they’re suspiciously absent. If the source-extraction or BI-consumption columns are empty, that’s probably your highest-leverage gap, not the transformation and staging layer where you already have plenty of coverage.Then, if you want to experiment with LLM-assisted classification to speed up that sort on a bigger suite, treat the model’s output as a fast first draft a human reviews, not a verdict. Low confidence is information, not noise. It’s telling you the check is genuinely ambiguous, not that the model needs to try harder.The framework is the durable part. The LLM piece is a real, useful accelerant for populating and maintaining it, with the guardrails that come from being honest about what hasn’t been tested yet.A practitioner-facing summary of a paper currently under review at ACM’s Journal of Data and Information Quality. Happy to share more detail on the taxonomy, the placement framework, or the classification prompts.Shanmukh Behara · Data GovernanceYour Data Validation Suite Is a Mess. was originally published in Towards AI on Medium, where people are continuing the conversation by highlighting and responding to this story.