1. The problem
In one sentence
If every change to a spec is treated alike, teams either block everything or let everything through; changes need to be sorted by how much they can hurt a client.
A story
A team adds a rule to the pipeline: “fail if the spec changed”. Within a week, people stop updating the spec, because a fixed typo in a description fails the build. A second team has no rule, and a removed route slips through unseen. Both teams have the same problem: they cannot tell a harmless change from a dangerous one.
Why it hurts
A change that adds a route does not hurt anyone. A change that removes a parameter may. A change that removes a route does. A policy needs levels, and a pipeline needs a place to draw the line.
- For developers: you need to know, before you merge, whether a change is safe, risky or only a note.
- For managers: a clear line (“breaking changes need approval, new routes do not”) removes the arguments, and lets the team move fast where it is safe.
- For DevOps: pick the level that fails the build (
breakingis the usual one), and report the others without failing. Tighten the rule over time.
Example
Five pairs of small specs, each with one change, and the level it gets:
removed an optional query parameter potentially breaking (WARN)
added an endpoint informational (INFO)
deprecated an operation informational (INFO)
removed a non-success response (a 404) informational (INFO)
changed only a description no change at all
How to detect it without clrsig
- Read the diff of the spec in the pull request, and ask of each change: “could a client that works today stop working?”
- Keep a short list of the kinds of change your team treats as breaking.
How to fix it
This is a process point, not a fault in the API: write down the rule.
- Breaking changes (a route or field removed, a type or a rule tightened) need a decision, a new version or a deprecation period.
- Potentially breaking changes (an optional parameter removed, an unusual response) need a look. They are often safe, but not always.
- Informational changes (a new route, a deprecation mark) are listed and do not fail the build.
To tell which level a change is: when in doubt, treat it as the higher one.
Related problems
AC-054 A spec change breaks existing clients, AC-056 Which of my tests will the change break?, AC-015 Fields are renamed, removed or re-cased.
Words used on this page are explained once in the glossary.
2. How clrsig helps
Check
CS-DIFF-002 Warning-level change (oasdiff level WARN), and CS-DIFF-003 Informational change (INFO). State: caught (passed through). --fail-on breaking|warning|info sets the level that fails the run (exit code 1). The default is breaking.
Command
Each command compares two spec files: nothing is sent and no server is needed. Run them from the sandbox folder. First a warning-level change, with the default level and then with --fail-on warning:
clrsig diff specs/diff/optional-param-removed/v1.yaml specs/diff/optional-param-removed/v2.yaml
clrsig diff specs/diff/optional-param-removed/v1.yaml specs/diff/optional-param-removed/v2.yaml --fail-on warning
Exit code: 0 no change at or above the --fail-on level, 1 one or more, 2 a spec parse or configuration error. Here the first exits 0 and the second 1.
What you see
Output from clrsig v0.21.0, recorded on 2026-11-30. The warning-level change, with the default level (exit code 0):
[WARN] deleted the `query` request parameter `limit` GET /users
1 change(s) · no breaking changes
Output from clrsig v0.21.0, recorded on 2026-11-30. The same change with --fail-on warning (exit code 1):
[WARN] deleted the `query` request parameter `limit` GET /users
1 change(s) · 0 breaking · 1 at or above "warning"
Output from clrsig v0.21.0, recorded on 2026-11-30. An added endpoint with the default level (exit code 0):
[INFO] endpoint added GET /health
1 change(s) · no breaking changes
The same change with --fail-on info (exit code 1). Output from clrsig v0.21.0, recorded on 2026-11-30:
[INFO] endpoint added GET /health
1 change(s) · 0 breaking · 1 at or above "info"
Output from clrsig v0.21.0, recorded on 2026-11-30. A change that only touches a description, with --fail-on info (exit code 0):
No changes.
How to read it: the same change fails or passes depending on --fail-on. A description-only change is not a change at all.
The deprecated operation and the removed 404 response (deprecated-operation and non-success-response-removed in the sandbox) are also INFO.
Where to look
- Reports:
--format json,junit,htmlormarkdown. - GitHub Action: the
fail-oninput (andbreaking-only). - Help, What We Check:
CS-DIFF-002andCS-DIFF-003.
How clrsig helps you fix it
It sorts the changes by level and lets you choose where the build fails. The levels come from oasdiff; this page does not copy its list.
Limits
- The level is oasdiff’s judgement, not yours. A change that is
INFOfor oasdiff may still matter to a client of yours. - A deprecated operation is
INFO, not a warning (the sandbox’s own notes say they expectedWARN).
More ways
Nothing yet.
3. Video brief for Google NotebookLM
VIDEO BRIEF — AC-055 · Not every change is equally risky
Length: 5 to 7 minutes. Language: English. Audience: developers, with a line each for managers and DevOps.
One idea: sort spec changes by how much they can hurt a client, and choose where the pipeline fails.
Open with this story: A team adds a rule to the pipeline: fail if the spec changed. Within a week people stop updating the spec, because a fixed typo in a description fails the build. A second team has no rule, and a removed route slips through unseen. Both teams cannot tell a harmless change from a dangerous one.
Say these facts, in this order:
1. clrsig diff classifies each change as ERR (breaking), WARN (potentially breaking) or INFO (informational), using the rules of oasdiff.
2. The fail-on option sets the level that fails the run: breaking by default, or warning, or info.
3. A removed optional query parameter is a WARN. With the default level the exit code is 0; with fail-on warning it is 1.
4. An added endpoint is an INFO. It exits 0 by default, and 1 with fail-on info.
5. A deprecated operation and a removed 404 response are also INFO. A description-only change is no change at all: it prints No changes.
6. This is a process point: write down the rule. Breaking changes need a decision, potentially breaking changes need a look, informational changes are listed.
7. For managers: a clear line removes the arguments and lets the team move fast where it is safe.
8. For DevOps: pick the level that fails the build, usually breaking, and tighten over time.
Show on screen: the five change kinds, the two commands, and the output blocks, copied exactly from the card.
Name the checks: CS-DIFF-002, Warning-level change; CS-DIFF-003, Informational change. Say the clrsig version: v0.21.0.
Explain these words once: oasdiff (an open source tool whose rules clrsig uses to classify spec changes); deprecated (marked as going away); informational (worth knowing, not a risk); exit code (0 clean, 1 a finding, 2 setup or spec broken).
Say what clrsig does not see here: the level is oasdiff's judgement, not yours; a change that is informational may still matter to a client of yours.
Safety line (if a write is shown): not needed, diff sends nothing.
Finish with three recap questions:
1. Which level fails the build by default? (Breaking.)
2. Is a description-only change a change? (No; the output says No changes.)
3. What should you do when you are unsure of a level? (Treat the change as the higher one.)
Tease the next video: AC-056 · Which of my tests will the change break?
Do not: say "contract testing" alone; say clrsig "catches everything"; invent flags, IDs or numbers; read tables aloud; use any fact that is not in the card.