Key takeaways
Data contracts make the expectations between data producers and consumers explicit, measurable and accountable.
A valid schema does not prove that the data has the right business meaning, freshness or quality.
Contracts need named owners, automated controls and a managed process for breaking changes.
Prioritise shared, business-critical data products rather than creating equally detailed contracts for every internal table.
Measure whether contracts reduce downstream incidents and improve the reliability of reporting, analytics and AI.
The pipeline ran successfully. Why is the report wrong?
Imagine a retailer preparing its Monday trading report. Over the weekend, the order-processing team changes how it records cancelled orders. Its application continues working normally. The data pipeline completes, the dashboard refreshes and every technical health indicator appears green.
Yet the commercial team now sees a rise in order value that has little to do with actual sales. A forecasting model consumes the same records and begins learning from misleading demand signals. Nobody informed either team that the meaning of the order data had changed.
The problem is not necessarily a lack of technology. It is that the team producing the data and the teams using it were operating with different expectations. The fields still exist and their types are unchanged, but the information is no longer being interpreted consistently.
Data contracts for data products address this gap. They make the commitments behind shared information visible, testable and manageable. Instead of discovering a problem in a management meeting, an organisation has an opportunity to identify incompatible changes earlier and respond before unreliable data is widely consumed.
What exactly are consumers entitled to expect?
A data product is a managed, reusable offering of data intended to serve identifiable consumers. It might be a customer profile dataset, a stream of payment events or a published inventory table. Like any product, it needs a defined purpose, an accountable owner and a supported interface.
A data contract is an explicit agreement describing what the producer provides and what consumers can reasonably rely on. It typically combines structural requirements, business definitions, quality expectations, access conditions, operational commitments and change-management rules.
Think of it as the difference between being given a spreadsheet and being given a dependable information service. The spreadsheet contains values. The service explains what those values represent, when they are updated, which uses are supported and whom to contact if something goes wrong.
The Open Data Contract Standard (ODCS), maintained by the Bitol project, provides an open specification for representing these agreements in a structured, machine-readable format.[1] It offers a common vocabulary for teams rather than requiring every department to invent its own contract format.
The contract is not automatically a legal agreement, and its existence does not guarantee that the data is correct. Its value depends on the quality of the commitments and the mechanisms that verify them.
An agreement about meaning, not just column names
Return to the retailer. Its order data product serves finance, commercial reporting and demand planning. These teams may not need identical measures, but they need to know precisely what the shared records represent. An effective contract could specify the following commitments:
Identity and grain: One record per order in the published snapshot, uniquely identified by order_id. Consumers must not assume each record represents an individual product line.
Business semantics: order_status distinguishes completed, open and cancelled orders. net_order_value represents the order amount after discounts but before tax and excludes cancelled orders from recognised sales calculations according to the separately agreed reporting definition.
Structure and integrity: order_id is required and unique within each snapshot. Currency is explicitly identified; monetary amounts use an agreed decimal precision. Permitted status values and their meanings are documented.
Timeliness and coverage: Each morning's snapshot covers transactions and updates received through the previous day's agreed cut-off. The delivery deadline, time zone and handling of late-arriving changes are defined.
Access and support: Approved consumers access only the fields permitted for their purposes. The order-domain team owns the interface, monitors failures and maintains a support and escalation channel.
The business definition must also describe returns, refunds, partial fulfilment and currency conversion if these affect supported decisions. A perfectly valid decimal value tells an analyst very little unless everyone understands what the number measures.
Where contracts sit alongside existing governance tools
Many organisations already have a data catalogue, a business glossary, a quality dashboard and a schema registry. A contract should connect these capabilities rather than introduce another disconnected repository.
Data catalogue: Helps consumers discover a product, its owner, documentation and access process. The contract supplies the explicit commitments associated with its published interface.
Business glossary: Establishes approved business terminology. A contract references the applicable definitions and explains how they apply to the specific product.
Schema registry or model contract: Describes and, where supported, validates structural compatibility. A wider product contract also addresses service expectations, semantic changes and responsibilities.
Data quality monitoring: Measures actual data against defined rules. The contract records which rules matter to consumers, what constitutes a breach and who must respond.
Data lineage: Identifies upstream sources and downstream dependencies. This helps determine which products and decisions could be affected by a proposed change.
These distinctions matter because a data catalogue entry may be accurate at the time it is written while the actual product changes afterwards. Contracts are most useful when linked to the delivery lifecycle, not treated as static documentation.
How to turn written commitments into working controls
Begin with a version-controlled contract and link it to the product's published interface. A change should be reviewable alongside the code that produces the data. A standard representation such as ODCS can make the contract easier to validate and integrate with compatible tools.[1]
During continuous integration (CI), check that the contract is well formed, compare the proposed structure with the current supported versions and test representative records. Include consumer-facing tests for significant business calculations, not only column-level checks.
At publication, run the checks that can determine whether data is fit for release. For a batch product, these could include uniqueness, reconciliations and freshness. For a streaming product, they might include event-schema validation, allowed values and checks for duplicate or delayed messages.
Some controls can be implemented through existing platforms. For example, dbt model contracts can check declared columns and types for supported models; constraint enforcement varies by data platform.[2] Confluent Schema Registry supports compatibility checks and data-contract capabilities for appropriate streaming configurations.[3][4] Neither tool alone establishes the correctness of a business definition or covers every operational commitment.
Continue monitoring after publication. A product may pass its initial checks but later become incomplete or stale because an upstream source is delayed. Record the contract version, check results, affected product partition or event range, incident severity and remediation status.
Decide what happens when a check fails. Rejecting an incompatible release, isolating defective records, issuing a degraded-data warning or retaining a previously validated snapshot are possible responses. The decision should reflect the harm caused by unavailable data versus incorrect data; any retained snapshot must be clearly marked with its actual freshness.
Changing data without surprising the people who depend on it
Contracts should make change safer, not prevent it. A product that cannot evolve will eventually become irrelevant to the business.
Adding an optional descriptive field may be compatible for some consumers, whereas removing a required identifier, changing units or altering record grain can invalidate existing integrations. Even additive changes can disrupt consumers that assume a fixed set of fields.
Schema compatibility is directional. Backward compatibility concerns whether a new reader can interpret data written using an older schema; forward compatibility concerns whether an older reader can interpret newly written data. Full compatibility requires both directions, and transitive checking can extend comparisons across historical versions. The precise rules depend on the schema format and configuration.[3]
Semantic compatibility needs separate attention. Changing net_order_value from excluding tax to including it may leave a schema unchanged while significantly altering reported figures. Domain review, calculation tests and consumer impact assessment are required to identify this kind of change.
For a breaking change, create a new interface version where practical, identify registered and observed consumers, publish migration guidance and agree a retirement date for the previous version. Operate both versions for a justified transition period and reconcile important outputs before migration is complete.
Sometimes an urgent defect or security concern requires an accelerated change. A documented exception, impact assessment and communication process is more useful than silently bypassing the contract.
Who owns the promise when a data product fails?
The producer is accountable for the commitments of the interface it publishes. The product owner agrees expectations with consumers, prioritises defects and manages changes. Data engineers implement checks and remediation mechanisms, while stewards help maintain business definitions and quality requirements.
Consumers also have responsibilities. They should follow the supported interface, use the product within its authorised purposes, declare critical dependencies and migrate when a version is retired. They may need additional validation for specialised use cases such as credit decisions or financial reporting.
The governance function can establish minimum requirements for critical products, including ownership, classification and exception management. The platform team can provide reusable testing and monitoring services so domain teams do not have to build every control themselves.
This division of responsibilities aligns with the broader data mesh principle of treating data as a product with domain accountability and shared governance.[5] However, data contracts are equally useful in a centralised warehouse. Adopting them does not require restructuring an organisation around data mesh.
A contract must not grant access automatically. Classification, approvals, identity management, retention and actual access-control enforcement remain necessary, especially when products contain personal or commercially sensitive information.
Start where a broken promise has a measurable cost
Trying to contract every table in a large warehouse can consume months of effort without improving a single business decision. Start with interfaces that serve several teams, support material decisions or have a history of unexplained downstream failures.
Choose one product and identify the decisions it supports. Ask consumers which fields and commitments are genuinely critical, review historical incidents and establish a baseline for reliability. Agree a small set of measurable controls before expanding coverage.
Monitor on-time delivery, failed checks, incidents attributable to interface changes, time to notify affected consumers and time to restore reliable service. An on-time delivery percentage should use all scheduled deliveries in the denominator, including missed deliveries. Measure data completeness separately so a punctual but incomplete delivery does not appear healthy.
Assess adoption by identifying which critical consumers use the supported product interface and which still rely on unofficial extracts. Track whether the contract reduces reconciliation work and unexpected rework, while recognising that changes in incident volume may also reflect workload or monitoring changes.
The costs include engineering integration, maintenance, test execution, migration support and coordination with consumers. For a small team with a low-risk internal dataset, a short documented agreement and a few automated tests may be enough. More comprehensive enforcement is justified where failures create material consequences.
Trust is a product feature, not a separate governance exercise
Reliable AI systems and useful dashboards depend on more than access to data. They depend on information that retains its meaning over time, arrives when required and has someone accountable for its quality.
For AI and machine learning, contracts can establish minimum expectations for input features and identify changes that require model evaluation. They cannot independently establish whether a model remains fair, accurate or appropriate; those questions require separate model-level controls.
If your organisation is experiencing recurring reporting discrepancies, fragile integrations or difficulty establishing which data is suitable for AI, a useful starting point is to examine the commitments at the interfaces of its most critical data products. A focused discussion about those dependencies can help identify where contracts and automated controls would create practical value.
Well-governed data products do not eliminate change. They make change visible and manageable for the people whose decisions depend on it.
References and further reading
[1] Bitol, LF AI & Data. Open Data Contract Standard (ODCS). Official specification and documentation: https://bitol.io/odcs/
[2] dbt Developer Hub. Model contracts. Official documentation: https://docs.getdbt.com/docs/mesh/govern/model-contracts
[3] Confluent. Schema Evolution and Compatibility for Schema Registry on Confluent Platform. Official documentation: https://docs.confluent.io/platform/current/schema-registry/fundamentals/schema-evolution.html
[4] Confluent. Data Contracts for Schema Registry on Confluent Platform. Official documentation: https://docs.confluent.io/platform/current/schema-registry/fundamentals/data-contracts.html
[5] Dehghani, Z. (2020). Data Mesh Principles and Logical Architecture. https://martinfowler.com/articles/data-mesh-principles.html
Apply the approach
Illustrative retail order-data contract: the following targets are hypothetical commitments for a daily snapshot, not observed performance, universal standards or guaranteed outcomes. Assume the snapshot contains one record per order and consumers agree the previous day's cut-off and reporting definitions. The owner measures each commitment and establishes a response to violations.
All published records must have a non-null order identifier, and identifiers must be unique within the snapshot. A violation blocks publication pending resolution or an explicitly approved exception.
The validated previous-day snapshot must be available by the agreed deadline. A missed delivery triggers a consumer notification and a clearly marked stale-data status.
All records with monetary amounts must identify their applicable currency. Missing values prevent unqualified aggregation and require remediation.
Put the approach into practice
- 01Identify a shared data product and map the critical decisions and consumers that rely on it.
- 02Agree a named owner, supported business definitions, structural guarantees and measurable service expectations.
- 03Represent the agreement in a version-controlled contract and connect it to automated release and runtime checks.
- 04Define failure responses, consumer notification, version migration and exception approval.
- 05Measure reliability and downstream incident trends before extending the approach to other products.
Frequently asked questions
What is the difference between a data product and a data contract?
A data product is the managed offering that provides useful data to consumers. A data contract describes the expectations and responsibilities associated with its supported interface. One product may expose several interfaces with distinct contracts.
Is a data contract the same as a data schema?
No. A schema specifies the structure of data. A contract can include the schema alongside business meanings, quality rules, delivery expectations, ownership, usage restrictions and change-management arrangements.
Do we need data mesh to implement data contracts?
No. Contracts can be implemented in centralised warehouses, lakehouses, streaming systems and decentralised data environments. Start with the interfaces that create meaningful dependencies between producers and consumers.
Can data contracts be introduced to existing data products?
Yes. Identify existing consumers, observe actual product behaviour, agree realistic commitments and introduce monitoring before making critical controls blocking. Address existing violations through a managed remediation plan.
What is the difference between a data quality rule and a service-level objective?
A quality rule checks a characteristic of the data, such as valid identifiers or reconciliation of totals. A service-level objective defines a target for an aspect of service, such as delivery by a particular time or a monthly on-time rate. Some quality measures can themselves be expressed as service-level objectives.
Do data contracts guarantee regulatory compliance or AI readiness?
No. They help make data expectations and control evidence explicit. Compliance and AI readiness also depend on authorised processing, lineage, security, suitability for the intended use, operational controls and other applicable requirements.