Repository navigation
TML-2503: close out the Supabase integration — promote the decision log, delete the project workspaces - #990
Conversation
📝 WalkthroughWalkthroughThe PR adds ADR 237 for Supabase’s service-role-only secondary root, updates Supabase documentation references, removes an obsolete example link, and records the 0.15-to-0.16 upgrade as documentation-only. ChangesSupabase integration documentation
Estimated code review effort: 2 (Simple) | ~10 minutes Possibly related PRs
🚥 Pre-merge checks | ✅ 5✅ Passed checks (5 passed)
✨ 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 |
There was a problem hiding this comment.
Actionable comments posted: 3
🤖 Prompt for all review comments with AI agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.
Inline comments:
In `@docs/architecture` docs/Supabase Integration.md:
- Around line 68-70: Update the sentence in the PostgresRole description to use
the wording “App contracts may author their own roles in the future,” without
changing the surrounding technical content.
- Around line 65-80: Update the C5 and C8 sections to match the shipped launch
status: remove “remaining work” language for the PostgresRole/pg_roles verifier
and describe the implemented behavior, while distinguishing any superseded
design sketches from current guidance. Revise C8 so shipped targeted
introspection and its round-trip expectations are clearly separated from any
still-roadmapped full authoring pipeline, eliminating contradictory “not v0.1”
wording.
- Line 12: Remove the deleted projects/ artifact references from the
architecture document, including the links around the historical decision
entries and the example/design-holes.md reference. Replace them with links to
stable ADRs, architecture documentation, or a stable close-out reference while
preserving the historical context of the entries.
🪄 Autofix (Beta)
Fix all unresolved CodeRabbit comments on this PR:
- Push a commit to this branch (recommended)
- Create a new PR with the fixes
ℹ️ Review info
⚙️ Run configuration
Configuration used: Path: .coderabbit.yml
Review profile: CHILL
Plan: Pro
Run ID: 53b2e9bb-5a92-4d06-bddd-8c6c3b2cd1ec
⛔ Files ignored due to path filters (26)
projects/extension-supabase/plan.mdis excluded by!projects/**projects/extension-supabase/slices/d-service-role-internal-namespaces/spec.mdis excluded by!projects/**projects/extension-supabase/slices/e-docs-acceptance-closeout/plan.mdis excluded by!projects/**projects/extension-supabase/slices/e-docs-acceptance-closeout/spec.mdis excluded by!projects/**projects/extension-supabase/slices/g-extension-aware-infer/spec.mdis excluded by!projects/**projects/extension-supabase/slices/m1-scaffold-and-skeleton/plan.mdis excluded by!projects/**projects/extension-supabase/slices/m1-scaffold-and-skeleton/spec.mdis excluded by!projects/**projects/extension-supabase/slices/user-skills-supabase/spec.mdis excluded by!projects/**projects/extension-supabase/spec.mdis excluded by!projects/**projects/extension-supabase/trace.jsonlis excluded by!projects/**projects/native-postgres-enums/slices/infer-native-enum-adoption/spec.mdis excluded by!projects/**projects/psl-ambient-declarations/spec.mdis excluded by!projects/**projects/supabase-integration/README.mdis excluded by!projects/**projects/supabase-integration/deferred.mdis excluded by!projects/**projects/supabase-integration/developer-experience.mdis excluded by!projects/**projects/supabase-integration/example/.env.exampleis excluded by!projects/**projects/supabase-integration/example/README.mdis excluded by!projects/**projects/supabase-integration/example/design-holes.mdis excluded by!projects/**projects/supabase-integration/example/migrations/supabase/contract.d.tsis excluded by!projects/**projects/supabase-integration/example/migrations/supabase/contract.jsonis excluded by!projects/**projects/supabase-integration/example/prisma-next.config.tsis excluded by!projects/**projects/supabase-integration/example/prisma/schema.prismais excluded by!projects/**projects/supabase-integration/example/src/handlers.tsis excluded by!projects/**projects/supabase-integration/example/src/prisma/contract.tsis excluded by!projects/**projects/supabase-integration/example/src/prisma/db.tsis excluded by!projects/**projects/supabase-integration/overview.mdis excluded by!projects/**
📒 Files selected for processing (5)
docs/architecture docs/Supabase Integration.mdexamples/supabase/README.mdpackages/3-extensions/supabase/README.mdskills/extension-author/prisma-next-extension-upgrade/upgrades/0.15-to-0.16/instructions.mdskills/upgrade/prisma-next-upgrade/upgrades/0.15-to-0.16/instructions.md
ae1cb55 to
79b6631
Compare
There was a problem hiding this comment.
Actionable comments posted: 1
🤖 Prompt for all review comments with AI agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.
Inline comments:
In `@skills/upgrade/prisma-next-upgrade/upgrades/0.15-to-0.16/instructions.md`:
- Around line 9-10: Update the durable upgrade note around the
`examples/supabase/README.md` entry to describe the removed obsolete link
without mentioning the deleted `projects/supabase-integration/` path;
alternatively, reference the stable ADR 237 documentation. Preserve the note’s
existing meaning while eliminating transient workspace references.
🪄 Autofix (Beta)
Fix all unresolved CodeRabbit comments on this PR:
- Push a commit to this branch (recommended)
- Create a new PR with the fixes
ℹ️ Review info
⚙️ Run configuration
Configuration used: Path: .coderabbit.yml
Review profile: CHILL
Plan: Pro
Run ID: 4b90b9f4-d307-47c6-a5c3-94c8f60bd2de
⛔ Files ignored due to path filters (1)
projects/psl-ambient-declarations/spec.mdis excluded by!projects/**
📒 Files selected for processing (5)
docs/architecture docs/adrs/ADR 237 - Supabase-internal access is a service_role-only secondary root.mdexamples/supabase/README.mdpackages/3-extensions/supabase/README.mdskills/extension-author/prisma-next-extension-upgrade/upgrades/0.15-to-0.16/instructions.mdskills/upgrade/prisma-next-upgrade/upgrades/0.15-to-0.16/instructions.md
🚧 Files skipped from review as they are similar to previous changes (2)
- skills/extension-author/prisma-next-extension-upgrade/upgrades/0.15-to-0.16/instructions.md
- packages/3-extensions/supabase/README.md
…gn-history doc git mv projects/supabase-integration/decisions.md -> "docs/architecture docs/ Supabase Integration.md", rewritten at migration per the close-out workflow: retrospective header pointing at the living surfaces (package README, example app, user skill, ADRs 224/226/230/234); links into the deleted project workspaces stripped to plain text (historical fidelity); the promoted content-addressed-names draft re-pointed at ADR 234; "decisions still open" closed out as the design-hole resolution record; and two new sections fold in the still-relevant remainder of the project workspace: Deferred directions (from deferred.md + the DX roadmap) and Follow-on work (FK1/FK2, the auth.uid() default stretch, TML-2492, the post-launch deferrals). Part of the Supabase integration close-out (TML-2503). Signed-off-by: willbot <[email protected]> Signed-off-by: Will Madden <[email protected]>
… promoted doc Four files referenced projects/supabase-integration/ or projects/ extension-supabase/: the package and example READMEs (links to decisions.md / the umbrella README -> the promoted "Supabase Integration" design-history doc), native-postgres-enums (plan link -> merged PR #960), and psl-ambient-declarations (OC1/OC4/deferred links -> the promoted doc). The README touches trip the upgrade-coverage gate, so this also opens the 0.15-to-0.16 transition dirs in both upgrade skills with changes: [] and an incidental scope note. Part of the Supabase integration close-out (TML-2503). Signed-off-by: willbot <[email protected]> Signed-off-by: Will Madden <[email protected]>
projects/supabase-integration/ (umbrella: README tracker, overview, deferred list, DX notes, the example/ design artefact) and projects/ extension-supabase/ (spec, plan, slice contracts, trace) were transient coordination artefacts. Their durable content now lives in "docs/ architecture docs/Supabase Integration.md" (decision log + deferred directions + follow-on work), the package/example READMEs, the prisma-next-supabase skill, and ADRs 224/226/230/234. Deletion completes the close-out both dirs deferred to (extension-supabase Slice E; the umbrella README §Close-out). Part of the Supabase integration close-out (TML-2503). Signed-off-by: willbot <[email protected]> Signed-off-by: Will Madden <[email protected]>
Review: "Supabase Integration.md" was neither a subsystem doc nor an ADR — a minted genre carrying project archeology (PR tables, milestone framing, superseded sketches that contradicted the shipped state, and TS-surface descriptions that predate the as-built policySelect entities). Deleted; its full history stays in git. What was genuinely durable gets a real lane each: - The one never-ADRd decision — admin access to Supabase-internal tables as a service_role-only secondary root, contracts never merged — becomes ADR 237, in proper form: grounding example first, decision led, alternatives last, no tickets or milestones. - The follow-on backlog moves to the tracker: FK/index discrete contract entities (TML-3032, supersedes ADR 161) and the auth/storage pack split (TML-3033). Remaining deferrals already live in the package README Known gaps. - Inbound links re-pointed: the package README cites ADR 237; the example README and psl-ambient-declarations drop the dead links (the two-body-form pattern inlined where it was cited). Signed-off-by: willbot <[email protected]> Signed-off-by: Will Madden <[email protected]>
79b6631 to
35de5be
Compare
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: |
There was a problem hiding this comment.
Actionable comments posted: 1
🧹 Nitpick comments (1)
docs/architecture docs/adrs/ADR 237 - Supabase-internal access is a service_role-only secondary root.md (1)
44-46: 📐 Maintainability & Code Quality | 🔵 Trivial | ⚡ Quick winKeep the ADR at the architectural level.
These sections include implementation mechanics such as storage-hash checks, adapter rejection, codec registries, and marker-verification details. Move those mechanics to the relevant runtime/subsystem documentation and summarize the ADR constraint as “each runtime is bound to exactly one contract identity.”
Based on learnings, ADRs should document architectural decisions and key constraints rather than implementation algorithms.
Also applies to: 57-59
🤖 Prompt for AI Agents
Verify each finding against current code. Fix only still-valid issues, skip the rest with a brief reason, keep changes minimal, and validate. In `@docs/architecture` docs/adrs/ADR 237 - Supabase-internal access is a service_role-only secondary root.md around lines 44 - 46, Revise the ADR’s detailed runtime mechanics around the facade and related sections at 57-59 to stay architectural: remove storage-hash checks, adapter rejection, codec registry, and marker-verification implementation details, and relocate them to the relevant runtime or subsystem documentation. Summarize the constraint as each runtime being bound to exactly one contract identity, while retaining the decision that app-bound and extension-bound runtimes may share the pool and service_role session-binding mechanism.Source: Learnings
🤖 Prompt for all review comments with AI agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.
Inline comments:
In `@docs/architecture` docs/adrs/ADR 237 - Supabase-internal access is a
service_role-only secondary root.md:
- Line 5: Update the examples in ADR 237 to reflect the read-only boundary:
replace “seeding test users” with auditing or reading test users, or explicitly
distinguish provisioning through the GoTrue Admin API from subsequent table
reads. Keep the remaining examples and architectural guidance unchanged.
---
Nitpick comments:
In `@docs/architecture` docs/adrs/ADR 237 - Supabase-internal access is a
service_role-only secondary root.md:
- Around line 44-46: Revise the ADR’s detailed runtime mechanics around the
facade and related sections at 57-59 to stay architectural: remove storage-hash
checks, adapter rejection, codec registry, and marker-verification
implementation details, and relocate them to the relevant runtime or subsystem
documentation. Summarize the constraint as each runtime being bound to exactly
one contract identity, while retaining the decision that app-bound and
extension-bound runtimes may share the pool and service_role session-binding
mechanism.
🪄 Autofix (Beta)
Fix all unresolved CodeRabbit comments on this PR:
- Push a commit to this branch (recommended)
- Create a new PR with the fixes
ℹ️ Review info
⚙️ Run configuration
Configuration used: Path: .coderabbit.yml
Review profile: CHILL
Plan: Pro
Run ID: 773c10da-24d1-4e53-a35a-be4e71628e7c
⛔ Files ignored due to path filters (27)
projects/extension-supabase/plan.mdis excluded by!projects/**projects/extension-supabase/slices/d-service-role-internal-namespaces/spec.mdis excluded by!projects/**projects/extension-supabase/slices/e-docs-acceptance-closeout/plan.mdis excluded by!projects/**projects/extension-supabase/slices/e-docs-acceptance-closeout/spec.mdis excluded by!projects/**projects/extension-supabase/slices/g-extension-aware-infer/spec.mdis excluded by!projects/**projects/extension-supabase/slices/m1-scaffold-and-skeleton/plan.mdis excluded by!projects/**projects/extension-supabase/slices/m1-scaffold-and-skeleton/spec.mdis excluded by!projects/**projects/extension-supabase/slices/user-skills-supabase/spec.mdis excluded by!projects/**projects/extension-supabase/spec.mdis excluded by!projects/**projects/extension-supabase/trace.jsonlis excluded by!projects/**projects/native-postgres-enums/slices/infer-native-enum-adoption/spec.mdis excluded by!projects/**projects/psl-ambient-declarations/spec.mdis excluded by!projects/**projects/supabase-integration/README.mdis excluded by!projects/**projects/supabase-integration/decisions.mdis excluded by!projects/**projects/supabase-integration/deferred.mdis excluded by!projects/**projects/supabase-integration/developer-experience.mdis excluded by!projects/**projects/supabase-integration/example/.env.exampleis excluded by!projects/**projects/supabase-integration/example/README.mdis excluded by!projects/**projects/supabase-integration/example/design-holes.mdis excluded by!projects/**projects/supabase-integration/example/migrations/supabase/contract.d.tsis excluded by!projects/**projects/supabase-integration/example/migrations/supabase/contract.jsonis excluded by!projects/**projects/supabase-integration/example/prisma-next.config.tsis excluded by!projects/**projects/supabase-integration/example/prisma/schema.prismais excluded by!projects/**projects/supabase-integration/example/src/handlers.tsis excluded by!projects/**projects/supabase-integration/example/src/prisma/contract.tsis excluded by!projects/**projects/supabase-integration/example/src/prisma/db.tsis excluded by!projects/**projects/supabase-integration/overview.mdis excluded by!projects/**
📒 Files selected for processing (5)
docs/architecture docs/adrs/ADR 237 - Supabase-internal access is a service_role-only secondary root.mdexamples/supabase/README.mdpackages/3-extensions/supabase/README.mdskills/extension-author/prisma-next-extension-upgrade/upgrades/0.15-to-0.16/instructions.mdskills/upgrade/prisma-next-upgrade/upgrades/0.15-to-0.16/instructions.md
🚧 Files skipped from review as they are similar to previous changes (2)
- skills/extension-author/prisma-next-extension-upgrade/upgrades/0.15-to-0.16/instructions.md
- packages/3-extensions/supabase/README.md
|
|
||
| **Status:** Accepted | ||
|
|
||
| A Supabase app sometimes needs to read Supabase-owned tables — `auth.users`, `auth.sessions`, `storage.objects` — for admin work: seeding test users, auditing sessions, joining storage metadata into a report. Those tables belong to the Supabase extension's contract, not the app's. This is how the app reaches them: |
There was a problem hiding this comment.
🎯 Functional Correctness | 🟡 Minor | ⚡ Quick win
Align the example with the read-only boundary.
“Seeding test users” implies creating users, but this ADR says user lifecycle operations belong to the GoTrue Admin API. Reword this as auditing/reading test users, or explicitly separate provisioning from subsequent reads.
🤖 Prompt for AI Agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.
In `@docs/architecture` docs/adrs/ADR 237 - Supabase-internal access is a
service_role-only secondary root.md at line 5, Update the examples in ADR 237 to
reflect the read-only boundary: replace “seeding test users” with auditing or
reading test users, or explicitly distinguish provisioning through the GoTrue
Admin API from subsequent table reads. Keep the remaining examples and
architectural guidance unchanged.
…project dir The always-qualified builder / per-facade projection feature shipped in #778; only the close-out remained. - Promote the ADR draft to ADR 238. Corrected two draft errors on promotion: the qualify-flat-builder-accessors upgrade window is 0.13→0.14, and the flat facade accessor is db.<Model>. - Delete projects/explicit-namespace-dsl/. No markdown link points into it: the two supabase-integration umbrella links that did were removed with that umbrella's own close-out (#990). Signed-off-by: willbot <[email protected]> Signed-off-by: Will Madden <[email protected]>
What this is
The Supabase integration umbrella close-out (TML-2503): the durable knowledge the project produced moves to its permanent home, and the transient project workspaces —
projects/supabase-integration/andprojects/extension-supabase/— are deleted. This is the deletion both dirs deferred to (extension-supabase Slice E deferred its own dir here; the umbrella README's §Close-out prescribed constituent dirs delete alongside the umbrella).Project DoD — verified
Every constituent shipped and merged; the launch acceptance executed:
db.supabasesecondary root)contract infer)prisma-next-supabase)Migration (1 long-lived file, rewritten at migration)
projects/supabase-integration/decisions.md→docs/architecture docs/Supabase Integration.md(git mv, history preserved), per the umbrella README's own close-out instruction. The rewrite: a design-history header pointing at the living surfaces (package README,examples/supabase, the user skill, ADRs 224/226/230/234); links into the deleted workspaces stripped to plain text; the content-addressed-names draft link re-pointed at ADR 234; "Decisions still open" closed out as the design-hole resolution record; and two appended sections fold in the workspace's still-relevant remainder — Deferred directions (fromdeferred.md+ the DX roadmap) and Follow-on work (FK1 discrete FK/index entities superseding ADR 161, FK2 auth/storage split, theauth.uid()default stretch, TML-2492, the post-launch perf/bundle deferrals).Everything else classified transient per the close-out defaults: the umbrella README (tracker),
overview.md(its user-facing narrative is superseded by the skill + READMEs; its composition story by the ADRs and subsystem docs), theexample/design artefact (deletion explicitly prescribed), and the extension-supabase spec/plan/slices/trace.Reference strip (4 files re-pointed)
packages/3-extensions/supabase/README.md— 4 links → the promoted doc.examples/supabase/README.md— 1 link → the promoted doc.projects/native-postgres-enums/.../infer-native-enum-adoption/spec.md— plan link → merged TML-2503: the complete, faithful Supabase contract — introspected from a reference instance #960.projects/psl-ambient-declarations/spec.md— OC1/OC4/deferred links → the promoted doc (that project actively consumes the decision log; the promoted doc keeps it grounded).Post-strip scan is clean — the only residual mentions are the scope notes in the new upgrade-instruction files, which describe the deletion itself. The README touches trip the upgrade-coverage gate, so this PR also opens the
0.15-to-0.16transition dirs in both upgrade skills withchanges: []+ incidental scope notes.Verified
lint:docs,lint:skills,check:upgrade-coverage --mode pr,check:release-notes --mode prall green; markdown-only diff otherwise.With this merged, the Supabase integration is fully closed: shipped, verified against real Supabase, documented for users, and its process scaffolding retired.
🤖 Generated with Claude Code
Summary by CodeRabbit
service_role-only secondary query surface.