Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
35 commits
Select commit Hold shift + click to select a range
783ac21
fix(python): pass only validated input to the repository in generated…
dmealing Nov 13, 2026
dbd3ba0
fix(codegen): generated routes drop server-owned and undeclared input…
dmealing Nov 13, 2026
fc9145a
feat(codegen): a validation 400 lists every issue in every port
dmealing Nov 13, 2026
0571646
feat(api): a page size for generated list routes, api.pagination (Typ…
dmealing Nov 13, 2026
84d8887
feat(api): api.pagination in every port, and api.unknownFields (rejec…
dmealing Nov 13, 2026
816a3de
Merge remote-tracking branch 'origin/main' into fm/mo-py-input-fix-main
dmealing Nov 13, 2026
e0b45d0
chore(showcase): regenerate for api.unknownFields
dmealing Nov 13, 2026
3f33375
fix(api): code-point order for unknown_fields, every distinct validat…
dmealing Nov 13, 2026
2ce50b8
Merge remote-tracking branch 'origin/main' into fm/mo-py-input-fix-main
dmealing Nov 13, 2026
b2be4d2
fix: generated create routes drop server-owned input across ports (1.…
dmealing Nov 13, 2026
ce2cee6
fix(cli): prune emptied skill directories after a --skills-dir move; …
dmealing Nov 13, 2026
871549b
test(render): hold the email helper in the runtime-drift corpus case
dmealing Nov 13, 2026
e4a7b3b
Merge origin/release/1.2 (1.2.x create-input security fix) into the 1…
dmealing Nov 13, 2026
ec01e09
feat(init): dotnet meta init and metaobjects init write the api block…
dmealing Nov 13, 2026
47ee95a
Merge remote-tracking branch 'origin/main' into fm/mo-py-input-fix-main
dmealing Nov 14, 2026
073d2cd
feat(init): dotnet meta init and metaobjects init also write migrate.…
dmealing Nov 14, 2026
795a273
feat(api): drop undeclared value-object members everywhere and share …
dmealing Nov 14, 2026
5dc5214
fix(api): close the code-review findings on the input and page-size work
dmealing Nov 14, 2026
eca2e7b
refactor: read the project config once in the Maven mojo; drop a no-o…
dmealing Nov 14, 2026
7e60564
no-mistakes(review): Scope ignoreUnknown to request bodies; fix revie…
dmealing Nov 14, 2026
78d2800
no-mistakes(review): Drop discriminator on Python TPH update; fix sce…
dmealing Nov 14, 2026
2ff438b
no-mistakes(review): apply reviewer inline fixes
dmealing Nov 14, 2026
466d81a
no-mistakes(review): Fix doc counts, dead guard, stale comments, vacu…
dmealing Nov 14, 2026
872bb7f
no-mistakes(review): apply reviewer inline fixes
dmealing Nov 14, 2026
e9f7957
no-mistakes(review): Fix stale routes comment in C# api-settings factory
dmealing Nov 14, 2026
eee6e50
no-mistakes(review): Fix stale eject docs, vacuous C# check, assertio…
dmealing Nov 14, 2026
e584b1b
no-mistakes(review): Refuse non-numeric C# page bounds with 400
dmealing Nov 14, 2026
d0da111
no-mistakes(review): Refuse out-of-range or negative C# offset
dmealing Nov 14, 2026
e55bd61
no-mistakes(review): Drop source-grepping Python router tests
dmealing Nov 14, 2026
14c8c0e
no-mistakes(review): apply reviewer inline fixes
dmealing Nov 14, 2026
62faf02
test(ts): re-sync the owned zod-validators copy after the pkFields re…
dmealing Nov 14, 2026
b74d347
no-mistakes(test): Validate re-synced zod-validators owned copy
dmealing Nov 14, 2026
1dfe213
no-mistakes(test): apply changes made during test validation
dmealing Nov 14, 2026
824fc83
no-mistakes(document): Correct init config docs for C# and Python
dmealing Nov 14, 2026
2f1c50d
test(kotlin): expect table-qualified columns in the TPH create autoSe…
dmealing Nov 14, 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
  •  
  •  
  •  
176 changes: 173 additions & 3 deletions CHANGELOG.md

Large diffs are not rendered by default.

8 changes: 5 additions & 3 deletions agent-context/templates/always-on.md.mustache
Original file line number Diff line number Diff line change
Expand Up @@ -47,9 +47,11 @@ When the project serves the generated routes (any port):
(case-sensitive, `%` and `_`), `gt`, `gte`, `lt`, `lte`. Filters AND; only `@filterable`
fields filter.
- `?sort=<field>:asc|desc`, `?limit=N&offset=N`; `withCount=1` returns `{"rows", "total"}`.
Always send `limit`: without it TypeScript and C# return every row, the other ports 50.
- `PUT` is the same partial update as `PATCH`.
- Errors are `{"error": "<code>"}`: 400 for validation (only TypeScript adds `issues`) and for
Always send `limit`: without it the project's `api.pagination.defaultLimit` applies, or with
none set TypeScript and C# return every row, the other ports 50; above `maxLimit` is 400.
- `PUT` is the same partial update as `PATCH`. Send only declared fields: an undeclared key is
400 `unknown_fields` (unless `api.unknownFields` is `drop`).
- Errors are `{"error": "<code>"}`: 400 for validation (`issues` lists each problem) and for
a bad filter or sort (`invalid_filter_field`, `_op`, `_value`, `invalid_sort`, each naming
`field`), 404 `not_found`, 409 for a unique or foreign-key conflict.

Expand Down
24 changes: 15 additions & 9 deletions docs/CONFORMANCE.md
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ regenerate with `ls -d fixtures/<corpus>/*/ | wc -l` for directory-shaped corpor
| [`fixtures/extract-conformance/`](../fixtures/extract-conformance/) | 58 | ✓ | ✓ | inherits the shared JVM engine | ✓ | ✓ |
| [`fixtures/output-prompt-conformance/`](../fixtures/output-prompt-conformance/) | 17 | ✓ | ✓ | ✓ | ✓ | ✓ |
| [`fixtures/persistence-conformance/`](../fixtures/persistence-conformance/) | 64 (55 query + 9 migration) | all 64; the 24 `report-*` and the `-15` decimal scenarios also on SQLite, MySQL and D1, `decimal-exact` also on MySQL (a scenario's `engines:` key is exact) | 55 query (migrations TS-only, ADR-0015); the `report-*` and `engines:` scenarios also on SQLite and MySQL | 55 query (via Exposed); the `report-*` and `engines:` scenarios also on SQLite and MySQL | 55 query; the `report-*` and `engines:` scenarios also on SQLite and MySQL | 55 query (pg8000); the `report-*` and `engines:` scenarios also on SQLite (`sqlite3`) and MySQL (PyMySQL) |
| [`fixtures/api-contract-conformance/`](../fixtures/api-contract-conformance/) | 123 (31 core + 10 tph + 9 m2m + 5 jsonb + 2 write-through + 2 secret-fields + 2 enum-default + 12 projection + 37 report + 11 decimal + 2 duration) | ✓ (Fastify reference + generated lane); `report/`, `decimal/` and `duration/` also on SQLite, MySQL and D1 | ✓ (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 |
| [`fixtures/api-contract-conformance/`](../fixtures/api-contract-conformance/) | 139 (34 core + 14 tph + 9 m2m + 6 jsonb + 2 write-through + 2 secret-fields + 2 enum-default + 12 projection + 37 report + 11 decimal + 2 duration + 8 api-settings) | ✓ (Fastify reference + generated lane); `report/`, `decimal/` and `duration/` also on SQLite, MySQL and D1 | ✓ (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 |
| [`fixtures/decimal-wire/`](../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`) |
| [`fixtures/duration-wire/`](../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) | ✓ | ✓ | ✓ | ✓ |
| [`fixtures/validation-conformance/`](../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`) |
Expand Down Expand Up @@ -442,9 +442,9 @@ REAL, a MySQL `DECIMAL` keeps its scale, a MySQL `DATETIME` is the UTC wall cloc
`report-relative-date` carries a per-engine seed (`seed-data-engine`). `op: relate` and the
write ops stay Postgres-only. See [features/reporting.md](features/reporting.md#what-the-corpus-gates).

### `fixtures/api-contract-conformance/` (119)
### `fixtures/api-contract-conformance/` (139)

All 119 scenarios → [features/api-contract.md](features/api-contract.md) (cross-port
All 139 scenarios → [features/api-contract.md](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`
Expand All @@ -454,18 +454,24 @@ 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 31 core
scenarios the corpus carries ten sub-corpora — `tph/` (10, single-table
inheritance; a subtype decimal filters and refuses extra digits), `m2m/` (9 — 3 plain, 5 gating TPH x M:N together, the combination
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 eleven 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/` (5, typed value-object columns; numbers inside them: a double stays a JSON number, a decimal is the canonical string),
`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/` (2, #484: a `@formExclude` or credential `view.password` field is ignored on create, PATCH and PUT, and a credential is never returned), `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) and `report/` (37,
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`) 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). All 5 ports — TS, Java,
Expand Down Expand Up @@ -725,7 +731,7 @@ JSON and verify payload feeds it unchanged.
## Orphaned fixtures (tested but not yet documented)

The fixtures in the nine corpora mapped above (metamodel 510 + yaml 16 + verify 45
+ render 18 + persistence 64 + api-contract 123 + source-resolution 25 + scope 10 +
+ render 18 + persistence 64 + api-contract 139 + source-resolution 25 + scope 10 +
dependency 47) each map to a feature doc, and so do the two requirement corpora, `shared-model-conformance`, the
`cube-model` corpus and `explorer-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
Expand Down
Loading
Loading