top of page

Data Contracts: What They Are, What They Don't Cover, and What Still Breaks

Writer: Vexdata
Vexdata
3 hours ago
9 min read


Data contracts have become one of the most discussed ideas in data engineering over the last couple of years. The core idea is straightforward and genuinely useful: if data producers and consumers agree upfront on what the data will look like, a whole class of downstream breakage can be prevented.


The conversation around contracts has been largely enthusiastic. Blog posts explain how to implement them. Vendors have built tooling around them. Conference talks frame them as a foundational shift in how data teams should operate.

Most of this content is focused on what contracts enable. Very little of it is honest about what they do not.


Data contracts are a meaningful step forward for data quality in large organisations. They are not a complete solution, and treating them as one leaves teams with a false sense of coverage. There are four specific categories of data quality failure that contracts do not address, regardless of how well the contracts themselves are designed and enforced.

This post explains what contracts genuinely solve, what they structurally cannot solve, and what needs to sit alongside them in a complete data quality programme.



What Data Contracts Actually Are

A data contract is a formal, versioned agreement between the team that produces a dataset and the team that consumes it. It defines what the producer commits to delivering and what the consumer can depend on.


In practice, a well-formed data contract covers several things:


Schema definition. The fields the dataset will contain, their names, their data types, and whether they are required or optional. This is the most basic layer of the contract and the one most implementations start with.


Field-level semantics. What each field actually means. Not just that a field is called "revenue" and is of type float, but whether it represents gross or net revenue, in which currency, at which point in the transaction lifecycle. Schema tells you the structure. Semantics tell you the meaning.


Freshness expectations. How often the data will be updated and what the maximum acceptable latency is. A contract that defines the schema but says nothing about delivery cadence leaves consumers guessing about whether stale data is a quality failure or expected behaviour.


Ownership. Which team is responsible for the dataset, who to contact when something is wrong, and what the escalation path looks like. Without defined ownership, a contract is an agreement with no one on the other side.


Versioning and change management. How changes to the contract will be communicated, how much notice consumers will receive before a breaking change, and what constitutes a breaking versus a non-breaking change.

When all of these components are in place, a data contract is a meaningful governance artefact. It is also, importantly, a static document. It describes what should be true. It does not observe what is true at runtime.



What Data Contracts Genuinely Solve

Before mapping the gaps, it is worth being clear about where contracts add genuine value, because they do.


Schema drift between teams. In organisations where multiple teams produce and consume data independently, schema changes made by a producer without warning to consumers are one of the most common causes of pipeline failures. A contract makes the schema explicit and versioned. Breaking changes require a formal update. Consumers know what to expect and get advance notice when it changes. This is a real problem that contracts solve well.


Undocumented breaking changes. Without a contract, a producer team can rename a field, change a data type, or drop a column without any formal obligation to notify downstream consumers. With a contract, that change is a contract violation. The governance pressure to communicate changes in advance becomes structural rather than relying on team culture.


Unclear ownership. In large data organisations, it is not always obvious who owns a given dataset, who to contact when something looks wrong, or who has the authority to make a change. Contracts establish this explicitly. The producer team is named. The escalation path is defined.


No agreed SLAs on freshness. A consumer team that does not know whether a dataset is updated hourly or daily cannot distinguish a data quality failure from normal latency. A contract that specifies expected freshness gives consumers a baseline against which to measure whether what they are seeing is a problem.


These are the problems contracts were designed to address. They address them well. The issue is not that contracts overpromise on these things. The issue is that the conversation around them has expanded to treat contracts as a broader data quality solution, which they are not built to be.



Gap 1: Runtime Anomalies Contracts Cannot Catch

A data contract defines what the data should look like. It says nothing about what the data actually contains when it arrives.


Consider a contract that specifies a transactions table with a defined schema: transaction ID, user ID, amount, timestamp, status. The contract is enforced. Every field is present. The data types are correct. The table arrives on schedule.


And this week, the volume of transactions is 40% lower than last week for no apparent reason. Or the null rate on the status field has jumped from 0.2% to 8%. Or the distribution of transaction amounts has shifted dramatically in a way that suggests something changed in the upstream system.


None of these are schema violations. The contract passes. The data quality fails.

Runtime anomalies — volume drops, distribution shifts, null rate spikes, sudden changes in cardinality, business logic violations that are only visible in the actual values — are simply outside the scope of what a contract can detect. A contract is a structural specification. Runtime quality monitoring is an observation of actual behaviour. These are different things, and conflating them leads to teams believing they have quality coverage they do not have.


This gap is not a flaw in the data contract concept. It is a consequence of what contracts are designed to do. The flaw is in treating schema enforcement as equivalent to data quality monitoring.



Gap 2: Source-Side Changes That Contracts Don't Reach

Data contracts govern the relationship between a data producer team and a data consumer team. They define what one internal team commits to delivering to another. This is the scope they were built for.


But most data does not originate with an internal producer team. It comes from upstream source systems: a CRM, an ERP, a billing platform, a third-party API, a payment processor, a data vendor.

These systems are outside the boundary of what a data contract can govern. The team that owns the pipeline is consuming from them, not contracting with them.


When a source system changes its behaviour without changing its schema, the contract between the pipeline team and their downstream consumers passes cleanly. The contract has no visibility into what happened upstream. And yet the data that arrives in the pipeline is different in ways that matter.


