The MetaObjects standard ships 48 shared conformance corpora under
fixtures/. Every port runs every corpus that is applicable to
it and asserts the same expected behaviour against the same fixtures. This page
is the inverse index: fixture → feature doc + per-port pass status, and it is the
single place per-corpus counts are maintained (the port READMEs deliberately point
here instead of restating them).
Not every corpus is a five-port corpus, and that asymmetry is deliberate rather than a gap — the reference migration helper is TypeScript's (ADR-0015), Kotlin runs on the JVM and inherits the Java loader/render/extract engines instead of re-implementing them, and a few corpora gate tooling that only one port ships. The dark cells below say which is which.
If you are coming from a feature doc's ## Verified by section, you are in the
right place. If you are wondering whether a particular fixture has a
human-readable explanation somewhere, look it up in the
"Fixture-to-doc mapping" table below.
Counts are fixture directories (or scenario files, where a corpus is file-shaped);
regenerate with ls -d fixtures/<corpus>/*/ | wc -l for directory-shaped corpora,
find fixtures/<corpus> -name "*.yaml" | wc -l for file-shaped ones.
| Corpus | Fixtures | TS | Java | Kotlin | C# | Python | Rust |
|---|---|---|---|---|---|---|---|
fixtures/conformance/ (metamodel) |
584 | ✓ | ✓ | inherits via metadata-ktx |
✓ | ✓ | ✓ (584 / 584, empty ledger) |
fixtures/yaml-conformance/ |
19 | 19 / 19 | 19 / 19 | inherits via Java | 18 / 19 (1 ledgered: error-yaml-coerced-hex-in-string — YamlDotNet doesn't coerce 0xFF) |
19 / 19 | 18 / 19 (1 ledgered: yaml-ref-root-escape, the ADR-0059 root-level :: rules) |
fixtures/verify-conformance/ |
45 | ✓ | ✓ | inherits via Java | ✓ | ✓ | ✓ |
fixtures/verify-strict-conformance/ |
1 | ✓ | — | — | — | ✓ | — |
fixtures/render-conformance/ |
26 | ✓ | ✓ | inherits via Java | 25 / 26 (1 ledgered: render-shadowed-dotted-prefix, Stubble stops a dotted name at the first context holding its first segment) |
✓ | 23 / 26 (3 ledgered: render-shadowed-dotted-prefix, render-list-length, render-zero-falsiness, mustache-ng's lookup, data model and truthiness) |
fixtures/jinja-render-conformance/ (ADR-0061 — Jinja bodies render the same in jinja2 and nunjucks) |
16 | ✓ (nunjucks) | refuses Jinja (ERR_TEMPLATE_ENGINE_UNSUPPORTED) |
refuses, via Java | refuses Jinja (ERR_TEMPLATE_ENGINE_UNSUPPORTED) |
✓ (jinja2) | refuses Jinja (ERR_TEMPLATE_ENGINE_UNSUPPORTED) |
fixtures/jinja-verify-conformance/ (ADR-0061 — the payload check over a Jinja body) |
31 | ✓ | refuses Jinja | refuses, via Java | refuses Jinja | ✓ | refuses Jinja |
fixtures/extract-conformance/ |
58 | ✓ | ✓ | inherits the shared JVM engine | ✓ | ✓ | ✓ |
fixtures/output-prompt-conformance/ |
17 | ✓ | ✓ | ✓ | ✓ | ✓ | ✓ |
fixtures/persistence-conformance/ |
68 (56 query + 12 migration) | all 68; the 24 report-* and the -15 decimal scenarios also on SQLite, MySQL and D1, decimal-exact and guarded-update also on MySQL (a scenario's engines: key is exact) |
55 query (migrations TS-only, ADR-0015; guarded-update deferred to L-JV-2); the report-* and engines: scenarios also on SQLite and MySQL |
55 query (via Exposed; guarded-update deferred to L-KT-2); the report-* and engines: scenarios also on SQLite and MySQL |
55 query (guarded-update deferred to L-CS-2); the report-* and engines: scenarios also on SQLite and MySQL |
55 query (pg8000; guarded-update deferred to L-PY-2); the report-* and engines: scenarios also on SQLite (sqlite3) and MySQL (PyMySQL) |
56 query, guarded-update included, through the generated repository crates on Postgres (migrations TS-only) |
fixtures/api-contract-conformance/ |
179 (34 core + 14 tph + 9 m2m + 6 jsonb + 2 write-through + 4 secret-fields + 2 enum-default + 12 projection + 37 report + 11 decimal + 2 duration + 8 api-settings + 21 list-query + 17 rules) | ✓ (Fastify reference + generated lane; service lanes on Fastify and Hono for the entity, projection/, report/, write-through/, tph/, m2m/, decimal/ and secret-fields/ sub-corpora, see the api-contract README); report/, decimal/ and duration/ also on SQLite, MySQL and D1; list-query/ runs in full in TypeScript, C# and Rust, and in no other port until that port's 1.3.0 REST-standard work; rules/ runs in TypeScript and Rust, and in no other port until that port's 1.3.0 service work |
✓ (embedded HTTP + JDBC); report/, decimal/ and duration/ generated controllers over OMDB on Postgres, SQLite and MySQL |
✓ (embedded HTTP + Exposed); report/, decimal/ and duration/ also on SQLite and MySQL |
✓ (Kestrel + Npgsql); report/, decimal/ and duration/ also on SQLite and MySQL |
✓ (FastAPI + pg8000); report/, decimal/ and duration/ also on SQLite and MySQL |
generated lane only (generated service-routes over SQLite): core, write-through, secret-fields, list-query and rules with its settings variants, 77 scenarios; the other sub-corpora are on the runner's ledger (Rust port) |
fixtures/decimal-wire/ |
1 vector file (format, parse, filter operand, 15-digit read) | ✓ (runtime-ts and the generated helper) |
✓ (CanonicalDecimal) |
✓ (the generated wire file) | ✓ (DecimalWire) |
✓ (decimal_wire) |
✓ (the generated support crate) |
fixtures/duration-wire/ |
1 vector file: the wire vectors (parse, precision, refused) every port passes, and the codecs groups (Postgres text read and write, stored microseconds) each port passes only for the codecs it has |
✓ (metadata / runtime-ts and the generated helper) |
✓ | ✓ | ✓ | ✓ | ✓ (the wire vectors) |
fixtures/validation-conformance/ |
42 cases + 43 cross-field cases (cross-field-cases.json, generated record model only) |
✓ (generated Zod + run-time runValidators) |
✓ | ✓ | ✓ | ✓ (generated Pydantic + run-time run_validators) |
✓ (the generated validate()) |
fixtures/registry-conformance/ |
1 canonical manifest | ✓ (reference emitter) | ✓ | ✓ | ✓ | ✓ | ✓ |
fixtures/object-model-conformance/ |
1 shared metadata fixture (per-port scenarios) | ✓ | ✓ | ✓ | ✓ | ✓ | — |
fixtures/codegen-conformance/ |
7 shared inputs; shared-provided-enum carries the enum-type decision table and cross-package-binding the reference-binding decision table (ADR-0059) every port answers; xpkg-value-object-refs (ruling R52) is run by C# and TypeScript only so far — Java, Kotlin and Python in #544–#549 |
✓ | ✓ | ✓ | ✓ | ✓ | — |
fixtures/template-codegen-conformance/ |
3 | ✓ | ✓ | ✓ | ✓ | ✓ | — |
fixtures/template-output-render-conformance/ |
5 | ✓ | ✓ | ✓ | ✓ | ✓ | ✓ (generated render-helper crates) |
fixtures/generator-registry-conformance/ |
1 canonical manifest | ✓ | ✓ | ✓ | ✓ | ✓ | ✓ |
fixtures/provider-composition-conformance/ |
18 (11 error-shape + 4 compose-load + 3 attr-ownership) | ✓ | ✓ | — (JVM registry via Java) | ✓ | ✓ | — |
fixtures/source-resolution-conformance/ |
30 cases | ✓ (reference implementation) | ✓ | inherits via Java | ✓ | ✓ | ✓ |
fixtures/reference-source-conformance/ |
6 cases | ✓ (reference implementation) | ✓ | inherits via Java (plus its own codegen exclusion test) | ✓ | ✓ | ✓ |
fixtures/response-verify-conformance/ |
7 cases | ✓ (reference implementation) | ✓ | inherits via Java | ✓ | ✓ | ✓ |
fixtures/scope-conformance/ |
10 cases | ✓ (reference implementation) | ✓ | inherits via Java | ✓ | ✓ | — |
fixtures/dependency-conformance/ |
47 cases (36 resolution, 7 of them with a ledger arm, + 11 check) + 32 transport cases | ✓ (reference implementation; all four arms) | ✓ (resolution arm, all 36, ledger included; check arm, all 11) | inherits via Java | ✓ (resolution arm, all 36, ledger included; check arm, all 11, as verify --deps) |
✓ (resolution arm, all 36 identically, ledger included; check arm, all 11, as deps check and verify --deps; the transport arm is Node-only) |
— |
fixtures/shared-model-conformance/ |
15 cases (9 publish + 6 refusal) | ✓ (reference implementation) | ✓ (all 15; SharedModelConformanceTest) |
inherits via Java (KotlinSharedModelGeneratorTest pins the generator) |
✓ (all 15; SharedModelConformanceTests) |
✓ (all 15; test_shared_model_conformance.py) |
— |
fixtures/agent-context-conformance/ |
6 | ✓ (the emitter is TS-owned) | — | — | — | — | — |
fixtures/list-query-conformance/ (how a list route reads its query string: filter tree, search, sort, page, or the named 400) |
95 cases | ✓ (reference; the source of the expected answers) | planned (R-JV) | planned (R-KT) | ✓ (ListQueryConformanceTests) |
planned (R-PY) | ✓ (list_query_conformance.rs, the parser meta_http ships) |
fixtures/docs-page-conformance/ (the requirements pages and the model-only schema page: each page's data and bytes) |
4 cases | ✓ (reference; the source of the expected bytes) | planned | planned (through Java) | ✓ | planned | planned (G-RS-1) |
fixtures/metamodel-docs/ |
1 | ✓ (docs emit is TS-owned) | — | — | — | — | — |
fixtures/fmt-conformance/ (#304 — meta fmt) |
13 | ✓ (reference) | ✓ | inherits via Java | ✓ | ✓ | — (no fmt) |
fixtures/field-lint-conformance/ (the verify field authoring lint) |
15 | ✓ (reference) | ✓ | inherits via Java | ✓ | ✓ | — |
fixtures/model-lint-conformance/ (the verify overlay, node-name and deprecated-reference authoring lints) |
17 | ✓ (reference) | planned | planned (through Java) | ✓ | planned | — |
fixtures/requirement-check-conformance/ (the verify requirement gate, ADR-0057) |
49 cases | ✓ (reference) | ✓ | inherits via Java (one Maven metaobjects:verify goal) |
✓ | ✓ | planned (RS-V2) |
fixtures/requirement-test-identity-conformance/ (the identity, skip state and digest of each generated requirement test, and the filter seam, ADR-0057) |
27 cases | ✓ (reference) | ✓ | identity function inherits via Java; emitted names asserted by its own generator test | ✓ | ✓ | — |
fixtures/rules-check-conformance/ (the verify business-rules gate, ADR-0066) |
16 cases | ✓ (reference) | ✓ | inherits via Java (one Maven metaobjects:verify goal) |
✓ | ✓ | ✓ |
fixtures/naming-conformance/ |
8 cases + 23 collection segments (@collectionName, naming.collections) |
✓ | ✓ | inherits via Java (RouteNaming.pluralize, RouteNaming.collectionSegment) |
✓ | ✓ | ✓ |
fixtures/wire-conformance/ (the wire setting, ADR-0019 Amendment 2) |
6 cases + 8 refusals | ✓ | ✓ | inherits via Java (one config reader) | ✓ | ✓ | the config blocks (wire_block_corpus) |
fixtures/enum-length-conformance/ (a string-stored enum's column length: @maxLength, else enums.maxLength) |
5 cases + 1 overflow + 5 refusals; run by a port that sizes the column | ✓ | ✓ | inherits via Java (one config reader, one resolver) | ✓ | — (sizes no column: emits no DDL or column type; the config reader accepts and shape-checks the enums block) |
the config blocks (enums_block_corpus) |
fixtures/check-constraint-conformance/ (the CHECK constraints meta migrate derives: name and expression text per dialect) |
1 model, 5 expected files (postgres, sqlite, d1, and both skip-redundant variants) | ✓ (reference, migrate-ts) |
— (no CHECK in a generated model) | — (same) | ✓ (the EF context declares them; live-Postgres EnsureCreated lane) |
— (same) | — (no DDL) |
fixtures/foreign-key-index-conformance/ (the indexes migrate.foreignKeyIndexes adds: which foreign keys are uncovered, and each index's name per dialect, a name over 63 bytes cut on Postgres; and the name each declared identity.secondary / index.lookup is created under) |
1 model, 4 expected files (FK and declared, postgres and sqlite) | ✓ (reference, migrate-ts; the Drizzle tables declare the declared names) |
— (no index in a generated model) | ✓ (the Exposed tables declare them) | ✓ (the EF context declares them) | — (same as Java) | — |
fixtures/codegen-skip-conformance/ (when gen may skip and what a local verify --codegen may answer, ADR-0064) |
one case table in cases.json, plus the manifest layout vectors in manifests.json (ADR-0064 Amendment 1) |
✓ | ✓ | ✓ (through the Java runner) | ✓ | ✓ | ✓ (every case but the three-way merge one) |
fixtures/codegen-noop/ (vocabulary with no lowering yet: FR-044 reporting, what is lowered and what stays inert; ADR-0066 business rules, inert everywhere) |
2 model pairs (reporting/ and rules/, each with vs without) |
✓ (codegen + migrate) | ✓ | ✓ | ✓ | ✓ | rules/ (the layer generators lower it; the flat ones stay inert) |
fixtures/cube-model/ (FR-044 Plan 4 — the cube-model generator's golden Cube files, plus the canonical model's golden) |
46 cases (36 trees + 10 errors) + 1 canonical golden | ✓ (the exporter is TypeScript-only, spec R6; its cube lane also loads the files into a real Cube) |
— | — | — | — | — |
fixtures/writer-conformance/ (ADR-0063 — the code writer generators write through) |
76 cases (31 core + 10 TypeScript + 9 Java + 6 C# + 12 Python + 8 Rust) | ✓ (the first writer; core and TypeScript dialect) | ✓ (core and Java dialect; JavaWriter in codegen-base) |
— (writer not built yet) | ✓ (core and C# dialect) | ✓ (core and Python dialect) | ✓ (core and Rust dialect) |
fixtures/contract-conformance/ (FR-022 — the contract-schema and openapi generators' golden trees and refusals) |
22 cases (17 trees + 5 errors) | ✓ (one neutral engine, ADR-0034 Amendment 10; the generated API lanes also hold real traffic to the documents) | — | — | — | — | — |
fixtures/explorer-conformance/ (the explorer.json data spine: meta export --effective + meta verify --format json + the generated-file manifest in, one explorer document out) |
1 case (shop) |
✓ (the builder is TypeScript, and reads only port-neutral inputs) | — | — | — | — | — |
Rust (ADR-0065) joined the table with its service stack. Its ledgers (the metamodel
corpus's server/rust/metaobjects/tests/conformance-expected-failures.json, empty; the YAML
and render ledgers; the api-contract runner's list of sub-corpora not built yet) may only
shrink, and the corpora without one assert each case outright. A new fixture that fails in
Rust and is not on the ledger prints a warning and does not fail the lane; it becomes a hard
failure when ADR-0065 turns the warning off. A regression still fails: the ledger's
minPassing (584) is the number of fixtures known to pass, and the run fails when fewer do.
Beside the corpora it runs the codegen-compile gate (below) with every shipped generator, a
scale gate over twenty copies of the fitness model, and examples/rust-service/'s HTTP test.
The Rust port page has the detail.
A ✓ means the port runs the corpus green; an explicit n / m is used where a port
carries a ledgered divergence. The ledgered YAML fixtures are documented divergences (see the
_comment or notes in each port's yaml-conformance-expected-failures.json for the full
reconciliation note). They are tracked as known-gaps rather than silently patched — the runner
treats listed fixtures as passing, but a future port-level reconciliation pass would close them.
Since ADR-0034 Amendments 3 and 11, the corpora above do two different jobs. Only the first is a promise to adopters: the core is the contracts and the conformance kits that hold every port to them.
- Core — the contract.
conformance/,yaml-conformance/,registry-conformance/,validation-conformance/,provider-composition-conformance/,source-resolution-conformance/,scope-conformance/,dependency-conformance/,shared-model-conformance/(the artifact and manifest bytes a consumer verifies),object-model-conformance/,render-conformance/,template-codegen-conformance/(the Mustache engine),template-output-render-conformance/,output-prompt-conformance/,extract-conformance/,verify-conformance/,verify-strict-conformance/,jinja-render-conformance/andjinja-verify-conformance/(the Jinja engine and its payload check, Python and TypeScript only, ADR-0061),persistence-conformance/(runtime reads and writes, and the migration scenarios of the TypeScript reference helper),agent-context-conformance/,metamodel-docs/,fmt-conformance/(the canonical serializer, surfaced per-file — ADR-0034's "canonical format" is core),field-lint-conformance/(the advisory field lint every port'sverifyprints),model-lint-conformance/(the advisory overlay, node-name and deprecated-reference lints),requirement-check-conformance/(the requirement gate every port'sverifyruns; a drift gate is core, and it is not ejectable in any port),rules-check-conformance/(the business-rules gate every port'sverifyruns, ADR-0066) andcodegen-skip-conformance/(ADR-0064: which changes makegenrender, and what a localverify --codegenmay answer from the stored key), core for the same reason, andlist-query-conformance/(how a list route reads its query string: the REST wire contract, which is core like the reference-server lane below). A red cell here is a MetaObjects bug. - Generator quality checks — a supported helper's tests, not a core promise. The generated lane of
api-contract-conformance/,generator-registry-conformance/(stable generator names),codegen-noop/(vocabulary with no lowering yet emits nothing),writer-conformance/(the code writer the reference generators write through, ADR-0063),contract-conformance/(the JSON Schema and OpenAPI output),cube-model/(the Cube exporter's output, a TypeScript reference helper),requirement-test-identity-conformance/(which tests therequirement-testsreference generator yields from a ledger and what each is called; the text it writes is not pinned), the codegen-compile gate and the eject contract (below). They check that the reference generators emit correct code; an adopter's ejected copy is theirs and is not gated. The hand-rolled reference-server lane ofapi-contract-conformance/still pins the wire contract that the runtimes and the client speak, which is core.
The matrix is corpus-shaped, so a feature whose coverage splits — across several corpora, or between its vocabulary and its behaviour — never gets a row of its own, and its boundary ends up discoverable only from the feature doc. The split ones are recorded here instead.
identity.primary @sequenceStart (one semantic in every port that writes DDL): on a fresh
database the identity or sequence begins at @sequenceStart; when the start changes on an
existing database, the change sets START WITH n and moves the counter FORWARD only, to
GREATEST(n, max(id) + 1) when it sits below that. It never RESTARTs and never moves a counter
back, because live rows already hold the ids it handed out. Tracked in
#544.
- Honoured and pinned: TypeScript (
meta migrate). A fresh table is createdSTART WITH n. A changed start writesALTER SEQUENCE … START WITH nplus an advance-onlysetval. The persistence migration scenariossequence-start-change-moves-counter-forwardandsequence-start-change-below-max-idpin on live Postgres that the next id is the start, or the highest id plus one when a row already holds an id past the start. - Honoured, string-tested only: the Drizzle schema template (
entityFile()). It writes the start into the identity column's options (startWith: n), and a codegen unit test asserts that text (codegen-ts/test/templates/drizzle-schema.test.ts). No test creates a table from the Drizzle mapping and reads the first id, so the option's effect is not pinned. - Honoured and pinned: C#. The generated context carries the start on Npgsql, and the generated
<Context>DesignTimeServicesmakesdotnet ef migrations addscaffold a start-only change asSET START WITH nplus the same advance-only move (Npgsql alone writesRESTART WITH n).EfModelGapsTestspins the transitions, and on live Postgres the next id after the change. - Honoured and pinned: Kotlin (Exposed 0.x and 1.x). A declared start or name generates
autoIncrement(Sequence("<name>", startWith = n)); a live-Postgres test pins that a fresh table's first id is the start. Exposed generated code has no migration path, so a changed start ismeta migrate's job. - Not applicable: Java (OMDB is pure data access with no DDL, ADR-0015) and Python (no DDL
path). The vocabulary loads in both; schema comes from
meta migrate.
Cross-port vocabulary implemented in some ports so far (implementedIn). Each entry
below is in the shared registry and the registry manifest, marked implementedIn. A port that
has not implemented it must still register it and load it strictly (and then ignore it); an
unregistered attr on it still fails. Gated by the conformance fixtures view-kind1-controls,
object-kind1-jvm-binding-attrs and error-kind1-view-unregistered-attr, and by the registry
canonical (fixtures/registry-conformance/expected-registry.json).
- Implemented in TypeScript only (
implementedIn: ["typescript"]). The TS web client and TS form codegen act on them; no other port does yet.view.checkbox,view.date,view.dropdown,view.hidden,view.hotlink,view.month,view.number,view.password,view.radio,view.text,view.web(types, no attrs)view.textarea, and its@rowsview.image, and its@accept,@aspectRatio,@maxBytes,@maxEdge,@store
- Implemented in Java only (
implementedIn: ["java"]):object.* @object(ADR-0001), the native class an object binds to. Java's runtime acts on it; Java's own behaviour is unchanged. - Implemented in TypeScript and C# (
implementedIn: ["typescript", "csharp"]): the rc.21 view vocabulary —origin.functionand theobject.projectionattrs@union,@unionAll,@grain,@grainOrdinal. The TypeScript view emitter lowers them; the C# loader validates them (mirroring the TypeScript checks message for message). The Java (and so Kotlin) and Python loaders also validate the@union/@unionAll/@grain/@grainOrdinalshape rules (theerror-projection-union-shapeanderror-projection-grain-not-object-arrayfixtures fail in every port); no port other than TypeScript lowers them to a view, and Python does not yet checkorigin.function. - Loads strictly in every port. Each port registers the
metaobjects-ui-webprovider (view.textarea @rows, theview.imageattrs) and@object/@objectAdapteronobject.*, loads all three fixtures strictly, and emitsimplementedInin its manifest, which byte-matches the canonical in all six ports (KindOneVocabularyTestsin C#;registry-conformance.test.tsin TypeScript;RegistryManifestConformanceTestin Java and Kotlin;test_registry_conformance.pyin Python;metaobjects/tests/registry_conformance.rsin Rust). - Port-scoped, for comparison (
ports, language-specific by nature, never "pending"):@objectAdapter(["java", "kotlin"]).
Generated paths keyed by package (ruling R39). Every port's generated output is keyed by the metadata package, so two packages that each declare an object of the same name never collide on an output path. State per port:
- Done, C#: every per-object generator writes through
OutputPaths.Of(<package segments>/<file>undercsharp.outputLayout: "package", opt-in; flat otherwise; root-level objects at the root). The path follows the metadata package, notPackageNamespaces. The namespace follows the package only withcsharp.packageNamespaces: true, opt-in since 1.3.0 (R64, R65;acme::alpha→Acme.Alpha), unless a binding maps it; every cross-namespace reference isglobal::-qualified. Tests:OutputPathsTests,PackageNamespaceTests. - Done, TypeScript:
outputLayoutdefaults to"flat";"package"is opt-in (ruling R63). Tests:barrel-layout.test.ts(the barrel exports the same names in both layouts),naming/name-claims.test.ts. - Done, Python:
outputLayoutmirrors TypeScript —"flat"the default,"package"opt-in, andmetaobjects initwritesoutputLayout: packageinto a new project. Tests:tests/codegen/test_package_layout.py. - Done, Java and Kotlin: every per-object file lands in the directory of its metadata package
(
a::b→a/b), and a run where two metadata packages would land in one directory is refused (OutputPackageCollisions), not silently overwritten. Tests:PackageKeyedOutputTest(spring, kotlin). - Tracked in #544–#549.
Native index vocabulary and @description in the ORM models. meta migrate creates
every index (identity.secondary, index.lookup, a field's @unique, with @where, @using,
@orders, @expr and the resolved name) and writes @description as COMMENT ON. What each
port's ORM model carries beside it:
- C# (EF Core): every index, with
@where,@orders,@usingand its name, and the table and column comments. An@exprindex is not an EF index;meta migratecreates it. Pinned byEfModelGapsTests. - TypeScript (Drizzle): every index, with
@where,@orders,@using,@exprand its name (templates/drizzle-schema.ts). Not expressible:@description, which Drizzle has no API for; an@exprindex on SQLite (Drizzle's.on()there takes columns only). - Kotlin (Exposed 0.55): each index's name,
@using(indexType) and@where(filterCondition). Pinned byKotlinExposedIndexVocabularyTest. Not expressible:@orders(an Exposed index has no per-column direction),@expr(it indexes columns or typed functions, not a raw expression) and@description(no comment API). - Java, Python: no ORM model or DDL emitter; nothing to carry.
The eject contract (ADR-0034
Amendment 8). A gate, not a corpus: it has no fixtures of its own, and reads
generator-registry-conformance/registry.json.
- Gated in every port. Each port's eject-contract test asserts that every generator it
ships is in the registry (census), that every registered generator ships eject source
unless the shared file exempts it (completeness), and that each generator ejected alone
compiles or loads, references nothing in the codegen packages outside the engine surface
and emits what the packaged generator emits (depth). TypeScript:
cli/test/eject-contract.test.ts. C#:EjectContractTests. Java:EjectContractTestinmaven-plugin. Kotlin:EjectContractTestincodegen-kotlin. Python:tests/conformance/test_eject_contract.py. Rust holds its eleven generators to the same assertions: census, completeness and the reference scan inmetaobjects-codegen/tests/generator_registry.rs, and the ejected-alone build inmetaobjects-cli/tests/cli.rs. - A gap is listed, never silent.
eject.pendinglists every generator that still fails an assertion; it is empty ([]) for 1.1.0, so every reference passes every assertion. A port's test fails when an unlisted gap appears and when a listed one closes without its entry being removed, and a final release is refused while the list has entries (ADR-0034 Amendment 8). - Not gated: an adopter's owned copy. The contract is about what the reference hands over.
Capability requirements (features/requirements.md):
- Vocabulary — gated in all six ports. The types, their attributes and their closed
enums travel in
registry-conformance's byte-matched manifest, which every port reproduces exactly, and accept/reject behaviour is pinned byrequirement-*fixtures infixtures/conformance/. A port that drifts on what it will load fails. - Checks — gated in five of the six ports. Every port's
verifybut Rust's runs the requirement gate (ADR-0057, which reversed a TypeScript-only split recorded here); Rust's is planned (RS-V2).requirement-check-conformancepins each diagnostic's code, severity, path and message text and the summary counts against the TypeScript reference. Kotlin has no CLI of its own and runs the gate through the Java Maven goal.verify-conformancestill holds no requirement cases: that corpus is template drift, and the gate has its own. - Generated tests — identity gated in those same five ports, text in none.
requirement-test-identity-conformancepins which tests a ledger yields, each one's id, witness key, skip state and digest, and what a project's filter is shown. The file a port writes is its reference helper's output and is not a cross-port contract. - Authoring lint — TypeScript only, by decision. The seven
WARN_REQUIREMENT_*authoring advisories are printed by the Nodemeta verifyand by no other port (ADR-0057, Consequences). They never fail a build, and no corpus holds them. The structured--format json|toonpayload is TypeScript-only too.
Stated as mechanisms rather than as a list of attribute names on purpose — the requirement vocabulary has a breaking change scheduled (FR-038), which moves what the manifest contains without moving these boundaries.
The Cube exporter (features/cube-export.md):
- Mapping — gated in TypeScript only, by decision.
fixtures/cube-model/holds 46 cases, 36 with the exact tree the generator writes and 10 with the exact error message, plus the canonical model's golden.codegen-ts/test/cube/cube-model-corpus.test.tsandcube-model-canonical.test.tsrun them. No other port has an exporter (spec R6), so no other port makes a claim the corpus would have to check. - Cube accepts the output — queried on Postgres and MySQL, in development and production mode. The
cubelane (scripts/ci-local.sh --only cube, which needs Docker) loads the canonical golden and the 36 cases that hold a tree into a pinned Cube (cubejs/cube:v1.7.43) and requires each to compile, the three MySQL cases included: compiling a model runs no SQL, so the lane's Postgres data source serves them too. For the canonical reports it compares the Cube query with the report view (a@spinereport through its Cube view, its empty spine rows included), and for theescapingandmeasure-defaultcases it reads the SQL back from Cube's/v1/sql. A second live file (cube-model-mysql.live.ts) runs the MySQL path: the canonical golden generated withdialect: "mysql"is loaded into the same pinned Cube over a real MySQL 8.4 holding the report viewsbuildReportViewslowers (fixtures/cube-model/canonical/seed.mysql.sql), and each of the twenty-three served reports' Cube query is compared withSELECT *from its view, with the pre-aggregation used asserted. A third file (cube-model-mysql-cases.live.ts) executes the three MySQL cases (dimension-time-mysql,measure-mysql,measure-boolean-mysql) on a real MySQL 8.4 with seeded tables, comparing 14 queries with rows worked out by hand from the seed (the cases have no report view to compare with). A fourth (cube-model-production.live.ts) runs Cube in production mode (CUBEJS_DEV_MODE=false, a signed token, a separatecubejs/cubestore:v1.7.43container), on Postgres and on MySQL: it builds every rollup through the pre-aggregations jobs API, requires each served report with a rollup to be answered from Cube Store with the view's rows, and requires every rollup the model declares to answer at least one query, so a rollup no query can match fails the lane. A fifth (cube-model-shapes.live.ts) queries the shapes the canonical model does not carry (alias cubes, a TPH subtype, a one-to-one join, the int-backed enum'sCASE, a two-hop@spinereport) from theirfixtures/cube-model/trees and compares the rows with plain SQL. - The lane is a gate, not a second corpus. Like the codegen-compile gate, it reuses
fixtures/persistence-conformance/canonical/meta.fitness.jsonand the committedschema.postgres.sqlrather than adding a model beside them; only the seed rows are its own (fixtures/cube-model/canonical/seed.sql).
Does the generated code compile (codegen-compile-conformance, all six ports):
- Not a corpus, so it has no row. It reuses
fixtures/persistence-conformance/canonical/meta.fitness.jsonrather than adding a kitchen sink beside the one that already exists — 18 entities, two view-backed projections (one restating an entity's enum throughextends), M:N junctions including a self-join, a 5-entity TPH hierarchy whose subtypes are an FK and M:N target and declare an M:N of their own, a@required+@defaultsubtype field, jsonb, isArray, currency, decimal, andAllTypescarrying every persistable field subtype. A second such model would drift from the first, and this one is maintained by the other corpora already. Shapes an adopter's build tripped over are folded INTO it, not into a second model. - Why it exists. Every corpus above gates BEHAVIOUR. None asks whether the emitted
code builds — so four "generated code does not compile" defects shipped in 1.0.4 with
the whole matrix green, because
genexits 0 in all four cases and the adopter's build is the first thing that disagrees. The gate found five more across the ports on its first runs. - Each port uses its own compiler, so it is the same question rather than the same
code:
ts.createProgram, Roslyn,javacviaToolProvider,KotlinCompilation, and — Python having no static compiler — importing the generated package (which is what resolves the imports BETWEEN modules) plusruffF821 for the branches importing never executes. - Rust runs it too, with
cargo checkandrustfmt --check, over every generator it ships: it has no framework-bound route tier to exclude, and its generated client and commands are driven over HTTP against a local stub in the same test. The generated prompt, parser and format crates build against the workspace's ownmetaobjects-render. - Every port excludes its framework-bound route tier — TS
routesFile, C#RoutesGenerator, JavaSpringControllerGenerator, KotlinKotlinSpringControllerGenerator. Those imports are not on an in-memory compile's classpath and stubbing them drowns the signal; that tier is compiled and booted over real HTTP in the api-contract integration lane instead. The boundary is one cross-port rule, not four local concessions. - The gate and the generated-server api-contract lanes run in both output layouts —
the engine default
flatandoutputLayout: "package"(whichmeta initwrites) — so a defect only the non-default layout shows (a relative import one directory short, two packages landing in one directory) fails a gate rather than an adopter's build. - The prompt tier is out of scope here because the fitness corpus declares no
template.*nodes. Including those generators would emit nothing and read as coverage that is not there.
Do features work in combination, judged independently (TypeScript only, the
integration-tests package, real Postgres):
- Why it exists. Every corpus above exercises each feature on its own, and every one was
green while the first real application found nine defects in an afternoon — each where
two features meet (a reference onto a TPH subtype, a required default on one, an M:N
declared on one). Two of them were invisible for a structural reason as well:
meta verify --dbdiffs a database against the samebuildExpectedSchemathat wrote its migration, so a dropped FK looked in sync; and a dropped.references()compiles. - The independent oracle (
src/independent-oracle.ts) restates, from the metadata alone, which table stores each object's rows, which columns and FKs that table has, and which routes the API serves — and reads the answer frompg_catalog, from Drizzle's owngetTableConfig, and from the booted Fastify app, never through migrate-ts or codegen.independent-oracle-pg.test.tsasks it of a hand-written TPH model, including an M:N traversal against real rows, and of the committedcanonical/schema.postgres.sqlevery port's query runner executes. - The feature-combination gate (
feature-combinations-pg.test.ts) enumerates feature axes — hierarchy shape, where a link is declared, what it points at, link kind, link-table key, a required or defaulted field — and runs a pairwise covering set of models (23 today) through generate,tscwith routes included, migrate, and boot, judged by the oracle. It found three defects on its first run that no other gate could see. - Known defects are a ledger, not a skip. A check that fails for a recorded defect passes only if every failure line matches that defect's signature, and a recorded defect that stops reproducing fails its case. The ledger can only shrink.
How to tell a deliberate split from a real parity gap, since the two look identical
in the matrix — both show one port covered and four blank. Ask what the uncovered ports
claim. For the requirement authoring lint they claim nothing: no other port's verify
prints one of those advisories, exactly as the feature doc says. (The requirement checks
were a split of this kind until ADR-0057 moved them into every port, and they stopped
being one the moment a second port made the claim.) Contrast {{#hasField}} in 0.23.1, where the JVM emitted has<Field>()
onto generated payload records and verify accepted the section, while no render engine
in any port implemented the other half — two ports shipping halves of one promise, with no
fixture that could see it. A split is deliberate when no port makes a claim the corpus would
have to check; it is a gap when some port already made one.
A hazard for whoever removes an attribute — and it has now fired once. Contract prose
lives inside attr descriptions in expected-registry.json, where six ports byte-match it
and nothing else gates it. @trackedBy still carries "NOT resolved by verify, which does not
reach the network". @verifiedBy carried "verify checks each name EXISTS and is not skipped;
it never runs them" — and that attribute was retired in 0.24.0 (FR-038), which deleted
the only gated statement of that guarantee along with it.
That removal was done to the rule: the sentence was rehomed in the same change, to
spec/capability-ledger.md (§ "verifiedBy — RETIRED") and
to the migration guide, before the description was deleted. Do the same for the next one.
Sweep every description being removed for contract prose and rehome it in the same
change, not after — the same class as the ADR-0047 renumbering trap, where a string that
reads like prose is actually a gated artifact.
Per-port runners + commands:
| Port | Metamodel + YAML + render + verify | Persistence | API contract |
|---|---|---|---|
| TypeScript | cd server/typescript && bun test (per-package, ~3s) |
scripts/integration-test.sh ts (needs Docker) |
cd server/typescript/packages/integration-tests && bun test test/api-contract.test.ts (needs Docker) |
| Java | cd server/java && mvn -pl metadata test (and per-tier -pl render, etc.) |
scripts/integration-test.sh java (needs Docker) |
mvn -f server/java/integration-tests/pom.xml test -Dtest=ApiContractConformanceTest (needs Docker) |
| Kotlin | cd server/java && mvn -pl codegen-kotlin test (snapshot suite) |
mvn -f server/java/integration-tests-kotlin/pom.xml test (needs Docker) |
mvn -f server/java/integration-tests-kotlin/pom.xml test -Dtest=ApiContractConformanceTest (needs Docker) |
| C# | dotnet test (per project) |
scripts/integration-test.sh csharp (needs Docker) |
dotnet test server/csharp/MetaObjects.IntegrationTests/MetaObjects.IntegrationTests.csproj --filter "FullyQualifiedName~ApiContractConformanceTest" (needs Docker) |
| Python | pytest (per package) |
scripts/integration-test.sh python (needs Docker) |
cd server/python && uv run --extra integration pytest tests/integration/test_api_contract.py (needs Docker) |
| Rust | cd server/rust && cargo test (registry, metamodel, YAML, source-resolution, reference-source, naming, skip, validation, wire-vector, writer, generator-registry, render, verify, response-verify, extract, output-prompt, template-output-render, list-query, persistence and api-contract corpora, and the verify --templates CLI test; the codegen-compile and scale gates, which run cargo check on generated crates and drive the generated client over HTTP against a local stub) |
— | — |
The persistence-conformance corpus is intentionally on-demand — none of the
unit-test runners (bun test, dotnet test, pytest, mvn test) pull Docker.
scripts/integration-test.sh is the entry point and is wired into
docs/RELEASING.md §2b as the pre-latest gate.
An independent pack (ADR-0069) keeps its tests
in packs/<name>/fixtures/, never in fixtures/, so pack work moves none of the totals, rows or
matrix cells on this page. Each pack has a pinned vocabulary
(packs/<name>/fixtures/expected-vocabulary.json, the rows it adds to the default bundle, which
every port that carries the pack byte-matches) and load fixtures in the shared format
(packs/<name>/fixtures/conformance/), run in TypeScript through the corpus-root entry point
runCorpus of @metaobjectsdev/conformance. The packs lane runs them, blocking for the
pack's own change and as a canary on core changes. The port rule differs from the bundle's here,
and only here: a port either carries the pack's provider and passes its whole corpus, or does not
carry it, and a model that uses it fails there by name. There is no row per pack on this page.
| Fixture prefix | Feature doc |
|---|---|
loader-basic-*, error-parse-* |
features/loaders.md |
extends-*, error-extends-* |
features/entities.md (inheritance) |
ref-*, error-ref-*, package-default-per-file, serialize-multi-package-document |
features/abstracts-and-inheritance.md (how a reference resolves: bare, ::, ..::, per-file package; ADR-0059) |
identity-*, subtype-entity-*, subtype-value-* |
features/entities.md (identity / entity vs value) |
attr-*, error-attr-*, error-reserved-word-as-attr |
features/entities.md (attributes) |
doc-common-attrs-* |
features/entities.md (documentation common attrs) |
auto-set-on-* |
features/entities.md (auto-set timestamps) |
attr-filter-*, loader-filterable-*, warning-filterable-*, layout-data-grid-*, error-data-grid-* |
features/entities.md (filter / sort / grid) |
overlay-* |
features/entities.md (overlay / merge) |
merge-three-way-no-conflict, error-merge-conflict-attr, merge-conflict-unmarked-attr-redeclaration, warning-duplicate-declaration |
features/loaders.md (multi-file merge attribution, FR5c) |
field-string-*, field-decimal-*, field-object-storage-*, error-field-object-storage-* |
features/field-types.md |
currency-* |
features/field-types.md (currency) |
enum-*, error-enum-*, warning-enum-* |
features/field-types.md (enum) |
source-rdb-*, source-db-table-*, source-db-view-*, source-multi-source-*, error-source-* |
features/source-kinds.md |
relationship-*, error-unknown-relationship-* |
features/relationships.md |
template-*, error-template-* |
features/templates-and-payloads.md |
origin-*, error-origin-* |
features/templates-and-payloads.md (payload origins) |
projection-*, error-projection-*, field-readonly-on-view-projection |
features/source-kinds.md (projections + the object taxonomy, ADR-0028) |
requirement-*, error-unknown-attr-requirement |
features/requirements.md (vocabulary only — the gate has its own corpus, requirement-check-conformance/; see "Split coverage" above) |
reporting-*, error-dimension-*, error-measure-*, error-ratio-*, error-segment-*, error-report-*, error-relative-date-* |
features/reporting.md (the dimension / measure / segment / object.report vocabulary and its load-time rules; design in the FR-044 spec) |
rules-*, error-rules-* |
features/business-rules.md (operations, permission names and lifecycles: the vocabulary and its load-time rules, ADR-0066; the verify gate has its own corpus, rules-check-conformance/) |
provider-extension-*, provider-custom-vocabulary-* |
features/extending-with-providers.md (a project's own provider: a new subtype plus attributes on an existing type load with it and are refused without it, every port writing the provider in its own language) |
error-packs-left-out-* |
features/extending-with-providers.md (Where vocabulary lives: a model that uses a left-out pack's type fails to load, naming the unknown type or subtype) |
object-collection-name |
features/migrations/physical-naming.md (@collectionName and the collections pluralizer) |
smoke-empty-metadata |
features/entities.md |
All 19 fixtures → features/yaml-authoring.md. The corpus
splits into 12 happy-path fixtures (sigil-free attrs, array suffix, anchor/alias,
block scalars, mixed bare-and-prefixed, quoted leading zero, an overlay declared
before its base in one file, parent-relative and root-escape refs, a bare of
on a reporting measure, etc.) and 7 error-yaml-* fixtures that pin the
YAML 1.1 coercion guards (bool / null / hex in string contexts; numeric in enum
contexts; reserved-as-attr).
All 26 fixtures → features/templates-and-payloads.md
(render engine output section). 5 are end-to-end shape and escape examples (prompt / email /
spreadsheet / CSV-injection escape / CSV numeric-literal exemption); 19 pin Mustache-engine
semantics — dotted-path lookup (including a shadowed prefix and a list's length), parent-context fallthrough, falsy/empty-array/zero section behavior,
inverted sections, nested partials, a comment tag beside a partial, standalone-tag whitespace
stripping (including two standalone tags in a row, a standalone tag at the end of the file and an
indented standalone tag, which shared docs templates rely on), raw-HTML bypass, trailing-newline preservation, unicode multibyte handling, the derived
has accessor, and the -last list-separator accessor. 2 are error cases: a fixture
that must refuse carries expected-error.txt in place of expected.txt, holding the error text
the render must raise (render verify failed: ERR_VAR_NOT_ON_PAYLOAD (<name>)). Every port that runs
this corpus reads that convention; every port requires it to appear in the raised message (Python's jinja runner compares it exactly).
Two engines read a case differently from the shared baseline (the TypeScript renderer on
mustache.js), and each runner ledgers the case instead of skipping it, asserting it STILL
differs so the ledger only shrinks. C# (Stubble) ledgers render-shadowed-dotted-prefix: it stops
a dotted name at the first context holding its first segment. Rust (mustache-ng) ledgers that
case, render-list-length (a list's length is not a property of its data) and
render-zero-falsiness (numbers reach the engine as text, so 0 is truthy). Closing a Rust entry
means resolving names and truthiness in the crate instead of the engine, which is larger than a
localized change and is not done here.
Both → features/templates-and-payloads.md (Jinja
templates section, ADR-0061). Run by
Python (jinja2) and TypeScript (nunjucks) only; Java, Kotlin and C# refuse a Jinja body with
ERR_TEMPLATE_ENGINE_UNSUPPORTED instead. The render corpus holds 13 output cases and 3 error
cases (an include cycle, an unresolved include and a missing variable), each with the same
Mustache-path message.
The verify corpus reuses verify-conformance/'s payload.json field-tree shape; an
ERR_TEMPLATE_SYNTAX finding's path is the parser's own message, so runners compare it as
empty.
All 45 fixtures → features/migrations-and-drift.md
(template drift section — Renderer.verify). A node of a fixture's payload.json field tree
may carry "isArray": true; with fields it is a list of objects, without it a list of
scalars. The six verify-positional-accessor-* cases pin where -last is available.
migrations/*(12) → features/migrations-and-drift.md (schema migration section)queries/*(56) → features/source-kinds.md (query semantics againstsource.rdb)
Engines beyond Postgres (FR-044 reports, decimals). The twenty-four queries/report-*.yaml
scenarios also run on SQLite and MySQL 8.4 in every port, and on D1's local runtime in
TypeScript (no cloud account). A scenario that declares engines: runs on exactly those engines
(decimal-exact-15 on all four, decimal-exact and guarded-update on Postgres and MySQL). Java reads SQLite
through OMDB's SQLiteDriver, and Python through SqliteDriver (sqlite3) and MySqlDriver
(PyMySQL). Each engine executes an artifact
TypeScript produced (canonical/schema.sqlite.sql from meta migrate --dialect sqlite;
canonical/schema.mysql.sql from the adopter-written tables plus buildReportViews), held
equal to its generator by a test, so no port writes view SQL. The expect blocks stay the
Postgres wire ones; engine spelling is normalised on the actual side only (a SQLite ratio is a
REAL, a MySQL DECIMAL keeps its scale, a MySQL DATETIME is the UTC wall clock), and
report-relative-date carries a per-engine seed (seed-data-engine). op: relate and the
write ops stay Postgres-only. See features/reporting.md.
All 179 scenarios → features/api-contract.md (cross-port
REST API URL grammar + JSON wire format). Verifies every backend's emitted CRUD
routes answer identically over HTTP — list / get / create / patch+put / delete,
plus pagination (limit/offset), sort (sort=field:dir), the withCount=1
envelope, the not_found / invalid_sort error envelopes, and the 201 / 204
status codes.
The corpus also covers the 9 cross-port filter operators (eq, ne, gt,
gte, lt, lte, in, like, isNull) plus the implicit-AND combinator
and 2 error shapes (invalid_filter_field / invalid_filter_op) under the
URL grammar ?filter[<field>][<op>]=<value> (FR-009). On top of the 34 core
scenarios (among them the write-input rules: server-owned keys dropped, an undeclared key
refused under the default api.unknownFields: reject, and every validation issue listed)
the corpus carries twelve sub-corpora — tph/ (14, single-table
inheritance; a subtype decimal filters and refuses extra digits, and the input rules hold over
the whole hierarchy), m2m/ (9 — 3 plain, 5 gating TPH x M:N together, the combination
each corpus alone could not reach, and 1 pinning the collection-URL spelling),
jsonb/ (6, typed value-object columns; numbers inside them: a double stays a JSON number, a decimal is the canonical string; an undeclared member inside a value object is dropped),
write-through/ (2, table-write + view-read entities), secret-fields/ (4, #484: a @formExclude or credential view.password field is ignored on create, PATCH and PUT, a credential is never returned, and a credential marked @filterable or @sortable is still on neither allowlist, so a filter or sort naming it is a 400; the tph/ sub-directory is a TPH hierarchy whose subtypes share a column one of them marks as a credential, which is on no allowlist of the base or either subtype), enum-default/ (2, a create that omits a field.enum with @default stores the default, and a supplied value is kept), projection/ (12, a
read-only view answers reads and refuses writes with 405; a projection with no declared
identity has no item route; a projection keyed on a field not named id is addressed by
it, whether its identity names @fields or derives them; decimal and float fields filter), decimal/ (11, ADR-0019 Amendment 1: a decimal, array element and undeclared-precision column included, is one
canonical string, read exactly, filtered exactly and refused past its declared digits), duration/ (2, a
field.duration under "wire": { "durations": "iso" } is one canonical ISO-8601 string, refused
in a calendar or clock spelling, and filtered and sorted as a span on every engine), api-settings/ (8,
the project's api block: api.pagination's default page, limit_too_large cap and refused
negative limit, an empty page for limit=0, and
api.unknownFields: drop), rules/ (17, ADR-0066 through a generated service: derived and declared commands, a query, permission points, the three 409 codes, a declared error and a refusal rolling back, under the default settings and three rules.* variants; generated lane, TypeScript and Rust; the other ports from their 1.3.0 service work), list-query/ (21, the REST standard's list handling against a real store: search ignores case and like does not, filter[or]/filter[and], the nesting cap, bare fields, a leading %, value formats, a default page of 50, paging past 50, and the invalid_json, invalid_id, pagination.invalid_value and constraint_violation refusals; generated lane, TypeScript, C# and Rust; the other ports from their 1.3.0 REST-standard work) and report/ (37,
FR-044: a view-backed object.report is listed, filtered, sorted and paged on
its derived fields, answers POST with 405 and mounts no /{id}; a @spine report keeps
a row with no facts, and a measure with @default filters and sorts as its default). The 5 ports with
a reference lane — TS, Java, Kotlin, C#, Python — run it in BOTH lanes: a hand-rolled reference server and
the port's own GENERATED API artifact booted over HTTP. Rust runs the generated lane alone
(see the matrix row above): a hand-rolled server would answer every scenario by construction, and
what is under test is the generator. write-through/,
secret-fields/, enum-default/, projection/, decimal/, duration/ and report/ run the generated lane only, on all five ports (Rust runs two of them, write-through/ and secret-fields/; the rest are on its runner's ledger): what
they test is whether a port's generator emits the routes. The report/ sub-corpus is the one
that reads real views, so it runs full stack on Postgres, SQLite and MySQL
(report/schema.sqlite.sql, report/schema.mysql.sql, both TypeScript-produced) in every
port, and on D1's local runtime in TypeScript. The decimal/ sub-corpus does the same over
decimal columns.
All 30 cases → features/metadata-sources.md (how a
declared sources set resolves to a file list). Companion to
scope-conformance/ below — sources decides which files are read, scope
filters what is emitted from them. The corpus is file-shaped: one committed
cases.json, read directly by every port's runner, with no per-port fixture
and no ledger.
It pins the resolved file SET for a declared sources list — the default
directory, replacement-not-merge, the relative-path base (the directory
HOLDING .metaobjects/, never the process cwd), recursive directory walking,
case-insensitive extension matching, union-with-de-duplication, and every
error condition (an unresolvable path, an unsupported resource/package
kind, and a malformed config — "expectError": true pins only that
resolution RAISES, since which error code it raises with is deliberately NOT
a cross-port contract; see the corpus README). All five CLI surfaces run
it — TypeScript (the reference implementation), C#, Python, Java (Kotlin
inherits it, since Kotlin has no CLI entry point of its own and runs through
the same Maven plugin as Java), and Rust (cargo meta):
server/typescript/packages/sdk/test/source-resolution-conformance.test.ts,
server/csharp/MetaObjects.Conformance.Tests/SourceResolutionConformanceTests.cs,
server/python/tests/conformance/test_source_resolution_conformance.py,
server/java/metadata/src/test/java/com/metaobjects/config/SourceResolutionConformanceTest.java,
and server/rust/metaobjects/tests/source_resolution_conformance.rs.
All 6 cases → features/metadata-sources.md.
A sources entry with "reference": true loads its files into the same tree, so a
prompt's @responseRef resolves against them, and its nodes are excluded from every
generator. The corpus pins the reference-node SET (every declaring file a reference file;
an ordinary declaration or an ordinary spec reaching the same file wins) and the refusal of
a reference-only template (ERR_REFERENCE_SOURCE_TEMPLATE). Runners:
server/typescript/packages/sdk/test/reference-source-conformance.test.ts, C#
ReferenceSourceConformanceTests, Java ReferenceSourceConformanceTest (Kotlin through the
same loader), Python test_reference_source_conformance.py and Rust
metaobjects/tests/reference_source_conformance.rs. That codegen emits no type for a
reference node while a local prompt's parser still emits is proven by a per-port codegen test
(TypeScript, C#, Java, Kotlin and Python; Rust, which emits no prompt code, proves the exclusion alone).
All 7 cases → features/templates-and-payloads.md.
What the template gate reports about a prompt's reply: ERR_RESPONSE_UNRESOLVED and, for an
xml prompt, ERR_RESPONSE_TAG_UNDECLARED. Run by TypeScript, C#, Java (Kotlin through the
same Maven goal), Python and Rust (server/rust/metaobjects-cli/tests/response_verify_conformance.rs).
All 10 cases → features/metadata-sources.md (the
scope pattern grammar). The corpus is file-shaped: one committed cases.json,
read directly by every port's runner, with no per-port fixture and no ledger.
It pins the semantics of a consumer's include/exclude scope over
fully-qualified names — * matches within one :: segment and never crosses
it; a segment that is exactly ** matches one or more whole segments (so
acme::** does not match the bare acme); every other character is literal,
regex metacharacters included; an absent or empty include means everything;
multiple include patterns are a union and exclude is applied after it; and
matching is case-sensitive. These are exactly the rules four independent
implementations would otherwise each get slightly wrong — the failure mode that
produced the cross-port LIKE/ILIKE divergence fixed in 0.21.6.
TypeScript, Java, Kotlin, C# and Python run it. The reference implementation is
server/typescript/packages/metadata/src/scope.ts
(compilePattern / compileScope / matchesScope; @metaobjectsdev/sdk re-exports
it unchanged, since it moved there from sdk when FR-023 needed it from
codegen-ts without a sdk dependency), and the corpus was authored against it.
Python's port (server/python/src/metaobjects/scope.py, matches_scope using
re.fullmatch) runs the same corpus. Java's (com.metaobjects.config.Scope, run by
ScopeConformanceTest) matches with Matcher.matches() and splits patterns with a
-1 limit, because String.split would otherwise drop a trailing empty segment and
let acme:: compile instead of failing. C#'s (MetaObjects.Config.Scope, run by
ScopeConformanceTests) anchors with \A…\z rather than ^…$, since .NET's $
also matches before a trailing newline. Kotlin has no runner of its own: it inherits
the Java loader. Each of those two guards is pinned by a test beside the corpus, since
the corpus asserts matches only and carries no invalid-pattern case.
All 47 cases → features/metadata-dependencies.md
(declaring a dependency, meta deps sync, the committed snapshot + lock, default
exclusion of imported metadata, overlay/extends across the boundary, every load-
and resolution-time failure, the upstream check, and which imported requirements are the
project's own ledger). File-shaped like scope-conformance/ above: one committed cases.json,
no per-port fixture. The corpus has four arms:
- Resolution (36 cases). Every case's
expectFiles/expectImported/expectSelected/expectMigrateGoverned/expectLoadErrorassertions. TypeScript (the reference implementation), Python, Java and C# all run all 36, identically, with no exemption. The two overlay cases that need a view child as incidental content useview.currency(the one concreteview.*subtype registered cross-port), notview.text— a prior revision usedview.text, which Python did not register then, and carried a since-discharged allowlist for it. Kotlin inherits the Java run through the same loader and Maven plugin. - Ledger (7 of the resolution cases,
expectLedger/expectCoverageMeasured). Which loaded requirements are this project's ledger (its own, plus a dependency's only whenrequirements.inheritnames the dependency's package) with each one's effective@status, and whether object coverage is measured (never by an imported requirement). Each port asserts it through its requirement gate's scan and again through its requirement-tests walk: TypeScript incli/test/dependency-ledger-conformance.test.ts, the other ports in their resolution runner. An eighth case refuses a new requirement declared into a dependency's package (ERR_DEPENDENCY_PACKAGE_NOT_OWNED) on the load-time path. - Check (11 cases,
expectCheck). For each declared dependency,current,driftedorunresolved(a missing path, a bad manifest, a hash mismatch, or not yet in the lock). Run by TypeScript, incli/test/dependency-check-conformance.test.ts, by Java inDependencyCheckConformanceTest(the engine behindmetaobjects:verify -Dmeta.verify.mode=deps; Kotlin runs the same goal), by Python, intests/conformance/test_dependency_conformance.py(metaobjects deps checkandverify --deps), and by C#, inDependencyConformanceTests(dotnet meta verify --deps). The arm exists so that each port's check is written against the same edge cases (FR-023 Phase 2, #482, shipped). - Transport (32 cases,
transport-cases.json). Thenpm,python,mavenandnugettransportsmeta deps syncuses to find an installed package: npm packages under a tempnode_modules, Python packages on a temp import path, jars in a temp local Maven repository, packages in a temp NuGet cache, the directory each resolves to, the exact lock written, and each refusal. Run by Node only, incli/test/dependency-transport-conformance.test.ts, because Nodemeta deps syncis the only writer of snapshots and the lock.cases.jsonalso carries annpm, apython, amavenand anugetdependency loading from their committed snapshot with nothing installed, which every port runs.
C# (S6 of FR-023 Phase 2) runs the resolution arm on two rungs of the source ladder: the
neutral one (Resolve(null, dir)), and the explicit metadata directory a
dotnet meta gen <metadataDir> takes, where the case has one. Its runner is
DependencyConformanceTests; it runs the 11 check cases through DependencyResolver.CheckDependencies
(S7) and skips the transport cases (C# never syncs).
→ features/metadata-dependencies.md (the publisher's
sharedModelFile()). A source tree under source/, plus files / include / exclude /
version / requirements, must produce exactly the pinned artifact and manifest bytes (nine
cases), or be refused for the pinned reason (six: an empty selection, a requirement alone
without requirements, a requirement claiming a node outside the selection, a reference or
extends outside the selection with the referrer → target pairs named, and vocabulary only a
consumer provider registers). template.* nodes are always dropped and requirement.* nodes
unless requirements is set, and the order of files does not change the bytes. The manifest goldens carry the token @@METAMODEL_VERSION@@ where
the manifest records the toolchain's metamodelVersion, so they do not move with it.
TypeScript runs all 15, in codegen-ts/test/shared-model-conformance.test.ts. Python runs
all 15, in tests/conformance/test_shared_model_conformance.py, against metaobjects.shared_model,
the engine its shared-model generator calls.
Java runs all 15, in metadata's SharedModelConformanceTest against the SharedModel engine
the shared-model generator calls; Kotlin runs through that same engine and Maven goals and adds
only KotlinSharedModelGeneratorTest. C# runs all 15, in SharedModelConformanceTests.
ADR-0055 (deferred overlay application) — SHIPPED in every port. The nine cases added for it (
overlay-mixed-file-base-in-later-file,overlay-mixed-file-base-in-earlier-file,overlay-same-file-before-base,overlay-nested-under-plain-parent-base-later,overlay-applies-after-all-plain-declarations,overlay-two-overlays-source-order,error-overlay-no-target,error-overlay-no-target-nested, and the YAML twinyaml-overlay-before-base-same-file) are green on TypeScript, C#, Java, Kotlin (via the JVM loader) and Python, with no entry in any expected-failures ledger — they ran rather than being excused. The fixtures were committed while three ports were still red, and the red was recorded here rather than in a ledger, because ledgering a fixture the design intends to pass is how a port quietly stays behind.
collection-segments.json (23 cases) pins the REST collection segment from an object's
@collectionName and the project's naming.collections pluralizer; every port runs it (see the
corpus README). It holds segment cases only. The collection-name clash refusal
(ERR_COLLECTION_NAME_COLLISION, two objects mounting one collection) is not in it: each port
gates the refusal with its own unit tests, which run the corpus's collisionCases pairs where
the README's runner table says so. Kotlin has no refusal of its own (the Maven goal runs the
shared JVM RouteNaming one before the Kotlin generators), and
codegen-kotlin's KotlinRouteNamingTest checks it refuses a model the Kotlin facade loads,
for coinciding plurals and for a declared @collectionName that repeats another's segment. The pluralize cases:
All 8 cases → the already-plural pluralize fix (CHANGELOG ## [1.0.13]):
an entity whose name is already a plural noun (Stats, Settings, Series)
used to get double-pluralized (ProgramPurchaseStats → ProgramPurchaseStatses)
in every port's REST collection path, generated hook/query/finder/list names,
and DbSet/collection names. File-shaped like scope-conformance/ above: one
committed already-plural-pluralize.json, read directly by every port's
naming unit-test file, no per-port fixture, no ledger.
Each case carries BOTH axes the fix touches: apiPlural (the API/code-surface
pluralizer every generator-facing use now gets) and legacyPlural (the
FROZEN default-physical-table-name pluralizer, deliberately NOT fixed, so an
adopter's live database never sees a proposed rename). Three already-plural
cases (Stats, Settings, Series) prove the two axes now DIVERGE; three
look-alike cases (Status, Address, Alias — each ends in "...s" preceded
by one of the excluded letters s/u/i/a) prove both axes stay IDENTICAL to the
pre-fix behavior; two baseline cases (Category, Box) don't end in "s" at
all before pluralizing and are untouched by either axis.
No HTTP server, no database — this corpus is a pure function check. The
route-spelling half of the general pluralization rule is additionally
gated end-to-end over HTTP by
fixtures/api-contract-conformance/m2m/scenarios/route-spelling-multiword-collection.yaml
(the PostCategory multi-word/consonant-y scenario, predating this fix); the
default-physical-table-name axis has no HTTP-observable surface at all, so it
can only be proven at the pluralizer-function level, which is what this
corpus does for both axes in one data file.
All six ports run it (Kotlin inherits, since KotlinNaming.collectionSegment
delegates to the same RouteNaming.pluralize Java runs):
server/typescript/packages/metadata/test/naming.test.ts,
server/csharp/MetaObjects.Codegen.Tests/CSharpNamingTests.cs,
server/java/codegen-base/src/test/java/com/metaobjects/generator/util/RouteNamingTest.java
server/java/metadata/src/test/java/com/metaobjects/source/Fr016SourcePhysicalNameTest.java(API-surface and frozen-legacy halves split across the two modules that already own those two functions),server/python/tests/codegen/test_route_path_naming.py+server/python/tests/unit/test_fr016_source_name_and_kind_aliases.py(same split), andserver/rust/metaobjects/tests/naming_conformance.rs.
All 49 cases → features/requirements.md ("The gate in every
port"). Each case is a directory: input/ metadata, an optional options.json
(libraries, requireImplementers) and an expected.json holding the gate's diagnostics
(severity, code, requirement path, message text) and the ledger summary, or null for a
model with no requirement. The expectations are written from the TypeScript reference and
a port that disagrees with one is wrong. The case list, and what each pins, is in the
corpus README.
Every port's verify but Rust's is held to it (Rust's gate is planned, RS-V2):
server/typescript/packages/cli/test/requirement-check-conformance.test.ts,
server/python/tests/conformance/test_requirement_check_conformance.py,
server/java/metadata/src/test/java/com/metaobjects/conformance/RequirementCheckConformanceTest.java
(Kotlin inherits it, through the shared Maven goal) and
server/csharp/MetaObjects.Conformance.Tests/RequirementCheckConformanceTests.cs.
All 95 cases → features/api-contract.md ("The list query: search,
combinators and refusals", and the bad-request responses). Each case is a raw query string, and
what it pins is the answer a list route gives before any store is reached: the parsed query
(a filter tree in neutral values, the search term and the fields it covers, the sort and the
page) or the exact 400 body. With several faults in one query, it also pins which is reported
first. The allowlist is not in the fixture: a runner derives it from meta.json the way its
generator does, so a port that derives a different allowlist fails here. What a parsed query
matches in a store is the list-query/ sub-corpus of api-contract-conformance/.
Held to it: server/typescript/packages/integration-tests/test/list-query-conformance.test.ts
(the source of the expected answers) and
server/csharp/MetaObjects.Codegen.Tests/ListQueryConformanceTests.cs. Conformance status:
TypeScript, C# and Rust pass (Rust: server/rust/metaobjects-codegen/tests/list_query_conformance.rs,
against the parser its transport ships); Java, Kotlin and Python are pending until their 1.3.0
REST-standard work lands, and each port's change flips its own entry. The decision is
ADR-0068.
All 4 cases → features/requirements.md (the documentation
surfaces) and features/templates-and-payloads.md (the
shared templates). Each case is a model under input/ and, under expected/, every page it
yields (requirements.md, requirements.toon, agent/requirements.md, the model-only
agent/schema.md) plus the data each page's shared template is fed and, under rows/, the
ledger and model-only schema rows that data is built from (the shapes the docs site reuses). The TypeScript
builders are the source of the expected bytes. The corpus README writes down what a
non-TypeScript schema page contains and what it leaves out.
Held to it: server/typescript/packages/cli/test/docs-page-conformance.test.ts and
server/python/tests/conformance/test_docs_page_conformance.py (rows, page data, then bytes;
the Python builders derive the schema rows from the model with the port's own naming helpers).
The C#, Java (Kotlin through Java) and Rust page generators are planned.
All 27 cases → features/requirements.md ("Generated
requirement tests and witnesses"). It pins the identity of every test the
requirement-tests generator yields from a ledger (package, path, unit, id, witness key,
status, skip state and digest), witness-key collisions, and the view a project's filter
receives, through eight named filters each port's runner implements in its own language.
It does not pin the text of a generated file, the uncovered warning, or a requirement name
outside ASCII. The case list is in the
corpus README.
All ports but Rust run it (Rust's requirement-tests generator is planned, RS-V2):
server/typescript/packages/codegen-ts/test/requirement-test-identity-conformance.test.ts,
server/java/metadata/src/test/java/com/metaobjects/conformance/RequirementTestIdentityConformanceTest.java,
server/python/tests/conformance/test_requirement_test_identity_conformance.py and
server/csharp/MetaObjects.Conformance.Tests/RequirementTestIdentityConformanceTests.cs.
Kotlin's identity function is the Java one; the names its generator emits are asserted by
server/java/codegen-kotlin/src/test/kotlin/com/metaobjects/generator/kotlin/KotlinRequirementTestsGeneratorTest.kt.
All 16 cases → features/business-rules.md ("What verify
reports"). Each case is a directory: input/ metadata, an optional options.json (the
rules and verify blocks of .metaobjects/config.json, read through each port's own config
reader) and an expected.json holding the gate's diagnostics (severity, code, node address,
message text) and its summary counts, or null for a model with no operation and no
transition. The expectations are written from the TypeScript reference
(scripts/write-requirement-corpus-expected.ts rules). The case list is in the
corpus README.
Every port's verify is held to it:
server/typescript/packages/cli/test/rules-check-conformance.test.ts,
server/csharp/MetaObjects.Conformance.Tests/RulesCheckConformanceTests.cs,
server/java/metadata/src/test/java/com/metaobjects/conformance/RulesCheckConformanceTest.java
and server/python/tests/conformance/test_rules_check_conformance.py and
server/rust/metaobjects/tests/rules_check_conformance.rs. Kotlin inherits the Java
gate through the shared Maven goal.
All 46 cases and the canonical golden → features/cube-export.md.
Each case is the smallest model for one mapping rule (an entity's cube, a join, an alias cube, a
dimension type, a measure, a measure's @default, a segment, a relative date, a rollup, a
@spine report's Cube view, the escaping rules) or for one
ERR_CUBE_* refusal, and holds exactly one of an expected file tree and an expected error
message. The case list, with the rule each pins, is the
corpus README.
One port runs it: TypeScript, in
server/typescript/packages/codegen-ts/test/cube/cube-model-corpus.test.ts. The cube lane
(server/typescript/packages/integration-tests/cube-live/cube-model.live.ts) loads the same
files into a real Cube.
The shop case → features/explorer-data.md. Its project/ is a
small model with inheritance, a value object, a reference, a prompt with a payload and a reply,
and a five-level requirement tree that has a resolved member claim, a dangling planned claim and a
live requirement nothing implements. effective.json and verify.json are what
meta export --effective and meta verify --format json write for it, hashes.json is a
hand-written manifest with node provenance, and expected.json is the explorer document built
from the three, compared byte for byte.
One port runs it: TypeScript, in
server/typescript/packages/docs-site/test/explorer-build.test.ts (the builder) and
server/typescript/packages/cli/test/explorer-fixture.test.ts (the two committed inputs are
what the CLI writes today). The builder reads no loader, so a port that writes the same effective
JSON and verify payload feeds it unchanged.
The fixtures in the nine corpora mapped above (metamodel 584 + yaml 19 + verify 45
- render 26 + persistence 68 + api-contract 179 + source-resolution 30 + scope 10 +
dependency 47) each map to a feature doc, and so do the two requirement corpora,
rules-check-conformance,shared-model-conformance, thecube-modelcorpus,explorer-conformanceandlist-query-conformance, whose case lists live in their own READMEs. None are orphaned today. The remaining corpora in the totals table gate tooling contracts (registry manifests, provider composition, agent context, docs emit) rather than user-facing metamodel behaviour, so they have no feature-doc row.
If you add a new fixture and don't see a clear home for it, either:
- Add a section to the closest matching feature doc and reference it from its
## Verified byblock, or - Open an issue if the fixture exercises behavior the feature docs haven't yet described.
None of the 8 feature docs lack fixture coverage. The closest case is the
high-level overview material in each doc (e.g., the "Anatomy of an entity"
explainer in entities.md) — these are pedagogical, not behavioral, and don't
require pinning.
- features/ — the per-feature reference, each with its own
## Verified by spec/conformance-tests.md— fixture format + canonical serializer contractspec/cross-language-porting-guide.md— how a new port wires up against the corporafixtures/conformance/ERROR-CODES.json— the enumerated error codes everyerror-*fixture pinsdocs/RELEASING.md—scripts/integration-test.shrunspersistence-conformanceper port pre-release