Repository navigation
docs(metadata): record ADR-0070 systems design and the reference facet spec - #689
Merged
Merged
Conversation
… 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.
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
spec/metamodel-definitions.mdandspec/metamodel-definition.schema.json: the reference facet (targetType,targetSubTypes,fieldPath,sameSystem,errorCode,wrongSystemCode) ontype:"attr"children, and the kind-typedParent.childlookup.server/typescript/packages/metadata/test/definition-schema.test.tschecks that the 22 existing core definition files validate unchanged and that the facet is refused on non-string attrs and structural children.ajvas ametadatadevDependency for the schema test, and links the new spec pages fromspec/README.mdandspec/decisions/README.md. No reader is added, no manifest vocabulary changes, andmetamodelVersiondoes not move.Validation
Risk Assessment
✅ Low: approval carried from an earlier review
Testing
Baseline
scripts/ci-local.sh --affected --strict-toolchainsalready passed at the target commit; broad regression came from that configured command, and I did not re-run it. In this turn I ranbun test packages/metadata/test/definition-schema.test.tsfrom 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.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.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)
scripts/ci-local.sh --affected --strict-toolchainsscripts/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 failRead 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.