|
| 1 | +# Conformance coverage |
| 2 | + |
| 3 | +The MetaObjects standard has 5 cross-language conformance corpora plus a deferred |
| 4 | +6th (`codegen-conformance/`, tracked as FR-007). Every port runs every applicable |
| 5 | +corpus and asserts the same expected behavior against the same fixtures. **This |
| 6 | +page is the inverse index**: fixture → feature doc + per-port pass status. |
| 7 | + |
| 8 | +If you are coming from a feature doc's `## Verified by` section, you are in the |
| 9 | +right place. If you are wondering whether a particular fixture has a |
| 10 | +human-readable explanation somewhere, look it up in the |
| 11 | +"Fixture-to-doc mapping" table below. |
| 12 | + |
| 13 | +## Per-corpus totals |
| 14 | + |
| 15 | +| Corpus | Fixtures | TS | Java | Kotlin | C# | Python | |
| 16 | +|---|---|---|---|---|---|---| |
| 17 | +| [`fixtures/conformance/`](../fixtures/conformance/) (metamodel) | 85 | 85 / 85 | 85 / 85 | inherits via `metadata-ktx` | source-v2 cluster + `doc-common-attrs-on-all-types` are open gaps | 91 / 91 (also gates loader extensions) | |
| 18 | +| [`fixtures/yaml-conformance/`](../fixtures/yaml-conformance/) | 6 | 6 / 6 | 6 / 6 | inherits via Java | 6 / 6 | 6 / 6 | |
| 19 | +| [`fixtures/verify-conformance/`](../fixtures/verify-conformance/) | 31 | 31 / 31 | 31 / 31 | inherits via Java | 31 / 31 | 31 / 31 | |
| 20 | +| [`fixtures/render-conformance/`](../fixtures/render-conformance/) | 4 | 4 / 4 | 4 / 4 | inherits via Java | 4 / 4 | 4 / 4 | |
| 21 | +| [`fixtures/persistence-conformance/`](../fixtures/persistence-conformance/) | 12 (9 query + 3 migration) | 12 / 12 | 12 / 12 | 12 / 12 (via Exposed) | 12 / 12 | 12 / 12 | |
| 22 | +| `fixtures/codegen-conformance/` (FR-007 — DROPPED in favor of `persistence-conformance` participation) | 0 | n/a | n/a | n/a | n/a | n/a | |
| 23 | + |
| 24 | +Per-port runners + commands: |
| 25 | + |
| 26 | +| Port | Metamodel + YAML + render + verify | Persistence | |
| 27 | +|---|---|---| |
| 28 | +| TypeScript | `cd server/typescript && bun test` (per-package, `~3s`) | `scripts/integration-test.sh ts` (needs Docker) | |
| 29 | +| Java | `mvn -pl metaobjects-conformance test` (and per-tier `-pl render`, etc.) | `scripts/integration-test.sh java` (needs Docker) | |
| 30 | +| Kotlin | `mvn -pl codegen-kotlin test` (snapshot suite) | `mvn -pl integration-tests-kotlin test` (needs Docker) | |
| 31 | +| C# | `dotnet test` (per project) | `scripts/integration-test.sh csharp` (needs Docker) | |
| 32 | +| Python | `pytest` (per package) | `scripts/integration-test.sh python` (needs Docker) | |
| 33 | + |
| 34 | +The `persistence-conformance` corpus is intentionally **on-demand** — none of the |
| 35 | +unit-test runners (`bun test`, `dotnet test`, `pytest`, `mvn test`) pull Docker. |
| 36 | +`scripts/integration-test.sh` is the entry point and is wired into |
| 37 | +[`docs/RELEASING.md`](RELEASING.md) §2b as the pre-`latest` gate. |
| 38 | + |
| 39 | +## Fixture-to-doc mapping |
| 40 | + |
| 41 | +### `fixtures/conformance/` — metamodel loader + canonical serializer (85) |
| 42 | + |
| 43 | +| Fixture prefix | Feature doc | |
| 44 | +|---|---| |
| 45 | +| `loader-basic-*`, `error-parse-*` | [features/loaders.md](features/loaders.md) | |
| 46 | +| `extends-*`, `error-extends-*` | [features/entities.md](features/entities.md) (inheritance) | |
| 47 | +| `identity-*`, `subtype-entity-*`, `subtype-value-*` | [features/entities.md](features/entities.md) (identity / entity vs value) | |
| 48 | +| `attr-*`, `error-attr-*`, `error-reserved-word-as-attr` | [features/entities.md](features/entities.md) (attributes) | |
| 49 | +| `doc-common-attrs-*` | [features/entities.md](features/entities.md) (documentation common attrs) | |
| 50 | +| `auto-set-on-*` | [features/entities.md](features/entities.md) (auto-set timestamps) | |
| 51 | +| `attr-filter-*`, `loader-filterable-*`, `warning-filterable-*`, `layout-data-grid-*`, `error-data-grid-*` | [features/entities.md](features/entities.md) (filter / sort / grid) | |
| 52 | +| `overlay-*` | [features/entities.md](features/entities.md) (overlay / merge) | |
| 53 | +| `field-string-*`, `field-decimal-*`, `field-object-storage-*`, `error-field-object-storage-*` | [features/field-types.md](features/field-types.md) | |
| 54 | +| `currency-*` | [features/field-types.md](features/field-types.md) (currency) | |
| 55 | +| `enum-*`, `error-enum-*` | [features/field-types.md](features/field-types.md) (enum) | |
| 56 | +| `source-rdb-*`, `source-db-table-*`, `source-db-view-*`, `source-multi-source-*`, `error-source-*` | [features/source-kinds.md](features/source-kinds.md) | |
| 57 | +| `relationship-*`, `error-unknown-relationship-*` | [features/relationships.md](features/relationships.md) | |
| 58 | +| `template-*`, `error-template-*` | [features/templates-and-payloads.md](features/templates-and-payloads.md) | |
| 59 | +| `origin-*`, `error-origin-*` | [features/templates-and-payloads.md](features/templates-and-payloads.md) (payload origins) | |
| 60 | +| `smoke-empty-metadata` | [features/entities.md](features/entities.md) | |
| 61 | + |
| 62 | +### `fixtures/yaml-conformance/` (6) |
| 63 | + |
| 64 | +All 6 fixtures → [features/yaml-authoring.md](features/yaml-authoring.md). |
| 65 | + |
| 66 | +### `fixtures/render-conformance/` (4) |
| 67 | + |
| 68 | +All 4 fixtures → [features/templates-and-payloads.md](features/templates-and-payloads.md) |
| 69 | +(render engine output section). |
| 70 | + |
| 71 | +### `fixtures/verify-conformance/` (31) |
| 72 | + |
| 73 | +All 31 fixtures → [features/migrations-and-drift.md](features/migrations-and-drift.md) |
| 74 | +(template drift section — `Renderer.verify`). |
| 75 | + |
| 76 | +### `fixtures/persistence-conformance/` (12) |
| 77 | + |
| 78 | +- `migrations/*` (3) → [features/migrations-and-drift.md](features/migrations-and-drift.md) (schema migration section) |
| 79 | +- `queries/*` (9) → [features/source-kinds.md](features/source-kinds.md) (query semantics against `source.rdb`) |
| 80 | + |
| 81 | +## Orphaned fixtures (tested but not yet documented) |
| 82 | + |
| 83 | +All 138 fixtures across the 5 active corpora map to a feature doc. None are |
| 84 | +orphaned today. |
| 85 | + |
| 86 | +If you add a new fixture and don't see a clear home for it, either: |
| 87 | + |
| 88 | +1. Add a section to the closest matching feature doc and reference it from its |
| 89 | + `## Verified by` block, or |
| 90 | +2. Open an issue if the fixture exercises behavior the feature docs haven't yet |
| 91 | + described. |
| 92 | + |
| 93 | +## Orphaned docs (documented but no fixture coverage) |
| 94 | + |
| 95 | +None of the 8 feature docs lack fixture coverage. The closest case is the |
| 96 | +high-level overview material in each doc (e.g., the "Anatomy of an entity" |
| 97 | +explainer in `entities.md`) — these are pedagogical, not behavioral, and don't |
| 98 | +require pinning. |
| 99 | + |
| 100 | +## See also |
| 101 | + |
| 102 | +- [features/](features/) — the per-feature reference, each with its own `## Verified by` |
| 103 | +- [`spec/conformance-tests.md`](../spec/conformance-tests.md) — fixture format + canonical serializer contract |
| 104 | +- [`spec/cross-language-porting-guide.md`](../spec/cross-language-porting-guide.md) — how a new port wires up against the corpora |
| 105 | +- [`fixtures/conformance/ERROR-CODES.json`](../fixtures/conformance/ERROR-CODES.json) — the enumerated error codes every `error-*` fixture pins |
| 106 | +- [`docs/RELEASING.md`](RELEASING.md) — `scripts/integration-test.sh` runs `persistence-conformance` per port pre-release |
0 commit comments