Repository navigation
feat(metadata): add core systems vocabulary in every port - #709
Merged
Merged
Conversation
A new bundled provider, metaobjects-systems-core (spec/metamodel/systems.json, ADR-0070), registers organization.company/.unit, system.software @owner, app.service/.client/.job with @runsAs, build.image, the resource kinds (rdb, keyValue, objectStore, document, search, queue, stream, volume) and role.service/.user/.group/.token. @owner, @runsAs, @memberof and @heldBy use the reference facet with its default codes; @heldBy names an organization only until the facet accepts more than one target type. It is last in the default provider set of TypeScript, C#, Java/Kotlin, Python and Rust. metamodelVersion moves to 1.4. The facet's two worked cases become conformance fixtures (error-ref-wrong-kind-runsas, error-ref-unresolved-runsas), beside a happy-path systems-vocabulary fixture. Registry manifest, metamodel docs, site reference and payload, coverage snapshot and the repo's own requirements ledger are regenerated or extended to match. The systems pack stops registering system.base, app.* and resource.queue/.volume and adds @needs/@calls/@settings to core's apps; the delivery pack's builds extend core's build.base. The pack's kinds map onto core's: database -> rdb, bucket -> objectStore, keyvalue and cache -> keyValue, internal and external -> software.
# Conflicts: # README.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
spec/metamodel/systems.json(organization.company/unit, system.software, app.service/client/job, build.image, resource.rdb/keyValue/objectStore/document/search/queue/stream/volume, role.service/user/group/token) and wires it into the C#, Java, Python, TypeScript and Rust provider lists.METAMODEL_VERSIONis now1.4in every port, with new registry-conformance, systems-vocabulary and metamodel-docs fixtures.SystemsMetaDataProvider, JavaSystemsNode/SystemsTypesMetaDataProvider, Pythonmeta/core/systems, TypeScriptcore/systems, Rustdata/metamodel/systems.json), plus loader checks for systems references and theERR_SYSTEMS_*error codes.packs/systemsso it no longer registerssystem.base,app.*,resource.queue/volume(now core). Its remaining kinds map onto core: database tordb, bucket toobjectStore, keyvalue/cache tokeyValue, and internal/external tosystem.software. Itspack.json,expected-vocabulary.jsonand docs record the mapping.Validation evidence (after the test step)
The pipeline's own test step stopped inconclusive (a rustfmt diff, since fixed in
ad2d7421a, and lanes with no recorded result). Before approving it, every lane was run on the pushed headad2d7421awithscripts/ci-local.sh --strict-toolchains, and all passed:ts-fast,ts-unitcsharprustcargo fmt --checkand registry-conformance passjava-slowjava-fastConformanceTest1184/1184, including the four new fixtures;RegistryManifestConformanceTest3/3; Kotlin conformance passespythonThe four new shared error fixtures (
error-resource-residency-bad-value,error-app-two-builds,error-app-three-builds,error-app-build-beside-inherited) are in the 596-fixture metamodel corpus that every port runs. The test step is recorded as an approved exception, with this evidence as its reason. Validation took one no-mistakes run.Notes
role.token @heldByships as a reference to anorganizationonly, so a token held by a system raisesERR_REF_WRONG_KINDfor now. Widening the reference facet to accept a list of target types, in every port, follows as its own PR before V2; that restores ADR-0070 call 9b (an organization or a system).@needsand@callsare checked only for apps under the systems pack'ssystem.internal. Under core'ssystem.softwarethey are carried but not checked until plan row D2 replaces the pack.>=1.3.0:>=1.4.0cannot be satisfied by the workspace's 1.3.1 and makesbun installspin. Themetamodel: ">=1.4 <2"field in eachpack.jsoncarries the requirement until core 1.4.0 is versioned.memberOfarray shape on each role subtype.Validation
Risk Assessment
max) in every port, and no tests were run during review.Testing
The baseline failure is a rustfmt formatting diff, not a behavior failure. I applied the diff by hand but did not rerun the rust lane. The python lane passed. The java, csharp and ts lanes have no recorded result, so their status is unknown. No live scenarios were driven. Overall result: inconclusive. Next step is a full rerun of
scripts/ci-local.sh --affected --strict-toolchains.Evidence: affected CI run log (partial: rust failure, python pass)
Pipeline
Updates from git push no-mistakes
✅ **Intent** - passed
✅ No issues found.
✅ **Rebase** - passed
✅ No issues found.
✅ **Review** - every finding resolved (fixed or left open with a reason)
Each review finding across the three rounds, and how it ended:
d4bea47b4:packs/systems/typescript/src/index.ts:44,@needs/@callschecked only undersystem.internal. Operator decision: correct the wording, not add checks (the systems pack is retired in plan row D2). The@needs/@callsdescriptions inpacks/systems/metamodel/systems.json, theindex.tscomment andpacks/systems/CHANGELOG.mdnow say they are checked only for apps undersystem.internal, and carried but not checked under coresystem.softwareuntil D2 replaces the pack.7f04873e6:SystemsTypesMetaDataProvider.java:76, Java and Kotlin did not enforce the closed@residencyset. Java (and Kotlin through it) now refuses a bad@residencyon every concrete resource kind withERR_BAD_ATTR_VALUE, like the other ports. Shared fixtureerror-resource-residency-bad-valueis run by every port. Evidence: JavaConformanceTest1184/1184 and Rust 596/596 onad2d7421a(see Validation evidence above).7f04873e6:spec/metamodel/systems.json:57, at most one build per app was declared but not enforced. Every port's loader (TypeScript, C#, Java/Kotlin, Python, Rust) now enforces a child rule's max, counting builds inherited throughextends. Shared fixtureserror-app-two-builds,error-app-three-buildsanderror-app-build-beside-inheritedcover cases (a), (c) and (d). No existing fixture, pack fixture or example failed under the new rule, so the delivery pack's "at most one build" statements are now true.7f04873e6:packs/delivery/README.md:24, Railway dropped an app'sbuild.imagesilently. Railway now reports an unusedbuild.imageas an unexpressed fact (packs/railway/typescript/src/files.ts), with a test inpacks/railway/typescript/test/model.test.ts. Deriving the image source from it is left to plan row W1.9dff46437:examples/showcase/site-payload.json:10, the fixture count was stale at 592. Regenerated withbun scripts/build-site-payload.ts, so it now says 596.9dff46437:AGENTS.md:51, the Status paragraph still said metamodel1.3. It now says1.4.0d163e69c:packs/systems/README.md:24, the empty "What it is" cell for core'sresource.queue/.volumeis filled.8feab4dd0:spec/metamodel-definitions.md:167, the stale statements about the worked cases andsameSystemare replaced.packs/systems/pack.json:8, the pack core range (>=1.3.0) is looser than the packs need. Raising it to>=1.4.0cannot be satisfied by the workspace's core 1.3.1 and makesbun installspin. The packs arepublish: false, andpack.json'smetamodel: ">=1.4 <2"carries the requirement. The floor is raised when core 1.4.0 is versioned.server/rust/metaobjects/src/validate/refs_tests.rs:6and its Python and C# counterparts have stale comments about the reference facet and thesystemtype. These are comments only, with no behavior. They are corrected in the facet-widening PR that follows before V2, which rewrites those same test files.✅ **Test** - approved exception, covered by full-lane evidence
The pipeline's test step stopped. Each item, and how it ended:
ad2d7421a: "configured test command failed with exit code 1". The only failure was the rustfmt diff below. Onad2d7421aevery lane passes (scripts/ci-local.sh --strict-toolchains:ts-fast,ts-unit,csharp,rust,java-slow,java-fast), and Python passed in the pipeline's own run. Hosted CI on this PR is 11/11 green.ad2d7421a:server/rust/metaobjects/src/validate/structure.rs:361, thecargo fmt --checkdiff. Verified:conformance: rustpasses, includingcargo fmt --check, and the metamodel corpus is 596 of 596.ad2d7421a:ConformanceTest1184/1184; Kotlin conformance passes.@residencyand duplicate-build fixtures are refused at load in the Rust loader and in every other port, within the 596-fixture corpus.The test step is recorded as an approved exception (outcome
passed-with-override), with these lane results as its reason. Validation took one no-mistakes run.✅ **Document** - passed
✅ No issues found.
✅ **Lint** - passed
✅ No issues found.
✅ **Push** - passed
✅ No issues found.