Opening Scene
A restaurant’s produce delivery gets checked at two different moments. First, the receiving clerk checks it against the purchase order: right item, right quantity, right grade — matching the deal that was struck. Later, the kitchen’s own standards kick in: does this tomato actually look and taste right, regardless of what the invoice says? The first check is about honoring an agreement. The second is about whether the thing itself is actually good. Both matter, and they’re not the same question.
In Plain English
A data contract enforces that incoming data matches an agreed-upon shape and delivery promise — the schema, the SLA, the terms both sides signed onto. Data quality is a broader, ongoing concern about whether the data is actually correct, complete, and sensible, independent of whether it technically matches the contract. A dataset can perfectly satisfy its contract — right fields, right types, delivered on time — and still contain garbage values, like a “select-grade” tomato that’s technically graded correctly but tastes terrible. Contracts catch structural violations; quality checks catch everything else.
The Old Way
Before the distinction between contracts and quality checks was clearly drawn:
- Teams often treated “the schema is correct” and “the data is good” as the same question, and stopped checking once the schema passed. Plenty of genuinely bad data technically satisfies a valid schema.
- Quality monitoring and contract enforcement frequently lived in separate, disconnected tools, with no shared understanding of which one was supposed to catch which kind of problem. Gaps opened up between them.
- Consumers had no clear escalation path for “this data is contractually valid but obviously wrong,” since that situation didn’t fit neatly into either a schema violation or an anticipated quality rule.
Understanding contracts and quality as related but genuinely distinct layers is what lets teams build defenses that actually cover both kinds of problems.
What’s Changing (and Why AI Is the Reason)
- Teams increasingly run contract validation and data quality checks as two distinct, complementary layers in the same pipeline, rather than conflating them into one pass/fail gate.
- This overlap is the central subject of this content library’s dedicated data quality and observability series, which goes much deeper into the specific quality dimensions — accuracy, completeness, consistency — that a contract alone can’t guarantee.
- AI models trained on data that’s contractually valid but qualitatively poor learn from that poor data just as readily as from good data, since a model has no innate sense that a value is “technically fine but substantively wrong,” which makes the quality layer especially important once AI is the eventual consumer.
The Metaphor, Fully Extended
| The Restaurant’s Two Checks on Delivery | Contracts vs. Data Quality Concept |
|---|---|
| Checking the delivery against the purchase order | Validating data against the agreed contract and schema |
| Checking whether the produce is actually good, regardless of the invoice | Checking whether the data is actually accurate and sensible |
| Both checks happening on the same delivery | Both layers running on the same incoming dataset |
| A technically correct but low-quality tomato passing the first check anyway | Contractually valid but substantively wrong data passing schema validation anyway |
For Beginners: What to Actually Do
- Learn to ask two separate questions about any dataset: does it match its contract, and is it actually good data?
- Practice spotting the difference between a schema violation (wrong shape) and a quality problem (right shape, wrong content).
- Get comfortable with the idea that passing contract validation is necessary but not sufficient for trusting a dataset.
For Practitioners and Leaders: The Deeper Layer
- Run contract validation and data quality monitoring as two distinct, complementary layers rather than one combined check.
- Define quality rules — value ranges, distribution checks, referential integrity — separately from schema rules, and own them explicitly.
- Build escalation paths specifically for “contractually valid but qualitatively wrong” data, since it slips through pure schema validation by design.
Quick Recap
- Data contracts validate structure and delivery; data quality validates correctness and sensibility, and the two are genuinely different layers.
- Data can pass contract validation completely and still be low-quality or wrong.
- Running both layers as complementary, distinct checks catches problems that either one alone would miss.
- AI models are especially vulnerable to quality problems that a contract alone can’t catch, since they learn from content, not just structure.
Where This Fits in the Series
Article 10 covered contracts for streaming versus batch delivery. This article drew the line between contract enforcement and data quality. Article 12 looks at how contracts get enforced automatically, inside CI/CD pipelines.
Subscribe to the Newsletter
Get the latest DataParables articles delivered straight to your inbox.