Skip to content

docs(metadata): record ADR-0070 systems design and the reference facet spec - #689

Merged
dmealing merged 4 commits into
mainfrom
fm/mo-140-w0-a1
Dec 2, 2026
Merged

dmealing merged 4 commits into
mainfrom
fm/mo-140-w0-a1

Conversation

@dmealing

@dmealing dmealing commented Dec 2, 2026 •

Copy link
Copy Markdown
Member

What Changed

  • Adds ADR-0070 recording the 17 accepted calls for systems, estates and APIs, plus a GOVERNANCE.md exception for promoting the unpublished systems pack vocabulary into core.
  • Adds spec/metamodel-definitions.md and spec/metamodel-definition.schema.json: the reference facet (targetType, targetSubTypes, fieldPath, sameSystem, errorCode, wrongSystemCode) on type:"attr" children, and the kind-typed Parent.child lookup. server/typescript/packages/metadata/test/definition-schema.test.ts checks that the 22 existing core definition files validate unchanged and that the facet is refused on non-string attrs and structural children.
  • Adds ajv as a metadata devDependency for the schema test, and links the new spec pages from spec/README.md and spec/decisions/README.md. No reader is added, no manifest vocabulary changes, and metamodelVersion does not move.
Validation

Risk Assessment

✅ Low: approval carried from an earlier review

Testing

Baseline scripts/ci-local.sh --affected --strict-toolchains already passed at the target commit; broad regression came from that configured command, and I did not re-run it. In this turn I ran bun test packages/metadata/test/definition-schema.test.ts from server/typescript: 39 pass, 0 fail. It validates the 22 existing definition files against the schema and exercises the reference-facet rules. I confirmed the F3 semantic check (parsed children, no raw substring) is in place. No live scenario was driven: the change has no CLI, generator or runtime behavior, and the runbook says to report no-surface for docs and metadata. The F1 spec ambiguity was resolved in the first run: the untyped lookup for ERR_REF_WRONG_KIND is written into spec/metamodel-definitions.md with two worked cases. Worktree is clean; no background processes were started.

  • Live validation: ✅ no-surface, approved - 0 of 3 scenarios driven live; the operator approved proceeding on the unit run (schema, spec and docs only, no runtime surface in wave 0)
Scenario Result Live Evidence
The schema validates the 22 existing core definition files unchanged ⏸️ untested no No runtime product surface. The proof is a unit test run, which does not count as live. The change is a schema file and docs.
A reference facet on a type:attr child is accepted or refused per the spec rules ⏸️ untested no Schema-only change with no CLI or generator reader yet. The spec says no reader exists in wave 0, so there is nothing to drive live.
ADR, governance note and spec text are present and consistent ⏸️ untested no Documentation only. Runbook says report no-surface for documentation.
  • Outcome: ✅ passed; the one no-surface warning was approved by the operator (7m18s)

Pipeline

Updates from git push no-mistakes

✅ **Intent** - passed

✅ No issues found.

✅ **Rebase** - passed

✅ No issues found.

♻️ **Review** - review carried from run 01M8VEFH7JEV10NT3RPP7BETM4 at feec58d (no new branch work since the approved head; the base changes merged since touch no reviewed code); its 2 recorded findings carried as decided

♻️ review carried from run 01M8VEFH7JEV10NT3RPP7BETM4 at feec58d (no new branch work since the approved head; the base changes merged since touch no reviewed code); its 2 recorded findings carried as decided

Findings carried from run 01M8VEFH7JEV10NT3RPP7BETM4, already decided there:

  • ✅ spec/metamodel-schema.json - "Placeholder removed": carried no finding (the file is not in this change). Dismissed.
  • ✅ Fixed inline. spec/decisions/ADR-0070-systems-estates-and-apis.md:162 - The Terraform ruling said it 'replaces call 15's "Terraform starts with Cloudflare"'. Call 15 as recorded in this ADR, and in the accepted intent, never mentions Terraform, so the reference pointed at nothing. I reworded it to say the ruling replaces the design's 'Terraform starts with Cloudflare', which call 15 therefore does not list.
✅ **Test** - passed (no-surface approved by the operator)
  • ✅ No live-validatable surface (schema, spec and docs only; no reader of the facet in wave 0). Approved by the operator: the unit run (39 pass, 0 fail) is the proof.
  • Live validation: ✅ no-surface, approved - 0 of 3 scenarios driven live; the operator approved proceeding on the unit run (schema, spec and docs only, no runtime surface in wave 0)
Scenario Result Live Evidence
The schema validates the 22 existing core definition files unchanged ⏸️ untested no No runtime product surface. The proof is a unit test run, which does not count as live. The change is a schema file and docs.
A reference facet on a type:attr child is accepted or refused per the spec rules ⏸️ untested no Schema-only change with no CLI or generator reader yet. The spec says no reader exists in wave 0, so there is nothing to drive live.
ADR, governance note and spec text are present and consistent ⏸️ untested no Documentation only. Runbook says report no-surface for documentation.
  • scripts/ci-local.sh --affected --strict-toolchains
  • scripts/ci-local.sh --affected --strict-toolchains (baseline, already passed at target commit)
  • bun test packages/metadata/test/definition-schema.test.ts (in server/typescript): 39 pass, 0 fail
  • Read server/typescript/packages/metadata/test/definition-schema.test.ts lines 53-75 to confirm semantic 'ref' key check
✅ **Document** - passed

✅ No issues found.

✅ **Lint** - passed

✅ No issues found.

✅ **Push** - passed

✅ No issues found.

… facet in the definition format

Records the seventeen accepted 1.4.0 calls as ADR-0070, with call 9's
@heldBy widening, call 5's revision of the earlier design, and the
rulings on parity, the settings file and Terraform. GOVERNANCE.md notes
the exception for promoting the systems vocabulary into core.

spec/metamodel-definitions.md specifies the definition file format and
the ref facet a reference attribute carries, with the kind-typed
Parent.child lookup. spec/metamodel-definition.schema.json is its JSON
Schema; a metadata test validates all 22 core definition files against
it unchanged and checks the facet's shape rules. No reader yet; the
manifest and metamodelVersion do not move.
@dmealing dmealing changed the title docs(spec): ADR-0070 for systems, estates and APIs, and the reference facet in the definition format docs(metadata): record ADR-0070 systems design and the reference facet spec Dec 2, 2026
@dmealing
dmealing merged commit a60feef into main Dec 2, 2026
11 checks passed
@dmealing
dmealing deleted the fm/mo-140-w0-a1 branch December 2, 2026 19:43
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