Skip to content
This repository was archived by the owner on Nov 25, 2026. It is now read-only.

TML-3008: differ pairs siblings by (nodeKind, id) — delete the role-sigil workaround - #952

Merged
wmadden-electric merged 4 commits into
mainfrom
slice/differ-nodekind-keying
Jul 12, 2026
Merged

wmadden-electric merged 4 commits into
mainfrom
slice/differ-nodekind-keying

Conversation

@wmadden-electric

@wmadden-electric wmadden-electric commented Jul 12, 2026 •

Copy link
Copy Markdown
Contributor

Linked issue

Refs TML-3008

Unblocks #950 (TML-2870), which rebases onto this and deletes its role:-sigil workaround.

At a glance

// packages/1-framework/1-core/framework-components/src/control/schema-diff.ts
export interface DiffableNode {
  readonly id: string;
  readonly nodeKind: string;
  isEqualTo(other: DiffableNode): boolean;
  children(): readonly DiffableNode[];
}

Before this PR the differ keyed a parent's children into one flat map on bare id and threw diffSchemas: duplicate id among siblings on any collision — so a Postgres role named public and a schema named public, which are different objects that never pair against each other, could not coexist as siblings in the diff tree.

Decision

Two things:

  1. The differ pairs siblings by (nodeKind, id), not by a globally-unique id. DiffableNode gains readonly nodeKind: string — the per-node discriminant every SQL schema-IR node already declares, so the SQL tree satisfies it with zero changes. An id now only needs to be unique among same-kind siblings, which it already is by construction (you can't declare two roles named public, or two columns named id on one table). A node never folds its kind into its id string to route around the differ.
  2. SchemaDiffIssue.message is deleted. The differ reports structured data (path, reason, the nodes); turning that into a human sentence is the renderer's job. Every producer that baked prose into message — including Mongo's hand-rolled diffMongoSchemas — stops; every consumer renders from path/reason itself.

Reviewer notes

  • Byte-identity is the review question. Sibling pairing uses a single Map keyed on `${nodeKind}\u0000${id}` — deliberately not a nested per-kind map — so insertion order, and therefore emitted-issue order, is bit-for-bit what it was. Every nodeKind in the repo is a code-defined literal, so the NUL delimiter cannot collide. The only input whose behavior changes is one that previously threw (cross-kind sibling id collision); no previously-succeeding diff changes output. Zero fixture/snapshot/golden files changed in this PR.
  • Mongo db verify failure text becomes path-based. diffMongoSchemas used to bake sentences like Collection "users" is missing from the database into message; issues now render as users / orders/validator with the reason label. Accepted deliberately — no committed snapshot pinned the prose, and a follow-up renderer can rebuild richer text from the structured issue when wanted.
  • The message sweep is most of the diff. The keying change itself is ~40 lines; the other ~30 files are consumers and test literals that carried message. One consumer was missed on the first pass and caught by review: the CLI error-envelope formatter printed blank issue bodies for SQLite/Mongo verify failures (errors.ts now renders message ?? path.join('/'), since PSL diagnostics share that envelope and legitimately carry message).
  • Slice process artifacts (projects/postgres-rls/slices/differ-kind-keying/) are committed for review context and are cleaned up at project close-out, per this repo's Drive convention.

How it fits together

  1. The interface carries the discriminant. DiffableNode.nodeKind is an opaque string — no target vocabulary enters the framework. SQL nodes inherit it from SqlSchemaIRNode's existing abstract nodeKind; the five Mongo schema-IR nodes each gain a genuine per-node literal (collection, index, validator, collectionOptions, schema) matching their existing kind discriminators 1:1.
  2. The differ keys on the pair. insertNode/diffChildren build the sibling map on the combined key and throw only on a genuine same-kind/same-id duplicate (schema-diff.ts).
  3. Issues drop the baked message. pathMessage and SchemaDiffIssue.message are deleted; consumers that need a string build it from path — the CLI verify formatter, db verify, the sqlite/postgres issue planners' conflict summaries, and the CLI error-envelope formatter.
  4. The ADR records the model. adr-schema-diff-over-structured-ir.md now states per-kind sibling-id uniqueness and explicitly rejects folding a node's kind into its id() (the guidance that produced tml-2870: author RLS policies for every operation, and verify declared roles exist #950's sigil).

