Skip to content
All insights
Enterprise Architecture11 March 202510 min read

Data contracts: making meaning explicit between teams

The expensive failures in a data estate are rarely schema mismatches. They are two teams holding different beliefs about what a value means, both of them reasonable, and nobody noticing for a quarter.

A pipeline that runs successfully is not the same as a pipeline that is correct. The job can complete, the row count can look plausible, the dashboard can render, and the number can still be wrong because a field that used to contain a gross amount now contains a net one after a tax change nobody announced.

These defects are expensive for a structural reason: they are found by a human noticing an odd result, usually weeks later, and the investigation has to reconstruct history across systems that each believe they were behaving correctly.

What a contract actually contains

A data contract is an agreement between a producer and a consumer about a dataset: its fields and types, the meaning and units of each field, its keys and uniqueness, its freshness and completeness expectations, its null semantics, and the process for changing it. It lives with the producing system, not in a wiki that drifts.

The semantic clauses matter more than the schema. "Amount in minor units, net of tax, excluding refunds, in the transaction currency" is a contract. `amount: decimal` is a shape. Almost every painful defect lives in the gap between the two.

  • Ownership: which team produces the dataset and who approves changes.
  • Semantics: units, currency, time zone, inclusion and exclusion rules.
  • Keys: what uniquely identifies a row and how late-arriving data is handled.
  • Freshness: expected latency and the threshold at which consumers should distrust the data.
  • Change policy: notice period, versioning and deprecation route.

A contract is only real if it is tested

Documented contracts become archaeology. Enforced contracts change behaviour. The enforcement point is the producer's pipeline: validation that the schema matches, that keys are unique, that required fields are present, and that distribution and volume sit inside an agreed range.

Distribution checks are the ones teams underrate. A field can be present, correctly typed and semantically wrong: an ID that suddenly contains a different prefix, a status that gains an unexpected value, a timestamp that shifts by an hour after a daylight-saving change. Statistical assertions catch these before a consumer does.

Governance without a committee

Data governance programmes often begin with a council, a catalogue and a policy. None of those prevent a defect. What prevents a defect is a producer who cannot publish a breaking change without going through a review that a consumer can see.

Keep the governance light and put it where the change happens: a pull request on the contract, a test that fails loudly, and a deprecation window agreed between the two teams. Central standards are useful for naming and cross-cutting conventions, not for approving individual fields.

Introducing contracts into an existing estate

Nobody starts with a clean estate. The practical approach is to begin where damage is expensive: the datasets feeding regulated reporting, financial reconciliation or customer-facing promises. Document those first, with the people who currently answer questions about them.

Expect the first pass to surface disagreement rather than to produce documentation. Two teams describing the same field differently is the finding, and resolving it is the value. Contracts introduced as paperwork rather than as conflict resolution tend to be abandoned within a quarter.

What changes when contracts exist

The visible benefit is fewer silent breakages. The structural benefit is that change becomes a conversation between named owners with an agreed process, instead of an incident. New consumers onboard faster because the meaning of the data is written down and tested rather than passed on verbally.

There is a second-order effect worth planning for: once meaning is explicit, duplicated datasets become obvious, and the organisation can start retiring the copies that exist only because nobody trusted the original. That is where data contracts start paying for themselves.

Editorial attribution

Insights are written by the Tunnels engineering team from current client work and internal research. They are editorial perspectives, not client case studies. No confidential engagement detail, client identity or unverified performance claim is published.

Key points

  • Contracts describe meaning and freshness, not just schema.
  • Enforce contracts in the producer's pipeline, including distribution checks.
  • Start with datasets that feed regulated or financial reporting.
  • Treat the first disagreement surfaced as the deliverable.

This perspective reflects how we approach the problem in client work. If it is close to a decision you are facing, we are happy to discuss it directly.

Discuss a Project

Next step

Tell us what you are trying to solve.

A first conversation is technical, not commercial. Describe the system, the constraint and the outcome you need, and we will tell you honestly whether we are the right partner for it.