Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
25 commits
Select commit Hold shift + click to select a range
28f461c
feat: move reporting and requirements into their own provider packs; …
dmealing Nov 21, 2026
113703d
fix(rules): compare P3 permission names exactly, so '::' and '.' are …
dmealing Nov 21, 2026
6e3d6cf
docs(changelog): drop a leftover rebase marker
dmealing Nov 21, 2026
50d14e1
no-mistakes(review): apply reviewer inline fixes
dmealing Nov 21, 2026
f3226cd
no-mistakes(test): Wrap two rustfmt-flagged lines in Rust registry an…
dmealing Nov 21, 2026
36ee0a6
no-mistakes(document): sync docs with packs, render errors, P3
dmealing Nov 21, 2026
e6e35d9
no-mistakes(document): point pack docs at vocabulary owner
dmealing Nov 21, 2026
60741f4
feat: move reporting and requirements into their own provider packs; …
dmealing Nov 21, 2026
9384916
fix(rules): compare P3 permission names exactly, so '::' and '.' are …
dmealing Nov 21, 2026
2822a9b
no-mistakes(review): apply reviewer inline fixes
dmealing Nov 21, 2026
0712736
no-mistakes(test): Wrap two rustfmt-flagged lines in Rust registry an…
dmealing Nov 21, 2026
997e403
no-mistakes(document): sync docs with packs, render errors, P3
dmealing Nov 21, 2026
9f55a84
no-mistakes(document): point pack docs at vocabulary owner
dmealing Nov 21, 2026
57831cf
feat(rust): raise ERR_VAR_NOT_ON_PAYLOAD in the Rust renderer
dmealing Nov 21, 2026
1af8904
docs(conformance): recount render and Jinja cases after rebasing onto…
dmealing Nov 21, 2026
1f17780
merge: keep the first run's pushed history (e6e35d974) under the reba…
dmealing Nov 22, 2026
19dc25d
fix(render): check missing variables with the reference's whole-path …
dmealing Nov 22, 2026
ab3ed92
Merge remote-tracking branch 'origin/main' into fm/mo-130-reporting-r…
dmealing Nov 23, 2026
4ca898b
fix(render): treat 0 as falsy in Python sections and the C# check pas…
dmealing Nov 24, 2026
05a1eda
no-mistakes(review): Pin render parity with shared fixtures
dmealing Nov 24, 2026
b01e77e
no-mistakes(review): apply reviewer inline fixes
dmealing Nov 24, 2026
abd6a11
no-mistakes(test): apply changes made during test validation
dmealing Nov 24, 2026
67177db
no-mistakes(review): apply reviewer inline fixes
dmealing Nov 25, 2026
193c15f
no-mistakes(review): Exempt only folded base attrs from Rust ownershi…
dmealing Nov 25, 2026
f8bae36
no-mistakes(document): Docs: Rust ledger, render parity, pack counts
dmealing Nov 25, 2026
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions AGENTS.md
Original file line number Diff line number Diff line change
Expand Up @@ -74,8 +74,8 @@ PyPI has had no product change since `0.25.0` — nothing is broken.
- **Kotlin** — `codegen-kotlin` (KotlinPoet on JVM): entity + Exposed table + Spring controller + payload + relations + filter allowlist + validator + stored-proc + output-parser generators. `integration-tests-kotlin` runs the persistence-conformance corpus through Exposed against Testcontainers Postgres.

