Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
52 commits
Select commit Hold shift + click to select a range
521b1c1
fix(metadata): resolve bare root-level @objectRef in Java loader (#525)
dmealing Nov 2, 2026
27cfc4b
fix(migrate-ts): block unowned view column drops and restore SQLite d…
dmealing Nov 2, 2026
2049f5e
fix(metadata): exempt read-only @sql views from column-name collision…
dmealing Nov 4, 2026
37ca938
feat: enforce cross-field validators in every port's generated create…
dmealing Nov 4, 2026
61b2fa8
feat: load project provider classes in every port (#529)
dmealing Nov 4, 2026
b7a031a
fix: cross-field comparison rule across ports and C# concrete-parent …
dmealing Nov 4, 2026
d2fa0f7
Add the data layer for a model explorer: explorer.json and its three …
dmealing Nov 4, 2026
32cc7ff
Refuse two providers claiming one attribute name on a node type (#533)
dmealing Nov 4, 2026
dea6271
feat(docs-site): add model explorer as default docs site (#534)
dmealing Nov 4, 2026
342bd8c
feat(metadata): add field.duration, validator.exactlyOne and schema c…
dmealing Nov 5, 2026
3abacec
feat(java): Spring runtime loads the committed dependency snapshot; v…
dmealing Nov 5, 2026
f53b8f2
fix(codegen-ts): emit one Drizzle column per member for flattened val…
dmealing Nov 6, 2026
5a2ff16
feat: check shared model dependencies against publisher in Python and…
dmealing Nov 6, 2026
c1fcd34
fix(codegen-ts): derived flattened parent produces no flat member key…
dmealing Nov 6, 2026
0bfe483
feat: publish shared models from Java, Kotlin and C# projects (#540)
dmealing Nov 6, 2026
7c41344
feat(cli): add maven and nuget dependency transports to meta deps (#541)
dmealing Nov 6, 2026
617a5d8
docs: close out separate-repo model sharing (FR-023 Phase 2) (#542)
dmealing Nov 6, 2026
366782a
docs(agent-context): make the audit skill check that a gate blocks an…
dmealing Nov 11, 2026
52627cc
docs(agent-context): audit skill: enum-literal signature, status-guar…
dmealing Nov 11, 2026
9abd963
feat(codegen-ts): publish requirements in shared models and inherit t…
dmealing Nov 11, 2026
ea57ad0
feat: add exactlyOne validator, int-backed enum arrays and naming str…
dmealing Nov 11, 2026
b349337
feat(metadata): mark reserved vocabulary by implementing port (#555)
dmealing Nov 11, 2026
c75c30a
chore: release 1.3.0 across npm, PyPI, NuGet and Maven Central (#556)
dmealing Nov 12, 2026
a4c515e
feat(cli): loop-first agent context, universal requirements pages, in…
dmealing Nov 12, 2026
976427a
feat(metadata): add @collectionName and naming.collections pluralizer…
dmealing Nov 12, 2026
27ebe6b
fix(cli): fix large-app smoke-test defects in routes, migrate and ver…
dmealing Nov 12, 2026
c1a8da5
feat(metadata): walk identity.reference backwards in origin @via hops…
dmealing Nov 12, 2026
57a7c6f
fix(codegen-ts): keep reverse @via view columns and refuse value-obje…
dmealing Nov 12, 2026
8474465
feat(metadata): add relative dates and case expressions to view loade…
dmealing Nov 12, 2026
8ef0f03
feat: report sums over value-object members and derived measures (#563)
dmealing Nov 13, 2026
30b2897
fix(cli): stop installing the native Biome binary with every CLI inst…
dmealing Nov 13, 2026
b061181
feat(metadata): collectionName, origin @segment, and filter grammar a…
dmealing Nov 13, 2026
f8a1dc5
feat: bring every port to parity with the 1.3.0 codegen and migration…
dmealing Nov 13, 2026
b0987a5
feat: assistant-neutral agent context and per-language docs truth pas…
dmealing Nov 13, 2026
c3455eb
feat: fail verify on hand edits and add migrate.foreignKeyIndexes (1.…
dmealing Nov 13, 2026
dbd7e42
fix(codegen-ts): drop dprint-node from the CLI install (#579)
dmealing Nov 14, 2026
00b08dc
feat: page size, unknown-field 400s and validation issues in every po…
dmealing Nov 14, 2026
059563c
fix(migrate-ts): store long index names as Postgres keeps them in eve…
dmealing Nov 14, 2026
0cd1133
ci: mutate only the changed files in the gate's mutation step (#582)
dmealing Nov 14, 2026
88a5520
fix(codegen-ts): keep whole-model output whole and write the manifest…
dmealing Nov 15, 2026
8e52192
feat(codegen-ts): add CodeWriter and TsWriter layout foundation (ADR-…
dmealing Nov 15, 2026
624a54c
ci: run only the lanes a change affects in local CI and the validatio…
dmealing Nov 15, 2026
56a4d89
feat(codegen): uniform entity selection across ports and a linear Jav…
dmealing Nov 15, 2026
3514686
feat(codegen): skip generation when the model and generators are unch…
dmealing Nov 15, 2026
207d774
ci: diff-scope the pr-ci mutation gate and drop the local-ci java-fas…
dmealing Nov 16, 2026
da41be9
Merge origin/main (1.3.0 and later) into the 1.2.x release line
dmealing Nov 18, 2026
aa17da4
no-mistakes(review): apply reviewer inline fixes
dmealing Nov 18, 2026
d77e429
no-mistakes(review): apply reviewer inline fixes
dmealing Nov 18, 2026
ac8f7a0
no-mistakes(document): fix stale docs after 1.2.x/main merge
dmealing Nov 18, 2026
f2afe7c
fix: sync the adoption recipe mirrors with the flat-default wording; …
dmealing Nov 18, 2026
d416539
no-mistakes(document): fix stale 1.2.1 release target in contract docs
dmealing Nov 18, 2026
e7305b0
test(csharp): the property-naming golden finds its files from the rep…
dmealing Nov 18, 2026
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
2 changes: 1 addition & 1 deletion .claude/rules/codegen-architecture.md
Original file line number Diff line number Diff line change
Expand Up @@ -168,7 +168,7 @@ origins live on `object.projection` only.
Gated end-to-end by `fixtures/api-contract-conformance/projection/` (view-only)
and `.../write-through/` (table + replica view).

**Column and table naming** is `naming` in `.metaobjects/config.json` (ADR-0058), read by every port: `columns` `snake_case` (default) | `literal` | `kebab-case`, `tables` `snake_case` (default) | `literal`. Generators read it as `ctx.columnNamingStrategy` (set from the loaded root); `metaobjects.config.ts` no longer takes it.
**Column and table naming** is `naming` in `.metaobjects/config.json` (ADR-0058), read by every port: `columns` `snake_case` (default) | `literal` | `kebab-case` | `pascal` (upper-cases the first letter only) | a name the application registered (ADR-0058 Amendment 1), `tables` `snake_case` (default) | `literal`. Generators read it as `ctx.columnNamingStrategy` (set from the loaded root); `metaobjects.config.ts` no longer takes it.

### Currency (Project F)

Expand Down
2 changes: 1 addition & 1 deletion .claude/rules/cross-language-porting.md
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ Preserve the following contracts exactly across all language ports:
- Currency attrs: `@currency` (ISO 4217), `@locale` (BCP 47)
- Schema attrs: `@schema` on `source.rdb` (DB schema name; Postgres default `public`, SQLite rejects non-default values)
- Storage attrs: `@storage` on `field.object` (with `@objectRef`) — values `flattened` / `jsonb` / `subdocument`. Unifies "owned types" (flattened storage) and "structured JSONB" (jsonb storage). Defaults to single-jsonb-column when absent (back-compat).
- Enum: `field.enum` is a first-class field subtype (peer of `currency`), string-backed. Required `@values` string-array attr (member symbols). Members must be a non-empty set, each matching `^[A-Za-z_][A-Za-z0-9_]*$`, no duplicates — every port's loader enforces this (own-only) emitting `ERR_BAD_ATTR_VALUE` (missing `@values` → `ERR_MISSING_REQUIRED_ATTR`). Reuse via abstract `field.enum` + `extends`. Codegen: TS union + `z.enum`, C# `enum` + EF `HasConversion<string>()`, DB `varchar` + `CHECK`. **Int-backed storage shipped** (`@intValueMap`, a `{memberSymbol: int}` map, switches the column to `integer` + int `CHECK` while the wire format, the generated type and every runtime value stay the member SYMBOL; a MAP rather than a positional array so reordering `@values` cannot silently re-map every member; `@isArray` + `@intValueMap` is a LOAD ERROR, and an unmapped stored integer THROWS in all five ports). Display labels and native PG enum remain deferred (see `docs/superpowers/specs/2026-05-23-enum-datatype-design.md`).
- Enum: `field.enum` is a first-class field subtype (peer of `currency`), string-backed. Required `@values` string-array attr (member symbols). Members must be a non-empty set, each matching `^[A-Za-z_][A-Za-z0-9_]*$`, no duplicates — every port's loader enforces this (own-only) emitting `ERR_BAD_ATTR_VALUE` (missing `@values` → `ERR_MISSING_REQUIRED_ATTR`). Reuse via abstract `field.enum` + `extends`. Codegen: TS union + `z.enum`, C# `enum` + EF `HasConversion<string>()`, DB `varchar` + `CHECK`. **Int-backed storage shipped** (`@intValueMap`, a `{memberSymbol: int}` map, switches the column to `integer` + int `CHECK` while the wire format, the generated type and every runtime value stay the member SYMBOL; a MAP rather than a positional array so reordering `@values` cannot silently re-map every member; an int-backed enum array loads in every port and stores each element as its declared integer — TypeScript and C# persist it on every engine, Python on Postgres only, Java's OMDB refuses it at the codec, and Kotlin's Exposed generator emits no enum array column yet; an unmapped stored integer THROWS in all five ports). Display labels and native PG enum remain deferred (see `docs/superpowers/specs/2026-05-23-enum-datatype-design.md`).
- Documentation common attrs (any node): `description`, `title`, `notes`, `deprecated`, `replacedBy`, `seeAlso`, `aliases`. Registered via the cross-language `commonAttrs` registry hook (`registerCommonAttrs` / `RegisterCommonAttrs` / `register_common_attrs` / Java `MetaDataRegistry.registerCommonAttribute` — wired in all four ports). `notes` is the internal-only rationale slot — never emitted to user-facing doc-gen (JSDoc / XML-doc / Postgres `COMMENT ON` / Mermaid prose). **The `description` / `notes` split is by CONTENT KIND, not audience** — an audience split invites writing the same content twice at two levels of politeness. `description` states what the element IS and COVERS (scope and boundary, derivable from the model); `notes` states what you had to look OUTSIDE the model to learn (evidence, citations, what breaks if it changes). Mechanical test: a sentence belongs in `notes` exactly when it would have to change because the IMPLEMENTATION changed while the model did not. `title` is a noun phrase, `summary` a one-line sentence. TS doc-gen ships all three tiers; C# ships XML-doc + COMMENT ON. See `docs/superpowers/specs/2026-05-24-documentation-provider-design.md`.

**Wire format:**
Expand Down
13 changes: 13 additions & 0 deletions .github/workflows/integration-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,10 @@ jobs:
POSTGRES_DB: metaobjects_test
ports:
- 5432:5432
# The data directory (the image's VOLUME) on a size-capped tmpfs: a throwaway database
# never touches the runner's drives.
options: >-
--tmpfs /var/lib/postgresql/data:rw,size=2g
--health-cmd "pg_isready -U metaobjects -d metaobjects_test"
--health-interval 10s
--health-timeout 5s
Expand All @@ -75,6 +78,16 @@ jobs:
- uses: actions/checkout@v4
with:
persist-credentials: false
- name: Postgres durability off (a throwaway database)
# A service container takes no server flags, so set them on the running server. Its data
# directory is already a tmpfs (options above); nothing in it needs to survive a crash.
run: >-
docker exec ${{ job.services.postgres.id }}
psql -U metaobjects -d metaobjects_test
-c "ALTER SYSTEM SET fsync = off"
-c "ALTER SYSTEM SET synchronous_commit = off"
-c "ALTER SYSTEM SET full_page_writes = off"
-c "SELECT pg_reload_conf()"

- name: Set up Bun (TS lanes)
if: matrix.lane == 'ts-slow' || matrix.lane == 'cube'
Expand Down
91 changes: 66 additions & 25 deletions .github/workflows/local-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,15 +16,16 @@
# success — which RE-RUNS the stale lane instead of merely reporting it stale.
# That needs `actions: read` below to see its own history.
#
# The ts and java ports are each split into parallel jobs — a FAST lane (the
# quick pure-code correctness signal: ts-fast = build+typecheck/conformance/
# completeness, java-fast = java+kotlin conformance), a UNIT lane for ts (ts-unit =
# the full per-package suites — metadata/render/runtime-ts + client/web — that
# ts-fast's named-file conformance gate leaves ungated), and a SLOW lane (docker
# integration + heavy build: ts-slow, java-slow = reactor + integration). The
# split surfaces the verdict fast and means a cancel/OOM/flake mid-integration no
# longer kills the fast signal. `detect` emits the umbrella token (`ts` / `java`);
# all of that port's jobs gate on it.
# The ts port is split into parallel jobs — a FAST lane (the quick pure-code
# correctness signal: ts-fast = build+typecheck/conformance/completeness), a UNIT
# lane (ts-unit = the full per-package suites — metadata/render/runtime-ts +
# client/web — that ts-fast's named-file conformance gate leaves ungated), and a
# SLOW lane (docker integration: ts-slow). The split surfaces the verdict fast and
# means a cancel/OOM/flake mid-integration no longer kills the fast signal. The java
# port is ONE job, java-slow = the full reactor with tests on (which already runs
# every java and kotlin conformance class) + docker integration: a separate
# conformance-only job would run those same classes a second time. `detect` emits
# the umbrella token (`ts` / `java`); all of that port's jobs gate on it.
#
# Integration-running jobs (ts-slow, python, csharp, java-slow) share a Postgres
# SIDECAR instead of each test booting its own Testcontainers Postgres per
Expand Down Expand Up @@ -147,7 +148,10 @@ jobs:
POSTGRES_DB: metaobjects_test
ports:
- 5432 # dynamic host port — no fixed-port collision
# The data directory (the image's VOLUME) on a size-capped tmpfs: a throwaway database
# never touches the runner's drives.
options: >-
--tmpfs /var/lib/postgresql/data:rw,size=2g
--health-cmd "pg_isready -U metaobjects -d metaobjects_test"
--health-interval 10s
--health-timeout 5s
Expand All @@ -156,6 +160,16 @@ jobs:
- uses: actions/checkout@v4
with:
persist-credentials: false
- name: Postgres durability off (a throwaway database)
# A service container takes no server flags, so set them on the running server. Its data
# directory is already a tmpfs (options above); nothing in it needs to survive a crash.
run: >-
docker exec ${{ job.services.postgres.id }}
psql -U metaobjects -d metaobjects_test
-c "ALTER SYSTEM SET fsync = off"
-c "ALTER SYSTEM SET synchronous_commit = off"
-c "ALTER SYSTEM SET full_page_writes = off"
-c "SELECT pg_reload_conf()"
- env:
METAOBJECTS_TEST_PG_URL: postgres://metaobjects:metaobjects@localhost:${{ job.services.postgres.ports['5432'] }}/metaobjects_test
# Arms migrate-ts's real-Postgres suites (apply / lifecycle / rollback /
Expand All @@ -177,21 +191,9 @@ jobs:
RUNTIME_TS_PG_EXPECT: '1'
run: scripts/ci-local.sh --only ts-slow --strict-toolchains

# Java FAST lane — java + kotlin conformance only (the quick correctness signal).
# No docker/integration, so no sidecar.
java-fast:
needs: detect
if: contains(needs.detect.outputs.ports, 'java')
runs-on: [self-hosted, linux]
timeout-minutes: 25
steps:
- uses: actions/checkout@v4
with:
persist-credentials: false
- run: scripts/ci-local.sh --only java-fast --strict-toolchains

# Java SLOW lane — full reactor + docker integration (java + kotlin). Uses the
# shared Postgres sidecar so integration stops booting per-scenario containers.
# Java lane — full reactor with tests on (every java and kotlin conformance class
# lives in a reactor module, so it runs here) + docker integration (java + kotlin).
# Uses the shared Postgres sidecar so integration stops booting per-scenario containers.
java-slow:
needs: detect
if: contains(needs.detect.outputs.ports, 'java')
Expand All @@ -206,7 +208,10 @@ jobs:
POSTGRES_DB: metaobjects_test
ports:
- 5432
# The data directory (the image's VOLUME) on a size-capped tmpfs: a throwaway database
# never touches the runner's drives.
options: >-
--tmpfs /var/lib/postgresql/data:rw,size=2g
--health-cmd "pg_isready -U metaobjects -d metaobjects_test"
--health-interval 10s
--health-timeout 5s
Expand All @@ -215,6 +220,16 @@ jobs:
- uses: actions/checkout@v4
with:
persist-credentials: false
- name: Postgres durability off (a throwaway database)
# A service container takes no server flags, so set them on the running server. Its data
# directory is already a tmpfs (options above); nothing in it needs to survive a crash.
run: >-
docker exec ${{ job.services.postgres.id }}
psql -U metaobjects -d metaobjects_test
-c "ALTER SYSTEM SET fsync = off"
-c "ALTER SYSTEM SET synchronous_commit = off"
-c "ALTER SYSTEM SET full_page_writes = off"
-c "SELECT pg_reload_conf()"
- env:
METAOBJECTS_TEST_PG_URL: postgres://metaobjects:metaobjects@localhost:${{ job.services.postgres.ports['5432'] }}/metaobjects_test
run: scripts/ci-local.sh --only java-slow --strict-toolchains
Expand All @@ -233,7 +248,10 @@ jobs:
POSTGRES_DB: metaobjects_test
ports:
- 5432
# The data directory (the image's VOLUME) on a size-capped tmpfs: a throwaway database
# never touches the runner's drives.
options: >-
--tmpfs /var/lib/postgresql/data:rw,size=2g
--health-cmd "pg_isready -U metaobjects -d metaobjects_test"
--health-interval 10s
--health-timeout 5s
Expand All @@ -242,6 +260,16 @@ jobs:
- uses: actions/checkout@v4
with:
persist-credentials: false
- name: Postgres durability off (a throwaway database)
# A service container takes no server flags, so set them on the running server. Its data
# directory is already a tmpfs (options above); nothing in it needs to survive a crash.
run: >-
docker exec ${{ job.services.postgres.id }}
psql -U metaobjects -d metaobjects_test
-c "ALTER SYSTEM SET fsync = off"
-c "ALTER SYSTEM SET synchronous_commit = off"
-c "ALTER SYSTEM SET full_page_writes = off"
-c "SELECT pg_reload_conf()"
- env:
METAOBJECTS_TEST_PG_URL: postgres://metaobjects:metaobjects@localhost:${{ job.services.postgres.ports['5432'] }}/metaobjects_test
run: scripts/ci-local.sh --only python --strict-toolchains
Expand All @@ -260,7 +288,10 @@ jobs:
POSTGRES_DB: metaobjects_test
ports:
- 5432
# The data directory (the image's VOLUME) on a size-capped tmpfs: a throwaway database
# never touches the runner's drives.
options: >-
--tmpfs /var/lib/postgresql/data:rw,size=2g
--health-cmd "pg_isready -U metaobjects -d metaobjects_test"
--health-interval 10s
--health-timeout 5s
Expand All @@ -269,12 +300,22 @@ jobs:
- uses: actions/checkout@v4
with:
persist-credentials: false
- name: Postgres durability off (a throwaway database)
# A service container takes no server flags, so set them on the running server. Its data
# directory is already a tmpfs (options above); nothing in it needs to survive a crash.
run: >-
docker exec ${{ job.services.postgres.id }}
psql -U metaobjects -d metaobjects_test
-c "ALTER SYSTEM SET fsync = off"
-c "ALTER SYSTEM SET synchronous_commit = off"
-c "ALTER SYSTEM SET full_page_writes = off"
-c "SELECT pg_reload_conf()"
- env:
METAOBJECTS_TEST_PG_URL: postgres://metaobjects:metaobjects@localhost:${{ job.services.postgres.ports['5432'] }}/metaobjects_test
run: scripts/ci-local.sh --only csharp --strict-toolchains

notify:
needs: [detect, gates, ts-fast, ts-unit, ts-slow, java-fast, java-slow, python, csharp]
needs: [detect, gates, ts-fast, ts-unit, ts-slow, java-slow, python, csharp]
if: always() && contains(needs.*.result, 'failure')
runs-on: [self-hosted, linux]
steps:
Expand Down
6 changes: 4 additions & 2 deletions .github/workflows/pr-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,9 @@ name: pr-ci
# WHICH PORTS: `detect` maps the PR's changed paths to ports with
# scripts/ci-affected-ports.sh, the same mapper local-ci.yml uses. A change under a
# port's directory selects that port; a change to fixtures/, spec/, scripts/, .github/,
# agent-context/ or anything unrecognised selects ALL ports (the mapper fails open); a
# docs-only change selects none and runs only the offline `gates` lane.
# agent-context/, docs/ or anything unrecognised selects ALL ports (the mapper fails
# open); only the root prose files (README.md, CHANGELOG.md, CONTRIBUTING.md,
# AGENTS.md, CLAUDE.md) select none and run only the offline `gates` lane.
#
# WHAT RUNS PER PORT: unit tests plus the conformance corpora, not the docker
# integration suites (integration-tests.yml owns those, on tags and on demand):
Expand Down Expand Up @@ -96,6 +97,7 @@ jobs:
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0 # the mutation gate needs a merge base with origin/$GITHUB_BASE_REF to diff-scope
persist-credentials: false
- uses: oven-sh/setup-bun@v2
with:
Expand Down
11 changes: 11 additions & 0 deletions .nm-triage-nonprod
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
# Paths that no-mistakes triage counts as non-production (one glob per line).
# Conformance corpora and other test fixtures: data, gated by every port's runner.
fixtures/**
# The metamodel spec and the copies generated from it into each port.
spec/metamodel/*.json
server/csharp/MetaObjects/SpecMetamodel/*.json
server/python/src/metaobjects/spec_metamodel/*.json
server/typescript/packages/metadata/src/**/*.embedded.ts
# The generated reference site and showcase payload.
site-reference/**
examples/showcase/site-payload.json
Loading
Loading