Skip to content

feat(codegen-base): add Java code writer and layout ratchet - #621

Merged
dmealing merged 2 commits into
mainfrom
fm/mo-130-lane-jvm
Nov 21, 2026
Merged

dmealing merged 2 commits into
mainfrom
fm/mo-130-lane-jvm

Conversation

@dmealing

@dmealing dmealing commented Nov 21, 2026 •

Copy link
Copy Markdown
Member

What Changed

  • Adds JavaWriter, a Java dialect of CodeWriter, in codegen-base (com.metaobjects.generator.writer). It collects imports while the body is written, skips java.lang and same-package types, prints static imports first, writes Javadoc through doc(...), and reports ERR_WRITER_IMPORT_CONFLICT and ERR_WRITER_UNKNOWN_PIECE. The dialect is specified in spec/code-writer.md.
  • Adds nine java cases to fixtures/writer-conformance, run by a new Java runner (WriterConformanceTest). The TypeScript runner now skips dialects other than core and typescript. A layout ratchet (LayoutRatchetTest, using the javac tree API) flags hand-typed newlines, indents and joins in Java generator source. Its allowlist of unconverted and exempt files may only shrink.
  • Adds SpringRestSurfaceGoldenTest, which compares the Spring controller, repository, names and report-export output for one input model byte for byte against committed expected files. The golden lets later conversions to the writer be checked against current output. No generator changes, so generated output is unchanged. The CHANGELOG.md 1.3.0 entry and docs/CONFORMANCE.md are updated to match.
Validation

Risk Assessment

✅ Low: The change is additive: a new writer, test-only analyzer and ratchet, golden files and docs. No shipped generator uses the writer, so generated output does not change. It matches the stated W-JV-1 and W-JV-2 scope, and I found no correctness defect in the writer, the nine shared cases, the golden test or the doc counts.

Testing

Baseline: the identical affected run (scripts/ci-local.sh --affected --strict-toolchains) printed LOCAL CI PASSED across ts (build, typecheck, conformance, unit), java-reactor (full mvn clean install with tests), python, csharp and rust. Exit status of that run was not captured, so the pass rests on that final line. Scenarios driven: (1) the Java writer renders the nine java dialect cases plus core cases byte-exact (WriterConformanceTest 40/40, JavaWriterTest 9/9), and the TS runner skips non-TS dialects (ts conformance pass); (2) the Spring controller, repository, names and report-export output matches the golden tree byte-for-byte (SpringRestSurfaceGoldenTest passes), and a one-character mutation of a golden file makes it fail on that file, then the file is restored; (3) the layout ratchet passes on the real tree (LayoutRatchetTest 24/24), and a probe generator file with a hand-typed "\n" outside the allowlist makes it fail naming the file, then the probe is deleted. Gates lane (scripts/ci-local.sh --only gates) passed on rerun with exit 0, and bun test scripts/site passed 168/168 directly after an earlier gates run ended silently. Full regression: all selected lanes of the affected run, plus the gates lane. Docker integration suites and the mutation pass were not run (out of affected scope). Worktree is clean; no background processes remain.

  • Live validation: ✅ go - 7 of 7 scenarios driven live against the product
Scenario Result Live Evidence
Java writer renders the shared writer-conformance cases byte-exact (nine java dialect cases plus core cases, run by WriterConformanceTest and JavaWriterTest in the Java reactor) ✅ pass live affected-run.log java-reactor (install) step passed; surefire reports TEST-com.metaobjects.generator.writer.WriterConformanceTest (40 tests, 0 failures) and JavaWriterTest (9 tests, 0 failures)
Spring REST surface (controller, repository, names, report export) regenerates byte-identical to the golden tree (intent W-JV-2) ✅ pass live mvn -o test -Dtest=SpringRestSurfaceGoldenTest in server/java/codegen-spring: baseline passes; surefire report SpringRestSurfaceGoldenTest 1 test, 0 failures
Adversarial: a one-character change to a golden expected file makes the golden test fail (the golden pin is not vacuous) ✅ pass live mvn output with CustomerNames.java expected mutated: Tests run 1, Failures 1, message names acme/shop/CustomerNames.java 'must be byte-identical'; file restored with git checkout, worktree clean
Adversarial: layout ratchet fails when a generator source outside the allowlist types a hand-typed newline (ADR-0063 enforcement) ✅ pass live mvn -o test -Dtest=LayoutRatchetTest in server/java/codegen-base with probe server/java/codegen-spring/.../AdversarialLayoutProbe.java containing "\n": 1 failure, message 'Write these lines through Ja…
Ratchet passes on the real tree (every hand-typed generator is allowlisted; allowlist only shrinks against merge base) ✅ pass live surefire TEST-...LayoutRatchetTest.xml 24 tests, 0 failures; affected-run.log java lane passed
Affected test command used by the gate (scripts/ci-local.sh --affected --strict-toolchains) passes on this change ✅ pass live affected-run.log ends with LOCAL CI PASSED; all lanes ts, java, python, csharp, rust green. Exit status not captured; pass is based on the final line. The gate's own failing run was not reproduced.
Lint-side gates (scripts/ci-local.sh --only gates) and site payload test pass ✅ pass live gates-run2.log: LOCAL CI PASSED, exit=0; site-test.log: 168 pass, 0 fail
Evidence: Affected CI run log (ci-local --affected --strict-toolchains, all lanes passed)