Behavior changes & evidence

  • Same-name, different-kind siblings diff instead of throwing; each pairs only against its own-kind counterpart. Implementation: schema-diff.ts. Evidence: schema-diff.test.ts (role-public/namespace-public pair independently; same-kind/same-id still throws; issues carry no message).
  • Mongo schema-IR nodes declare nodeKind; the Mongo diff algorithm is otherwise unchanged apart from dropping message. Implementation: schema-node.ts, schema-diff.ts. Evidence: cli.control-policy.mongo.e2e.test.ts.
  • CLI issue rendering is path-based where prose was removed, with PSL diagnostics keeping their messages. Implementation: verify.ts, errors.ts. Evidence: output.errors.test.ts (pins both producer shapes).

Testing performed

  • pnpm build (68/68), forced pnpm typecheck (143/143), pnpm lint + pnpm lint:deps on touched packages
  • pnpm test:packages (12k+ tests), pnpm test:integration, pnpm test:e2e (109/109)
  • pnpm fixtures:check — clean; git status after: no fixture/snapshot/golden file changed
  • Reproduced-and-ruled-pre-existing flakes: config-loader /var symlink, sql-orm-client portal race (both known families, untouched files)

Follow-ups

Alternatives considered

  • Fold the kind into the id string (the role: sigil). Rejected — it re-encodes lost structural information into a name, then leaks into paths and needs laundering (withCleanRoleMessage). That workaround is what tml-2870: author RLS policies for every operation, and verify declared roles exist #950 currently ships and deletes after this merges.
  • Key the differ on the contract EntityCoordinate. Rejected (and the ADR's original rejection stands) — schema-IR-node identity is its own domain; mapping a schema-IR node to a contract coordinate is a separate consumer-side operation, not the diff walk's concern.
  • A nested Map<nodeKind, Map<id, node>>. Rejected — regrouping by kind changes iteration order and would break emitted-issue byte-identity; the single combined-key map preserves insertion order exactly.
  • Keep message populated with the path string. Rejected — it duplicates path as a pre-rendered string and invites producers (as Mongo did) to bake presentation into data the renderer should own.

Checklist

  • All commits DCO-signed (Signed-off-by)
  • Tests written/updated for the behavior changes
  • Title follows TML-XXXX: <sentence case> convention
  • Docs/ADR updated where behavior is described

Summary by CodeRabbit

  • Bug Fixes

    • Improved schema-diff matching to avoid conflating items that share an ID but differ by node type.
    • Schema verification and CLI/database-check output now consistently identify issues using their structured paths (with reason), including in warnings and formatted error output.
    • Migration/rebuild summaries now use deterministic, path-based locations for conflicts.
  • Refactor

    • Schema-diff issues no longer rely on a preformatted message; they use structured fields such as path, reason, expected, and actual.
    • Mongo schema IR nodes now expose nodeKind instead of kind for type discrimination.

Substrate cleanup: the SQL schema differ pairs siblings by (nodeKind, id)
instead of a globally-unique id, deleting the role-sigil workaround and
withCleanRoleMessage. Lands ahead of #950's rebase.

Signed-off-by: willbot <[email protected]>
Signed-off-by: Will Madden <[email protected]>
Adds a nodeKind discriminant to DiffableNode so the generic schema
differ (diffSchemas/diffChildren/insertNode) keys sibling nodes on
(nodeKind, id) instead of a bare id, using a single delimiter-joined
Map key so insertion-order iteration stays byte-identical. A same-id
sibling pair with different nodeKind (e.g. a role and a namespace both
named "public") now diffs without throwing; a genuine same-kind
same-id duplicate still throws. Every SQL schema-IR node already
declared nodeKind, so this is free there; Mongo schema-IR nodes gain a
genuine per-node nodeKind literal alongside their existing kind field.

Removes SchemaDiffIssue.message and the differs pathMessage helper —
message was always just the joined path, so every real consumer
(sqlite/postgres issue-planner conflict summaries, the CLI verify
formatter, the sqlite recreate-table summary, and the hand-rolled
Mongo diffMongoSchemas issues) now renders its own string from
path/reason instead. Amends the schema-diff ADR to describe (nodeKind,
id) keying and retracts its prior guidance to fold a node kind into
its id string, which is what produced the role: sigil workaround this
slice was cut to make unnecessary.

The postgres role sigil (ROLE_ID_SIGIL) and withCleanRoleMessage never
existed on this branch — it forked from before the role-in-verify work
that introduced them, so those two files needed no changes; the
existing PostgresRoleSchemaNode already returns the bare role name.

Signed-off-by: Will Madden <[email protected]>
Signed-off-by: willbot <[email protected]>
Signed-off-by: Will Madden <[email protected]>
@wmadden-electric
wmadden-electric requested a review from a team as a code owner July 12, 2026 08:06
@coderabbitai

coderabbitai Bot commented Jul 12, 2026 •

Copy link
Copy Markdown
Contributor

Review Change Stack

No actionable comments were generated in the recent review. 🎉

ℹ️ Recent review info
⚙️ Run configuration

Configuration used: Path: .coderabbit.yml

Review profile: CHILL

Plan: Pro

Run ID: 77f0124e-1461-4dfa-8217-363d19f85c86

📥 Commits

Reviewing files that changed from the base of the PR and between 77aeefd and 4a16bb0.

📒 Files selected for processing (7)
  • packages/2-mongo-family/3-tooling/mongo-schema-ir/src/schema-collection-options.ts
  • packages/2-mongo-family/3-tooling/mongo-schema-ir/src/schema-collection.ts
  • packages/2-mongo-family/3-tooling/mongo-schema-ir/src/schema-index.ts
  • packages/2-mongo-family/3-tooling/mongo-schema-ir/src/schema-ir.ts
  • packages/2-mongo-family/3-tooling/mongo-schema-ir/src/schema-node.ts
  • packages/2-mongo-family/3-tooling/mongo-schema-ir/src/schema-validator.ts
  • packages/2-mongo-family/3-tooling/mongo-schema-ir/test/schema-ir.test.ts
💤 Files with no reviewable changes (5)
  • packages/2-mongo-family/3-tooling/mongo-schema-ir/src/schema-index.ts
  • packages/2-mongo-family/3-tooling/mongo-schema-ir/src/schema-validator.ts
  • packages/2-mongo-family/3-tooling/mongo-schema-ir/src/schema-collection.ts
  • packages/2-mongo-family/3-tooling/mongo-schema-ir/src/schema-ir.ts
  • packages/2-mongo-family/3-tooling/mongo-schema-ir/src/schema-collection-options.ts
🚧 Files skipped from review as they are similar to previous changes (1)
  • packages/2-mongo-family/3-tooling/mongo-schema-ir/src/schema-node.ts

📝 Walkthrough

Walkthrough

Schema diff issues now contain structural data without generated messages. Sibling alignment uses (nodeKind, id), Mongo IR nodes expose nodeKind, and CLI, migration, target, and integration consumers derive displayed locations from issue paths.

Changes

Schema diff contract and alignment

Layer / File(s) Summary
Core issue shape and sibling matching
packages/1-framework/1-core/framework-components/src/control/schema-diff.ts, packages/1-framework/1-core/framework-components/test/schema-diff.test.ts
SchemaDiffIssue.message is removed, DiffableNode.nodeKind is required, and siblings are aligned by (nodeKind, id) with duplicate and cross-kind coverage.
Mongo node metadata and diff emission
packages/2-mongo-family/3-tooling/mongo-schema-ir/src/*, packages/2-mongo-family/9-family/src/core/schema-diff.ts
Mongo schema IR nodes define concrete nodeKind values, and Mongo diff issues omit generated messages.
Path-based formatting and migration reporting
packages/1-framework/3-tooling/cli/src/**, packages/3-targets/3-targets/{postgres,sqlite}/src/**, test/e2e/framework/test/sqlite/migrations/harness.ts
CLI output, migration conflicts, recreate summaries, and schema verification errors use slash-joined issue paths.
Fixture and assertion updates
packages/1-framework/**/test/**, packages/2-sql/**/test/**, packages/3-mongo-target/**/test/**, packages/3-targets/**/test/**, test/integration/**
Tests remove message fields from issue fixtures and assert paths or structured issue data instead.

Estimated code review effort: 3 (Moderate) | ~30 minutes

Possibly related PRs

Suggested reviewers: wmadden

🚥 Pre-merge checks | ✅ 4 | ❌ 1

❌ Failed checks (1 warning)

Check name Status Explanation Resolution
Docstring Coverage ⚠️ Warning Docstring coverage is 34.78% which is insufficient. The required threshold is 80.00%. Write docstrings for the functions missing them to satisfy the coverage threshold.
✅ Passed checks (4 passed)
Check name Status Explanation
Description Check ✅ Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Title check ✅ Passed The title clearly reflects the main change: sibling pairing now uses (nodeKind, id), and it mentions the related workaround removal.
Linked Issues check ✅ Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check ✅ Passed Check skipped because no linked issues were found for this pull request.
✨ Finishing Touches
📝 Generate docstrings
  • Create stacked PR
  • Commit on current branch
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch slice/differ-nodekind-keying

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

@pkg-pr-new

pkg-pr-new Bot commented Jul 12, 2026 •

Copy link
Copy Markdown

Open in StackBlitz

@prisma-next/extension-author-tools

npm i https://pkg.pr.new/@prisma-next/extension-author-tools@952

@prisma-next/mongo-runtime

npm i https://pkg.pr.new/@prisma-next/mongo-runtime@952

@prisma-next/family-mongo

npm i https://pkg.pr.new/@prisma-next/family-mongo@952

@prisma-next/sql-runtime

npm i https://pkg.pr.new/@prisma-next/sql-runtime@952

@prisma-next/family-sql

npm i https://pkg.pr.new/@prisma-next/family-sql@952

@prisma-next/extension-arktype-json

npm i https://pkg.pr.new/@prisma-next/extension-arktype-json@952

@prisma-next/middleware-cache

npm i https://pkg.pr.new/@prisma-next/middleware-cache@952

@prisma-next/mongo

npm i https://pkg.pr.new/@prisma-next/mongo@952

@prisma-next/extension-paradedb

npm i https://pkg.pr.new/@prisma-next/extension-paradedb@952

@prisma-next/extension-pgvector

npm i https://pkg.pr.new/@prisma-next/extension-pgvector@952

@prisma-next/extension-postgis

npm i https://pkg.pr.new/@prisma-next/extension-postgis@952

@prisma-next/postgres

npm i https://pkg.pr.new/@prisma-next/postgres@952

@prisma-next/sql-orm-client

npm i https://pkg.pr.new/@prisma-next/sql-orm-client@952

@prisma-next/sqlite

npm i https://pkg.pr.new/@prisma-next/sqlite@952

@prisma-next/extension-supabase

npm i https://pkg.pr.new/@prisma-next/extension-supabase@952

@prisma-next/target-mongo

npm i https://pkg.pr.new/@prisma-next/target-mongo@952

@prisma-next/adapter-mongo

npm i https://pkg.pr.new/@prisma-next/adapter-mongo@952

@prisma-next/driver-mongo

npm i https://pkg.pr.new/@prisma-next/driver-mongo@952

@prisma-next/contract

npm i https://pkg.pr.new/@prisma-next/contract@952

@prisma-next/utils

npm i https://pkg.pr.new/@prisma-next/utils@952

@prisma-next/config

npm i https://pkg.pr.new/@prisma-next/config@952

@prisma-next/errors

npm i https://pkg.pr.new/@prisma-next/errors@952

@prisma-next/framework-components

npm i https://pkg.pr.new/@prisma-next/framework-components@952

@prisma-next/operations

npm i https://pkg.pr.new/@prisma-next/operations@952

@prisma-next/ts-render

npm i https://pkg.pr.new/@prisma-next/ts-render@952

@prisma-next/contract-authoring

npm i https://pkg.pr.new/@prisma-next/contract-authoring@952

@prisma-next/ids

npm i https://pkg.pr.new/@prisma-next/ids@952

@prisma-next/psl-parser

npm i https://pkg.pr.new/@prisma-next/psl-parser@952

@prisma-next/psl-printer

npm i https://pkg.pr.new/@prisma-next/psl-printer@952

@prisma-next/cli

npm i https://pkg.pr.new/@prisma-next/cli@952

@prisma-next/cli-telemetry

npm i https://pkg.pr.new/@prisma-next/cli-telemetry@952

@prisma-next/config-loader

npm i https://pkg.pr.new/@prisma-next/config-loader@952

@prisma-next/emitter

npm i https://pkg.pr.new/@prisma-next/emitter@952

@prisma-next/language-server

npm i https://pkg.pr.new/@prisma-next/language-server@952

@prisma-next/migration-tools

npm i https://pkg.pr.new/@prisma-next/migration-tools@952

prisma-next

npm i https://pkg.pr.new/prisma-next@952

@prisma-next/vite-plugin-contract-emit

npm i https://pkg.pr.new/@prisma-next/vite-plugin-contract-emit@952

@prisma-next/mongo-codec

npm i https://pkg.pr.new/@prisma-next/mongo-codec@952

@prisma-next/mongo-contract

npm i https://pkg.pr.new/@prisma-next/mongo-contract@952

@prisma-next/mongo-value

npm i https://pkg.pr.new/@prisma-next/mongo-value@952

@prisma-next/mongo-contract-psl

npm i https://pkg.pr.new/@prisma-next/mongo-contract-psl@952

@prisma-next/mongo-contract-ts

npm i https://pkg.pr.new/@prisma-next/mongo-contract-ts@952

@prisma-next/mongo-emitter

npm i https://pkg.pr.new/@prisma-next/mongo-emitter@952

@prisma-next/mongo-schema-ir

npm i https://pkg.pr.new/@prisma-next/mongo-schema-ir@952

@prisma-next/mongo-query-ast

npm i https://pkg.pr.new/@prisma-next/mongo-query-ast@952

@prisma-next/mongo-orm

npm i https://pkg.pr.new/@prisma-next/mongo-orm@952

@prisma-next/mongo-query-builder

npm i https://pkg.pr.new/@prisma-next/mongo-query-builder@952

@prisma-next/mongo-lowering

npm i https://pkg.pr.new/@prisma-next/mongo-lowering@952

@prisma-next/mongo-wire

npm i https://pkg.pr.new/@prisma-next/mongo-wire@952

@prisma-next/sql-contract

npm i https://pkg.pr.new/@prisma-next/sql-contract@952

@prisma-next/sql-errors

npm i https://pkg.pr.new/@prisma-next/sql-errors@952

@prisma-next/sql-operations

npm i https://pkg.pr.new/@prisma-next/sql-operations@952

@prisma-next/sql-schema-ir

npm i https://pkg.pr.new/@prisma-next/sql-schema-ir@952

@prisma-next/sql-contract-psl

npm i https://pkg.pr.new/@prisma-next/sql-contract-psl@952

@prisma-next/sql-contract-ts

npm i https://pkg.pr.new/@prisma-next/sql-contract-ts@952

@prisma-next/sql-contract-emitter

npm i https://pkg.pr.new/@prisma-next/sql-contract-emitter@952

@prisma-next/sql-lane-query-builder

npm i https://pkg.pr.new/@prisma-next/sql-lane-query-builder@952

@prisma-next/sql-relational-core

npm i https://pkg.pr.new/@prisma-next/sql-relational-core@952

@prisma-next/sql-builder

npm i https://pkg.pr.new/@prisma-next/sql-builder@952

@prisma-next/target-postgres

npm i https://pkg.pr.new/@prisma-next/target-postgres@952

@prisma-next/target-sqlite

npm i https://pkg.pr.new/@prisma-next/target-sqlite@952

@prisma-next/adapter-postgres

npm i https://pkg.pr.new/@prisma-next/adapter-postgres@952

@prisma-next/adapter-sqlite

npm i https://pkg.pr.new/@prisma-next/adapter-sqlite@952

@prisma-next/driver-postgres

npm i https://pkg.pr.new/@prisma-next/driver-postgres@952

@prisma-next/driver-sqlite

npm i https://pkg.pr.new/@prisma-next/driver-sqlite@952

commit: 4a16bb0

@github-actions

Copy link
Copy Markdown

size-limit report 📦

Path Size
postgres / no-emit 154.12 KB (0%)
postgres / emit 129.25 KB (0%)
mongo / no-emit 98.57 KB (+0.01% 🔺)
mongo / emit 89.41 KB (0%)
cf-worker / no-emit 181.28 KB (0%)
cf-worker / emit 153.94 KB (0%)

@wmadden-electric
wmadden-electric added this pull request to the merge queue Jul 12, 2026
Merged via the queue into main with commit 9ccebe0 Jul 12, 2026
21 checks passed
@wmadden-electric
wmadden-electric deleted the slice/differ-nodekind-keying branch July 12, 2026 08:45
wmadden-electric added a commit that referenced this pull request Jul 12, 2026
Main (TML-3008, PR #952) shipped DiffableNode.nodeKind and pairs siblings by
(nodeKind, id) rather than id alone, and deleted SchemaDiffIssue.message.
PostgresRoleSchemaNode.id now returns the bare role name — a role and a
same-named namespace no longer need a role: sigil to avoid colliding in the
differ, since nodeKind already disambiguates them. withCleanRoleMessage (which
stripped that sigil out of issue.message) is deleted along with it; consumers
now read reason/path off the issue instead of a rendered message.

Signed-off-by: willbot <[email protected]>
Signed-off-by: Will Madden <[email protected]>
wmadden-electric added a commit that referenced this pull request Jul 12, 2026
….message

#952 removed `message` from `SchemaDiffIssue` (the differ no longer stamps a
default path string). `mapNativeEnumNodeIssue` still read `issue.message` for
its no-schema conflict text; render `issue.path.join(/)` instead, the same
way every other conflict in this file already names its issue.

Signed-off-by: willbot <[email protected]>
Signed-off-by: Will Madden <[email protected]>
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants