From 58bc3220bf551224e2d34c8789f6297f3681442b Mon Sep 17 00:00:00 2001 From: Reuven Harrison Date: Wed, 2 Dec 2026 20:14:01 +0200 Subject: [PATCH 1/2] README: update the number of named changes to 792 Co-Authored-By: Claude Fable 5.2 --- README.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index bda7c55..0975e5d 100644 --- a/README.md +++ b/README.md @@ -7,7 +7,7 @@ The model is one file, [`openapi-changes-model.yaml`](openapi-changes-model.yaml - **The vocabulary**: every term the model uses, defined in the file itself: the location grammar and the claim syntax built on it, the seven actions a document edit can perform (add, remove, set, unset, increase, decrease, change), the wire directions, the areas and kinds that situate each change in the OpenAPI object model, the six effects a change can have on the set of valid payloads, the guards (document states that qualify a verdict), the severity levels, and the statuses and categories of the coverage listing. - **The severity law**: one rule that derives every verdict. Guards apply first; then narrowing breaks request consumers, widening breaks response consumers, an incomparable change breaks both, and an unknown one is a warning. When a change cannot be proven safe, it is breaking. - **The transitions**: multi-edit document shapes recognized as one semantic change (a schema wrapped to become nullable, a schema replaced by the boolean `false`), each with the kinds of raw findings it explains away and the changes that report it instead. -- **681 named changes**, each with its direction, effect, guards, derived severity, human-readable message, and its **claims**: the exact document locations and actions it covers, as `location:action` patterns over the OpenAPI object model. +- **792 named changes**, each with its direction, effect, guards, derived severity, human-readable message, and its **claims**: the exact document locations and actions it covers, as `location:action` patterns over the OpenAPI object model. - **The full edit space**: 15,255 possible edits, enumerated mechanically from the OpenAPI specification's object model. Every edit is covered by named changes, waived with a written reason, or classified as non-contract (unable to affect which payloads are valid). None are undecided. See [SPEC.md](SPEC.md) for an explanation of the concepts. @@ -23,7 +23,7 @@ Disagreement with a verdict is the most valuable contribution. If you believe a - **Open an issue** naming the change id (or the edit's location and action) and the payload that demonstrates your case: a request or response that was valid before and breaks after, or the reason none can exist. - **Pull requests** are welcome against `SPEC.md` and the documentation. The model file itself is generated, so classification changes are agreed in an issue first and then land via the reference implementation. -The severity law is the part most worth challenging: it is short, explicit, and every one of the 681 verdicts follows from it. An argument that changes the law changes everything downstream, on purpose. +The severity law is the part most worth challenging: it is short, explicit, and every one of the 792 verdicts follows from it. An argument that changes the law changes everything downstream, on purpose. ## Reading the model From c4df62fb9598d93922f4993315406ee01834d905 Mon Sep 17 00:00:00 2001 From: Reuven Harrison Date: Wed, 2 Dec 2026 20:20:41 +0200 Subject: [PATCH 2/2] Remove the counts from README and SPEC The model file is regenerated at every oasdiff release and the prose is not, so the counts went stale. Co-Authored-By: Claude Fable 5.2 --- README.md | 6 +++--- SPEC.md | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/README.md b/README.md index 0975e5d..1ae6a39 100644 --- a/README.md +++ b/README.md @@ -7,8 +7,8 @@ The model is one file, [`openapi-changes-model.yaml`](openapi-changes-model.yaml - **The vocabulary**: every term the model uses, defined in the file itself: the location grammar and the claim syntax built on it, the seven actions a document edit can perform (add, remove, set, unset, increase, decrease, change), the wire directions, the areas and kinds that situate each change in the OpenAPI object model, the six effects a change can have on the set of valid payloads, the guards (document states that qualify a verdict), the severity levels, and the statuses and categories of the coverage listing. - **The severity law**: one rule that derives every verdict. Guards apply first; then narrowing breaks request consumers, widening breaks response consumers, an incomparable change breaks both, and an unknown one is a warning. When a change cannot be proven safe, it is breaking. - **The transitions**: multi-edit document shapes recognized as one semantic change (a schema wrapped to become nullable, a schema replaced by the boolean `false`), each with the kinds of raw findings it explains away and the changes that report it instead. -- **792 named changes**, each with its direction, effect, guards, derived severity, human-readable message, and its **claims**: the exact document locations and actions it covers, as `location:action` patterns over the OpenAPI object model. -- **The full edit space**: 15,255 possible edits, enumerated mechanically from the OpenAPI specification's object model. Every edit is covered by named changes, waived with a written reason, or classified as non-contract (unable to affect which payloads are valid). None are undecided. +- **The named changes**, each with its direction, effect, guards, derived severity, human-readable message, and its **claims**: the exact document locations and actions it covers, as `location:action` patterns over the OpenAPI object model. +- **The full edit space**: every possible edit, enumerated mechanically from the OpenAPI specification's object model. Every edit is covered by named changes, waived with a written reason, or classified as non-contract (unable to affect which payloads are valid). None are undecided. See [SPEC.md](SPEC.md) for an explanation of the concepts. @@ -23,7 +23,7 @@ Disagreement with a verdict is the most valuable contribution. If you believe a - **Open an issue** naming the change id (or the edit's location and action) and the payload that demonstrates your case: a request or response that was valid before and breaks after, or the reason none can exist. - **Pull requests** are welcome against `SPEC.md` and the documentation. The model file itself is generated, so classification changes are agreed in an issue first and then land via the reference implementation. -The severity law is the part most worth challenging: it is short, explicit, and every one of the 792 verdicts follows from it. An argument that changes the law changes everything downstream, on purpose. +The severity law is the part most worth challenging: it is short, explicit, and every verdict follows from it. An argument that changes the law changes everything downstream, on purpose. ## Reading the model diff --git a/SPEC.md b/SPEC.md index 75c22b3..a086281 100644 --- a/SPEC.md +++ b/SPEC.md @@ -17,7 +17,7 @@ An **edit** is one syntactic change at one location of the document: a `(locatio | `increase` / `decrease` | an ordered field's value grows or shrinks | | `change` | a field's value is replaced by an incomparable value | -The edit space is enumerated mechanically from the object model, so it is complete by construction: 15,255 edits as of this version, growing only when the OpenAPI specification itself grows. +The edit space is enumerated mechanically from the object model, so it is complete by construction, growing only when the OpenAPI specification itself grows. The location syntax is this model's own, deliberately. JSONPath (RFC 9535), which the OpenAPI Overlay Specification uses for its targets, expresses most of these paths directly, but not all of them: locations here address the object model rather than a document instance (the `schema` segment covers the schema and its sub-schemas at any depth), and the `x-*` form matches key names by prefix, which JSONPath expresses only through filter expressions. Aligning with JSONPath where the semantics permit is an open question; see the issue tracker.