Skip to content

docs: version vocabulary by feature, not by kind (ADR-0035 Amendment 5) - #598

Merged
dmealing merged 6 commits into
mainfrom
fm/mo-patch-release-vocab-rule
Nov 18, 2026
Merged

dmealing merged 6 commits into
mainfrom
fm/mo-patch-release-vocab-rule

Conversation

@dmealing

@dmealing dmealing commented Nov 18, 2026 •

Copy link
Copy Markdown
Member

What Changed

  • Replaced the kind-based vocabulary rule (new attribute ⇒ PATCH, new top-level type ⇒ MINOR, subtype by the "inert" test) with a feature test in 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).
  • Documented that metamodelVersion moves 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 any metamodelVersion move at any release level publishes all four registries. The comment in scripts/check-metamodel-version.mjs was updated to match; the script's behavior is unchanged.
  • Propagated the feature test to every surface that repeated the old kind-based rule: docs/compatibility-policy.md (MINOR vs PATCH section), docs/1.0-readiness.md (G3b row), AGENTS.md, .claude/skills/releasing/SKILL.md, and a CHANGELOG.md Unreleased entry. Policy text only — no version, vocabulary or metamodelVersion changes.
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.

  • Live validation: ✅ go - 3 of 3 scenarios driven live against the product
Scenario Result Live Evidence
Release engineer runs the metamodel-version gate on the real tree at the target commit — it classifies the 1.2→1.3 additive diff and exits green ✅ pass live node scripts/check-metamodel-version.mjs (exit 0) and --explain transcript in gate-explain-target-commit.txt
Adversarial — vocabulary augmentation without a version move (the case Amendment 5 blesses as a package PATCH): the gate blocks it and demands a metamodel MINOR until the three-component form is imple… ✅ pass live Synthetic additive attr field.string @fuzzKey with metamodelVersion left at 1.3: gate failed 'required: a MINOR bump' (exit 1); --set 1.4 wrote all five sites and the gate passed (exit 0). Transcript…
Adversarial — the accepted-but-not-implemented three-component metamodelVersion (1.3.1) is refused by the gate's parser ✅ pass live Manifest rewritten to "1.3.1": gate failed 'metamodelVersion must be "<major>.<minor>" (got "1.3.1")' exit 1. Transcript in gate-adversarial-additive-and-3component.txt
Evidence: Gate classification at target commit (--explain vs v1.2.3)
metamodel-version: v1.2.3 (1.2) → working tree (1.3)

  ADDITIVE (47):
    - type added: field.duration
    - type added: measure.derived
    - type added: validator.exactlyOne
    - type added: view.checkbox
    - type added: view.date
    - type added: view.dropdown
    - type added: view.hidden
    - type added: view.hotlink
    - type added: view.image
    - type added: view.month
    - type added: view.number
    - type added: view.password
    - type added: view.radio
    - type added: view.text
    - type added: view.textarea
    - type added: view.web
    - attr added: field.enum @constraintName
    - attr added: field.enum @maxLength
    - attr added: field.object @flattenedColumnPrefix
    - attr added: identity.primary @sequenceName
    - attr added: identity.primary @sequenceStart
    - attr added: object.base @object
    - attr added: object.base @objectAdapter
    - attr added: object.entity @collectionName
    - attr added: object.entity @object
    - attr added: object.entity @objectAdapter
    - attr added: object.projection @collectionName
    - attr added: object.projection @object
    - attr added: object.projection @objectAdapter
    - attr added: object.report @collectionName
    - attr added: object.report @object
    - attr added: object.report @objectAdapter
    - attr added: object.value @object
    - attr added: object.value @objectAdapter
    - attr added: origin.aggregate @segment
    - attr added: origin.first @segment
    - attr added: validator.atLeastOne @condition
    - attr added: validator.atLeastOne @constraintName
    - attr added: validator.comparison @condition
    - attr added: validator.comparison @constraintName
    - attr added: validator.length @constraintName
    - attr added: validator.numeric @constraintName
    - attr added: validator.presentIff @condition
    - attr added: validator.presentIff @constraintName
    - attr added: validator.regex @constraintName
    - attr added: validator.requiredWhen @condition
    - attr added: validator.requiredWhen @constraintName

  PROSE (7, not classified):
    - attr.expression: description
    - dimension.attribute @of: description
    - dimension.time @of: description
    - measure.aggregate @of: description
    - object.projection @filter: description
    - origin.aggregate @filter: description
    - origin.first @filter: description

  required bump: minor
exit=0
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=1

== 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

  Fix:  node scripts/check-metamodel-version.mjs --set 1.4
  Then say so in the CHANGELOG — post-1.0 the caret rule no longer gates the
  metadata axis, so the changelog is the adopter's only signal (ADR-0035 Am. 2).
  Detail: node scripts/check-metamodel-version.mjs --explain

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=1

Pipeline

Updates from git push no-mistakes

✅ **Intent** - passed

✅ No issues found.

✅ **Rebase** - passed

✅ No issues found.

⚠️ **Review** - 1 info
  • ⚠️ 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.

  • Live validation: ✅ go - 3 of 3 scenarios driven live against the product
Scenario Result Live Evidence
Release engineer runs the metamodel-version gate on the real tree at the target commit — it classifies the 1.2→1.3 additive diff and exits green ✅ pass live node scripts/check-metamodel-version.mjs (exit 0) and --explain transcript in gate-explain-target-commit.txt
Adversarial — vocabulary augmentation without a version move (the case Amendment 5 blesses as a package PATCH): the gate blocks it and demands a metamodel MINOR until the three-component form is imple… ✅ pass live Synthetic additive attr field.string @fuzzKey with metamodelVersion left at 1.3: gate failed 'required: a MINOR bump' (exit 1); --set 1.4 wrote all five sites and the gate passed (exit 0). Transcript…
Adversarial — the accepted-but-not-implemented three-component metamodelVersion (1.3.1) is refused by the gate's parser ✅ pass live Manifest rewritten to "1.3.1": gate failed 'metamodelVersion must be "<major>.<minor>" (got "1.3.1")' exit 1. Transcript in gate-adversarial-additive-and-3component.txt
  • scripts/ci-local.sh --affected --strict-toolchains
  • node 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 restored
  • node scripts/check-metamodel-version.mjs --against f7de5ff2a with metamodelVersion rewritten to 1.3.1 — refused with 'must be "<major>.<minor>"', exit 1; file restored
  • node 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.

…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.
@dmealing
dmealing merged commit 469506d into main Nov 18, 2026
10 checks passed
@dmealing
dmealing deleted the fm/mo-patch-release-vocab-rule branch November 18, 2026 16:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant