Repository navigation
Close out marker-ledger-to-typed-query-ast-commands — migrate design substrate; delete workspace - #867
Conversation
Signed-off-by: willbot <[email protected]> Signed-off-by: Will Madden <[email protected]>
…r TML-2923 ADR Co-Authored-By: Claude Sonnet 4.6 <[email protected]> Signed-off-by: willbot <[email protected]> Signed-off-by: Will Madden <[email protected]>
…orkspace Co-Authored-By: Claude Sonnet 4.6 <[email protected]> Signed-off-by: willbot <[email protected]> Signed-off-by: Will Madden <[email protected]>
|
Important Review skippedReview was skipped due to path filters ⛔ Files ignored due to path filters (57)
CodeRabbit blocks several paths by default. You can override this behavior by explicitly including those paths in the path filters. For example, including ⚙️ Run configurationConfiguration used: Path: .coderabbit.yml Review profile: CHILL Plan: Pro Run ID: You can disable this status message by setting the Use the checkbox below for a quick retry:
✨ Finishing Touches🧪 Generate unit tests (beta)
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. Comment |
size-limit report 📦
|
@prisma-next/extension-author-tools
@prisma-next/mongo-runtime
@prisma-next/family-mongo
@prisma-next/sql-runtime
@prisma-next/family-sql
@prisma-next/extension-arktype-json
@prisma-next/middleware-cache
@prisma-next/mongo
@prisma-next/extension-paradedb
@prisma-next/extension-pgvector
@prisma-next/extension-postgis
@prisma-next/postgres
@prisma-next/sql-orm-client
@prisma-next/sqlite
@prisma-next/extension-supabase
@prisma-next/target-mongo
@prisma-next/adapter-mongo
@prisma-next/driver-mongo
@prisma-next/contract
@prisma-next/utils
@prisma-next/config
@prisma-next/errors
@prisma-next/framework-components
@prisma-next/operations
@prisma-next/ts-render
@prisma-next/contract-authoring
@prisma-next/ids
@prisma-next/psl-parser
@prisma-next/psl-printer
@prisma-next/cli
@prisma-next/cli-telemetry
@prisma-next/config-loader
@prisma-next/emitter
@prisma-next/language-server
@prisma-next/migration-tools
prisma-next
@prisma-next/vite-plugin-contract-emit
@prisma-next/mongo-codec
@prisma-next/mongo-contract
@prisma-next/mongo-value
@prisma-next/mongo-contract-psl
@prisma-next/mongo-contract-ts
@prisma-next/mongo-emitter
@prisma-next/mongo-schema-ir
@prisma-next/mongo-query-ast
@prisma-next/mongo-orm
@prisma-next/mongo-query-builder
@prisma-next/mongo-lowering
@prisma-next/mongo-wire
@prisma-next/sql-contract
@prisma-next/sql-errors
@prisma-next/sql-operations
@prisma-next/sql-schema-ir
@prisma-next/sql-contract-psl
@prisma-next/sql-contract-ts
@prisma-next/sql-contract-emitter
@prisma-next/sql-lane-query-builder
@prisma-next/sql-relational-core
@prisma-next/sql-builder
@prisma-next/target-postgres
@prisma-next/target-sqlite
@prisma-next/adapter-postgres
@prisma-next/adapter-sqlite
@prisma-next/driver-postgres
@prisma-next/driver-sqlite
commit: |
Lands in projects/typed-ddl-migration-ops/ (the successor project owning TML-2923) instead of an invented docs/architecture docs/projects/ subdirectory. The successor project's workspace currently lives on the in-flight TML-2919 branch (PR #840); when it merges this file lives alongside its spec.md/plan.md as the substrate the ADR slice absorbs. Signed-off-by: willbot <[email protected]> Signed-off-by: Will Madden <[email protected]>
…ename from -substrate Rewrites projects/typed-ddl-migration-ops/marker-ledger-typed-ddl-substrate.md as typed-ddl-design-notes.md. The new file describes the architecture as it is today — present-tense, positive properties, no project-shaping voice or before/after narrative. Additions from the original design-notes that were missing from the first draft: - Current architecture by family table (Mongo/Postgres/SQLite transport, SPI, invariants merge) - Codec dispatch mechanics (CodecRef resolution via contractCodecs.forCodecRef, lazy registry growth) - Mongo specifics expanded: why lowering happens at runner boundary, contract-free createFieldAccessor reuse, server-side $setUnion rationale, DDL command node set - Typed verification queries section (TML-2889 seam): cfExpr/exprSelect/CfExprSelectQuery, per-target checks.ts surfaces, names-as-ParamRefs discipline Co-Authored-By: Claude Sonnet 4.6 <[email protected]> Signed-off-by: Will Madden <[email protected]> Signed-off-by: willbot <[email protected]> Signed-off-by: Will Madden <[email protected]>
Linked issue
Close-out of Marker/ledger via typed query AST. Phase-2 op porting + the project's deferred ADR migrate into the new project Typed DDL migration ops — complete the conversion (TML-2919/2920/2921/2922/2923/2925/2927/2866).
At a glance
Removes
projects/migrate-marker-ledger-to-typed-query-ast-commands/after the final retro, and migrates the durable design notes (the seven design principles, the DDL visitor + dispatch model, the table-level constraint shape, the codec-handling split, the planner-lowering mechanism, the Mongo runner-boundary lowering) into the successor project's workspace as draft material for TML-2923's ADR. No source-code changes. External-reference scan was clean before the delete.The design notes land at
projects/typed-ddl-migration-ops/typed-ddl-design-notes.md— the workspace of the successor "Typed DDL migration ops" project, whosespec.md/plan.mdarrive onmainwith PR #840 (in flight). The notes are voice-rewritten to strip the project-shaping framing (the close-out workflow's Step 4.5 disposition) and banner-marked as draft-for-TML-2923 — its ADR slice absorbs/replaces this file when it lands.Decision
Project closes; workspace is deleted. The project's DoD is met or explicitly-deferred-with-ticket:
36279033fimmediately preceding the delete).Project DoD verification (acceptance criteria in spec.md)
CREATE TABLE+CREATE SCHEMAas target-contributed nodesadapter.lower()→ driver; zerodb.collection()inmarker-ledger.tsparseContractMarkerRow+ raw-SQL write builders collapsedSqlControlAdapterexposes marker-write methods symmetric withMongoControlAdapterascasts in Mongomarker-ledger.tseliminated; cast ratchet not regressedprojects/typed-ddl-migration-ops/typed-ddl-design-notes.mdas draft material; canonical ADR + subsystem-doc updates owned by TML-2923 in the successor project, where the dust from Phase-2's remaining design decisions has to settle first.Slices merged in this project
ddl-in-query-ast(foundational)sql-marker-ops-through-adaptermongo-marker-ledger-through-adapterplanner-create-table-adopts-ddl-astcodec-routed-ddl-defaultssqlite-create-table-adoption(Phase 1)pg-add-column-pioneer(Phase 1)mongo-planner-create-collection-and-index-adoption(Phase 1)typed-migration-verification-queriesun-namespaced-pg-defaults-to-publicpg-addcolumn-opid-and-codecref-roundtripWhat follows in the successor project
Typed DDL migration ops — complete the conversion owns:
buildAddColumnSql.CREATE EXTENSIONas first-class entity kind.RecreateTable+ AST growth (CASE WHEN, row-tupleIN).DdlColumn.type.db verify schemaCLI command #10 from this project).dataTransformop factory: defer lowering, type the EXISTS wrapper.PostgresTableRefend-to-end (typed table refs).Reviewer notes
rg -l "projects/migrate-marker-ledger-to-typed-query-ast-commands/" --glob '!projects/migrate-marker-ledger-to-typed-query-ast-commands/**' --glob '!.git/**'returned no matches). No links to re-point.docs(marker-ledger): final close-out retrothenchore: close out … — delete workspace) so the final retro is preserved as a tracked commit onmainfor archeology if anyone later asks "how did Phase 2 get extracted out cleanly?"spec.md/plan.md, where TML-2923's ADR slice absorbs/replaces it. Writing the canonical ADR here, before the remaining Phase-2 design decisions (TML-2919/2920/2921/2922) land, would produce a doc that drifts within weeks.mainbefore the successor project's workspace does (TML-2919/TML-2919: convert not-null temp-default recipe to typed DDL; delete buildAddColumnSql #840 also createsprojects/typed-ddl-migration-ops/but is in flight). If this PR merges first, my commit creates the dir; if TML-2919: convert not-null temp-default recipe to typed DDL; delete buildAddColumnSql #840 merges first, my file lands next to its spec/plan. Either order works.Testing performed
rgreference scan confirmed pre-delete.Skill update
n/a — internal project workspace removal.
Checklist
n/a(delete-only, no behavioral change).<TICKET-or-scope>: <sentence-case title>form.n/a).