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

TML-2503: close out the Supabase integration — promote the decision log, delete the project workspaces - #990

Merged
wmadden-electric merged 4 commits into
mainfrom
chore/supabase-umbrella-closeout
Jul 16, 2026
Merged

wmadden-electric merged 4 commits into
mainfrom
chore/supabase-umbrella-closeout

Conversation

@wmadden-electric

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

Copy link
Copy Markdown
Contributor

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/ and projects/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:

Item Evidence
Slices B/C (RLS via authoring, roles first-class) #956, #957, #950
Slice D (db.supabase secondary root) #845
Slice F (complete introspected contract) #960
Slice G (extension-aware contract infer) #919
Slice E (docs, acceptance harness, close-out) #985
User-facing skill (prisma-next-supabase) #987
Launch-blocking acceptance run executed 2026-07-15 against a real Supabase project (session pooler), 3/3 green: anon read, authenticated update-own + withCheck, service-role read, expired-JWT rejection
Deferred items all recorded with durable homes (package README "Known gaps"; the promoted doc's Deferred directions / Follow-on work sections)
Final retro lessons landed continuously in durable memory + ADRs during delivery; no unlanded lesson at close

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 (from deferred.md + the DX roadmap) and Follow-on work (FK1 discrete FK/index entities superseding ADR 161, FK2 auth/storage split, the auth.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), the example/ 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.16 transition dirs in both upgrade skills with changes: [] + incidental scope notes.

Verified

lint:docs, lint:skills, check:upgrade-coverage --mode pr, check:release-notes --mode pr all 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

  • Documentation
    • Added ADR 237 detailing how Supabase-internal data is accessed via a service_role-only secondary query surface.
    • Updated Supabase extension documentation references to reflect the new secondary-root architecture guidance.
    • Clarified documentation scope for the 0.15 → 0.16 upgrade (no application-facing changes), including upgrade metadata and related READMEs.

@wmadden-electric
wmadden-electric requested a review from a team as a code owner July 15, 2026 21:15
@coderabbitai

coderabbitai Bot commented Jul 15, 2026 •

Copy link
Copy Markdown
Contributor

Review Change Stack

📝 Walkthrough

Walkthrough

The 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.

Changes

Supabase integration documentation

Layer / File(s) Summary
Secondary-root architecture decision
docs/architecture docs/adrs/ADR 237 - Supabase-internal access is a service_role-only secondary root.md
ADR 237 documents the admin.supabase secondary root, service-role restriction, separate contract-bound runtimes, operational constraints, verification behavior, and rejected alternatives.
Documentation references and upgrade metadata
packages/3-extensions/supabase/README.md, examples/supabase/README.md, skills/.../upgrades/0.15-to-0.16/instructions.md
Supabase references now cite ADR 237, the example removes an obsolete decision link, and both upgrade instruction files record documentation-only changes.

Estimated code review effort: 2 (Simple) | ~10 minutes

Possibly related PRs

🚥 Pre-merge checks | ✅ 5
✅ Passed checks (5 passed)
Check name Status Explanation
Description Check ✅ Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Title check ✅ Passed The title accurately summarizes the PR’s main changes: closing out the Supabase integration by promoting the decision log and deleting project workspaces.
Docstring Coverage ✅ Passed No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check.
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 unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch chore/supabase-umbrella-closeout

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.

@coderabbitai coderabbitai Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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

📥 Commits

Reviewing files that changed from the base of the PR and between bfff946 and 32934ab.

⛔ Files ignored due to path filters (26)
  • projects/extension-supabase/plan.md is excluded by !projects/**
  • projects/extension-supabase/slices/d-service-role-internal-namespaces/spec.md is excluded by !projects/**
  • projects/extension-supabase/slices/e-docs-acceptance-closeout/plan.md is excluded by !projects/**
  • projects/extension-supabase/slices/e-docs-acceptance-closeout/spec.md is excluded by !projects/**
  • projects/extension-supabase/slices/g-extension-aware-infer/spec.md is excluded by !projects/**
  • projects/extension-supabase/slices/m1-scaffold-and-skeleton/plan.md is excluded by !projects/**
  • projects/extension-supabase/slices/m1-scaffold-and-skeleton/spec.md is excluded by !projects/**
  • projects/extension-supabase/slices/user-skills-supabase/spec.md is excluded by !projects/**
  • projects/extension-supabase/spec.md is excluded by !projects/**
  • projects/extension-supabase/trace.jsonl is excluded by !projects/**
  • projects/native-postgres-enums/slices/infer-native-enum-adoption/spec.md is excluded by !projects/**
  • projects/psl-ambient-declarations/spec.md is excluded by !projects/**
  • projects/supabase-integration/README.md is excluded by !projects/**
  • projects/supabase-integration/deferred.md is excluded by !projects/**
  • projects/supabase-integration/developer-experience.md is excluded by !projects/**
  • projects/supabase-integration/example/.env.example is excluded by !projects/**
  • projects/supabase-integration/example/README.md is excluded by !projects/**
  • projects/supabase-integration/example/design-holes.md is excluded by !projects/**
  • projects/supabase-integration/example/migrations/supabase/contract.d.ts is excluded by !projects/**
  • projects/supabase-integration/example/migrations/supabase/contract.json is excluded by !projects/**
  • projects/supabase-integration/example/prisma-next.config.ts is excluded by !projects/**
  • projects/supabase-integration/example/prisma/schema.prisma is excluded by !projects/**
  • projects/supabase-integration/example/src/handlers.ts is excluded by !projects/**
  • projects/supabase-integration/example/src/prisma/contract.ts is excluded by !projects/**
  • projects/supabase-integration/example/src/prisma/db.ts is excluded by !projects/**
  • projects/supabase-integration/overview.md is excluded by !projects/**
📒 Files selected for processing (5)
  • docs/architecture docs/Supabase Integration.md
  • examples/supabase/README.md
  • packages/3-extensions/supabase/README.md
  • skills/extension-author/prisma-next-extension-upgrade/upgrades/0.15-to-0.16/instructions.md
  • skills/upgrade/prisma-next-upgrade/upgrades/0.15-to-0.16/instructions.md

@wmadden wmadden left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Preemptively approved

@wmadden-electric
wmadden-electric force-pushed the chore/supabase-umbrella-closeout branch from ae1cb55 to 79b6631 Compare July 16, 2026 07:32

@coderabbitai coderabbitai Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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

📥 Commits

Reviewing files that changed from the base of the PR and between 32934ab and 79b6631.

⛔ Files ignored due to path filters (1)
  • projects/psl-ambient-declarations/spec.md is excluded by !projects/**
📒 Files selected for processing (5)
  • docs/architecture docs/adrs/ADR 237 - Supabase-internal access is a service_role-only secondary root.md
  • examples/supabase/README.md
  • packages/3-extensions/supabase/README.md
  • skills/extension-author/prisma-next-extension-upgrade/upgrades/0.15-to-0.16/instructions.md
  • skills/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]>
@wmadden-electric
wmadden-electric force-pushed the chore/supabase-umbrella-closeout branch from 79b6631 to 35de5be Compare July 16, 2026 07:48
@github-actions

Copy link
Copy Markdown

size-limit report 📦

Path Size
postgres / no-emit 158.05 KB (0%)
postgres / emit 131.65 KB (0%)
mongo / no-emit 98.71 KB (0%)
mongo / emit 89.43 KB (0%)
cf-worker / no-emit 184.76 KB (0%)
cf-worker / emit 155.75 KB (0%)

@pkg-pr-new

pkg-pr-new Bot commented Jul 16, 2026

Copy link
Copy Markdown

Open in StackBlitz

@prisma-next/extension-author-tools

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

@prisma-next/mongo-runtime

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

@prisma-next/family-mongo

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

@prisma-next/sql-runtime

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

@prisma-next/family-sql

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

@prisma-next/extension-arktype-json

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

@prisma-next/middleware-cache

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

@prisma-next/mongo

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

@prisma-next/extension-paradedb

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

@prisma-next/extension-pgvector

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

@prisma-next/extension-postgis

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

@prisma-next/postgres

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

@prisma-next/sql-orm-client

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

@prisma-next/sqlite

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

@prisma-next/extension-supabase

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

@prisma-next/target-mongo

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

@prisma-next/adapter-mongo

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

@prisma-next/driver-mongo

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

@prisma-next/contract

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

@prisma-next/utils

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

@prisma-next/config

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

@prisma-next/errors

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

@prisma-next/framework-components

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

@prisma-next/operations

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

@prisma-next/ts-render

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

@prisma-next/contract-authoring

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

@prisma-next/ids

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

@prisma-next/psl-parser

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

@prisma-next/psl-printer

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

@prisma-next/cli

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

@prisma-next/cli-telemetry

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

@prisma-next/config-loader

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

@prisma-next/emitter

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

@prisma-next/language-server

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

@prisma-next/migration-tools

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

prisma-next

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

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

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

@prisma-next/mongo-codec

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

@prisma-next/mongo-contract

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

@prisma-next/mongo-value

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

@prisma-next/mongo-contract-psl

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

@prisma-next/mongo-contract-ts

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

@prisma-next/mongo-emitter

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

@prisma-next/mongo-schema-ir

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

@prisma-next/mongo-query-ast

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

@prisma-next/mongo-orm

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

@prisma-next/mongo-query-builder

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

@prisma-next/mongo-lowering

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

@prisma-next/mongo-wire

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

@prisma-next/sql-contract

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

@prisma-next/sql-errors

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

@prisma-next/sql-operations

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

@prisma-next/sql-schema-ir

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

@prisma-next/sql-contract-psl

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

@prisma-next/sql-contract-ts

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

@prisma-next/sql-contract-emitter

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

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

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

@prisma-next/sql-relational-core

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

@prisma-next/sql-builder

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

@prisma-next/target-postgres

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

@prisma-next/target-sqlite

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

@prisma-next/adapter-postgres

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

@prisma-next/adapter-sqlite

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

@prisma-next/driver-postgres

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

@prisma-next/driver-sqlite

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

commit: 35de5be

@coderabbitai coderabbitai Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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 win

Keep 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

📥 Commits

Reviewing files that changed from the base of the PR and between 79b6631 and 35de5be.

⛔ Files ignored due to path filters (27)
  • projects/extension-supabase/plan.md is excluded by !projects/**
  • projects/extension-supabase/slices/d-service-role-internal-namespaces/spec.md is excluded by !projects/**
  • projects/extension-supabase/slices/e-docs-acceptance-closeout/plan.md is excluded by !projects/**
  • projects/extension-supabase/slices/e-docs-acceptance-closeout/spec.md is excluded by !projects/**
  • projects/extension-supabase/slices/g-extension-aware-infer/spec.md is excluded by !projects/**
  • projects/extension-supabase/slices/m1-scaffold-and-skeleton/plan.md is excluded by !projects/**
  • projects/extension-supabase/slices/m1-scaffold-and-skeleton/spec.md is excluded by !projects/**
  • projects/extension-supabase/slices/user-skills-supabase/spec.md is excluded by !projects/**
  • projects/extension-supabase/spec.md is excluded by !projects/**
  • projects/extension-supabase/trace.jsonl is excluded by !projects/**
  • projects/native-postgres-enums/slices/infer-native-enum-adoption/spec.md is excluded by !projects/**
  • projects/psl-ambient-declarations/spec.md is excluded by !projects/**
  • projects/supabase-integration/README.md is excluded by !projects/**
  • projects/supabase-integration/decisions.md is excluded by !projects/**
  • projects/supabase-integration/deferred.md is excluded by !projects/**
  • projects/supabase-integration/developer-experience.md is excluded by !projects/**
  • projects/supabase-integration/example/.env.example is excluded by !projects/**
  • projects/supabase-integration/example/README.md is excluded by !projects/**
  • projects/supabase-integration/example/design-holes.md is excluded by !projects/**
  • projects/supabase-integration/example/migrations/supabase/contract.d.ts is excluded by !projects/**
  • projects/supabase-integration/example/migrations/supabase/contract.json is excluded by !projects/**
  • projects/supabase-integration/example/prisma-next.config.ts is excluded by !projects/**
  • projects/supabase-integration/example/prisma/schema.prisma is excluded by !projects/**
  • projects/supabase-integration/example/src/handlers.ts is excluded by !projects/**
  • projects/supabase-integration/example/src/prisma/contract.ts is excluded by !projects/**
  • projects/supabase-integration/example/src/prisma/db.ts is excluded by !projects/**
  • projects/supabase-integration/overview.md is excluded by !projects/**
📒 Files selected for processing (5)
  • docs/architecture docs/adrs/ADR 237 - Supabase-internal access is a service_role-only secondary root.md
  • examples/supabase/README.md
  • packages/3-extensions/supabase/README.md
  • skills/extension-author/prisma-next-extension-upgrade/upgrades/0.15-to-0.16/instructions.md
  • skills/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:

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🎯 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.

@wmadden-electric
wmadden-electric added this pull request to the merge queue Jul 16, 2026
Merged via the queue into main with commit aba75b9 Jul 16, 2026
20 checks passed
@wmadden-electric
wmadden-electric deleted the chore/supabase-umbrella-closeout branch July 16, 2026 08:14
wmadden-electric added a commit that referenced this pull request Jul 16, 2026
…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]>
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