**Cross-port conformance corpora** (every port runs the shared corpus):
- Metamodel: `fixtures/conformance/` (578 fixtures; 46 shared corpora in total — per-corpus counts + the corpus x port matrix live in `docs/CONFORMANCE.md`). TS / C# / Java / Python all green.
- Render: `fixtures/render-conformance/`. TS / C# / Java / Kotlin / Python byte-identical.
- Metamodel: `fixtures/conformance/` (584 fixtures; 46 shared corpora in total — per-corpus counts + the corpus x port matrix live in `docs/CONFORMANCE.md`). TS / C# / Java / Python all green.
- Render: `fixtures/render-conformance/`. TS / Java / Kotlin / Python byte-identical; C# and Rust each carry a `KnownDrift` render ledger, recorded in `docs/CONFORMANCE.md`.
- Persistence: `fixtures/persistence-conformance/`. **Query** scenarios run on every port (TS / C# / Java / Kotlin / Python; `op: guardedUpdate` is TS-only until each port's 1.3.0 guarded update lands), each provisioning its test DB by executing the committed, TS-produced `canonical/schema.postgres.sql` (Postgres only — Derby dropped for the cross-port query corpus, ADR-0015; the FR-044 `report-*` scenarios also run on SQLite, MySQL and D1 where a port has the engine, see [docs/CONFORMANCE.md](docs/CONFORMANCE.md)). The **migration** scenarios are exercised by **TS only** (TS owns schema migrations). **The corpus now gates WRITES, not just reads (SP-H):** an `op: roundtrip` scenario type INSERTs through each port's runtime/ORM write codec (NOT raw SQL), reads the row back, and asserts the wire-normalized value. The `AllTypes` entity (`roundtrip-all-types.yaml`) carries one field of **every** persistable `field.*` subtype — string/int/long/double/float/decimal/boolean/date/time/timestamp(+tz)/currency/enum/uuid/object — plus an **array-of-VO** `field.object @isArray @storage:jsonb` column (`labels`, written as 2-element / empty-`[]` / single-element arrays across the three rows) — so every subtype write+read (incl. the array-of-value-object jsonb codec) round-trips through every port against Testcontainers PG. (`field.byte`/`field.short`/`field.class` were cut as non-functional registration-only stubs — the matrix tracks only genuinely-supported subtypes; see `fixtures/registry-conformance/README.md` → "Per-subtype write-round-trip matrix".)
- API-contract: `fixtures/api-contract-conformance/`. TS / C# / Java / Kotlin / Python all green — each port runs **two lanes**: a hand-rolled reference server AND its **generated** API artifact booted over HTTP (the deployed controller/routes; TS+C# full-stack vs Testcontainers PG, Java/Kotlin/Python generated controller + in-memory repo behind the consumer seam). The generated fan-out found 10 real deployment bugs golden snapshots missed. Three sub-corpora run the **generated lane only, on all five ports** — `write-through/`, `projection/` (F22: a view-only `object.projection` serves GET list + GET by id and answers every write verb with `405 {"error": "method_not_allowed"}`) and `report/` (FR-044: a view-backed `object.report` serves GET list, answers `POST` with that same `405`, and mounts no `/{id}` route). That is deliberate, not a gap: what is under test is whether a port's GENERATOR emits those routes, and a hand-rolled reference server would answer every scenario by construction. The `m2m/` sub-corpus also gates **TPH x M:N together** (base-declared, subtype-declared, abstract-mid-declared, a non-subtype source onto a subtype TARGET, and the cross-subtype source id answering `200 []`) — the two corpora were originally built disjoint (`tph/` had no relationships, `m2m/` no discriminators), which is precisely how that defect class survived.
- YAML / verify corpora green across the ports that ship those layers.
Expand Down
31 changes: 31 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -395,6 +395,37 @@ here.**
included every filterable text field, and an int-backed (`@intValueMap`) enum is an integer
column, so Postgres refused the ILIKE. Search now covers only fields whose operator band
includes `like`.
- **Reporting and requirements are vocabulary packs, out of core.** The reporting vocabulary
(`object.report`, `dimension.*`, `measure.*` including `measure.derived` and its `@expr`,
`segment.filter`, the entity's dimension, measure and segment children and `@segment` on
`origin.aggregate` and `origin.first`) is now registered by its own provider,
`metaobjects-reporting`. The requirements vocabulary (`requirement.functional`,
`requirement.architectural` and the root's `requirement.*` child) is registered by
`metaobjects-requirements`. Both are in the default bundle of every port, so a model that loads
today loads and generates the same. An embedder can leave either out, and a model that then uses
its types gets a loader error naming the unknown type or subtype (new fixtures
`error-packs-left-out-*-used`). The `verify` requirements gate reads the nodes the pack
registered: with the pack left out, a model with no requirements gets a silent ledger. The core
vocabulary pin loses these types and attributes, and the registry manifest changes in one row:
the root's `requirement` child rule now states `min: 0, max: null`, as `api` did when the rules
pack moved out. A subtype a pack declares with `extendsBase` may now fold a base another provider
registered (`object.report` folds `object.base`); those folded attributes stay owned by the base's
provider. GOVERNANCE.md now says an attribute promoted from a pack into core keeps its name and
meaning.
- **A template that names a variable the payload lacks fails to render, in every render path.**
Mustache and Jinja raise `render verify failed: ERR_VAR_NOT_ON_PAYLOAD (<name>)` for a missing
variable or dotted path, where they used to render it empty. A variable that is present and null
still renders empty. The Rust `metaobjects-render` crate raises it too, so all six renderers
agree. Render fixtures may now carry `expected-error.txt` in place of `expected.txt`.
- **Business rules: two operations or transitions whose permission names come out equal are
refused (rule P3).** A permission name is the declared `@permission`, or else the derived
`<package>.<path>`, compared exactly as the policy receives it, so `p::Order.open` and
`p.Order.open` are two names. When two permission points resolve to
the same name and at least one of the two names is derived, the loader reports
`ERR_TRANSITION_NAME_COLLISION` on the later one. Two equal declared names stay legal: that is a
shared permission. New fixtures `error-rules-permission-name-op-{dotted,declared}` and
`rules-permission-name-package-separator-distinct`. Java now accepts dotted operation names
(`Order.open`), as TypeScript, C# and Python already did.
- **Python: a primitive array persists on SQLite and MySQL.** The `ObjectManagerDb`'s SQLite and
MySQL dialects bound no list, so an `isArray` string, number, date, uuid or enum field could not be
written there. The column the TypeScript-owned schema gives it (`TEXT` on SQLite, `JSON` on MySQL)
Expand Down
3 changes: 3 additions & 0 deletions GOVERNANCE.md
Original file line number Diff line number Diff line change
Expand Up @@ -113,6 +113,9 @@ MetaObjects, in the way the [`library/`](library/) entries do (see
what belongs in the project at all is set out in "What belongs in MetaObjects" in
[docs/features/libraries.md](docs/features/libraries.md). Moving vocabulary into core is a
model-format change, so it needs a core maintainer (above).
- **An attribute promoted from a pack into core keeps its name and meaning.** Promotion moves
which provider registers the attribute. It does not rename it or change what it does, so a
model that used the attribute under the pack loads and behaves the same once core owns it.

### Releases

Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -171,7 +171,7 @@ first-week wedge plan — and `meta init` picks up from there.
| Kotlin | **Maven Central `8.2.0`** — codegen tier on top of Java: 17 generators (entity, Exposed table, names, relations, repository, output-parser, output-prompt, render-helper, extractor, filter-allowlist, validator, Spring config, storedProc, Spring controller, requirement-tests, api-docs, report-export); 24 / 24 persistence-conformance | [`docs/ports/kotlin.md`](docs/ports/kotlin.md) | [`server/java/codegen-kotlin/`](server/java/codegen-kotlin/) · [`server/java/metadata-ktx/`](server/java/metadata-ktx/) |
| C# | **NuGet `1.2.0`** — loader + conformance + EF Core codegen + render engine + `dotnet meta` CLI all shipped | [`docs/ports/csharp.md`](docs/ports/csharp.md) | [`server/csharp/`](server/csharp/) |
| Python | **PyPI `1.2.0`** — loader + conformance + render + entity-model codegen + ObjectManager runtime shipped; schema migrations are TS-owned (ADR-0015) | [`docs/ports/python.md`](docs/ports/python.md) | [`server/python/`](server/python/) |
| Rust | **Crates ready to publish, not yet published** — loader (JSON + YAML), project and source resolution, naming and all 41 validation passes; 578 / 578 metamodel conformance; prompt render and the reply parser (`metaobjects-render`); `cargo meta init` / `gen` / `verify` / `eject` with the `entity`, `client` and `commands` generators (ADR-0065). Schema migrations stay with the Node `meta` tool | [`docs/ports/rust.md`](docs/ports/rust.md) | [`server/rust/`](server/rust/) |
| Rust | **Crates ready to publish, not yet published** — loader (JSON + YAML), project and source resolution, naming and all 41 validation passes; 584 / 584 metamodel conformance; prompt render and the reply parser (`metaobjects-render`); `cargo meta init` / `gen` / `verify` / `eject` with the `entity`, `client` and `commands` generators (ADR-0065). Schema migrations stay with the Node `meta` tool | [`docs/ports/rust.md`](docs/ports/rust.md) | [`server/rust/`](server/rust/) |

## Capability matrix

Expand Down
Loading
Loading