A CRM that starts populating a previously empty field with default values. An ERP upgrade that changes the rounding logic on financial figures. A third-party API that silently changes the timezone assumption on its timestamp fields. A payment processor that starts including pending transactions in a feed that previously contained only settled ones.


In each of these cases, the schema is unchanged. The contract is satisfied. The data has changed in a way that will cause downstream quality failures, and no contract-based mechanism will catch it because the change originated outside the contract's scope.


This is not an edge case. Source-side behavioural changes are one of the most common causes of data quality failures in production pipelines, and they are entirely invisible to any contract-based governance approach.



Gap 3: Semantic Drift Over Time

Semantic drift is the gradual divergence between what a field is documented to contain and what it actually contains. It is slower and quieter than a schema change, which is exactly why it is more dangerous.


A field called "revenue" is a classic example. At the time the contract was written, it captured gross revenue — total sales before deductions. Over time, the finance team changed their reporting standard to net revenue after a policy update. The pipeline team updated the calculation in the transformation layer. Nobody updated the contract, because the field name did not change, the data type did not change, and the schema was technically still correct. Only the meaning changed.


Consumers downstream who built their models and reports on the assumption that "revenue" meant gross revenue are now working with net revenue figures. The discrepancy might not be noticed immediately. It might surface as a reporting inconsistency months later, during a board review or an audit. By then, decisions have been made on data that meant something different from what everyone assumed.


Semantic drift happens for several reasons. Business definitions change and the change is not propagated to the data layer. Transformations are updated without updating the documentation. Different teams develop slightly different interpretations of the same field over time, and no single authority resolves the divergence.


A data contract can include field-level semantic definitions, and a well-maintained contract should. But the contract is a document. It captures the definition at the moment it was written or last updated. It does not detect when the actual data has drifted away from that definition. Detecting semantic drift requires monitoring actual data distributions over time and comparing them against expected patterns — which is a monitoring problem, not a governance document problem.



Gap 4: Cross-System Consistency

A data contract governs a single producer-consumer relationship. It says: this team will deliver this dataset in this format to these consumers. That is its scope. It is a bilateral agreement.

This means contracts have no mechanism to verify that the same entity — a customer, a product, an order — is represented consistently across multiple systems. Cross-system consistency is outside what a contract is designed to do.


Consider a customer who exists in both the CRM and the billing system. The CRM team has a contract with the data warehouse team. The billing system team has a separate contract with the same data warehouse team. Both contracts are satisfied. Both datasets are delivered as agreed.

But the customer's name is spelled differently in the two systems. Their account status shows as active in one and inactive in the other. Their email address is different because one system captured the work email and the other captured the personal email. Neither contract has any way to surface these inconsistencies, because each contract only sees one side of the picture.


Cross-system reconciliation — verifying that entities and values are consistent across different source systems — requires a process that spans multiple datasets and compares them against each other. That is fundamentally a different kind of check from what contracts enforce. It requires either a reconciliation layer in the pipeline or a separate monitoring process that runs across system boundaries. No amount of well-designed contracts substitutes for this.



What Sits Alongside Contracts in a Complete Data Quality Stack

Data contracts and runtime data quality monitoring are not alternatives. They are different layers of a quality programme, addressing different failure modes. Organisations that implement one without the other will have gaps, whichever one they choose.


Contracts handle the agreement layer. They define the structural commitment between teams, establish ownership, formalise schema expectations, and create the governance pressure to communicate changes. These are organisational and coordination problems, and contracts solve them well.


Runtime monitoring handles the observation layer. It watches actual data as it moves through the pipeline, measuring volume, distribution, null rates, freshness, and cross-field consistency against expected patterns. It catches anomalies that exist within a valid schema. It detects source-side behavioural changes. It surfaces semantic drift over time. It reconciles values across systems.

In practice, the two layers complement each other directly. A contract defines what a field should contain and what freshness is expected. Runtime monitoring verifies that it actually does contain that, and that it arrived on time. The contract sets the standard. The monitor checks whether the standard is being met.


Implementing contracts without monitoring means you have documented your quality standards without any mechanism to verify they are being upheld in production. Implementing monitoring without contracts means you are catching failures without clear ownership or agreed expectations to reference when escalating them.

The complete stack is both. The contract layer is the agreement. The monitoring layer is the reality check.



Contracts Are the Agreement. Monitoring Is the Reality Check.

Data contracts are a genuine step forward for data engineering teams. They create shared accountability, reduce ambiguity, and make pipeline failures easier to diagnose. If your organisation does not have them, they are worth implementing.


But contracts are a governance layer, not a monitoring layer. They define what data should look like. They do not watch what data actually does. The gap between those two things — between documented agreement and observed reality — is where most production data quality failures live.


Closing that gap requires runtime monitoring: continuous observation of data as it moves through your systems, measuring actual values against expected patterns, and catching anomalies before they propagate downstream.


Vexdata is built for that observability layer. It sits alongside your data contracts, watches your pipelines in real time, and surfaces the quality issues that schema validation alone will never catch — volume drops, distribution shifts, freshness violations, cross-system inconsistencies.

If you are building out your data quality stack and want to understand how runtime monitoring fits alongside the contracts and schema tooling you already have, talk to the Vexdata team. We can walk through what your current monitoring coverage looks like and where the gaps are.

 
 
 

Comments


bottom of page