A team renames a column in their application. It's a small, reasonable, well-tested change in their system. The next day, three reports and a model stop working in another department. Nobody did anything wrong; it's just that nobody had agreed what was being delivered.
What a data contract is
It is an explicit agreement between whoever produces data and whoever consumes it: what is delivered, in what structure, at what quality and how often. The key point is that it can be checked automatically, just like interfaces between applications are tested.
What it should include
- Schema: fields, types and which ones are mandatory.
- Meaning: what each field represents and in what units. “amount” with or without tax is a difference that breaks reconciliations.
- Minimum quality: unique keys, allowed values, acceptable share of nulls.
- Freshness: how often it is updated and with what maximum delay.
- Owner: who gets alerted when something fails and who approves changes.
- Versioning: how a breaking change is announced and how long the old and new versions coexist.
Where you notice it
The value is not in the document but in what it enables: checking the contract on every delivery and stopping broken data at the boundary, before it reaches the tables the business uses. The error goes from being an odd report someone discovers days later to an immediate alert for the team that can fix it.
How to start without bureaucracy
- Pick one critical source, the kind whose changes have already broken something.
- Write the contract with the producing team, in a simple file that lives in a repository, not a forgotten document.
- Automate the basic checks (schema and mandatory fields) in the load.
- Agree how changes are announced. Often, that alone solves half the problems.
A data contract is not distrust between teams. It's the opposite: it lets each team change its system with confidence, knowing what it must not break.