Repository navigation
docs: version vocabulary by feature, not by kind (ADR-0035 Amendment 5) - #598
Merged
Merged
Conversation
…mendment 5) Adding to or augmenting an existing feature (a type, subtype, attribute, enum value or view vocabulary, additive and loading every existing document with the same meaning) is a PATCH; a whole new feature is a MINOR; a break stays a MAJOR. Supersedes Amendment 1's kind-based three-way split and its inert test. metamodelVersion gains a patch component moved by the same decision. Accepted, not yet implemented: the value flows into published shared-model packages, lock entries and the FR-023 dependency check in all five ports, so it lands as its own change. Until then the gate keeps <major>.<minor> and a vocabulary-adding patch moves the metamodel minor. Any move of it still publishes all four registries. Updates docs/RELEASING.md (the vocabulary rule, the change-class table, the two-contracts gate text), docs/compatibility-policy.md, the releasing skill, AGENTS.md's pointer, the 1.0 readiness record and the gate's version-arithmetic comment. No script enforced the kind-based rule.
…ocab-rule # Conflicts: # CHANGELOG.md
…ocab-rule # Conflicts: # CHANGELOG.md
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What Changed
docs/RELEASING.md: vocabulary of any kind that adds to or augments an existing feature is a PATCH (it need not be inert, but must be additive — nothing removed, narrowed or reinterpreted), a whole new feature is a MINOR, a break stays a MAJOR. Recorded as ADR-0035 Amendment 5 with worked examples (rc.21 view vocabulary and@dbCheck⇒ PATCH;requirement.*and FR-044 reporting ⇒ MINOR).metamodelVersionmoves by the same feature decision and gains a<major>.<minor>.<patch>form (accepted, not yet implemented — until every port reads three components, an augmentation still moves the minor), and that anymetamodelVersionmove at any release level publishes all four registries. The comment inscripts/check-metamodel-version.mjswas updated to match; the script's behavior is unchanged.docs/compatibility-policy.md(MINOR vs PATCH section),docs/1.0-readiness.md(G3b row),AGENTS.md,.claude/skills/releasing/SKILL.md, and aCHANGELOG.mdUnreleased entry. Policy text only — no version, vocabulary ormetamodelVersionchanges.Validation
Risk Assessment
✅ Low: A policy/docs-only change (plus one code comment): the release-level feature test is stated consistently across all eight files, matches the gate script's actual current behavior, its factual examples verify against the repo and the 1.2.x release line, and the prior round's fix correctly removed the 1.2.x-line metamodel-version claims per the recorded decision.
Testing
Drove the metamodel-version gate — the only runtime surface of this otherwise documentation/policy change — live at the target commit, plus two adversarial runs built on a disposable synthetic manifest edit against the base commit as baseline: the Amendment-5 PATCH case (an additive attribute with no version move) is correctly blocked until metamodelVersion takes its minor, and the accepted-but-unimplemented three-component version form is refused. All passed and matched what the rewritten rules claim; the working tree was restored to clean after each transient edit. Broad regression comes from the already-passing configured run of scripts/ci-local.sh --affected --strict-toolchains at this commit.
Evidence: Gate classification at target commit (--explain vs v1.2.3)
Evidence: Adversarial: additive attr demands MINOR; 1.3.1 form refused
== additive attr, version NOT moved (expect FAIL, required MINOR) == ✗ metamodel-version: the metamodel changed since f7de5ff2a, but metamodelVersion did not move. ADDITIVE (1): - attr added: field.string @fuzzKey declared: 1.3 (unchanged since f7de5ff2a) required: a MINOR bump exit=1 == 3-component metamodelVersion 1.3.1 (accepted-not-implemented form; expect parse rejection) == ✗ metamodel-version: working tree: metamodelVersion must be "<major>.<minor>" (got "1.3.1") exit=1Pipeline
Updates from git push no-mistakes
✅ **Intent** - passed
✅ No issues found.
✅ **Rebase** - passed
✅ No issues found.
spec/decisions/ADR-0035-one-zero-stability-commitment-and-version-unification.md:476- Amendment 5 blesses "the 1.2.x line's 1.2.4 does (to 1.3)" while the same amendment (line 452) and docs/RELEASING.md:339 state "one value names one vocabulary set — a maintenance line that adds vocabulary takes a value no other line has shipped". These already collide in the repo: main's released 1.3.0 (f7de5ff, 2026-11-17) ships metamodelVersion "1.3" whose expected-registry.json LACKS the rc.21 vocabulary, while the unreleased 1.2.4 on the 1.2.x line (origin/fm/mo-pr593-takeover) ships "1.3" WITH it (cast/fn expression nodes, extended @dbColumnType spellings) — same value, two different vocabulary sets. The gate will enforce the conflict: once v1.3.0 is the baseline tag, check-metamodel-version.mjs classifies the rc.21 additions as additive → requiredBump "minor", demanding "1.4" on the 1.2.x line, not the "1.3" the ADR sentence asserts. Sibling sites of the same claim: ADR line 378 ("The 1.2.x line's 1.2.4 is the worked case") and ADR line 419 (the rc.21 row dated 1.2.4). The remedy — 1.2.4 takes "1.4", the collision is accepted for this one cut, or the invariant is scoped only to the future three-component form — is a release-policy decision, so it needs the maintainer's ruling rather than a mechanical edit.docs/1.0-readiness.md:122- Inline fix applied: the package-MINOR trigger list still named "a new top-level type", which the Amendment 5 note added directly above (lines 118-120) supersedes — a new type/subtype that augments an existing feature is now a PATCH. Replaced with "a whole new metadata feature" so the sentence matches the rule the same bullet states.🔧 Fix applied.
📝 1 wording or comment-placement note left for the author (no fix round spent):
docs/1.0-readiness.md:122- Inline fix applied: the package-MINOR trigger list still named "a new top-level type", which the Amendment 5 note added directly above (lines 118-120) supersedes — a new type/subtype that augments an existing feature is now a PATCH. Replaced with "a whole new metadata feature" so the sentence matches the rule the same bullet states.✅ **Test** - passed
✅ No issues found.
scripts/ci-local.sh --affected --strict-toolchainsnode scripts/check-metamodel-version.mjs (gate green at target commit vs v1.2.3 baseline, exit 0)node scripts/check-metamodel-version.mjs --explain (classified the real 1.2→1.3 additive diff, required bump: minor)node scripts/check-metamodel-version.mjs --against f7de5ff2a with a synthetic additive attr on field.string and metamodelVersion left at 1.3 — failed with 'required: a MINOR bump', exit 1; then --set 1.4 cleared it (exit 0); files restorednode scripts/check-metamodel-version.mjs --against f7de5ff2a with metamodelVersion rewritten to 1.3.1 — refused with 'must be "<major>.<minor>"', exit 1; file restorednode scripts/test-metamodel-version.mjs (gate's synthetic classifier suite, all checks passed)Baseline regression: scripts/ci-local.sh --affected --strict-toolchains already ran and passed at this target commit (per the run prompt)✅ **Document** - passed
✅ No issues found.
✅ **Lint** - passed
✅ No issues found.
✅ **Push** - passed
✅ No issues found.