How do you stop breaking API changes from reaching clients?
Catch breaking API changes in CI with a spec diff and consumer-driven contracts, before a client finds them in production.
1 min readDEV Group
Breaking API changes keep reaching clients the same way: the change looked safe in review, and the first to notice is a consumer in production. Catch them at the seam, before deploy, with two gates: a semantic diff of the OpenAPI spec against main that fails CI on removed endpoints or fields, new required request fields, narrowed enums, changed types, or changed auth on an existing route; and consumer-driven contract tests, where each consumer records the requests and response fields it actually depends on and the provider verifies against them before release. The spec diff is cheap and covers the declared surface; contracts catch what the spec does not constrain. Versioning and deprecation then become a decision someone makes, not a surprise a client discovers.
Was this useful?
Related notes
Product engineering2 min read
How do you catch an API you depend on being retired before it starts returning errors?
Cloudflare, Databricks, Penneo and Meta all retired API features in November 2026. Inventory what you call, track sunset dates, and test fallbacks.
- Dependencies
- API contracts
- Deprecations
- Monitoring
Security3 min read
How do you stop a new sign-up from making itself an owner of someone else's account?
In November 2026 a free sign-up made itself owner of a vendor's own org through one invitation check. Authorize every grant on the server.
- Authorization
- Multi-tenancy
- CI
Applied AI2 min read
How do you keep an AI coding agent's saved approvals from committing secrets?
An agent that remembers an approval can save a secret into a file inside the repo. Keep that file out of git, and do not approve the literal command.
- Agents
- Secrets
- CI