This repository was archived by the owner on Nov 25, 2026. It is now read-only.
Repository navigation
Extend coverage - #8
Merged
Merged
Conversation
wmadden
added a commit
that referenced
this pull request
May 4, 2026
Two amendments per orchestrator triage of m2 R1 reviewer escalations: - Strike TC-25 (telemetry-event-shape test on the serverless lifecycle). Selective enforcement otherwise: the Node postgres() factory has no telemetry test, and middleware pass-through is already structurally covered by postgres-serverless.test.ts lines 236-254. Updated both the Test Design row and the M2 task 2.5 bullet. - Add open item #8: re-export PostgresCursorOptions from @prisma-next/driver-postgres/runtime as a follow-up ticket. Out of scope for this project; the serverless facades NonNullable<...> workaround is structurally equivalent.
saevarb
pushed a commit
that referenced
this pull request
May 6, 2026
Two amendments per orchestrator triage of m2 R1 reviewer escalations: - Strike TC-25 (telemetry-event-shape test on the serverless lifecycle). Selective enforcement otherwise: the Node postgres() factory has no telemetry test, and middleware pass-through is already structurally covered by postgres-serverless.test.ts lines 236-254. Updated both the Test Design row and the M2 task 2.5 bullet. - Add open item #8: re-export PostgresCursorOptions from @prisma-next/driver-postgres/runtime as a follow-up ticket. Out of scope for this project; the serverless facades NonNullable<...> workaround is structurally equivalent.
jkomyno
added a commit
that referenced
this pull request
May 8, 2026
* #7 — SQLite AFTER-trigger mitigation: decision recorded as defer. JSDoc on buildRowIdentityCriterion + Query Lanes.md paragraph remain the documented mitigation; no runtime guard added until the SQLite adapter actually exercises id-less + AFTER-trigger contracts. * #8 — Asymmetric `returning` gate: comment at executeUpdateCount records the explicit design choice. Surface-level updateCount/ deleteCount require the capability; FK-rewrite cleanup (disconnect/setNull) does not, since no row data is read. * #9 — Trim WHAT-restating sentence from buildRowIdentityCriterion comment block. Remaining lines explain the genuinely non-obvious WHY: RETURNING-by-construction invariant + duplicate-tuple caveat + SQLite AFTER-trigger caveat. * #10 — Add typed `withoutPrimaryKey<TTable>(contract, table)` helper to test/helpers.ts mirroring `withCapabilities`. Migrate four call sites (createIdlessTagsCollection, createIdlessUsersCollection, two unit tests in mutation-executor.test.ts) from inline `as unknown as TestContract` casts to the helper. Cast lives in one place now. * #11 — Drop redundant `updateCount returns zero` integration test on id-less Tags. The zero-match path is already covered by unit tests on PK contracts and does not exercise id-less specifics. * #12 — Extract `getPrimaryKeyColumns(contract, tableName): readonly string[]` helper in collection-contract.ts. Replaces three duplicated raw-storage accesses (resolvePrimaryKeyColumn, pickCountReturningColumn, buildRowIdentityCriterion, the new P1 guard). * #13 — Plan doc references the post-rename name throughout. * #14 — Trim `resolvePrimaryKeyColumn` error to one sentence; the API guidance prose duplicated content already in Query Lanes.md. All 8 P3 todos marked complete. pnpm test:packages 110/110 green; pnpm lint:deps 0 violations. sql-orm-client suite is 501 (one fewer than before due to dropped redundant test).
wmadden
added a commit
that referenced
this pull request
May 8, 2026
… spec Commits the spec that amends the M2 introduction site for the contract spaces project. The spec is the source of truth for the four-commit slice that lands on `tml-2397-codec-hooks-and-db-init-update` and the follow-on rebase cascade onto M3 / M4 / M5. The doc lives under `projects/extension-contract-spaces/` (transient, project-local scope per `drive-project-workflow.mdc`) — it will be removed at project close-out (M5) along with the rest of the project folder. No long-lived docs are touched here. Per spec watchpoint #8, the references in the spec to `wip/contract-spaces-team-walkthrough.md` and the not-yet-merged `docs/architecture docs/adrs/ADR 211 - Contract spaces.md` resolve to nothing on disk in this branch — neither file exists yet, so the spec's "Doc clean-up" pass is a no-op beyond committing the spec itself. The marker-aware verifier wiring story will be documented canonically when ADR 211 is opened by a later commit on this stack. Validation: `pnpm typecheck` + `pnpm lint:deps` — both green. Refs: projects/extension-contract-spaces/specs/m2-orchestrator-consolidation-spec.md § "Commit 4 — clean-up + docs".
wmadden
added a commit
that referenced
this pull request
May 9, 2026
… spec Commits the spec that amends the M2 introduction site for the contract spaces project. The spec is the source of truth for the four-commit slice that lands on `tml-2397-codec-hooks-and-db-init-update` and the follow-on rebase cascade onto M3 / M4 / M5. The doc lives under `projects/extension-contract-spaces/` (transient, project-local scope per `drive-project-workflow.mdc`) — it will be removed at project close-out (M5) along with the rest of the project folder. No long-lived docs are touched here. Per spec watchpoint #8, the references in the spec to `wip/contract-spaces-team-walkthrough.md` and the not-yet-merged `docs/architecture docs/adrs/ADR 211 - Contract spaces.md` resolve to nothing on disk in this branch — neither file exists yet, so the spec's "Doc clean-up" pass is a no-op beyond committing the spec itself. The marker-aware verifier wiring story will be documented canonically when ADR 211 is opened by a later commit on this stack. Validation: `pnpm typecheck` + `pnpm lint:deps` — both green. Refs: projects/extension-contract-spaces/specs/m2-orchestrator-consolidation-spec.md § "Commit 4 — clean-up + docs".
wmadden
added a commit
that referenced
this pull request
May 9, 2026
… spec Commits the spec that amends the M2 introduction site for the contract spaces project. The spec is the source of truth for the four-commit slice that lands on `tml-2397-codec-hooks-and-db-init-update` and the follow-on rebase cascade onto M3 / M4 / M5. The doc lives under `projects/extension-contract-spaces/` (transient, project-local scope per `drive-project-workflow.mdc`) — it will be removed at project close-out (M5) along with the rest of the project folder. No long-lived docs are touched here. Per spec watchpoint #8, the references in the spec to `wip/contract-spaces-team-walkthrough.md` and the not-yet-merged `docs/architecture docs/adrs/ADR 211 - Contract spaces.md` resolve to nothing on disk in this branch — neither file exists yet, so the spec's "Doc clean-up" pass is a no-op beyond committing the spec itself. The marker-aware verifier wiring story will be documented canonically when ADR 211 is opened by a later commit on this stack. Validation: `pnpm typecheck` + `pnpm lint:deps` — both green. Refs: projects/extension-contract-spaces/specs/m2-orchestrator-consolidation-spec.md § "Commit 4 — clean-up + docs".
wmadden
added a commit
that referenced
this pull request
May 10, 2026
… spec Commits the spec that amends the M2 introduction site for the contract spaces project. The spec is the source of truth for the four-commit slice that lands on `tml-2397-codec-hooks-and-db-init-update` and the follow-on rebase cascade onto M3 / M4 / M5. The doc lives under `projects/extension-contract-spaces/` (transient, project-local scope per `drive-project-workflow.mdc`) — it will be removed at project close-out (M5) along with the rest of the project folder. No long-lived docs are touched here. Per spec watchpoint #8, the references in the spec to `wip/contract-spaces-team-walkthrough.md` and the not-yet-merged `docs/architecture docs/adrs/ADR 211 - Contract spaces.md` resolve to nothing on disk in this branch — neither file exists yet, so the spec's "Doc clean-up" pass is a no-op beyond committing the spec itself. The marker-aware verifier wiring story will be documented canonically when ADR 211 is opened by a later commit on this stack. Validation: `pnpm typecheck` + `pnpm lint:deps` — both green. Refs: projects/extension-contract-spaces/specs/m2-orchestrator-consolidation-spec.md § "Commit 4 — clean-up + docs".
wmadden
added a commit
that referenced
this pull request
May 10, 2026
… spec Commits the spec that amends the M2 introduction site for the contract spaces project. The spec is the source of truth for the four-commit slice that lands on `tml-2397-codec-hooks-and-db-init-update` and the follow-on rebase cascade onto M3 / M4 / M5. The doc lives under `projects/extension-contract-spaces/` (transient, project-local scope per `drive-project-workflow.mdc`) — it will be removed at project close-out (M5) along with the rest of the project folder. No long-lived docs are touched here. Per spec watchpoint #8, the references in the spec to `wip/contract-spaces-team-walkthrough.md` and the not-yet-merged `docs/architecture docs/adrs/ADR 211 - Contract spaces.md` resolve to nothing on disk in this branch — neither file exists yet, so the spec's "Doc clean-up" pass is a no-op beyond committing the spec itself. The marker-aware verifier wiring story will be documented canonically when ADR 211 is opened by a later commit on this stack. Validation: `pnpm typecheck` + `pnpm lint:deps` — both green. Refs: projects/extension-contract-spaces/specs/m2-orchestrator-consolidation-spec.md § "Commit 4 — clean-up + docs".
wmadden
added a commit
that referenced
this pull request
May 10, 2026
Short pattern entry that summarises the three-axis package layering shape (domains × layers × planes) and points to Package-Layering.md as the canonical doc, per spec § "v1 patterns to write" #8 (catalogue entry strategy: do not duplicate the canonical doc). Cites the actual layering linter scripts per the standing decision: scripts/lint-framework-target-imports.mjs and scripts/lint-app-space-id.mjs (along with depcruise via dependency-cruiser.config.mjs). Does not cite the stale scripts/check-imports.mjs path the spec referenced — that script does not exist on disk. Cross-links three ADRs (140 codifying decision, 005 framing principle, 150 entry-point conventions), and four Cursor rules (import-validation, no-barrel-files, multi-plane-packages, multi-plane-entrypoints). Names SPI at the lowest consuming layer as the operational rule for cross-layer dispatch and Adapter SPI as the layer-specific application. When-NOT-to-use names single-package projects (no boundaries to enforce), examples / integration tests (explicitly outside the rule), and tooling under scripts/ (not packages, no layer). Refs: TML-2466
wmadden
added a commit
that referenced
this pull request
May 10, 2026
Short pattern entry that summarises the three-axis package layering shape (domains × layers × planes) and points to Package-Layering.md as the canonical doc, per spec § "v1 patterns to write" #8 (catalogue entry strategy: do not duplicate the canonical doc). Cites the actual layering linter scripts per the standing decision: scripts/lint-framework-target-imports.mjs and scripts/lint-app-space-id.mjs (along with depcruise via dependency-cruiser.config.mjs). Does not cite the stale scripts/check-imports.mjs path the spec referenced — that script does not exist on disk. Cross-links three ADRs (140 codifying decision, 005 framing principle, 150 entry-point conventions), and four Cursor rules (import-validation, no-barrel-files, multi-plane-packages, multi-plane-entrypoints). Names SPI at the lowest consuming layer as the operational rule for cross-layer dispatch and Adapter SPI as the layer-specific application. When-NOT-to-use names single-package projects (no boundaries to enforce), examples / integration tests (explicitly outside the rule), and tooling under scripts/ (not packages, no layer). Refs: TML-2466
wmadden
added a commit
that referenced
this pull request
May 10, 2026
Short pattern entry that summarises the three-axis package layering shape (domains × layers × planes) and points to Package-Layering.md as the canonical doc, per spec § "v1 patterns to write" #8 (catalogue entry strategy: do not duplicate the canonical doc). Cites the actual layering linter scripts per the standing decision: scripts/lint-framework-target-imports.mjs and scripts/lint-app-space-id.mjs (along with depcruise via dependency-cruiser.config.mjs). Does not cite the stale scripts/check-imports.mjs path the spec referenced — that script does not exist on disk. Cross-links three ADRs (140 codifying decision, 005 framing principle, 150 entry-point conventions), and four Cursor rules (import-validation, no-barrel-files, multi-plane-packages, multi-plane-entrypoints). Names SPI at the lowest consuming layer as the operational rule for cross-layer dispatch and Adapter SPI as the layer-specific application. When-NOT-to-use names single-package projects (no boundaries to enforce), examples / integration tests (explicitly outside the rule), and tooling under scripts/ (not packages, no layer). Refs: TML-2466
wmadden
added a commit
that referenced
this pull request
May 10, 2026
Short pattern entry that summarises the three-axis package layering shape (domains × layers × planes) and points to Package-Layering.md as the canonical doc, per spec § "v1 patterns to write" #8 (catalogue entry strategy: do not duplicate the canonical doc). Cites the actual layering linter scripts per the standing decision: scripts/lint-framework-target-imports.mjs and scripts/lint-app-space-id.mjs (along with depcruise via dependency-cruiser.config.mjs). Does not cite the stale scripts/check-imports.mjs path the spec referenced — that script does not exist on disk. Cross-links three ADRs (140 codifying decision, 005 framing principle, 150 entry-point conventions), and four Cursor rules (import-validation, no-barrel-files, multi-plane-packages, multi-plane-entrypoints). Names SPI at the lowest consuming layer as the operational rule for cross-layer dispatch and Adapter SPI as the layer-specific application. When-NOT-to-use names single-package projects (no boundaries to enforce), examples / integration tests (explicitly outside the rule), and tooling under scripts/ (not packages, no layer). Refs: TML-2466
wmadden
added a commit
that referenced
this pull request
May 12, 2026
Short pattern entry that summarises the three-axis package layering shape (domains × layers × planes) and points to Package-Layering.md as the canonical doc, per spec § "v1 patterns to write" #8 (catalogue entry strategy: do not duplicate the canonical doc). Cites the actual layering linter scripts per the standing decision: scripts/lint-framework-target-imports.mjs and scripts/lint-app-space-id.mjs (along with depcruise via dependency-cruiser.config.mjs). Does not cite the stale scripts/check-imports.mjs path the spec referenced — that script does not exist on disk. Cross-links three ADRs (140 codifying decision, 005 framing principle, 150 entry-point conventions), and four Cursor rules (import-validation, no-barrel-files, multi-plane-packages, multi-plane-entrypoints). Names SPI at the lowest consuming layer as the operational rule for cross-layer dispatch and Adapter SPI as the layer-specific application. When-NOT-to-use names single-package projects (no boundaries to enforce), examples / integration tests (explicitly outside the rule), and tooling under scripts/ (not packages, no layer). Refs: TML-2466
wmadden
added a commit
that referenced
this pull request
May 12, 2026
Closes design holes #7, #8, #11, #13, #14 with one architectural decision (C12 in decisions.md): introduce the runtime target-layer class in v0.1 and have Supabase extend it. The runtime layer was class-based but missing the target tier: RuntimeCore (framework, abstract) <- SqlRuntimeImpl (sql family, internal). This project lifts SqlRuntimeImpl -> SqlRuntime (exported), adds PostgresRuntime (thin subclass, target-layer extension point), and lands SupabaseRuntime as PostgresRuntime's subclass. SET LOCAL is issued by SupabaseRuntime.execute() against the raw connection -- below the user middleware chain, structurally non-bypassable. Implicit transaction guarantees never-outlives-txn SET LOCAL state. JWT validation is eager behind a uniformly async factory. Mirrors TML-2459's three-layer IR pattern at the runtime axis. ~50 LOC of framework refactor; rationale and implementation sketch in the new ADR draft.
wmadden
added a commit
that referenced
this pull request
May 13, 2026
Closes design holes #7, #8, #11, #13, #14 with one architectural decision (C12 in decisions.md): introduce the runtime target-layer class in v0.1 and have Supabase extend it. The runtime layer was class-based but missing the target tier: RuntimeCore (framework, abstract) <- SqlRuntimeImpl (sql family, internal). This project lifts SqlRuntimeImpl -> SqlRuntime (exported), adds PostgresRuntime (thin subclass, target-layer extension point), and lands SupabaseRuntime as PostgresRuntime's subclass. SET LOCAL is issued by SupabaseRuntime.execute() against the raw connection -- below the user middleware chain, structurally non-bypassable. Implicit transaction guarantees never-outlives-txn SET LOCAL state. JWT validation is eager behind a uniformly async factory. Mirrors TML-2459's three-layer IR pattern at the runtime axis. ~50 LOC of framework refactor; rationale and implementation sketch in the new ADR draft.
wmadden
added a commit
that referenced
this pull request
May 13, 2026
Closes design holes #7, #8, #11, #13, #14 with one architectural decision (C12 in decisions.md): introduce the runtime target-layer class in v0.1 and have Supabase extend it. The runtime layer was class-based but missing the target tier: RuntimeCore (framework, abstract) <- SqlRuntimeImpl (sql family, internal). This project lifts SqlRuntimeImpl -> SqlRuntime (exported), adds PostgresRuntime (thin subclass, target-layer extension point), and lands SupabaseRuntime as PostgresRuntime's subclass. SET LOCAL is issued by SupabaseRuntime.execute() against the raw connection -- below the user middleware chain, structurally non-bypassable. Implicit transaction guarantees never-outlives-txn SET LOCAL state. JWT validation is eager behind a uniformly async factory. Mirrors TML-2459's three-layer IR pattern at the runtime axis. ~50 LOC of framework refactor; rationale and implementation sketch in the new ADR draft. Signed-off-by: Will Madden <[email protected]>
wmadden
added a commit
that referenced
this pull request
May 13, 2026
Closes design holes #7, #8, #11, #13, #14 with one architectural decision (C12 in decisions.md): introduce the runtime target-layer class in v0.1 and have Supabase extend it. The runtime layer was class-based but missing the target tier: RuntimeCore (framework, abstract) <- SqlRuntimeImpl (sql family, internal). This project lifts SqlRuntimeImpl -> SqlRuntime (exported), adds PostgresRuntime (thin subclass, target-layer extension point), and lands SupabaseRuntime as PostgresRuntime's subclass. SET LOCAL is issued by SupabaseRuntime.execute() against the raw connection -- below the user middleware chain, structurally non-bypassable. Implicit transaction guarantees never-outlives-txn SET LOCAL state. JWT validation is eager behind a uniformly async factory. Mirrors TML-2459's three-layer IR pattern at the runtime axis. ~50 LOC of framework refactor; rationale and implementation sketch in the new ADR draft. Signed-off-by: Will Madden <[email protected]>
wmadden
added a commit
that referenced
this pull request
May 13, 2026
Closes design holes #7, #8, #11, #13, #14 with one architectural decision (C12 in decisions.md): introduce the runtime target-layer class in v0.1 and have Supabase extend it. The runtime layer was class-based but missing the target tier: RuntimeCore (framework, abstract) <- SqlRuntimeImpl (sql family, internal). This project lifts SqlRuntimeImpl -> SqlRuntime (exported), adds PostgresRuntime (thin subclass, target-layer extension point), and lands SupabaseRuntime as PostgresRuntime's subclass. SET LOCAL is issued by SupabaseRuntime.execute() against the raw connection -- below the user middleware chain, structurally non-bypassable. Implicit transaction guarantees never-outlives-txn SET LOCAL state. JWT validation is eager behind a uniformly async factory. Mirrors TML-2459's three-layer IR pattern at the runtime axis. ~50 LOC of framework refactor; rationale and implementation sketch in the new ADR draft. Signed-off-by: Will Madden <[email protected]>
wmadden
added a commit
that referenced
this pull request
May 14, 2026
…emaVerify removal) into M2.5 TML-2464 (tml-2464-strip-single-spacemulti-space-branching-once-every-target-is) is paused on user instruction until target-extensible-ir lands. Its branch carries 6 commits, three of which deliver AC #7: b4548c1b3 rename schemaVerifyAgainstSchema -> verifySchema (cross-family) e6c9d1563 compose introspect + verifySchema at family-verify call sites d0712a45e remove async schemaVerify from family interface Cherry-pick probe onto target-extensible-ir HEAD: the rename and compose commits auto-merge cleanly; d0712a45e conflicts in family-mongo/control-instance.ts against M2 R1 helpers - exactly the file M2.5 will rewrite for SPI dispatch. Two options were viable: (a) write M2.5 against the pre-rename naming and rebase TML-2464 on top later, or (b) absorb AC #7 into M2.5 so the SPI dispatch lands on the post-rename naming. Option (b) wins on naming consistency (no second rename pass through M2.5 surface area), conflict avoidance (the third commit naturally folds into the SPI refactor of the same file), and user authorisation (user paused TML-2464 explicitly to enable this convergence). Spec gains: - status banner note on the absorption with cherry-pick probe trail - new section 0 detailing the rename, compose-at-call-sites, and async-removal cherry-pick guidance - section 5 update calling out the async-removal fold-in into the SPI dispatch refactor - acceptance criterion verifying the absorption landed Plan gains: - M2.5 task list grows from 9 to 10 (adds task 0) - task counts in spec link updated - cross-project deps note for TML-2464 records the blockedBy relation set in Linear and the AC #7 absorption with TML-2464 resume scope (ACs #1-6 + #8) Linear: TML-2464 blockedBy TML-2459 set; comment posted naming the absorption + resume scope so the future TML-2464 implementer does not redo AC #7 work. Full reasoning trail in wip/unattended-decisions.md section 12.
wmadden
added a commit
that referenced
this pull request
May 15, 2026
…emaVerify removal) into M2.5 TML-2464 (tml-2464-strip-single-spacemulti-space-branching-once-every-target-is) is paused on user instruction until target-extensible-ir lands. Its branch carries 6 commits, three of which deliver AC #7: b4548c1b3 rename schemaVerifyAgainstSchema -> verifySchema (cross-family) e6c9d1563 compose introspect + verifySchema at family-verify call sites d0712a45e remove async schemaVerify from family interface Cherry-pick probe onto target-extensible-ir HEAD: the rename and compose commits auto-merge cleanly; d0712a45e conflicts in family-mongo/control-instance.ts against M2 R1 helpers - exactly the file M2.5 will rewrite for SPI dispatch. Two options were viable: (a) write M2.5 against the pre-rename naming and rebase TML-2464 on top later, or (b) absorb AC #7 into M2.5 so the SPI dispatch lands on the post-rename naming. Option (b) wins on naming consistency (no second rename pass through M2.5 surface area), conflict avoidance (the third commit naturally folds into the SPI refactor of the same file), and user authorisation (user paused TML-2464 explicitly to enable this convergence). Spec gains: - status banner note on the absorption with cherry-pick probe trail - new section 0 detailing the rename, compose-at-call-sites, and async-removal cherry-pick guidance - section 5 update calling out the async-removal fold-in into the SPI dispatch refactor - acceptance criterion verifying the absorption landed Plan gains: - M2.5 task list grows from 9 to 10 (adds task 0) - task counts in spec link updated - cross-project deps note for TML-2464 records the blockedBy relation set in Linear and the AC #7 absorption with TML-2464 resume scope (ACs #1-6 + #8) Linear: TML-2464 blockedBy TML-2459 set; comment posted naming the absorption + resume scope so the future TML-2464 implementer does not redo AC #7 work. Full reasoning trail in wip/unattended-decisions.md section 12. Signed-off-by: Will Madden <[email protected]>
wmadden
added a commit
that referenced
this pull request
May 15, 2026
The migrations audit (4dd3ac8) correctly described the migration.ts authoring API but read in places as if users hand-write the file and its `@prisma-next/target-postgres/migration` imports. They do not: migration.ts files are framework-rendered by `prisma-next migration plan` (or `migration new`), and users edit specific holes — chiefly replacing `placeholder("...")` sentinels with `dataTransform` closures. The rendered imports point at `@prisma-next/target-postgres/migration` because the user-facing `@prisma-next/postgres` facade does not yet re-export the migration surface. TML-2526 tracks closing that gap; once it lands, the renderer (and this skill) will switch to `@prisma-next/postgres/migration` in one step. Until then the rendered import is framework-managed: leave it, and add extra symbols to the existing line. Touched sections: - frontmatter description (matcher coverage for `dataTransform`, `generated migration.ts`, `edit migration.ts`) - Key Concepts: `migration.ts` shape, `placeholder`, package-files entry - new framing block "`migration.ts` is framework-rendered, not hand-authored" - Workflow — Fill a placeholder (filled-in shape prose) - Workflow — Author a migration by hand (concept block + factories prose) - Common Pitfalls (new pitfall #8) - What Prisma Next doesn't do yet (new entry: facade re-export gap, routes to feedback, references TML-2526) Signed-off-by: Will Madden <[email protected]>
wmadden
added a commit
that referenced
this pull request
May 15, 2026
The migrations audit (4dd3ac8) correctly described the migration.ts authoring API but read in places as if users hand-write the file and its `@prisma-next/target-postgres/migration` imports. They do not: migration.ts files are framework-rendered by `prisma-next migration plan` (or `migration new`), and users edit specific holes — chiefly replacing `placeholder("...")` sentinels with `dataTransform` closures. The rendered imports point at `@prisma-next/target-postgres/migration` because the user-facing `@prisma-next/postgres` facade does not yet re-export the migration surface. TML-2526 tracks closing that gap; once it lands, the renderer (and this skill) will switch to `@prisma-next/postgres/migration` in one step. Until then the rendered import is framework-managed: leave it, and add extra symbols to the existing line. Touched sections: - frontmatter description (matcher coverage for `dataTransform`, `generated migration.ts`, `edit migration.ts`) - Key Concepts: `migration.ts` shape, `placeholder`, package-files entry - new framing block "`migration.ts` is framework-rendered, not hand-authored" - Workflow — Fill a placeholder (filled-in shape prose) - Workflow — Author a migration by hand (concept block + factories prose) - Common Pitfalls (new pitfall #8) - What Prisma Next doesn't do yet (new entry: facade re-export gap, routes to feedback, references TML-2526) Signed-off-by: Will Madden <[email protected]>
wmadden
added a commit
that referenced
this pull request
May 16, 2026
The migrations audit (4dd3ac8) correctly described the migration.ts authoring API but read in places as if users hand-write the file and its `@prisma-next/target-postgres/migration` imports. They do not: migration.ts files are framework-rendered by `prisma-next migration plan` (or `migration new`), and users edit specific holes — chiefly replacing `placeholder("...")` sentinels with `dataTransform` closures. The rendered imports point at `@prisma-next/target-postgres/migration` because the user-facing `@prisma-next/postgres` facade does not yet re-export the migration surface. TML-2526 tracks closing that gap; once it lands, the renderer (and this skill) will switch to `@prisma-next/postgres/migration` in one step. Until then the rendered import is framework-managed: leave it, and add extra symbols to the existing line. Touched sections: - frontmatter description (matcher coverage for `dataTransform`, `generated migration.ts`, `edit migration.ts`) - Key Concepts: `migration.ts` shape, `placeholder`, package-files entry - new framing block "`migration.ts` is framework-rendered, not hand-authored" - Workflow — Fill a placeholder (filled-in shape prose) - Workflow — Author a migration by hand (concept block + factories prose) - Common Pitfalls (new pitfall #8) - What Prisma Next doesn't do yet (new entry: facade re-export gap, routes to feedback, references TML-2526) Signed-off-by: Will Madden <[email protected]>
wmadden
added a commit
that referenced
this pull request
May 16, 2026
The migrations audit (4dd3ac8) correctly described the migration.ts authoring API but read in places as if users hand-write the file and its `@prisma-next/target-postgres/migration` imports. They do not: migration.ts files are framework-rendered by `prisma-next migration plan` (or `migration new`), and users edit specific holes — chiefly replacing `placeholder("...")` sentinels with `dataTransform` closures. The rendered imports point at `@prisma-next/target-postgres/migration` because the user-facing `@prisma-next/postgres` facade does not yet re-export the migration surface. TML-2526 tracks closing that gap; once it lands, the renderer (and this skill) will switch to `@prisma-next/postgres/migration` in one step. Until then the rendered import is framework-managed: leave it, and add extra symbols to the existing line. Touched sections: - frontmatter description (matcher coverage for `dataTransform`, `generated migration.ts`, `edit migration.ts`) - Key Concepts: `migration.ts` shape, `placeholder`, package-files entry - new framing block "`migration.ts` is framework-rendered, not hand-authored" - Workflow — Fill a placeholder (filled-in shape prose) - Workflow — Author a migration by hand (concept block + factories prose) - Common Pitfalls (new pitfall #8) - What Prisma Next doesn't do yet (new entry: facade re-export gap, routes to feedback, references TML-2526) Signed-off-by: Will Madden <[email protected]>
wmadden
added a commit
that referenced
this pull request
May 16, 2026
The migrations audit (4dd3ac8) correctly described the migration.ts authoring API but read in places as if users hand-write the file and its `@prisma-next/target-postgres/migration` imports. They do not: migration.ts files are framework-rendered by `prisma-next migration plan` (or `migration new`), and users edit specific holes — chiefly replacing `placeholder("...")` sentinels with `dataTransform` closures. The rendered imports point at `@prisma-next/target-postgres/migration` because the user-facing `@prisma-next/postgres` facade does not yet re-export the migration surface. TML-2526 tracks closing that gap; once it lands, the renderer (and this skill) will switch to `@prisma-next/postgres/migration` in one step. Until then the rendered import is framework-managed: leave it, and add extra symbols to the existing line. Touched sections: - frontmatter description (matcher coverage for `dataTransform`, `generated migration.ts`, `edit migration.ts`) - Key Concepts: `migration.ts` shape, `placeholder`, package-files entry - new framing block "`migration.ts` is framework-rendered, not hand-authored" - Workflow — Fill a placeholder (filled-in shape prose) - Workflow — Author a migration by hand (concept block + factories prose) - Common Pitfalls (new pitfall #8) - What Prisma Next doesn't do yet (new entry: facade re-export gap, routes to feedback, references TML-2526) Signed-off-by: Will Madden <[email protected]>
wmadden
added a commit
that referenced
this pull request
May 19, 2026
…ions
Adds step 4.5 to drive-close-project (and the supporting pattern
catalogue + pitfalls) so close-out catches files whose content is
methodology but whose voice is project-shaping -- the failure mode
that produced our own close-outs cruft.
The trial-period finding under drive/project/findings.md records the
specific gap surfaced by closing out drive-domain-model:
- problem-statement.md migrated as long-lived (it was a proposal
letter to canonical maintainers).
- skill-conventions.md migrated as long-lived (it was titled "Skill
restructuring plan" and described what we changed, not the
resulting conventions).
- workflow.md migrated with "Bold = new (this project adds it)"
framing baked in -- meaningless to a fresh reader.
- definition-of-ready.md and definition-of-done.md migrated with
"Worked example for prisma-next:" sections that duplicate
overlays already lifted into drive/<category>/README.md.
- trial.md migrated as long-lived despite documenting a specific
2026-05-19 -> 2026-06-02 window.
What the skill update adds:
1. Step 4.5 -- prose audit on every long-lived candidate. Four smell
tests: project-shaping voice in headings / prose; status blocks
tied to project lifecycle; worked-example pollution duplicating
project-context; worked examples anchored to specific real-world
incidents. Each match yields a per-file disposition: rewrite-at-
migration, lift-example-to-context, soften-at-migration, or
reclassify-as-transient.
2. Step 5 confirmation extended to cover the disposition (the
operator signs off on the disposition, not just the
classification).
3. Step 6 migration extended to apply dispositions
(rewrite / lift / soften instead of bare git mv where the audit
matched).
4. Default classification table extended:
- *-restructure.md / migration-plan.md / *-changes.md -> transient
(execution plans describing project deltas).
- problem-statement.md / pitch.md / proposal.md / motivation.md
-> transient (project-shaping / advocacy artefacts).
- trial.md / validation.md / rollout.md -> transient
(time-windowed execution artefacts).
- principles/**, model.md, workflow.md, *-conventions.md flagged
"long-lived (prose-audit at step 4.5)" -- still long-lived by
default, audit catches the exceptions.
5. Three new pitfalls (#8, #9, #10) covering the three audit-caught
failure modes.
6. Checklist updated to require dispositions recorded + operator
confirmation covering them.
Slices A + B (separate commits) apply the audit to the existing
docs/drive/ tree and clear the cruft this same finding surfaced.
Linked issue: TML-2549. Trial-period finding contributes to TML-2567
upstream-PR synthesis.
Signed-off-by: Will Madden <[email protected]>
wmadden
added a commit
that referenced
this pull request
May 19, 2026
…ions
Adds step 4.5 to drive-close-project (and the supporting pattern
catalogue + pitfalls) so close-out catches files whose content is
methodology but whose voice is project-shaping -- the failure mode
that produced our own close-outs cruft.
The trial-period finding under drive/project/findings.md records the
specific gap surfaced by closing out drive-domain-model:
- problem-statement.md migrated as long-lived (it was a proposal
letter to canonical maintainers).
- skill-conventions.md migrated as long-lived (it was titled "Skill
restructuring plan" and described what we changed, not the
resulting conventions).
- workflow.md migrated with "Bold = new (this project adds it)"
framing baked in -- meaningless to a fresh reader.
- definition-of-ready.md and definition-of-done.md migrated with
"Worked example for prisma-next:" sections that duplicate
overlays already lifted into drive/<category>/README.md.
- trial.md migrated as long-lived despite documenting a specific
2026-05-19 -> 2026-06-02 window.
What the skill update adds:
1. Step 4.5 -- prose audit on every long-lived candidate. Four smell
tests: project-shaping voice in headings / prose; status blocks
tied to project lifecycle; worked-example pollution duplicating
project-context; worked examples anchored to specific real-world
incidents. Each match yields a per-file disposition: rewrite-at-
migration, lift-example-to-context, soften-at-migration, or
reclassify-as-transient.
2. Step 5 confirmation extended to cover the disposition (the
operator signs off on the disposition, not just the
classification).
3. Step 6 migration extended to apply dispositions
(rewrite / lift / soften instead of bare git mv where the audit
matched).
4. Default classification table extended:
- *-restructure.md / migration-plan.md / *-changes.md -> transient
(execution plans describing project deltas).
- problem-statement.md / pitch.md / proposal.md / motivation.md
-> transient (project-shaping / advocacy artefacts).
- trial.md / validation.md / rollout.md -> transient
(time-windowed execution artefacts).
- principles/**, model.md, workflow.md, *-conventions.md flagged
"long-lived (prose-audit at step 4.5)" -- still long-lived by
default, audit catches the exceptions.
5. Three new pitfalls (#8, #9, #10) covering the three audit-caught
failure modes.
6. Checklist updated to require dispositions recorded + operator
confirmation covering them.
Slices A + B (separate commits) apply the audit to the existing
docs/drive/ tree and clear the cruft this same finding surfaced.
Linked issue: TML-2549. Trial-period finding contributes to TML-2567
upstream-PR synthesis.
Signed-off-by: Will Madden <[email protected]>
wmadden
added a commit
that referenced
this pull request
May 19, 2026
…ions
Adds step 4.5 to drive-close-project (and the supporting pattern
catalogue + pitfalls) so close-out catches files whose content is
methodology but whose voice is project-shaping -- the failure mode
that produced our own close-outs cruft.
The trial-period finding under drive/project/findings.md records the
specific gap surfaced by closing out drive-domain-model:
- problem-statement.md migrated as long-lived (it was a proposal
letter to canonical maintainers).
- skill-conventions.md migrated as long-lived (it was titled "Skill
restructuring plan" and described what we changed, not the
resulting conventions).
- workflow.md migrated with "Bold = new (this project adds it)"
framing baked in -- meaningless to a fresh reader.
- definition-of-ready.md and definition-of-done.md migrated with
"Worked example for prisma-next:" sections that duplicate
overlays already lifted into drive/<category>/README.md.
- trial.md migrated as long-lived despite documenting a specific
2026-05-19 -> 2026-06-02 window.
What the skill update adds:
1. Step 4.5 -- prose audit on every long-lived candidate. Four smell
tests: project-shaping voice in headings / prose; status blocks
tied to project lifecycle; worked-example pollution duplicating
project-context; worked examples anchored to specific real-world
incidents. Each match yields a per-file disposition: rewrite-at-
migration, lift-example-to-context, soften-at-migration, or
reclassify-as-transient.
2. Step 5 confirmation extended to cover the disposition (the
operator signs off on the disposition, not just the
classification).
3. Step 6 migration extended to apply dispositions
(rewrite / lift / soften instead of bare git mv where the audit
matched).
4. Default classification table extended:
- *-restructure.md / migration-plan.md / *-changes.md -> transient
(execution plans describing project deltas).
- problem-statement.md / pitch.md / proposal.md / motivation.md
-> transient (project-shaping / advocacy artefacts).
- trial.md / validation.md / rollout.md -> transient
(time-windowed execution artefacts).
- principles/**, model.md, workflow.md, *-conventions.md flagged
"long-lived (prose-audit at step 4.5)" -- still long-lived by
default, audit catches the exceptions.
5. Three new pitfalls (#8, #9, #10) covering the three audit-caught
failure modes.
6. Checklist updated to require dispositions recorded + operator
confirmation covering them.
Slices A + B (separate commits) apply the audit to the existing
docs/drive/ tree and clear the cruft this same finding surfaced.
Linked issue: TML-2549. Trial-period finding contributes to TML-2567
upstream-PR synthesis.
Signed-off-by: Will Madden <[email protected]>
wmadden
added a commit
that referenced
this pull request
May 20, 2026
The prisma-next-runtime "Running as a script (teardown)" workflow had the await using example without an adjacent block-scope warning; an agent reading top-to-bottom could copy `await using db = postgres(...)` into a request handler and close the pool per-request. Add a hard "DON'T do this" subsection immediately after the example with a concrete misuse example and the right server pattern (module-level singleton) shown side by side. Also tighten the Common Pitfalls #8 entry and the prisma-next-debug routing row so neither references `await using` without the script-context qualifier. Signed-off-by: Will Madden <[email protected]>
wmadden
added a commit
that referenced
this pull request
May 21, 2026
The prisma-next-runtime "Running as a script (teardown)" workflow had the await using example without an adjacent block-scope warning; an agent reading top-to-bottom could copy `await using db = postgres(...)` into a request handler and close the pool per-request. Add a hard "DON'T do this" subsection immediately after the example with a concrete misuse example and the right server pattern (module-level singleton) shown side by side. Also tighten the Common Pitfalls #8 entry and the prisma-next-debug routing row so neither references `await using` without the script-context qualifier. Signed-off-by: Will Madden <[email protected]>
wmadden
added a commit
that referenced
this pull request
May 21, 2026
The prisma-next-runtime "Running as a script (teardown)" workflow had the await using example without an adjacent block-scope warning; an agent reading top-to-bottom could copy `await using db = postgres(...)` into a request handler and close the pool per-request. Add a hard "DON'T do this" subsection immediately after the example with a concrete misuse example and the right server pattern (module-level singleton) shown side by side. Also tighten the Common Pitfalls #8 entry and the prisma-next-debug routing row so neither references `await using` without the script-context qualifier. Signed-off-by: Will Madden <[email protected]>
wmadden
added a commit
that referenced
this pull request
May 26, 2026
Adds --output <path> to `prisma-next contract emit`. The flag overrides contractConfig.output at the control-API entry point with CLI > config > default precedence (TML-2664). Implementation details: - ContractEmitOptions gains outputOverride?: string (resolved by the CLI caller before passing in; passed verbatim to executeContractEmit). - executeContractEmit uses effectiveOutput = outputOverride ?? contractConfig.output. - resolveHeaderPaths passes the override through to the header display and handles non-.json extensions gracefully (no throw; display paths derived by suffix substitution so warnings can fire before the emit attempt). - computeOutputWarnings emits soft warnings (via ui.warn()) for: - non-.json extension (#8) - directory-shaped paths — trailing / or \ (#9) - collision with a contract source input file (#13) - Relative --output values are resolved against cwd (CLI convention); the resolution happens before the value reaches the control-API. Help snapshot updated to include the new flag and example. TML-2664 Signed-off-by: Will Madden <[email protected]>
wmadden
added a commit
that referenced
this pull request
May 26, 2026
Reflect PR review feedback in the project artifacts. The wrapper option renames from `output` to `outputPath`, the CLI flag renames from `--output <path>` to `--output-path <dir>`, and the semantics shift from "user supplies the .json file path, framework substitutes .d.ts" to "user supplies the directory, framework picks contract.json + contract.d.ts as canonical filenames". Updates: - spec: directory semantics in scope, file-path & soft-warning surface out, FRs rewritten, canonical-filename invariant called out - design-notes: new "Design pivot" section explains the file-path → directory-path shift and why; alternatives list updated to reflect what was rejected during the pivot - slice spec: edge-case map rewritten for directory semantics (#8 #9 #13 removed, canonical-filename invariant added as #11), SDoD wording updated for the new CLI flag + manual-QA command - slice plan: original d1/d2/d3 sections preserved as historical record; new "PR-review-response round" section summarizes the renames, semantic shift, deletions, and post-rebase commit set - project plan: scope summary updated to directory semantics; the pre-pivot risks (CLI wiring scope, soft-warning surface choice) are now resolved Signed-off-by: Will Madden <[email protected]>
wmadden
added a commit
that referenced
this pull request
May 26, 2026
Adds --output <path> to `prisma-next contract emit`. The flag overrides contractConfig.output at the control-API entry point with CLI > config > default precedence (TML-2664). Implementation details: - ContractEmitOptions gains outputOverride?: string (resolved by the CLI caller before passing in; passed verbatim to executeContractEmit). - executeContractEmit uses effectiveOutput = outputOverride ?? contractConfig.output. - resolveHeaderPaths passes the override through to the header display and handles non-.json extensions gracefully (no throw; display paths derived by suffix substitution so warnings can fire before the emit attempt). - computeOutputWarnings emits soft warnings (via ui.warn()) for: - non-.json extension (#8) - directory-shaped paths — trailing / or \ (#9) - collision with a contract source input file (#13) - Relative --output values are resolved against cwd (CLI convention); the resolution happens before the value reaches the control-API. Help snapshot updated to include the new flag and example. TML-2664 Signed-off-by: Will Madden <[email protected]>
wmadden
added a commit
that referenced
this pull request
May 26, 2026
Reflect PR review feedback in the project artifacts. The wrapper option renames from `output` to `outputPath`, the CLI flag renames from `--output <path>` to `--output-path <dir>`, and the semantics shift from "user supplies the .json file path, framework substitutes .d.ts" to "user supplies the directory, framework picks contract.json + contract.d.ts as canonical filenames". Updates: - spec: directory semantics in scope, file-path & soft-warning surface out, FRs rewritten, canonical-filename invariant called out - design-notes: new "Design pivot" section explains the file-path → directory-path shift and why; alternatives list updated to reflect what was rejected during the pivot - slice spec: edge-case map rewritten for directory semantics (#8 #9 #13 removed, canonical-filename invariant added as #11), SDoD wording updated for the new CLI flag + manual-QA command - slice plan: original d1/d2/d3 sections preserved as historical record; new "PR-review-response round" section summarizes the renames, semantic shift, deletions, and post-rebase commit set - project plan: scope summary updated to directory semantics; the pre-pivot risks (CLI wiring scope, soft-warning surface choice) are now resolved Signed-off-by: Will Madden <[email protected]>
wmadden
added a commit
that referenced
this pull request
May 26, 2026
Adds --output <path> to `prisma-next contract emit`. The flag overrides contractConfig.output at the control-API entry point with CLI > config > default precedence (TML-2664). Implementation details: - ContractEmitOptions gains outputOverride?: string (resolved by the CLI caller before passing in; passed verbatim to executeContractEmit). - executeContractEmit uses effectiveOutput = outputOverride ?? contractConfig.output. - resolveHeaderPaths passes the override through to the header display and handles non-.json extensions gracefully (no throw; display paths derived by suffix substitution so warnings can fire before the emit attempt). - computeOutputWarnings emits soft warnings (via ui.warn()) for: - non-.json extension (#8) - directory-shaped paths — trailing / or \ (#9) - collision with a contract source input file (#13) - Relative --output values are resolved against cwd (CLI convention); the resolution happens before the value reaches the control-API. Help snapshot updated to include the new flag and example. TML-2664 Signed-off-by: Will Madden <[email protected]>
wmadden
added a commit
that referenced
this pull request
May 26, 2026
Reflect PR review feedback in the project artifacts. The wrapper option renames from `output` to `outputPath`, the CLI flag renames from `--output <path>` to `--output-path <dir>`, and the semantics shift from "user supplies the .json file path, framework substitutes .d.ts" to "user supplies the directory, framework picks contract.json + contract.d.ts as canonical filenames". Updates: - spec: directory semantics in scope, file-path & soft-warning surface out, FRs rewritten, canonical-filename invariant called out - design-notes: new "Design pivot" section explains the file-path → directory-path shift and why; alternatives list updated to reflect what was rejected during the pivot - slice spec: edge-case map rewritten for directory semantics (#8 #9 #13 removed, canonical-filename invariant added as #11), SDoD wording updated for the new CLI flag + manual-QA command - slice plan: original d1/d2/d3 sections preserved as historical record; new "PR-review-response round" section summarizes the renames, semantic shift, deletions, and post-rebase commit set - project plan: scope summary updated to directory semantics; the pre-pivot risks (CLI wiring scope, soft-warning surface choice) are now resolved Signed-off-by: Will Madden <[email protected]>
tensordreams
added a commit
that referenced
this pull request
Jun 2, 2026
…-2787) Write slice artifacts. Spec corrected mid-flight (decision #9: connect also disabled on required-payload junctions). Type-level .create disable deferred (decision #8 — needs a contract .d.ts emitter change, operator decision). Signed-off-by: Alexey Orlenko's AI Agent <[email protected]>
tensordreams
added a commit
that referenced
this pull request
Jun 2, 2026
…-2787) Write slice artifacts. Spec corrected mid-flight (decision #9: connect also disabled on required-payload junctions). Type-level .create disable deferred (decision #8 — needs a contract .d.ts emitter change, operator decision). Signed-off-by: Alexey Orlenko's AI Agent <[email protected]>
tensordreams
added a commit
that referenced
this pull request
Jun 12, 2026
…-2787) Write slice artifacts. Spec corrected mid-flight (decision #9: connect also disabled on required-payload junctions). Type-level .create disable deferred (decision #8 — needs a contract .d.ts emitter change, operator decision). Signed-off-by: Alexey Orlenko's AI Agent <[email protected]>
tensordreams
added a commit
that referenced
this pull request
Jun 12, 2026
…-2787) Write slice artifacts. Spec corrected mid-flight (decision #9: connect also disabled on required-payload junctions). Type-level .create disable deferred (decision #8 — needs a contract .d.ts emitter change, operator decision). Signed-off-by: Alexey Orlenko's AI Agent <[email protected]>
tensordreams
added a commit
that referenced
this pull request
Jun 12, 2026
…-2787) Write slice artifacts. Spec corrected mid-flight (decision #9: connect also disabled on required-payload junctions). Type-level .create disable deferred (decision #8 — needs a contract .d.ts emitter change, operator decision). Signed-off-by: Alexey Orlenko's AI Agent <[email protected]>
tensordreams
added a commit
that referenced
this pull request
Jun 16, 2026
…-2787) Write slice artifacts. Spec corrected mid-flight (decision #9: connect also disabled on required-payload junctions). Type-level .create disable deferred (decision #8 — needs a contract .d.ts emitter change, operator decision). Signed-off-by: Alexey Orlenko's AI Agent <[email protected]>
tensordreams
added a commit
that referenced
this pull request
Jun 16, 2026
…-2787) Write slice artifacts. Spec corrected mid-flight (decision #9: connect also disabled on required-payload junctions). Type-level .create disable deferred (decision #8 — needs a contract .d.ts emitter change, operator decision). Signed-off-by: Alexey Orlenko's AI Agent <[email protected]>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
No description provided.