── affected-lane selection: 45 changed path(s) since origin/main (merge base 7fa4695fe09d)
  ts-fast ts-unit <- server/typescript/* (the TypeScript server port): server/typescript/packages/codegen-ts/test/writer-conformance.test.ts
  java-slow <- server/java/* (the Java and Kotlin ports (the reactor holds both conformance suites)): server/java/codegen-base/src/main/java/com/metaobjects/generator/writer/CodeWriter.java, server/java/codegen-base/src/main/java/com/metaobjects/generator/writer/Group.java, server/java/codegen-base/src/main/java/com/metaobjects/generator/writer/JavaWriter.java, server/java/codegen-base/src/main/java/com/metaobjects/generator/writer/WriterException.java, and 27 more
  ALL <- fixtures/* (shared corpora every port runs): fixtures/writer-conformance/cases/java-defaults.json, fixtures/writer-conformance/cases/java-doc-comment.json, fixtures/writer-conformance/cases/java-header-package-imports-body.json, fixtures/writer-conformance/cases/java-imports-collected-and-sorted.json, and 6 more
  ALL <- spec/* (the metamodel spec every port implements): spec/code-writer.md
  ALL <- docs/* (port tests read it: Java walks every page for <generators> blocks and reads docs/ports, TypeScript and Python read the recipes and docs/features pages, so a page edit is not prose-only): docs/CONFORMANCE.md
  NONE <- CHANGELOG.md (root prose, same gates): CHANGELOG.md
  selected: ts-fast ts-unit java-slow python csharp rust
  skipped:  (none)
  gates:    not part of this selection; run them with --only gates. Force every lane with MO_CI_FULL=1.
metaobjects local CI  (mode: affected lanes — only:ts-fast,ts-unit,java-slow,python,csharp,rust, no integration)

── the selected ports run as parallel lanes ──

── lanes (up to 8 at once; each lane's log prints when it finishes) ──
  ▸ lane java started
  ▸ lane python started
  ▸ lane csharp started
  ▸ lane rust started
  ▸ lane ts started

╔═════════════ lane: rust ═════════════

── ▶ conformance: rust ──────────────────────────────────────────────

running 53 tests

thread 'node::tests::a_frozen_tree_refuses_mutation' (3251038) panicked at metaobjects/src/node.rs:164:9:
cannot mutate a frozen metadata tree
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace
.....................................................
test result: ok. 53 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.03s


running 31 tests
...............................
test result: ok. 31 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.00s


running 3 tests
...
test result: ok. 3 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.01s


running 4 tests
....
test result: ok. 4 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.02s


running 13 tests
.............
test result: ok. 13 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.02s


running 1 test
metamodel corpus: 578 of 578 fixtures pass; 0 on the expected-failures ledger; 0 unlisted failures
.
test result: ok. 1 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 2.65s


running 7 tests
.......
test result: ok. 7 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.08s


running 9 tests
.........
test result: ok. 9 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.04s


running 3 tests
...
test result: ok. 3 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.05s


running 1 test
.
test result: ok. 1 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.05s


running 5 tests
.....
test result: ok. 5 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.04s


running 1 test
.
test result: ok. 1 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.01s


running 1 test
.
test result: ok. 1 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.00s


running 1 test
yaml corpus: 18 of 19 fixtures pass; 1 on the ledger
.
test result: ok. 1 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.13s


running 6 tests
......
test result: ok. 6 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.01s


running 0 tests

test result: ok. 0 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.00s


running 13 tests
.............
test result: ok. 13 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 3.21s


running 17 tests
.................
test result: ok. 17 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.04s


running 3 tests
...
test result: ok. 3 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 1.15s


running 5 tests
.....
test result: ok. 5 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 12.44s


running 14 tests
..............
test result: ok. 14 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.06s


running 6 tests
......
test result: ok. 6 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.01s


running 3 tests
...
test result: ok. 3 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.06s


running 10 tests
..........
test result: ok. 10 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.04s


running 12 tests
............
test result: ok. 12 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.43s


running 1 test
.
test result: ok. 1 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.05s


running 24 tests
........................
test result: ok. 24 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.23s


running 1 test
one copy: 90 files, 268548 bytes (budget 340000); longest file 316 lines (budget 500): fitness_cli/src/all_types.rs
20 copies: 1800 files, 5415480 bytes; gen 6.7s, cargo check 16.3s
.
test result: ok. 1 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 25.32s


running 3 tests
...
test result: ok. 3 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 3.27s


running 1 test
.
test result: ok. 1 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 4.85s


running 9 tests
.........
test result: ok. 9 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.01s


running 1 test
.
test result: ok. 1 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.00s


running 0 tests

test result: ok. 0 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.00s


running 0 tests

test result: ok. 0 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.00s


running 0 tests

test result: ok. 0 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.00s

model: 20 copies of the fitness model, 714 KiB of JSON, 7140 nodes
registry compose: 4.199563ms
load (parse, merge, extends, references), median of 15: 67.119606ms

load phase                    ms
json parse                 5.079
tree build                18.017
merge                      1.480
super resolution           0.404
validation                34.686
reference resolution       6.673
freeze                     0.082

validation pass                          ms
subtype rules                         0.536
max occurs                            1.674
identity passthrough                  0.078
data grid sort fields                 0.217
filterable has index                  0.663
extender subtype scope                0.005
filterable supported ops              0.320
sortable supported subtype            0.395
origin paths                          0.492
derived field providability           0.280
data grid filter values               0.109
projection filter                     0.006
origin segments and correlation       0.069
projection union and grain            0.003
derived cycles                        0.123
reporting                            10.147
rules            

... [3215986 bytes truncated] ...

 to run it
meta verify — running --codegen --templates (default). Explicit subverbs: --templates (prompt drift), --db/--dialect d1 (schema drift), --codegen (drift of everything `generators` declares, documentation included), --deps (dependency drift), --replay/--replay-snapshot (the committed migration chain replays from empty).
meta verify — codegen gate skipped: no metaobjects.config.ts found, so there is no generated output to diff against
meta: failed to load metadata: ERR_INVALID_TEMPLATE: template "Broken" @payloadRef "DoesNotExist" does not resolve to an object.value or sourceless object.projection at root
  in meta.ai.json at $['metadata.root'].children[0]['template.output']
meta verify — running --codegen --templates (default). Explicit subverbs: --templates (prompt drift), --db/--dialect d1 (schema drift), --codegen (drift of everything `generators` declares, documentation included), --deps (dependency drift), --replay/--replay-snapshot (the committed migration chain replays from empty).
meta verify — codegen gate skipped: no metaobjects.config.ts found, so there is no generated output to diff against
meta verify — 1 template(s) clean.
meta verify — not run: schema (--db <url>), codegen (--codegen), deps (--deps), replay (--replay) — a bare 'meta verify' runs the codegen and template gates (plus the requirement ledger); name each gate to run it
meta verify — running --codegen --templates (default). Explicit subverbs: --templates (prompt drift), --db/--dialect d1 (schema drift), --codegen (drift of everything `generators` declares, documentation included), --deps (dependency drift), --replay/--replay-snapshot (the committed migration chain replays from empty).
meta verify — codegen gate skipped: no metaobjects.config.ts found, so there is no generated output to diff against
meta: [Welcome] (email/html) ERR_VAR_NOT_ON_PAYLOAD: nonExistentField (prompts/e/html:1)
meta: meta verify — 1 drift error(s) across 1 template(s).
meta verify — not run: schema (--db <url>), codegen (--codegen), deps (--deps), replay (--replay) — a bare 'meta verify' runs the codegen and template gates (plus the requirement ledger); name each gate to run it
meta verify — running --codegen --templates (default). Explicit subverbs: --templates (prompt drift), --db/--dialect d1 (schema drift), --codegen (drift of everything `generators` declares, documentation included), --deps (dependency drift), --replay/--replay-snapshot (the committed migration chain replays from empty).
meta verify — codegen gate skipped: no metaobjects.config.ts found, so there is no generated output to diff against
meta verify — 1 template(s) clean.
meta verify — not run: schema (--db <url>), codegen (--codegen), deps (--deps), replay (--replay) — a bare 'meta verify' runs the codegen and template gates (plus the requirement ledger); name each gate to run it
meta verify — running --codegen --templates (default). Explicit subverbs: --templates (prompt drift), --db/--dialect d1 (schema drift), --codegen (drift of everything `generators` declares, documentation included), --deps (dependency drift), --replay/--replay-snapshot (the committed migration chain replays from empty).
meta verify — codegen gate skipped: no metaobjects.config.ts found, so there is no generated output to diff against
meta: [Doc] (document) ERR_VAR_NOT_ON_PAYLOAD: missingField (prompts/o/x:1)
meta: meta verify — 1 drift error(s) across 1 template(s).
meta verify — not run: schema (--db <url>), codegen (--codegen), deps (--deps), replay (--replay) — a bare 'meta verify' runs the codegen and template gates (plus the requirement ledger); name each gate to run it

 2145 pass
 12 skip
 0 fail
 1 snapshots, 9522 expect() calls
Ran 2157 tests across 223 files. [306.31s]
── ✓ conformance: typescript (7m19s)

── ▶ ts unit suites ──────────────────────────────────────────────
bun install v1.3.14 (0d9b296a)

Checked 573 installs across 598 packages (no changes) [63.00ms]
@metaobjectsdev/metadata build: Exited with code 0
@metaobjectsdev/runtime-web build: Exited with code 0
@metaobjectsdev/angular build: Exited with code 0
@metaobjectsdev/tanstack build: Exited with code 0
@metaobjectsdev/react build: Exited with code 0
@metaobjectsdev/sdk bundle-agent-context: bundled agent-context → {run-worktree}/server/typescript/packages/sdk/agent-context
@metaobjectsdev/sdk bundle-agent-context: Exited with code 0
bun test v1.3.14 (0d9b296a)

test/registry-coverage.test.ts:

[registry-coverage] subtypes: 79/87 exercised (90.8%), 8 UNTESTED
[registry-coverage] untested subtypes:
  attr.boolean
  attr.class
  attr.double
  attr.expression
  attr.filter
  attr.int
  attr.intMap
  attr.long
[registry-coverage] exercised subtypes with untested attrs: 30

 4447 pass
 0 fail
 12954 expect() calls
Ran 4447 tests across 201 files. [19.56s]
bun test v1.3.14 (0d9b296a)

 472 pass
 0 fail
 1747 expect() calls
Ran 472 tests across 25 files. [216.00ms]
bun test v1.3.14 (0d9b296a)

 1057 pass
 15 skip
 0 fail
 2751 expect() calls
Ran 1072 tests across 71 files. [6.48s]
bun test v1.3.14 (0d9b296a)

 163 pass
 0 fail
 724 expect() calls
Ran 163 tests across 30 files. [3.72s]
bun test v1.3.14 (0d9b296a)

 63 pass
 0 fail
 198 expect() calls
Ran 63 tests across 16 files. [1096.00ms]
bun test v1.3.14 (0d9b296a)

 26 pass
 0 fail
 99 expect() calls
Ran 26 tests across 4 files. [442.00ms]
bun test v1.3.14 (0d9b296a)

 498 pass
 0 fail
 1309 expect() calls
Ran 498 tests across 43 files. [993.00ms]
bun test v1.3.14 (0d9b296a)

 21 pass
 0 fail
 71 expect() calls
Ran 21 tests across 6 files. [75.00ms]
bun test v1.3.14 (0d9b296a)

 58 pass
 0 fail
 123 expect() calls
Ran 58 tests across 11 files. [185.00ms]
bun test v1.3.14 (0d9b296a)

 91 pass
 0 fail
 1 snapshots, 672 expect() calls
Ran 91 tests across 22 files. [1220.00ms]
bun test v1.3.14 (0d9b296a)

 109 pass
 0 fail
 198 expect() calls
Ran 109 tests across 9 files. [276.00ms]
bun test v1.3.14 (0d9b296a)

 21 pass
 0 fail
 38 expect() calls
Ran 21 tests across 4 files. [889.00ms]
bun test v1.3.14 (0d9b296a)

 49 pass
 0 fail
 76 expect() calls
Ran 49 tests across 6 files. [753.00ms]
bun test v1.3.14 (0d9b296a)

 21 pass
 0 fail
 35 expect() calls
Ran 21 tests across 4 files. [324.00ms]
bun test v1.3.14 (0d9b296a)

 122 pass
 0 fail
 579 expect() calls
Ran 122 tests across 9 files. [6.17s]
── ✓ ts unit suites (49s)

── ▶ completeness-gate (mutation, changed files) ──────────────────────────────────────────────

  ⊘ SKIP mutation: none of the 6 files in stryker.conf.mjs 'mutate' changed since origin/main (merge base 7fa4695fe09d).
    The full pass runs in the flagless run's mutation lane, in --only mutation, and in conformance.yml.
── ✓ completeness-gate (mutation, changed files) (0s)
╚═════════════ lane: ts — ✓ 8m56s ═════════════

══════════════════════ SUMMARY ══════════════════════
  ✓ java-reactor (install)  (5m36s)
  ✓ conformance: python  (4m15s)
  ✓ conformance: csharp  (2m55s)
  ✓ conformance: rust  (1m20s)
  ✓ ts build + typecheck  (48s)
  ✓ conformance: typescript  (7m19s)
  ✓ ts unit suites  (49s)
  ✓ completeness-gate (mutation, changed files)
── slowest steps ──
     7m19s  conformance: typescript
     5m36s  java-reactor (install)
     4m15s  conformance: python
     2m55s  conformance: csharp
     1m20s  conformance: rust
       49s  ts unit suites
       48s  ts build + typecheck
── lanes (wall time, ran 8 at once) ──
     8m56s  ts
     5m36s  java
     4m15s  python
     2m55s  csharp
     1m20s  rust
  total wall time: 8m57s
══════════════════════════════════════════════════════
LOCAL CI PASSED
  • Evidence: Gates lane log (second run, LOCAL CI PASSED)
Evidence: Site payload bun test log (168 pass)
bun test v1.3.14 (0d9b296a)

 168 pass
 0 fail
 683 expect() calls
Ran 168 tests across 15 files. [29.12s]
  • Outcome: ⚠️ 2 issues (1 error, 1 warning) across 1 run (1h3m5s)

Pipeline

Updates from git push no-mistakes

✅ **Intent** - passed

✅ No issues found.

✅ **Rebase** - passed

✅ No issues found.

⚠️ **Review** - 2 infos
  • ℹ️ server/java/codegen-base/src/main/java/com/metaobjects/generator/writer/CodeWriter.java:276 - The spec says every writer method is public or protected, never private. CodeWriter's class Javadoc also says 'nothing is final or private'. The code has private statics: CodeWriter.describe and JavaWriter.simpleName, plus private constants and Block.tail. An adopter subclass cannot reuse simpleName and cannot override describe. Make the two helpers protected, or soften the spec and Javadoc wording.
  • ℹ️ server/java/codegen-base/src/test/java/com/metaobjects/generator/writer/layout/LayoutRatchetTest.java:1 - LayoutRatchetTest reads generator source and asserts on its syntax tree. This is the source-reading test pattern the test-quality rule flags. The intent explicitly requires it: a ratchet that parses generator source with the javac tree API. ADR-0063 owns it as a lint contract, and the analyzer rules are tested on fixtures with executable assertions. No action needed. One gap: javac parse() diagnostics are not checked, so a generator file that fails to parse would be treated as clean.
⚠️ **Test** - 2 issues (1 error, 1 warning)
  • 🚨 configured test command failed with exit code 1
  • ⚠️ scripts/ci-local.sh - The gate's configured test command (scripts/ci-local.sh --affected --strict-toolchains) failed with exit 1 in the no-mistakes gate run, and base passed. The identical command passed in this worktree (LOCAL CI PASSED, every lane green), so the cause is unexplained. Possibilities: environment or concurrency on the gate host (the Java reactor runs mvn clean install, shared ~/.m2 jars), or a gate-side state difference such as origin refs used by the ratchet's the_allowlist_only_shrinks test. The gate-side log is needed to settle it. Recommend re-running the gate's test step once; if it fails again, capture its log and check the first failing lane.
  • Live validation: ✅ go - 7 of 7 scenarios driven live against the product
Scenario Result Live Evidence
Java writer renders the shared writer-conformance cases byte-exact (nine java dialect cases plus core cases, run by WriterConformanceTest and JavaWriterTest in the Java reactor) ✅ pass live affected-run.log java-reactor (install) step passed; surefire reports TEST-com.metaobjects.generator.writer.WriterConformanceTest (40 tests, 0 failures) and JavaWriterTest (9 tests, 0 failures)
Spring REST surface (controller, repository, names, report export) regenerates byte-identical to the golden tree (intent W-JV-2) ✅ pass live mvn -o test -Dtest=SpringRestSurfaceGoldenTest in server/java/codegen-spring: baseline passes; surefire report SpringRestSurfaceGoldenTest 1 test, 0 failures
Adversarial: a one-character change to a golden expected file makes the golden test fail (the golden pin is not vacuous) ✅ pass live mvn output with CustomerNames.java expected mutated: Tests run 1, Failures 1, message names acme/shop/CustomerNames.java 'must be byte-identical'; file restored with git checkout, worktree clean
Adversarial: layout ratchet fails when a generator source outside the allowlist types a hand-typed newline (ADR-0063 enforcement) ✅ pass live mvn -o test -Dtest=LayoutRatchetTest in server/java/codegen-base with probe server/java/codegen-spring/.../AdversarialLayoutProbe.java containing "\n": 1 failure, message 'Write these lines through Ja…
Ratchet passes on the real tree (every hand-typed generator is allowlisted; allowlist only shrinks against merge base) ✅ pass live surefire TEST-...LayoutRatchetTest.xml 24 tests, 0 failures; affected-run.log java lane passed
Affected test command used by the gate (scripts/ci-local.sh --affected --strict-toolchains) passes on this change ✅ pass live affected-run.log ends with LOCAL CI PASSED; all lanes ts, java, python, csharp, rust green. Exit status not captured; pass is based on the final line. The gate's own failing run was not reproduced.
Lint-side gates (scripts/ci-local.sh --only gates) and site payload test pass ✅ pass live gates-run2.log: LOCAL CI PASSED, exit=0; site-test.log: 168 pass, 0 fail
  • scripts/ci-local.sh --affected --strict-toolchains
  • scripts/ci-local.sh --affected --strict-toolchains (log: evidence affected-run.log; LOCAL CI PASSED, all lanes green)
  • scripts/ci-local.sh --only gates (run twice; second run exit=0, LOCAL CI PASSED)
  • bun test --timeout 60000 scripts/site (168 pass, 0 fail)
  • mvn -o test -Dtest=SpringRestSurfaceGoldenTest in server/java/codegen-spring (baseline pass; with CustomerNames.java expected file mutated: fails naming acme/shop/CustomerNames.java; file restored via git checkout)
  • mvn -o test -Dtest=LayoutRatchetTest in server/java/codegen-base with probe file server/java/codegen-spring/.../AdversarialLayoutProbe.java containing a hand-typed newline: fails on the probe file; probe deleted
  • surefire reports: JavaWriterTest 9/9, WriterConformanceTest 40/40, LayoutRatchetTest 24/24, SpringRestSurfaceGoldenTest 1/1 pass
⚠️ **Document** - 1 info
  • ℹ️ spec/decisions/ADR-0063-generators-own-layout.md - spec/decisions/ADR-0063 Status says the decision ships the TypeScript writer. The Java writer landed in this change. ADR is an accepted decision record, so its body was left unedited. Status and the TypeScript-writer section stay accurate as history.
✅ **Lint** - passed

✅ No issues found.

✅ **Push** - passed

✅ No issues found.

…t ratchet; pin the Spring REST surface

W-JV-1: a JavaWriter on a language-neutral CodeWriter in codegen-base, the
nine Java dialect cases in fixtures/writer-conformance, a runner for the
shared cases, and a layout ratchet that parses generator source with javac's
tree API and fails on hand-typed newlines, indents and joins. The allowlist
only shrinks and tags each unconverted file with the conversion step that
will retire it. The TypeScript runner now skips cases for other dialects.

W-JV-2: byte-exact expected files for the Spring controller, repository,
names and report-export generators over one input model, so the later
conversion to the writer is checked against today's output.
@dmealing
dmealing merged commit 58e3cf4 into main Nov 21, 2026
10 checks passed
@dmealing
dmealing deleted the fm/mo-130-lane-jvm branch November 21, 2026 02:41
dmealing added a commit that referenced this pull request Nov 21, 2026
…gnKeyTargets (#620)

* fix(python): pass only validated input to the repository in generated routes (#566)

* fix(python): generated routes hand the repository only the validated input (1.2.1)

The generated FastAPI create, PATCH and PUT handlers validated the body against
<Entity>Create / <Entity>Patch and then passed the RAW body to the repository.
Pydantic ignores undeclared keys and the input models leave out server-owned
fields, so a client-sent id, a readOnly field and a made-up field such as
isAdmin all reached the write. Security fix.

Each handler (plain and TPH per-subtype) now rebinds dto to the keys the input
model validated, at every depth, before any repository call, as the TypeScript
routes do. Undeclared and non-settable keys are dropped silently, never 400'd,
so a client sending an extra harmless field keeps working; values stay the
body's own, so repositories see the same value types as in 1.2.0.

Python package version 1.2.1 only; CHANGELOG entry under Security.
Regression gate: tests/integration/test_generated_router_validated_input.py.

* no-mistakes(document): python routes pass only validated input

* no-mistakes(lint): regenerate showcase site payload for PyPI 1.2.1

* fix: generated create routes drop server-owned input across ports (1.2.x security) (#568)

* fix: generated create routes store only client-settable fields (1.2.x security)

Python 1.2.1 stopped its generated routes from handing raw request input to
the repository. The same audit found related create-path holes in 1.2.0 in
the other four ports; this closes each in its own idiom. Server-owned values
are dropped silently, never answered with 400.

- Java (codegen-spring): create strips a generated id, readOnly and derived
  fields; a TPH per-subtype create also strips the body discriminator and
  sibling-subtype fields.
- Kotlin (codegen-kotlin): create skips readOnly/derived columns; a TPH
  per-subtype create writes only the route subtype's own columns.
- C# (MetaObjects.Codegen): every readOnly property shape gets a private
  setter; create resets a generated id, the TPH discriminator and M:N
  navigations before Add.
- TypeScript (codegen-ts): the update schema omits primary-key fields, so
  PUT/PATCH can no longer re-key a row with an assigned key.

Proof: new shared api-contract scenarios (core + TPH input-server-owned,
TPH foreign discriminator) and a readOnly `role` field in secret-fields, run
in every port's generated lane and the reference lanes; a new `unset`
assertion key in all five harnesses. In-memory test repositories now store
what they are handed, so the scenarios fail on the 1.2.0 generators.

Proposed versions (not published): npm 1.2.2, NuGet 1.2.2, Maven 8.2.2;
PyPI unchanged at 1.2.1. metamodelVersion unchanged.

* fix: keep a @required readOnly field creatable in C# and Java generated create

Pre-gate review follow-ups to the 1.2.x create-input patch:

- C#: the required-key check skips readOnly fields (the private setter
  never binds them), and create validation ignores a violation naming
  only a @required readOnly member, as Java's SERVER_OWNED_ON_CREATE does.
- Java: the create-validation server-owned set covers every DTO component,
  so a nulled readOnly or derived value-object column no longer 400s.
- TypeScript: drop the now-dead PK guard in the update-schema nullable arm
  and list the PK rule in updateSchemaFields' doc comment.

* no-mistakes(review): apply reviewer inline fixes

* no-mistakes(review): Kotlin readOnly create fix + C# reset skip

* no-mistakes(document): docs: finish stale corpus counts from input fix

* fix(csharp): make frozen metadata cache thread-safe; allow patch releases from release branches (#578)

* fix(csharp): a frozen node's memoized reads are safe across threads

MetaData.Cached stored derived reads in a plain Dictionary. A loaded model
is shared across threads, so two concurrent first reads of one node could
corrupt it, and every later read then threw "Operations that change
non-concurrent collections must have exclusive access". The cache is now a
ConcurrentDictionary; a racing first read keeps the first stored value.

Brought onto release/1.2 from main's fix (a266a51) for the 1.2.2 patch.

* feat(release): cut a patch from a release/<major>.<minor> maintenance branch

release.mjs and finish-release.mjs refused any branch but main, so a patch
on a line main has moved past could not go through its own guarded scripts.
Both now accept release/<major>.<minor> as well (one shared rule in
scripts/lib/release-branch.mjs): the version must be on that branch's own
line, every push goes to that branch, and finish-release's sync check
compares HEAD with origin/<branch>. Every other gate is unchanged.

docs/RELEASING.md gains the maintenance-branch section, including that the
site deploys from the newest vN.N.N tag wherever it was cut.

* no-mistakes(review): gate latest-regression before npm publish; clean unpushed-branch die

* no-mistakes(review): refuse an rc of an already-shipped version

* no-mistakes(document): docs: fix RELEASING.md main-only release claims

* chore(release): @metaobjectsdev TypeScript packages 1.2.2

* ci: mutate only the changed files in the gate's mutation step (#583)

The ts-fast lane (and so --quick, --only ts and the no-mistakes Test step)
ran the full Stryker pass over all six metadata files on every run: 10-45
minutes of CPU per gate round on a loaded host, most of that step's wall time.

The step now diffs the stryker.conf.mjs `mutate` list against the merge base
with the base branch (MO_CI_MUTATION_BASE, else origin/$GITHUB_BASE_REF, else
whichever of origin/main and origin/release/* HEAD is closest to) and runs
`stryker run --mutate` on only the changed files. When none changed it prints
a SKIP naming the base. When no base resolves, or stryker.conf.mjs itself
changed, it says so and runs the full pass. Thresholds and concurrency are
unchanged; the list stays in stryker.conf.mjs only.

The full pass stays: the flagless run's mutation lane, a new
`--only mutation` section for release prep and on demand, and conformance.yml
(tags, nightly, dispatch) via MO_CI_MUTATION_SCOPE=full. Stryker's sandbox goes
under DEV_SCRATCH when that names a directory, and is removed afterwards.

* feat(codegen): skip gen when nothing changed, in every port (#585)

* feat(codegen): skip gen when nothing changed, in every port (ADR-0062)

- gen builds a key from the loaded model (each root node in canonical effective
  form, rolled up per package) plus the generators' identity (built engine code,
  config, owned generators, templates, declared extra inputs, project config,
  output-changing flags), before anything renders. When it matches the last
  successful run and every generated file still holds that run's bytes, gen
  renders and writes nothing. --force (Maven: -Dmetaobjects.force=true) turns it
  off; a generator that cannot declare its inputs opts out (cache: false or the
  port's equivalent).
- verify --codegen always renders in CI; locally it may answer "no drift" from
  the key and the manifest, --full forces a render. When it renders, every port
  compares in memory: no rendered temp tree (Java/Kotlin now capture through
  GeneratedFileWriter).
- The hash manifest is loaded once and written once per run, only when it
  changed (TypeScript, Python, C#). Identical bytes are never rewritten in any
  port. Python gen no longer reports unchanged files as written.
- TypeScript runs git merge-file only for a file edited by hand, and deletes its
  temporaries in a finally, under $DEV_SCRATCH when set.
- fixtures/codegen-skip-conformance/cases.json: 25 shared cases run by every port.

* test(python): non-prompt targets rewrite nothing and save no manifest when unchanged

Two targets, four generators: a forced run over unchanged output keeps every
mtime and saves no manifest; a first run saves it once. Also corrects a stale
comment in verify --codegen, which renders in memory.

* no-mistakes(review): apply reviewer inline fixes

* no-mistakes(review): Track unrecorded outputs in the skip key

* no-mistakes(review): Track outside-root outputs in TS skip key

* no-mistakes(review): Store no skip key after refused orphan sweep

* no-mistakes(review): Hash YAML sources when docs-site is wired

* no-mistakes(document): document gen skip and in-memory verify

* no-mistakes(document): document gen skip in llms mirror

* no-mistakes(lint): Update corpora count to 35 in site payload and AGENTS.md

* test(agent-context): regenerate conformance expected copies

The skill references in agent-context/ now describe verify --codegen as
rendering in memory. Refresh the byte-for-byte expected mirrors to match.

* chore(release): @metaobjectsdev TypeScript packages 1.2.3

* chore(release): PyPI, NuGet and Maven Central 1.2.3 (Maven 8.2.3)

* docs(releasing): a squash forward-port is followed by an ancestry-only merge

* fix: a missing C# design-time services line is a generation error; migrate.foreignKeyTargets turns the foreign-key refusal into a report

C#: when dotnet meta gen can see the context's migrations in another project and
that project lacks the DesignTimeServicesReference, a context that declares a
@sequenceStart fails with ERR_DESIGN_TIME_REFERENCE_MISSING instead of warning, since
the next scaffold would write RESTART WITH n.

TypeScript: migrate.foreignKeyTargets (refuse | warn) in .metaobjects/config.json.
warn reports a foreign key onto a non-unique target and carries on; the default
refuse keeps the 1.3.0 refusal, and its hint now names the setting. The offline
migrate path now reports ungoverned and unenforced targets too. The Rust config
reader accepts and validates the key.

* feat(codegen-cs): add CsWriter, a layout check and six small generators written on it (ADR-0063)

CsWriter (usings, braced blocks, doc summaries, hanging continuations) runs the shared
writer-conformance core cases plus six C# cases. The filter allowlist, names, callable,
output-prompt, output-parser and extractor generators now write through it as classes with
overridable per-piece methods; their output is unchanged except that an XML-reply parser loses
the blank line after its opening brace. A Roslyn layout check keeps new hand-typed layout out of
the generator source, with an allowlist that only shrinks.

* no-mistakes(review): apply reviewer inline fixes

* no-mistakes(review): Record ADR-0063 lint-gate exception in ratchet tests

* no-mistakes(document): Document C# writer, FK targets, eject

* feat(codegen-base): add Java code writer and layout ratchet (#621)

* feat(codegen-java): add the Java writer, its shared cases and a layout ratchet; pin the Spring REST surface

W-JV-1: a JavaWriter on a language-neutral CodeWriter in codegen-base, the
nine Java dialect cases in fixtures/writer-conformance, a runner for the
shared cases, and a layout ratchet that parses generator source with javac's
tree API and fails on hand-typed newlines, indents and joins. The allowlist
only shrinks and tags each unconverted file with the conversion step that
will retire it. The TypeScript runner now skips cases for other dialects.

W-JV-2: byte-exact expected files for the Spring controller, repository,
names and report-export generators over one input model, so the later
conversion to the writer is checked against today's output.

* no-mistakes(document): Update writer-conformance README for Java runner

* docs: correct 1.3.0 changelog and add staged candidate estate run sheet (#623)

* docs(changelog): correct the C# namespace and primary-key entries; add the missing upgrade items

* feat(prerelease): staged-candidate log, full-candidate command and the Rust git pin

* feat(prerelease): the estate run sheet and a script for its mechanical steps

* fix(prerelease): restore the estate to its start commit, check every package version, record partial publishes

* no-mistakes(review): record partial publishes, restore estate on failure

* no-mistakes(review): document gitignore blind spot, test restore flags

* no-mistakes(test): Test cut-short registry rows in candidate log

* no-mistakes(document): Fix Stale C# namespace, candidate log docs

* no-mistakes(document): Fix candidate log header and estate help

* feat(python): ObjectManager split, shared-model generator, generator options (#624)

* test(python): pin router, names and filter-allowlist output byte for byte (W-PY-0)

* feat(python): code writer, layout check and first generators on it (W-PY-1)

* fix(python): accept every expression function and the cast node at load (C2)

* feat(python): per-generator packages, entities and options in metaobjects.config.yaml (L-PY-0)

* fix(python): keep the selection wrapper out of the generator census (L-PY-0)

* feat(python): split ObjectManager into abstract ObjectManager and ObjectManagerDb, transactions, listeners (L-PY-1)

ObjectManager is now the abstract store-neutral contract (validation, @autoset,
report refusal, persistence listeners); ObjectManagerDb is the DB-API
implementation. Value conversion moves to metaobjects.runtime.values, drivers
gain a transaction() API. Clean break: no shim. Upgrade note in
docs/features/migrations/python-object-manager-split.md.

* feat(python): shared-model publisher, all 15 shared-model cases (D6)

metaobjects.shared_model (build_shared_model, render_shared_model_files) and a
shared-model generator wired in metaobjects.config.yaml: name/include (required),
exclude, requirements, files, version. Options gain a list kind and a required
flag; the build context carries the project root, the project's own files and
the run's providers. The Python conformance test now runs publish bytes,
manifest and the six refusals, not only the serializer arm.

* test(python): record the orphan write in the per-package hash manifest, not the legacy file

* no-mistakes(review): Refuse repeated configured generators and empty required lists

* no-mistakes(review): Emit report export columns as a list

* no-mistakes(test): Refuse per-entity gaps in required generators

* no-mistakes(document): Fix stale Python lane docs

* no-mistakes(document): Fix stale Python ledger notes and view scope

* test(python): pin router, names and filter-allowlist output byte for byte (W-PY-0)

* feat(python): code writer, layout check and first generators on it (W-PY-1)

* fix(python): accept every expression function and the cast node at load (C2)

* feat(python): per-generator packages, entities and options in metaobjects.config.yaml (L-PY-0)

* fix(python): keep the selection wrapper out of the generator census (L-PY-0)

* feat(python): split ObjectManager into abstract ObjectManager and ObjectManagerDb, transactions, listeners (L-PY-1)

ObjectManager is now the abstract store-neutral contract (validation, @autoset,
report refusal, persistence listeners); ObjectManagerDb is the DB-API
implementation. Value conversion moves to metaobjects.runtime.values, drivers
gain a transaction() API. Clean break: no shim. Upgrade note in
docs/features/migrations/python-object-manager-split.md.

* feat(python): shared-model publisher, all 15 shared-model cases (D6)

metaobjects.shared_model (build_shared_model, render_shared_model_files) and a
shared-model generator wired in metaobjects.config.yaml: name/include (required),
exclude, requirements, files, version. Options gain a list kind and a required
flag; the build context carries the project root, the project's own files and
the run's providers. The Python conformance test now runs publish bytes,
manifest and the six refusals, not only the serializer arm.

* test(python): record the orphan write in the per-package hash manifest, not the legacy file

* no-mistakes(review): Refuse repeated configured generators and empty required lists

* no-mistakes(review): Emit report export columns as a list

* no-mistakes(test): Refuse per-entity gaps in required generators

* no-mistakes(document): Fix stale Python lane docs

* no-mistakes(document): Fix stale Python ledger notes and view scope

* fix(python): escape a trailing double quote in a one-line docstring; teach the ObjectManagerDb API in the runtime skill

PyWriter.doc wrote four quotes in a row when a one-line docstring ended in a double
quote, which ends the string early. The trailing run is now escaped, pinned by a new
py-doc-trailing-quote writer-conformance case.

The shipped Python runtime reference still taught ObjectManager(root, PostgresDriver(conn)),
which now raises. It teaches ObjectManagerDb and transaction(); the agent-context
conformance golden moves with it.

* no-mistakes(review): Revert TS runner edit; fix stale ObjectManagerDb docs

* feat(codegen-ts): generate without a formatter and make ORM and SQLite driver optional (#622)

* feat(codegen-ts): take Biome out of generation

meta gen no longer formats generated TypeScript with Biome. codegen-ts drops
@biomejs/js-api and @biomejs/wasm-nodejs; each generator writes the layout it
means. formatTs stays exported as a pass-through so an owned 1.2 generator copy
still loads. The Hono routes no longer emit biome-ignore lines. Golden files,
the showcase and advanced-modeling output, owned copies and the site payload
are regenerated.

* test(integration-tests): run report arithmetic and money sums on real databases

* feat(codegen-ts): state this release's API behaviour in the OpenAPI document

A list's limit carries the project's api.pagination default and maximum, a write says an undeclared key is refused (or dropped under api.unknownFields: drop), the error envelope carries issues, fields and maxLimit, and a read-only resource says a write answers 405. Also corrects three CHANGELOG wording points and the protobuf line, and closes the finished exactly-one request.

* feat(codegen-ts): make drizzle-orm and zod optional peers, and hold the install to a size budget

A fresh install of the CLI no longer pulls the ORM. scripts/check-install-size.mjs packs the CLI, installs it, refuses a forbidden package in the tree and keeps the size under a budget that can only move down; it runs in the full CI lane.

* perf(cli): load Biome's WebAssembly build on the first owned-copy comparison

* feat(cli): make the SQLite driver an optional peer, and have meta init declare it

libSQL brought an HTTP client, a stream polyfill and a native binary per libc (about 28 MB) to every install. A SQLite project now declares @libsql/kysely-libsql at the CLI's peer range; others install nothing. The install-size budget drops to 51 MB.

* no-mistakes(review): Test Biome lazy-load by subprocess, not source grep

* no-mistakes(test): apply changes made during test validation

* no-mistakes(document): drop stale Biome and optional-peer docs

* no-mistakes(document): reword Biome reason string

* test(sdk): bring the agent-context conformance golden up to the reworded formatTs note

The document step reworded the formatTs line in the bundled TypeScript codegen reference; the ts-react-tanstack expected file still carried the old line, so the sdk conformance corpus failed in the ts-unit lane.

* no-mistakes(review): apply reviewer inline fixes

* no-mistakes(document): Four stale facts fixed in their owners; nothing left open. Already-correct branch docs (AGENTS.md, cli README, cli.md, contract-emitters.md, ADR-0063, CHANGELOG) were left as they are. - scripts/check-peer-ranges.ts:60: reason string now says the CLI's owned-copy comparison uses the WASM build (user-approved document-1). - agent-context/skills/metaobjects-codegen/references/typescript.md: Install section now says drizzle-orm and zod are optional peers, installed on demand; points to `meta gen --list --format json` and `meta eject` for the install set. - docs/features/migrations/commit-the-gen-state-hash-manifest.md: dropped "formatter" from two sentences; TS generation runs no formatter. Checked and left unchanged: docs/llms mirrors (their install lines remain accurate), docs/recipes/write-your-own-generator.md, codegen-ts README, docs/ports/typescript.md Zod passage (pre-existing, not changed by this branch), and the Python/Java/C# formatter references (different subsystems).

* test(sdk): bring the agent-context conformance golden up to the new install paragraph

Run 2's document step added an install paragraph to the bundled TypeScript codegen reference and left the ts-react-tanstack expected file behind, so the sdk conformance corpus is red again.

* no-mistakes(document): Fix optional peer claim in TS port doc

* fix: a missing C# design-time services line is a generation error; migrate.foreignKeyTargets turns the foreign-key refusal into a report

C#: when dotnet meta gen can see the context's migrations in another project and
that project lacks the DesignTimeServicesReference, a context that declares a
@sequenceStart fails with ERR_DESIGN_TIME_REFERENCE_MISSING instead of warning, since
the next scaffold would write RESTART WITH n.

TypeScript: migrate.foreignKeyTargets (refuse | warn) in .metaobjects/config.json.
warn reports a foreign key onto a non-unique target and carries on; the default
refuse keeps the 1.3.0 refusal, and its hint now names the setting. The offline
migrate path now reports ungoverned and unenforced targets too. The Rust config
reader accepts and validates the key.

* feat(codegen-cs): add CsWriter, a layout check and six small generators written on it (ADR-0063)

CsWriter (usings, braced blocks, doc summaries, hanging continuations) runs the shared
writer-conformance core cases plus six C# cases. The filter allowlist, names, callable,
output-prompt, output-parser and extractor generators now write through it as classes with
overridable per-piece methods; their output is unchanged except that an XML-reply parser loses
the blank line after its opening brace. A Roslyn layout check keeps new hand-typed layout out of
the generator source, with an allowlist that only shrinks.

* no-mistakes(review): apply reviewer inline fixes

* no-mistakes(review): Record ADR-0063 lint-gate exception in ratchet tests

* no-mistakes(document): Document C# writer, FK targets, eject

* feat(codegen-cs): EntityGenerator writes through CsWriter (ADR-0063)

Convert the 3,313-line entity generator (mapped entities, TPH subtypes, abstract shapes,
value objects, shared enums, and the decimal, duration and net-validation helper files)
to the code writer. Output matches the previous generator byte for byte over every
model fixture in all four layouts except three layout details the writer owns: an
empty class body has no blank line, a blank before a closing brace is dropped, and a
/// line has no trailing space.

Hooks take a CsWriter instead of a StringBuilder; property emitters are renamed
Write*Property. EntityGenerator.cs leaves the layout ratchet allowlist.

* feat(codegen-cs): DbContextGenerator writes through CsWriter (ADR-0063)

The context, its OnModelCreating and ConfigureModelNN chunks, the enum, map and
duration helpers and the design-time services file are written on a CsWriter.
Output is byte-identical for the 737 model fixtures in all four layouts. The
EmitUsings, EmitDbSetDeclarations and EmitOnModelCreatingBody hooks take the
writer; text hooks return unindented lines. The layout ratchet allowlist loses
the generator's entry.

* feat(codegen-cs): reverse finders, expression indexes, report export and requirement tests write through CsWriter (ADR-0063)

Output is byte-identical on the 737 model fixtures in four layouts, except
that the shared report-export writer now ends with a newline like every
other generated file. The four files leave the layout allowlist.

* feat(codegen-cs): routes and render-helper generators write through CsWriter (ADR-0063)

All generators now write through the writer, so the layout check's unconverted
list is empty. Routes output is byte-identical on the 737 model fixtures in
four layouts. The report-export golden gains its final newline.

* no-mistakes(review): Emit credential result class for M:N targets; fix export usings

* no-mistakes(review): Keep IValidatableObject on header overrides; add tests

* no-mistakes(document): Checked C# lane docs against 48c344a..dcca89d. One stale-risk fact fixed: docs/ports/csharp.md now states the IValidatableObject last-line rule for hook overrides. All other doc facts verified against code: writer defaults, Using/Sorted/Hanging/Braced/DocSummary, ERR_WRITER_IMPORT_CONFLICT, ERR_DESIGN_TIME_REFERENCE_MISSING gating, hook names and signatures, writer-conformance case counts (67 = 31+10+9+6+11), CONFORMANCE matrix column order, eject table, migrate.foreignKeyTargets config and refusal hint. Stale M2mNavProperty comments in DbContextGenerator.cs were already fixed.

* no-mistakes(document): Add C# writer amendment to ADR-0063
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant