Nobody decides to have a service estate they can’t see. It arrives one reasonable decision at a time. The first few services are easy: everyone knows what everything does, because everyone was in the room when it was built. Then the team doubles, a few people leave, two services become twenty, and one morning somebody asks a question that should be trivial — which APIs do we actually run? — and the honest answer is that nobody knows.
What follows is not one problem. It’s four, and they arrive in a fixed order, each one made possible by the one before it.
1. Nobody can find the APIs you already run
This is the one engineers admit to without defensiveness, because it isn’t anyone’s fault. There’s no moment where a team decides to hide an API. It just stops being findable: the person who built it moved teams, the README is two names out of date, and the only reliable way to discover it is to ask someone who happens to remember.
So new services get built against the wrong API, or rebuilt from scratch because the right one was invisible. Both are expensive, and neither shows up in any metric. The rebuild just looks like work.
Everything below follows from this one. You cannot be told about a change to something you didn’t know you depended on.
2. APIs change, and the teams depending on them find out late
The producer ships. The consumer breaks. The conversation starts after the damage.
The usual fix is process: a Slack channel, a weekly sync, a convention that you announce breaking changes a sprint ahead. These work at the scale where everyone is still in the room, and they decay exactly as the estate grows, because they depend on the producer knowing who is listening. Past a certain number of services, no one does.
What’s missing isn’t discipline. It’s a record of who consumes what, kept somewhere other than people’s heads.
3. Someone ships a breaking change without meaning to
Note the without meaning to. Deliberate breaking changes are a solved problem — you version, you deprecate, you migrate. The ones that hurt are the ones nobody noticed: a field renamed, a response property dropped, an enum tightened. It passes review because nobody in the room knew who was reading that field.
This is a design-time problem with a design-time fix. The diff between the contract on the branch and the contract in production is computable. Whether it breaks a consumer is computable too, if you have the record from the previous problem. The reason it still reaches production is almost never that it was hard to detect — it’s that nothing was looking.
4. Your coding agents work from contracts that are out of date
This one is new, and it’s why the first three suddenly matter more than they did two years ago.
An engineer who doesn’t know an API asks a colleague. It’s slow and it doesn’t scale, but it’s self-correcting: a human notices when an answer smells stale. A coding agent has no such instinct. It works from whatever specification it finds — a file in the repo, a copy in a wiki, a fragment in its own context — and produces confident, well-structured integration code against endpoints you removed last quarter.
Worse than the broken code is the architectural advice. Ask an agent how two services should interact and it will answer from the contracts it can see. If those are a year old, the design it proposes is a year old, and it will be defended with the same fluency as a correct one.
The failure mode isn’t that agents are bad at this. It’s that they’re only as good as what they can find out, and most organisations have nothing for them to find.
The four are one problem
Read them again and the shape is obvious. Discovery, change awareness, breaking-change detection and agent accuracy are not four initiatives. They’re four symptoms of the same gap: there is no layer that holds the contracts.
Most of the API tooling an organisation already owns sits at runtime. A gateway routes and authenticates. A service mesh handles mTLS, retries and timeouts. An IAM system decides who may do what. All of this operates on requests that are already happening, and none of it has an opinion about whether the contract behind the request is current, who owns it, or who would break if it changed.
That’s a different layer, and it operates at design time — in the repository and in CI, before anything is deployed. Call it the contract layer, or an API control plane. What matters is that it’s separate from runtime and that something owns it.
What belongs in that layer
Four things, matching the four failures:
Contracts that are current. Each service’s OpenAPI specification published from its own repository, versioned, and updated on merge. Not a wiki page somebody remembers to edit — an artefact produced by the same pipeline that produces the deployment.
Ownership on the record. Every API belongs to a team, and the teams that depend on it are recorded rather than remembered. This is the piece most organisations skip, and it’s the one that makes the other three possible.
Discovery that includes machines. A registry your engineers can search, exposed in a form a coding agent can query directly. If the agent’s view and the engineer’s view come from different places, they will disagree, and you will find out which one was wrong in production.
Checks where the change happens. The pull request is the last moment a breaking change is cheap. After merge it’s an incident with a different name.
What doesn’t belong in it
It’s worth being equally clear about the other direction, because “control plane” makes a lot of platform engineers think runtime, and runtime is the one thing this isn’t.
A contract layer doesn’t route traffic, terminate TLS, or decide at request time whether a caller is allowed through. Your gateway, mesh and IAM already do those things, they do them well, and putting a contract registry in the request path would make it a dependency of every call for no benefit. Recording that a team consumes an API is not the same as enforcing it, and it shouldn’t pretend to be.
The test is simple: if the thing you’re building would cause an outage when it goes down, it’s in the wrong layer.
Where to start
Not with a migration. The common failure here is treating this as a platform programme — eighteen months, a steering committee, a mandate that every team must register every API by Q3. Those die, and they die having produced a registry full of specs nobody trusts.
Start with one service whose API other teams consume. Publish its contract from its own repository, record who consumes it, and put a breaking-change check on its pull requests. That’s enough to find out whether the problem you have is the problem described here. If it is, the second service is easier than the first, and the tenth is a habit.
If you’d like help doing that on your own estate, we run pilot programmes with a small number of engineering teams.
Keep reading
- ArchitectureYour agent knows your service. It has no idea about the one you're calling.
- Stale contractI fetched 957 public OpenAPI specs. Most can't tell you what changed.
