B-EANZ-ontogen-generated-ts-formatting-vs-drift-gate
Discovered while landing the vault openers surface: ontogen’s in-build TS emit/format (post-PR 1146, which made in-build prettier the fixpoint) and the CI codegen drift gate’s normalization (bunx prettier@3.8.3 with the root .prettierrc, semi:false) disagree for packages/ts/platform/src/generated/types.ts. No committed form satisfies both: the gate-canonical prettier@3.8.3 form passes CI but any local cargo build -p platform-core rewrites types.ts with a ~620-line formatting-only diff (transport.ts is stable). HEAD’s types.ts on main (mixed style) could not have passed the gate either — PR 1146’s CI never ran the rust workflow. Fix: make ontogen emit (or in-build-format) exactly the gate-canonical form, or point the gate at the same formatter config the build uses.
Resolved by rust-ontogen#120 + the consuming PR: ontogen now formats generated TS in-process with
biome (cargo feature biome, enabled on this workspace’s dep), the prettier spawn is gone, the
committed generated TS was reformatted once to biome’s canonical form, the CI gate compares raw
emit with no normalization step, and .prettierignore keeps prettier off the generated dir. Emit is
the fixpoint: cargo build -p platform-core no longer dirties the tree.