Api changelog automation
Designs the provider-side pipeline that turns contract diffs of an API you publish (OpenAPI, GraphQL SDL, protobuf, AsyncAPI) into a breaking-change CI gate and a traced, per-version API changelog feed, classified by your own policy. Use whenever the user mentions oasdiff, openapi-diff, graphql-inspector diff, buf breaking, API schema checks, failing a PR on breaking changes to a published API contract, or an auto-generated API changelog. Do NOT use for release-note prose (samber/developer-relations-skills@changelog-writing), consumer-side upgrades (samber/developer-relations-skills@version-migration-guide), deprecation policy (samber/developer-platform-skills@api-versioning-policy) or callers of deprecated endpoints (samber/developer-platform-skills@integration-health-monitoring).
By- name:
- api-changelog-automation
- description:
- Designs the provider-side pipeline that turns contract diffs of an API you publish (OpenAPI, GraphQL SDL, protobuf, AsyncAPI) into a breaking-change CI gate and a traced, per-version API changelog feed, classified by your own policy. Use whenever the user mentions oasdiff, openapi-diff, graphql-inspector diff, buf breaking, API schema checks, failing a PR on breaking changes to a published API contract, or an auto-generated API changelog. Do NOT use for release-note prose (samber/developer-relations-skills@changelog-writing), consumer-side upgrades (samber/developer-relations-skills@version-migration-guide), deprecation policy (samber/developer-platform-skills@api-versioning-policy) or callers of deprecated endpoints (samber/developer-platform-skills@integration-health-monitoring).
API Changelog Automation
You are building the machinery that notices every change to a published API contract, decides whether it breaks callers by your own written rules, stops the unapproved breaks, and writes a record integrators and their tools can read. The deliverable is a pipeline design: severity map, baselines, CI gate, declared-change channel, approval record, entry schema and feed, each wired to a file in the repo.
The recurring failure is trusting the diff tool twice: once for what counts as breaking (its defaults are not your policy) and once for what changed at all (it only sees declared structure). A green check then publishes a changelog that omits the change that broke a partner.
Boundaries:
- The breaking-change definition, notice windows and sunset rules come from
samber/developer-platform-skills@api-versioning-policy. This skill encodes that policy into tool configuration; it never invents one. - Polishing entries into readable release notes belongs to
samber/developer-relations-skills@changelog-writing; the before/after upgrade guide tosamber/developer-relations-skills@version-migration-guide. This skill hands them traced, structured entries. - Who still calls a deprecated operation, and reaching them, belongs to
samber/developer-platform-skills@integration-health-monitoring.
Memory (advised): When memory lives in a file, consider using developer-platform-context.md; if a different memory system is in use, rely on that instead. Store the severity-map location, baselines, approver group and feed URL there so later runs extend the pipeline instead of redesigning it.
Interview
Ask these before designing anything. Batch them; this is an engineering setup, not a strategy debate.
- Surfaces and formats: REST (OpenAPI 3.x or Swagger 2.0), GraphQL SDL, protobuf, AsyncAPI events, webhooks? One spec or several?
- Spec source: hand-written contract-first, or generated from code annotations? Is it validated against the running service (contract tests, traffic validation)?
- Policy: is there a written breaking-change definition? Paste it, or say none exists.
- Versioning and release unit: URI major, header or date versions, semver in
info.version, or continuous deploy with no versions? What does "a release" mean for the changelog? - Audiences in the spec: do internal, beta or partner-only operations live in the same file as public ones? How are they marked?
- Usage data: can you count calls per operation (or per GraphQL field) per client over the last 30-90 days?
- Where the record goes: changelog page, RSS/Atom, JSON feed, email digest, in-dashboard banner? Who reads it: humans, monitoring pipelines, coding agents?
- Deadline and effort: when must the first gate run, is this one migration or a standing pipeline, and how many engineer-days plus which reviewers can you commit?
Question 3 gates the workflow. With no written definition, every severity choice is the tool author's opinion; route the policy to api-versioning-policy and, if the user must ship a gate first, mark every severity-map row provisional pending policy sign-off.
Choose the rungs first
Pick which rungs to build before the workflow; steps 6-7 run only when the chosen rung includes them. Rank by value per unit of effort, and say the order out loud:
- efficiency:
PR gate > release diff + declared channel > approval record > feed > usage-aware classification > version-derived changelog - effort:
version-derived > usage-aware > feed > release diff + declared channel > approval record > PR gate - value:
version-derived > release diff + declared channel > PR gate > approval record > usage-aware > feed
| Rung | You do | You get | Effort |
|---|---|---|---|
| PR gate | Diff vs merge base, fail on err, severity map |
Accidental breaks stopped before merge | An hour or two, mostly reviewing the severity map |
| Release diff + declared channel | Diff vs last release, PR question, fragments | A complete record of what shipped, incl. behavior changes | Half a day plus a habit |
| Approval record | Acknowledgement rows with fingerprint, approver, link | Audit trail; entry text for every accepted break | A few hours, then per-break minutes |
| Feed | JSON + Atom with stable ids, per version | Monitoring pipelines and agents consume changes | About a day |
| Usage-aware classification | Operation-level telemetry feeding the gate | Fewer false alarms; safe removal of deprecated elements | A day or two, needs telemetry |
| Version-derived changelog | Each breaking change as a version-change record in code | Entries written at the change, impossible to omit | Weeks; only with per-version transformation |
- Default: PR gate plus release diff and declared channel. Add the approval record once the first accepted break lands.
- What the order starves: the version-derived changelog loses every efficiency round. Promote it when the platform already runs date-based, per-account versioning with response transformers (Stripe's pattern); there it costs a documentation field on records you already write.
- Re-rank against the interview: a fixed date (Q8) ships the PR gate alone first; a standing mandate promotes the approval record and feed; no usage data (Q6) deletes usage-aware classification rather than parking it last; machine consumers (Q7) promote the feed above the approval record.
Workflow
- Check the preconditions.
- Build the severity map from the policy.
- Pick one baseline per job.
- Wire the PR gate.
- Open the declared-change channel.
- Record every accepted break (approval-record rung).
- Generate entries and the feed per API version (release-diff and feed rungs).
- Verify traceability, then publish and hand off.
1. Check the preconditions
- No machine-readable spec: stop. The changelog cannot be automated from prose. Route the source-of-truth rollout to
samber/developer-platform-skills@api-reference-quality. - Spec not validated against the service: the diff describes a document, not the API. Add contract tests or traffic validation before trusting any green result, and list it as the first gap in the design.
- Generated spec: pin the generator version, validate the output, and make it deterministic: stable
operationIds,$ref(not inline) schemas,$ref'doneOfbranches, stable enum order. Semantic diff tools ignore key order; phantom changes come from positional and inline-versus-$refchurn, and they train reviewers to ignore the gate. - Baselines need a spec at a release: a generated spec exists only at build time, so commit the spec of every release (or attach it to the release tag). The first release has no baseline: publish its entries by hand and start diffing from it.
2. Build the severity map from the policy
Take each line of the written breaking-change definition and find the check that enforces it. Tools disagree on the same change, so never adopt a default unread:
- Adding a response enum value: GitHub's published policy calls it additive; OpenAPITools
openapi-diffand oasdiff flag it by default. - Changing auth: GitHub calls any change to authentication or authorization requirements breaking. oasdiff reports added scopes and removed anonymous access as ERR, but removed scopes and an added alternative (OR) requirement as INFO. Gateway-only auth rules are invisible to every diff.
- Removing a deprecated element: oasdiff and
graphql-inspector(suppressRemovalOfDeprecatedField) can pass it while callers still use it.
Keep two files next to the spec:
severity-map.md, for humans: one row per check id - the policy line it enforces, the chosen level, the reason, andprovisionalwhile the policy is unsigned.- The tool's level file, generated from it. oasdiff's
--severity-levelsfile accepts only<check-id> <level>per line: no comments, no extra columns.
Then:
- Version-bump checks (oasdiff
api-major-version-not-bumpedand siblings) default to INFO and never fail a build. With semverinfo.version, raise them toerr. With date, header or URI-path versions, oasdiff skips them; the per-version baselines in step 3 do the job. - Mark lifecycle in the spec so removals are judged correctly:
deprecated, a sunset date (x-sunset), stability (x-stability-level). - Open enums: where the policy says a response enum may grow, declare
x-extensible-enumon that field. Pin the enum check toinfoonly when the policy declares every response enum open; the annotation also tells SDK generators to accept unknown values. - Pinning a level disables a tool's own downgrades for that check; pin only what the policy contradicts.
- Pin the diff tool version. Upgrades change classification with no spec change; review the rule diff on each bump.
Per-paradigm flags, a CI workflow, the drift recipe, and how to give non-oasdiff findings stable fingerprints: read references/tool-configuration.md.
3. Pick one baseline per job
Each comparison answers a different question. Using one baseline for all three is the most common design error.
| Job | Compare the candidate against | Misses if you use another baseline |
|---|---|---|
| PR gate | the merge base on the default branch | Release baseline blames this PR for changes merged earlier |
| Published changelog | the spec of the last released version (tag, GA spec, deployed release) | Default-branch baseline splits one release across many tiny diffs and loses the multi-PR total |
| Drift alarm | the spec the production service actually serves, or live traffic validated against it | Both others compare documents with documents |
For date- or header-versioned APIs, diff per version: version N's spec against version N's previous release, and the new version against its predecessor. A break that ships only in a new version must appear in that version's entries and nowhere else.
When one codebase serves every version through transformers or version gates, produce one spec per supported version at build time: run the generator once per version (version header, build flag or transformer-aware export) and commit each as specs/<version>.yaml. The release baseline for version N is specs/N.yaml at the previous release tag. A diff in a version that was supposed to be frozen is itself a defect.
4. Wire the PR gate
- Fail on
err. Showwarnin the PR summary as "potentially breaking", never silently drop it. - Filter by audience before failing: oasdiff's
--stability-level(defaultbeta) excludes draft and alpha operations; exclude internal ones by extension name (--filter-extension x-internal) or path (--unmatch-path). An operation that gains the internal marker disappears from the filtered diff as a removal: callers lose it, so it stays breaking. - Require a named approver for any accepted
err: put the spec,severity-map.mdand the acknowledgement file under one code-owners rule with required review. Theapproverfield records who reviewed; it enforces nothing, and without the rule an author approves their own break in the same PR. - Post the findings on the PR (comment or annotations) with check id and fingerprint, so approvals survive new commits within the PR.
- For GraphQL and other surfaces with usage data, add usage-aware classification (operation checks,
considerUsage) only after the static gate works. Usage windows miss quiet clients: monthly jobs, mobile apps, SDKs with no recent traffic. Set the window to the longest client cycle you know of, not the tool default.
5. Open the declared-change channel
A structural diff cannot see behavior. Give authors a second channel and merge it into the same changelog:
- PR template question: "Does this change behavior, defaults, validation, error codes or bodies, auth, rate limits, pagination or ordering without a spec change?"
- A yes requires a change fragment (one JSON file per change, committed with the code) carrying the same fields as a diff-derived entry.
- Declared breaking changes go through the same approval as diff-detected ones.
- Date- or header-versioned API: list every version whose callers see the change. More than the newest version means pinned callers are affected; the versioning policy's exception path decides whether that may ship.
The full blind-spot list and the fragment format: read references/blind-spots-and-declared-changes.md.
6. Record every accepted break
An ignore file without a record is where breaking changes disappear. Every acknowledgement row carries:
- the fingerprints or declared-change id it covers, plus the check id, operation, path and the tool's exact text for that change,
- approver, date, ticket,
- reason class: intended break shipping under a new version, spec correction to match the live service, security exception, or
historic(audited, origin unknown), - the notice or migration link callers will see,
- for spec corrections, the date the service started behaving this way.
Fingerprints move when the baseline moves (PR merge base versus release tag). The release run re-matches a PR-time approval only on check, operation, path and exact text, and only when a single finding has that location; any other match stays unapproved and needs explicit sign-off.
Spec corrections still produce a changelog entry: callers were told something false and deserve to learn the truth. Review the acknowledgement file each release; a row whose change no longer appears is deleted, never left to match a future change.
Generate the tool's ignore file from the acknowledgement rows in the PR job, before the gate (python3 scripts/build-entries.py --acks acks.json --ignore-out oasdiff-err-ignore.txt); never edit it by hand. Commit an empty acknowledgement list and ignore file at setup.
An existing hand-edited ignore file is audited before the new gate goes live, line by line:
- Rerun the diff without the ignore file against the current release baseline. Lines that match nothing are deleted.
- Each line that still matches gets an acknowledgement row: reason class (
historicwhen nobody knows why it was added), ticket if one exists, approverunknown - audited <date>if nobody signed it. - Each audited line that hides a break callers never saw announced gets a changelog entry in the next release, as a spec correction or a late notice.
Freeze new hand-added lines from the day the audit starts, or the audit never ends.
7. Generate entries and the feed per API version
- Build entries only from structured output: the release-baseline diff as JSON (
oasdiff changelog -f json, or another tool's output mapped to the same fields), fragments, acknowledgement rows. Run once per spec: fingerprints carry no file name. Keep the tool's wording beside any human summary, and attach the author's narrative from the PR or fragment. - Exclude version-bump findings: they are rules about the release, not contract changes.
- One entry per contract change, grouped by API version, then by resource or product area, breaking first. A change the tool reports for one shared schema is one entry listing every affected operation and every fingerprint it covers; identical wording on unrelated operations stays separate entries.
- Each entry carries a version-scoped id, a classification (
breaking,potentially-breaking,non-breaking), its source (diff:<check-id>ordeclared:<fragment-id>), the fingerprints it covers, the affected operations, the action required, and the sunset date when one applies. - Exclude documentation-only edits and operations not visible to the feed's audience.
- Publish two artifacts: a machine-readable feed (JSON and Atom/RSS), and a human page per version. Keep the "action required" text in the feed, not only on the page.
python3 scripts/build-entries.py --changelog changelog.json --api-version 2026-07-01 \
--date 2026-07-01 --fragments changes/ --acks acks.json --out entries.json \
--ignore-out oasdiff-err-ignore.txt
It writes skeleton entries with summary and action_required left for a human, groups shared-schema findings, rejects fragments with a non-canonical classification or kind, and prints a notice for each break no acknowledgement covers. Entry schema, feed shapes and good/bad examples: read references/entry-and-feed-format.md.
8. Verify traceability, then publish and hand off
python3 scripts/check-entry-trace.py --diff changelog.json --entries entries.json \
--fragments changes/ --api-version 2026-07-01 --acks acks.json
It fails when an entry traces to no finding or fragment, changes the classification of what it covers, carries another version, or lacks an action; when a breaking or potentially breaking finding or fragment has no entry; and when a breaking entry's approval is missing or does not cover all its sources. Both scripts need Python 3.8+ and the standard library only; exit 0 means pass, 1 findings to fix, 2 unusable input.
- An LLM may shorten or reword an entry. It may not add a path, field, status code, date or consequence absent from the entry's source; rerun the trace check after any rewrite.
- Hand the traced entries to
changelog-writingfor prose, and each breaking entry toversion-migration-guidewhen callers need before/after code.
Rationalizations to reject
| Rationalization | Why it is wrong |
|---|---|
| "The diff is green, so nothing breaking shipped." | The diff saw declared structure only. Check the declared-change channel and the drift alarm. |
| "The tool's defaults are industry standard." | Tools disagree with each other and with published provider policies on enums, auth and deprecated removals. |
| "Add it to the ignore file and move on." | An unrecorded ignore hides the break from the changelog and matches future changes. Record it (step 6). |
| "It was deprecated, so removing it is safe." | Deprecation is a label. The versioning policy's sunset and usage rules decide removal; encode them with x-sunset and usage-aware checks. |
Failure modes
- Gate turned off by noise. Phantom changes from a non-deterministic generated spec teach the team to set
fail-on none. Fix the generator output, never the threshold. - Spec drift rewarded. Engineers stop updating the spec to keep CI green. The drift alarm catches this; without it, the gate measures fiction.
- Changelog per deploy for a versioned API. Callers pinned to version N read changes that only exist in N+1.
Measurement
- Escaped breaks: breaking changes reported by integrators or support that have no changelog entry. Target zero; each one is a blind-spot row or a severity-map row to add.
- Trace coverage: share of published entries the trace check links to a source. Pass bar: 100% before publishing.
- Acknowledgement hygiene: rows without approver, ticket or link; rows older than one release with no matching change. Pass bar: zero.
- Override rate: accepted
errfindings per release. A rising rate means the severity map drifted from the policy or the policy from reality.
Invocation examples
- "Set up oasdiff in our GitHub Actions so breaking changes to openapi.yaml fail the PR, and generate the API changelog for each release."
- "Our GraphQL schema checks keep flagging enum additions as breaking. How should we configure graphql-inspector against our policy?"
- "We publish date-based API versions. Design a pipeline that produces a per-version changelog feed partners can subscribe to."
References
samber/developer-platform-skills@public-grpc-api-design- proto package versioning and buf governance for the protobuf surface this pipeline diffs.samber/developer-platform-skills@public-graphql-api-design- additive-friendly schema design that keeps the GraphQL gate quiet.samber/developer-platform-skills@webhook-platform-design- event payload versioning whose AsyncAPI diffs this pipeline classifies.samber/developer-platform-skills@api-beta-program- beta surfaces excluded from the gate by stability level until GA.samber/developer-platform-skills@sdk-package-publishing- SDK release notes for generator-caused breaks, kept apart from API-caused entries.
Open this reference as its own page
Blind spots and the declared-change channel
What a structural diff cannot see
| Change | Diff sees it? | Cover it with |
|---|---|---|
| Behavior change with the same schema | No | Declared fragment; contract test on the behavior |
| Default value change | Only if default is declared in the spec |
Declare defaults in the spec; fragment for server-side fallbacks |
| Validation tightening | Only if declared (pattern, maximum, maxLength, required) |
Mirror server validation into the spec; fragment otherwise |
| New error status code | Yes if documented | Document every status; fragment for changed error-body meaning |
| Error code or message meaning | No | Fragment; treat machine-readable error codes as contract |
| Rate limits, quotas | No | Fragment; link the rate-limit page |
| Pagination, ordering, page size | No | Fragment; contract test on ordering when callers rely on it |
| Auth requirement changed | In the spec, yes; oasdiff rates removed scopes and added alternative requirements INFO | Severity-map rows per the policy; fragment for gateway-only rules the spec never declares |
operationId or schema rename |
Not on the wire; yes for generated SDKs | Severity map row; SDK release notes for generator-caused breaks |
| Spec drift from the running service | No | Drift alarm against the served spec or live traffic |
| Transcoding annotations (gRPC → HTTP) | No under buf breaking |
Diff the generated OpenAPI too |
Declared enums, nullability and readOnly/writeOnly are seen, but their direction decides the verdict: what the server sends follows response rules, what the client sends follows request rules.
PR template block
### API contract
- [ ] No change to the published API
- [ ] Spec changed (the contract diff will classify it)
- [ ] Behavior changed without a spec change: defaults, validation, error codes or bodies,
auth, rate limits, pagination, ordering, timing -> add a change fragment
The third box is the only route by which a behavior change reaches the changelog. Reviewers ask for a fragment when the diff touches handlers but not the spec.
Change fragment format
One JSON file per change in the fragments directory, committed with the code, named after the PR or ticket.
{
"id": "declared-2026-0412-invoice-list-order",
"api_versions": ["2026-05-01"],
"area": "Billing",
"operations": ["GET /v1/invoices"],
"classification": "breaking",
"kind": "changed",
"summary": "Invoices are now returned newest first instead of oldest first.",
"action_required": "Pass sort=created_asc to keep the previous order.",
"sunset": null,
"links": { "migration": null }
}
id: the entry'ssourcebecomesdeclared:<id>; keep it unique across the repository.api_versions: every version whose callers see the change; omit only for unversioned APIs. More than the newest version on a date-versioned API means the change reaches pinned callers: the versioning policy's exception path decides.classification: exactlybreaking,potentially-breakingornon-breaking; both scripts reject anything else. A breaking fragment needs an acknowledgement row whosecoverslists thisid.kind: exactlyadded,changed,deprecatedorremoved.
Triage rule for "potentially breaking"
warn findings and unclassified items stay visible as potentially-breaking in the entry. Resolve one by:
- adding a severity-map row with the policy line that decides it, or
- an acknowledgement row whose
rationaleexplains why it cannot break callers; the entry stays published as potentially breaking, with that rationale as its action text.
Never resolve it by deleting the entry.
Open this reference as its own page
Entry schema, feed shapes and examples
Contents:
- Entry schema
- Acknowledgement record
- JSON feed
- Atom feed
- Human page per version
- Good and bad entries
- Rewriting with a model
Entry schema
{
"id": "2026-05-01/a3f8c21b9d04",
"api_version": "2026-05-01",
"date": "2026-05-01",
"area": "Billing",
"operations": ["GET /v1/invoices/{id}", "GET /v1/quotes/{id}"],
"shared_schema": "Money",
"kind": "removed",
"classification": "breaking",
"source": "diff:response-required-property-removed",
"covers": ["a3f8c21b9d04", "77c0e1a9b2d4"],
"summary": "Amounts no longer carry `legacy_total`.",
"tool_text": "removed the required property `total/legacy_total` from the response with the `200` status",
"action_required": "Read `total.amount` instead; it carries the same value in minor units.",
"sunset": null,
"links": {
"migration": "https://docs.example.com/upgrade/2026-05-01#money",
"approval": "ack-2026-0398"
}
}
links.approval: one acknowledgement id, or a list when several rows together cover every fingerprint incovers.id:<api_version>/<first covered fingerprint or fragment id>. Fingerprints carry no version, and one change can ship in several versions; the version prefix keeps ids unique across a multi-version feed, so readers deduplicate safely.covers: every finding fingerprint (or, for a declared entry, exactly its fragment id) the entry stands for. A change oasdiff reports for one shared schema (sharedSchemain its JSON) is one entry with several fingerprints; identical text on unrelated operations stays separate entries, merged only in the human page's wording.classification:breaking,potentially-breaking(toolwarn, unclassified, or declared as uncertain),non-breaking. Must equal the classification of every source it covers.source:diff:<check-id>ordeclared:<fragment-id>.tool_text: the tool's own sentence, kept verbatim beside the humansummary.action_required: empty only fornon-breakingentries.
Acknowledgement record
{
"id": "ack-2026-0398",
"covers": ["a3f8c21b9d04", "77c0e1a9b2d4"],
"check": "response-required-property-removed",
"operation": "GET",
"path": "/v1/invoices/{id}",
"text": "removed the required property `total/legacy_total` from the response with the `200` status",
"reason": "intended-break-new-version",
"approver": "api-review",
"date": "2026-04-22",
"ticket": "API-1187",
"notice": "https://docs.example.com/changelog/2026-05-01",
"behaving_since": null,
"rationale": null
}
covers: fingerprints and fragment ids. A PR-time fingerprint can differ from the release-time one for the same change;build-entries.pyre-matches oncheck+operation+path+ exacttext, only when one finding has that location, and asks for the release fingerprint to be added.text: the tool's sentence (-f singlelineor JSONtext).build-entries.py --acks acks.json --ignore-out <file>turnsoperation,pathandtextinto the tool's ignore line; run it in the PR job before the gate, so the ignore file is never edited by hand.reason:intended-break-new-version,spec-correction,security-exception, orhistoricfor rows created by auditing an old hand-edited ignore file (approverunknown - audited <date>).behaving_since: required forspec-correction; the date the live service started behaving as the corrected spec says.rationale: required when the row resolves apotentially-breakingfinding as harmless; say why it cannot break callers.
JSON feed
An object with feed_version, api, generated_at and entries (newest version first, breaking first within a version), published at a stable URL per audience (public, partner). A consumer polling it filters on api_version and classification without parsing prose.
Atom feed
- One
<entry>per changelog entry. <id>must be an IRI (RFC 4287): use a tag URI built from the entry id, e.g.tag:example.com,2026:payments/2026-05-01/a3f8c21b9d04.<updated>= date;<category term="breaking"/>plus one category per area.- Put
action_requiredin the content, not only on the web page: feed readers and chat integrations drop links readers never follow.
Human page per version
One page per version: ### Breaking changes, then ### Potentially breaking, then additions and deprecations; each line names the area, the operations, what callers observe and the action, with the upgrade-guide link. Prose polish is for samber/developer-relations-skills@changelog-writing; this structure is what it receives.
Good and bad entries
// ✓ Good - names the operations, what callers observe, the action, and the version
Billing - GET /v1/invoices/{id}, GET /v1/quotes/{id} (2026-05-01): `legacy_total` is no longer returned. Read `total.amount`.
// ✗ Bad - raw tool text per property and per operation, no grouping, no action
removed the required property `total/legacy_total` from the response with the `200` status
removed the required property `total/legacy_total` from the response with the `200` status
// ✓ Good - declared behavior change the diff could never show
Billing - GET /v1/invoices (2026-05-01): results now sorted newest first. Pass sort=created_asc for the old order.
Rewriting with a model
Allowed: shorten, reorder, merge entries that share a schema, translate tool text into plain words.
Rejected, by rerunning the trace check and a reviewer reading the source next to the sentence:
- any path, field, parameter, status code or enum value absent from the entry's source;
- any consequence ("faster", "more secure", "no action needed") the source does not state;
- changing the classification or dropping
action_required(the trace check fails both).
Open this reference as its own page
Tool configuration per paradigm
Contents:
- Severity map and level file
- OpenAPI: oasdiff
- OpenAPI: OpenAPITools openapi-diff
- GraphQL: graphql-inspector and registry checks
- Protobuf: buf breaking
- AsyncAPI
- Fingerprints for tools that emit none
- CI workflow
- Drift alarm
Names, flags and defaults are the tools' own; verify them against the pinned version. An archived tool is never a new choice.
Severity map and level file
Keep the human table and the machine file apart. The table cites the policy line each row enforces, so a reviewer can tell an intended deviation from a forgotten default.
severity-map.md:
| Check id | Level | Policy line | Status |
| --------------------------------- | ----- | --------------------------------------------------- | ----------- |
| api-security-scope-removed | err | 1.9 - widening auth changes are announced too | signed |
| api-major-version-not-bumped | err | 3.1 - semver info.version; breaking needs a major | signed |
| response-property-enum-value-added| info | 2.3 - every response enum is open | provisional |
api-security-scope-removed widens access, so no conforming client breaks; pinning it to err is a policy choice to announce every auth change, not a correction of the tool.
oasdiff-levels.txt holds only <check-id> <level> lines (oasdiff rejects comments and extra columns, exit code 106). The CI workflow below extracts it from the table on every run, so the two files cannot drift. For tools without a level file, keep the same table beside their rule configuration.
OpenAPI: oasdiff
- Commands:
breaking(ERR + WARN),changelog(all levels at or above--level, docs-only edits excluded),diff(everything). Multi-spec repositories:breaking-fileschecks each changed spec against its version at a git ref. - Levels:
ERRdefinite,WARNcannot be decided from the definition,INFOnon-breaking. Gate with--fail-on ERR. - Direction-aware: a response becoming nullable is
err, a request becoming nullable isinfo. - Auth: added scopes, added global scopes, removed anonymous access and removed security are ERR; removed scopes and an added alternative security requirement (alternatives are OR'd, so access widens) are INFO.
allOfchanges without--flatten-allofare compared branch by branch and downgraded to WARN; flatten to get the exact verdict.- Baselines by git revision:
oasdiff breaking origin/main:openapi.yaml openapi.yaml,oasdiff changelog v2.3.0:api/openapi.yaml api/openapi.yaml. Needs full git history in CI. - Output:
-f json|githubactions|singleline|markdown|...;--attributes x-audiencecopies an extension value onto each JSON entry. - Ignore files:
--err-ignore/--warn-ignore, one line per change asMETHOD /path <change text>orcomponents <change text>; extra text (a date, an acknowledgement id) is allowed. They match on text, not fingerprints, so a stale line can match a future change with the same wording. - Fingerprint: 12 hex chars from check id, operation, path and the message arguments; stable across commits in a PR; changes when the base moves (renames,
oneOfpositions, shared-schema anchor). - Lifecycle:
deprecated: truethen removal is accepted; withx-sunset: "YYYY-MM-DD", removal before that date iserr, and moving the date earlier iserr.--deprecation-days-stable=N/--deprecation-days-beta=Nmakex-sunsetmandatory with a minimum grace period.- Full deprecation flow applies to operations and parameters. Check the pinned version's handling of deprecated properties before relying on it.
- Stability:
x-stability-level=draft→alpha→beta→stable;--stability-levelsets the threshold (defaultbetaexcludes draft and alpha); no level counts as stable; a decrease is reported. - Audience:
--filter-extension <regex>excludes paths and operations carrying a matching extension name;--match-path/--unmatch-pathfilter by path regex. An element marked in only one of the two specs shows up as added or removed. - Version bumps:
api-version-not-bumped,api-version-decreased,api-major-version-not-bumped; skipped for non-semver versions. - Shared schemas: one finding per check per operation; within one payload, one finding names the shared schema and counts the properties it reaches.
- Stated gaps: no checks for parameters using
contentinstead ofschema, none for callbacks.
OpenAPI: OpenAPITools openapi-diff
- Outcomes: no change, compatible, incompatible. Flags
--fail-on-incompatible,--fail-on-changed. - Per-rule switches as config properties, e.g.
incompatible.response.enum.increased=falseturns off its default of treating a growing response enum as incompatible. - Path matching ignores parameter names and fails on ambiguous paths.
GraphQL: graphql-inspector and registry checks
graphql-inspector diff OLD NEW: breaking, dangerous, non-breaking; exits non-zero on breaking.- Rules:
dangerousBreaking- every dangerous change fails (choose when the policy treats enum additions or default changes as breaking).suppressRemovalOfDeprecatedField- removing a@deprecatedfield becomes dangerous. Pair it with a usage rule, never alone.safeUnreachable- changes to types unreachable from root types pass.considerUsage --onUsage <module>- your module answers, per type/field/argument, whether it was used in your window.
- Registry checks with recorded operations (e.g. Apollo GraphOS, GraphQL Hive) mark operations broken or potentially affected. Apollo's default window is the last week; raise it to the longest client cycle, since clients with no traffic in the window are invisible.
Protobuf: buf breaking
buf breaking --against '.git#branch=main'(PR gate) or--againsta release tag or registry module (changelog baseline).- Categories, strictest first:
FILE(default) ⊃PACKAGE⊃WIRE_JSON⊃WIRE. Use at leastWIRE_JSONwhenever any client speaks JSON (Connect, grpc-gateway, gRPC JSON):WIREalone misses field renames that break JSON clients. except,ignore,ignore_unstable_packagesinbuf.yaml.- Blind to custom options such as
google.api.http: an HTTP transcoding change passes every breaking check. Diff the generated OpenAPI of the transcoded surface as well.
AsyncAPI
@asyncapi/diff(and theasyncapi diffCLI): breaking, non-breaking, unclassified, with per-JSON-pointer overrides foradd/remove/edit.- Decide unclassified once, in the severity map:
warn(shown, not failing) is the usual choice;errwhen consumers are unreachable.
Fingerprints for tools that emit none
graphql-inspector, buf and @asyncapi/diff output carries no stable change id. Map each finding to the scripts' fields before building entries:
id: the tool's change type or rule (FIELD_REMOVED,FIELD_SAME_JSON_NAME, a@asyncapi/diffaction plus pointer kind).level:3breaking,2dangerous / unclassified,1non-breaking.path: the coordinate - GraphQL schema coordinate (Shipment.legacyTrackingCode), protofile:element, AsyncAPI JSON pointer.operation: the root operation or RPC when one applies, else empty.text: the tool's message.fingerprint: the first 12 hex characters ofsha256("<id>:<operation>:<path>:<args>"), whereargsare the structured values of the change (graphql-inspectormetavalues, buf element names,@asyncapi/diffbefore/after values). Never hash the message text: a reworded message in a tool upgrade would re-key every finding and orphan every acknowledgement.
Keep the mapping in the repo so fingerprints stay stable across runs.
CI workflow
GitHub Actions shape for the PR gate (other CI systems: same steps):
name: api-contract
on:
pull_request:
paths: ["api/**"]
jobs:
breaking:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0 # git-revision baselines need history
- name: Install pinned oasdiff
run: go install github.com/oasdiff/oasdiff@${OASDIFF_VERSION}
env:
OASDIFF_VERSION: v1.34.1 # pinned; bump deliberately and review rule changes
- name: Regenerate level and ignore files from the reviewed sources
run: |
awk -F'|' '$2 ~ /^ *[a-z0-9-]+ *$/ && $3 ~ /^ *(err|warn|info|none) *$/ {gsub(/ /,"",$2); gsub(/ /,"",$3); print $2, $3}' api/severity-map.md > api/oasdiff-levels.txt
python3 tools/build-entries.py --acks api/acks.json --ignore-out api/oasdiff-err-ignore.txt
- name: Gate
run: |
base="$(git merge-base origin/${{ github.base_ref }} HEAD)"
oasdiff breaking "$base:api/openapi.yaml" api/openapi.yaml \
--severity-levels api/oasdiff-levels.txt \
--err-ignore api/oasdiff-err-ignore.txt \
--fail-on ERR -f githubactions
Commit api/acks.json as [] and an empty api/oasdiff-err-ignore.txt at setup: oasdiff exits 121 when an ignore file passed to it does not exist. Copy the skill's scripts into the repository (here tools/) so CI runs a reviewed, pinned copy.
The release job runs oasdiff changelog <last-release-tag>:api/openapi.yaml api/openapi.yaml -f json, then build-entries.py and check-entry-trace.py, and publishes only on a passing trace check.
Drift alarm
- Served spec: on a schedule, fetch the spec the production service exposes and diff it with
oasdiff diff --fail-on-diffagainst the spec built from the commit that is deployed (the build artifact). With continuous deployment that is the default branch, not the last release tag; comparing against the tag fires on every merge. - No served spec: validate sampled production requests and responses against the spec with a validation proxy or middleware, and alert on violations.
- A drift finding is a spec correction candidate: it goes through step 6, never straight into the ignore file.
More in this playbook
Cross crm opportunity sync
Coordinate opportunities and customer records across multiple CRMs while preserving attribution, visibility, commissions, and governance.
IntegrationsMIT Wade Foster + 1Co-founder & CEO @ ZapierInstall zapier
Install and connect Zapier, routing to the right surface (MCP, SDK, or CLI) for what the person needs. Use when someone says "install Zapier", "add Zapier", "connect Zapier", or "set up Zapier", or when they want an AI client (Claude, ChatGPT, Cursor) to use their apps, want to call Zapier from code, or want Zapier in the terminal.
IntegrationsMIT Wade Foster + 1Co-founder & CEO @ ZapierMcp sheet cache bridge
Keep Zapier Tables or another MCP-connected record store as the source of truth while Google Sheets-based tools read an event-driven cache tab.
