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

chore(postgres-rls): close out the project — promote ADRs, delete project artifacts - #979

Merged
wmadden-electric merged 3 commits into
mainfrom
docs/postgres-rls-closeout
Jul 15, 2026
Merged

wmadden-electric merged 3 commits into
mainfrom
docs/postgres-rls-closeout

Conversation

@wmadden-electric

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

Copy link
Copy Markdown
Contributor

Linked issue

Refs TML-2501 — close-out of the Postgres RLS Linear project (now Completed).

At a glance

All eight postgres-rls slices are merged (final: #959, TS RLS authoring). Per the projects/ lifecycle, this PR performs the close-out: promote the long-lived docs into docs/, strip the one repo reference into the project directory, and delete projects/postgres-rls/.

Three commits, in lifecycle order:

  1. Promote — ADR 234 (content-addressed wire names), ADR 235 (schema differ over two derived IRs), ADR 236 (target-contributed model attributes, the ADR the project DoD deferred to close-out), and a new RLS section in the Adapters & Targets subsystem doc.
  2. Strip — the supabase README pointer into projects/postgres-rls/ re-pointed at ADR 234 + the subsystem section (it also named the pre-decision .rls(...) surface; now names the shipped one).
  3. Delete — projects/postgres-rls/ (spec, plan, handoff, slice specs/plans, dispatches, trace).

Project DoD verification

DoD item (spec § Definition of Done) Status Evidence
TS + PSL author the same policies to structurally identical IR with identical wire names; helpers invisible off-Postgres Met #959: ts-psl-rls-parity.test.ts, byte-identical parity fixture, rls-helper-invisibility.test.ts
TS ref() predicate helper Struck Operator veto at slice-5 review (2026-07-13): predicates are opaque strings on both surfaces; recorded in the spec before deletion
Full lifecycle on live PGlite through the generic differ (create / drop / rename via ALTER POLICY … RENAME TO / enable) Met #771 (lifecycle), #921 (one differ), #945 (rename, @@rls, grading)
Declared role absent from pg_roles fails verify even under control: 'external' Met #950; examples/supabase/test/skeleton.integration.test.ts case G
Walking skeleton: examples/supabase Profile policies filter rows under SET ROLE, verifier diffs clean Met #950 capstone + #959 TS-authored skeleton (rls-ts-walking-skeleton.integration.test.ts)
Zero RLS vocabulary in framework / SQL-family layers Met lint:deps + lint:framework-vocabulary green on every slice; structural invariant test
Content-addressed-naming ADR promoted to docs/architecture docs/adrs/; adapter subsystem doc gains an RLS section Met This PR — ADR 234 + § Row-Level Security in 5. Adapters & Targets.md
ADR for the slice-3 authoring SPIs (modelAttributes, requiresModelAttribute) Met This PR — ADR 236

Final retro (mandatory at close)

  • Held: the content-addressed-naming thesis survived every slice unchanged — the wire name stayed the only equivalence relation, and rename detection fell out free. One lowering (predicate matrix + hash assembly) now serves both authoring surfaces.
  • Surprised: the project spent slices 1.5–2.6 rebuilding the diff/verify substrate it needed to stack on — the RLS features themselves (3, 4, 5) were small once the substrate held. Review repeatedly caught new mechanisms duplicating existing capability (opRender vs CodecRegistry, coordinate structs, per-factory validation); the standing probe is now "grep for the existing primitive before accepting a new one".
  • Lessons landed: docs/onboarding/fixtures-emit-and-check.md (fixtures:check does not cover planner ops); the per-factory PSL validation gaps became TML-3023 instead of a fourth patch.
  • Deferred scope, all ticketed or assigned: TML-3023 (block-descriptor validator + PSL prefix cap), TML-2958 (PSL-inference tree-walk), TML-2936 (annotations bag), TML-2974 (native per-space verify render); dependency-aware planner ordering and codec-ops-on-the-differ get tickets when prioritized.

Classification (audit trail)

  • Long-lived, migrated with rewrite: specs/adr-content-addressed-policy-names.md → ADR 234 (authoring examples updated from the rejected .rls([...]) surface to the shipped policyUpdate(...) / policy_update forms); specs/adr-schema-diff-over-structured-ir.md → ADR 235 (differ vocabulary updated to the shipped not-found | not-expected | not-equal reasons, property-form DiffableNode, the real node tree with roles on the database root; superseded "table nodes are groupers only" section dropped).
  • Long-lived, authored at close: ADR 236 (per the DoD item deferred from the PR tml-2869: explicit RLS control — @@rls enablement, policy rename, per-table grading #945 review).
  • Transient, deleted: spec.md, plan.md, HANDOFF.md, trace.jsonl, slices/** (per-slice specs/plans/dispatches), and the remaining specs/* shaping docs (design-*, brief-*, reconciliation-*, extension-migration-participation.md) — shaping/coordination artifacts whose surviving content is the shipped state and the promoted ADRs.

Reference strip

One external reference existed (packages/3-extensions/supabase/README.md); re-pointed. Post-delete rescan of tracked files for projects/postgres-rls is empty.

Checklist

  • Every commit is DCO signed-off
  • Docs-only — no behavior change
  • Linear project referenced (TML-2501)
    🤖 Generated with Claude Code

Summary by CodeRabbit

  • Documentation
    • Added architecture guidance for comparing schema representations and reporting structured differences.
    • Documented target-contributed model attributes and declarative validation rules.
    • Expanded PostgreSQL Row-Level Security documentation, including policy naming, verification, and SQL migration actions.
    • Updated Supabase documentation and RLS examples to reflect current authoring conventions.

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

coderabbitai Bot commented Jul 15, 2026 •

Copy link
Copy Markdown
Contributor

Review Change Stack

Warning

Review limit reached

@wmadden-electric, you've reached your PR review limit, so we couldn't start this review.

Next review available in: 30 minutes

Enable usage-based reviews in Billing to review now. Otherwise, wait until the next included review is available.
You're only billed for reviews past your plan's rate limits ($0.25/file).

How can I continue?

After more reviews become available, a review can be triggered using the @coderabbitai review command as a PR comment. Alternatively, push new commits to this PR.

To avoid repeated limits, reduce automatic review volume by pausing incremental auto-reviews earlier, using label-based review opt-in, excluding WIP or generated PR titles, or requesting reviews manually when the PR is ready. If your team needs uninterrupted high-volume reviews, an organization admin can enable usage-based reviews.

How do review limits work?

CodeRabbit enforces per-developer PR review limits for each organization. Most developers receive the normal plan review availability.

For paid Pro and Pro+ PR reviews, CodeRabbit uses adaptive limits for sustained high-volume activity. When a developer's recent PR review activity reaches the 95th percentile or higher among CodeRabbit users, additional reviews become available more gradually as earlier reviews age out of the rolling window.

Please refer docs for additional details.

Review details
⚙️ Run configuration

Configuration used: Path: .coderabbit.yml

Review profile: CHILL

Plan: Pro

Run ID: bee0c8b9-7c7f-471f-8398-4b1449ca0d9d

📥 Commits

Reviewing files that changed from the base of the PR and between 6044fac and 2bc171f.

⛔ Files ignored due to path filters (64)
  • projects/postgres-rls/HANDOFF.md is excluded by !projects/**
  • projects/postgres-rls/plan.md is excluded by !projects/**
  • projects/postgres-rls/slices/differ-kind-keying/plan.md is excluded by !projects/**
  • projects/postgres-rls/slices/differ-kind-keying/spec.md is excluded by !projects/**
  • projects/postgres-rls/slices/entity-kind-migration-seam/spec-r4-table-node.md is excluded by !projects/**
  • projects/postgres-rls/slices/entity-kind-migration-seam/spec-r5-build-tree-at-derivation.md is excluded by !projects/**
  • projects/postgres-rls/slices/entity-kind-migration-seam/spec-r6-tables-are-the-nodes.md is excluded by !projects/**
  • projects/postgres-rls/slices/entity-kind-migration-seam/spec.md is excluded by !projects/**
  • projects/postgres-rls/slices/explicit-rls-control/plan.md is excluded by !projects/**
  • projects/postgres-rls/slices/explicit-rls-control/spec.md is excluded by !projects/**
  • projects/postgres-rls/slices/foundation/dispatches/01-ir-kinds.md is excluded by !projects/**
  • projects/postgres-rls/slices/foundation/dispatches/02-canonicalize.md is excluded by !projects/**
  • projects/postgres-rls/slices/foundation/dispatches/02-canonicalize.r2.md is excluded by !projects/**
  • projects/postgres-rls/slices/foundation/dispatches/03-serializer.md is excluded by !projects/**
  • projects/postgres-rls/slices/foundation/dispatches/04-schema-issue-union.md is excluded by !projects/**
  • projects/postgres-rls/slices/foundation/dispatches/04-schema-issue-union.r2.md is excluded by !projects/**
  • projects/postgres-rls/slices/foundation/plan.md is excluded by !projects/**
  • projects/postgres-rls/slices/foundation/spec.md is excluded by !projects/**
  • projects/postgres-rls/slices/one-differ-two-ir-planner/design-codec-render-via-registry.md is excluded by !projects/**
  • projects/postgres-rls/slices/one-differ-two-ir-planner/plan.md is excluded by !projects/**
  • projects/postgres-rls/slices/one-differ-two-ir-planner/spec.md is excluded by !projects/**
  • projects/postgres-rls/slices/rls-policy-operations-and-roles/plan.md is excluded by !projects/**
  • projects/postgres-rls/slices/rls-policy-operations-and-roles/spec.md is excluded by !projects/**
  • projects/postgres-rls/slices/rls-ts-authoring/plan.md is excluded by !projects/**
  • projects/postgres-rls/slices/rls-ts-authoring/spec.md is excluded by !projects/**
  • projects/postgres-rls/slices/rls-walking-skeleton/dispatches/01-un-leak.md is excluded by !projects/**
  • projects/postgres-rls/slices/rls-walking-skeleton/dispatches/02-generic-differ.md is excluded by !projects/**
  • projects/postgres-rls/slices/rls-walking-skeleton/dispatches/03-introspection.md is excluded by !projects/**
  • projects/postgres-rls/slices/rls-walking-skeleton/dispatches/04-psl-authoring.md is excluded by !projects/**
  • projects/postgres-rls/slices/rls-walking-skeleton/dispatches/05-rls-ops.md is excluded by !projects/**
  • projects/postgres-rls/slices/rls-walking-skeleton/dispatches/06-planner-wiring.md is excluded by !projects/**
  • projects/postgres-rls/slices/rls-walking-skeleton/dispatches/07-verify-channel.md is excluded by !projects/**
  • projects/postgres-rls/slices/rls-walking-skeleton/dispatches/08-skeleton-test.md is excluded by !projects/**
  • projects/postgres-rls/slices/rls-walking-skeleton/dispatches/08-skeleton-test.r2.md is excluded by !projects/**
  • projects/postgres-rls/slices/rls-walking-skeleton/dispatches/09-psl-e2e.md is excluded by !projects/**
  • projects/postgres-rls/slices/rls-walking-skeleton/dispatches/10-psl-interpreter-lowering.md is excluded by !projects/**
  • projects/postgres-rls/slices/rls-walking-skeleton/dispatches/11-e2e-repoint.md is excluded by !projects/**
  • projects/postgres-rls/slices/rls-walking-skeleton/dispatches/12-f01-build-fix.md is excluded by !projects/**
  • projects/postgres-rls/slices/rls-walking-skeleton/dispatches/13-drift-fails-verify.md is excluded by !projects/**
  • projects/postgres-rls/slices/rls-walking-skeleton/dispatches/14-drop-policy-op.md is excluded by !projects/**
  • projects/postgres-rls/slices/rls-walking-skeleton/dispatches/15-planner-replace.md is excluded by !projects/**
  • projects/postgres-rls/slices/rls-walking-skeleton/dispatches/16-lifecycle-e2e.md is excluded by !projects/**
  • projects/postgres-rls/slices/rls-walking-skeleton/dispatches/17-orphan-detection.md is excluded by !projects/**
  • projects/postgres-rls/slices/rls-walking-skeleton/dispatches/18-example-setup.md is excluded by !projects/**
  • projects/postgres-rls/slices/rls-walking-skeleton/dispatches/18-example-setup.r2.md is excluded by !projects/**
  • projects/postgres-rls/slices/rls-walking-skeleton/dispatches/19-example-behavioral-e2e.md is excluded by !projects/**
  • projects/postgres-rls/slices/rls-walking-skeleton/dispatches/20-hardening-antileak.md is excluded by !projects/**
  • projects/postgres-rls/slices/rls-walking-skeleton/plan.md is excluded by !projects/**
  • projects/postgres-rls/slices/rls-walking-skeleton/spec.md is excluded by !projects/**
  • projects/postgres-rls/slices/schema-node-tree-restructure/design-diff-and-verify.md is excluded by !projects/**
  • projects/postgres-rls/slices/schema-node-tree-restructure/design.md is excluded by !projects/**
  • projects/postgres-rls/slices/schema-node-tree-restructure/spec.md is excluded by !projects/**
  • projects/postgres-rls/slices/unify-unique-and-index-nodes/code-review.md is excluded by !projects/**
  • projects/postgres-rls/slices/unify-unique-and-index-nodes/design.md is excluded by !projects/**
  • projects/postgres-rls/slices/unify-unique-and-index-nodes/plan.md is excluded by !projects/**
  • projects/postgres-rls/slices/unify-unique-and-index-nodes/spec.md is excluded by !projects/**
  • projects/postgres-rls/spec.md is excluded by !projects/**
  • projects/postgres-rls/specs/adr-schema-diff-over-structured-ir.md is excluded by !projects/**
  • projects/postgres-rls/specs/brief-open-entries-refactor.md is excluded by !projects/**
  • projects/postgres-rls/specs/design-generic-schema-differ.md is excluded by !projects/**
  • projects/postgres-rls/specs/design-rls-authoring-surface.md is excluded by !projects/**
  • projects/postgres-rls/specs/extension-migration-participation.md is excluded by !projects/**
  • projects/postgres-rls/specs/reconciliation-2026-06-08.md is excluded by !projects/**
  • projects/postgres-rls/trace.jsonl is excluded by !projects/**
📒 Files selected for processing (6)
  • docs/architecture docs/adrs/ADR 234 - Content-addressed wire names for Postgres-normalized objects.md
  • docs/architecture docs/adrs/ADR 235 - The schema differ walks two derived schema IRs.md
  • docs/architecture docs/adrs/ADR 236 - Target-contributed model attributes.md
  • docs/architecture docs/subsystems/5. Adapters & Targets.md
  • packages/3-extensions/supabase/README.md
  • skills/extension-author/prisma-next-extension-upgrade/upgrades/0.14-to-0.15/instructions.md
📝 Walkthrough

Walkthrough

The PR adds ADRs for recursive schema diffing and target-contributed model attributes, updates content-addressed Postgres RLS naming and verification semantics, and aligns subsystem and Supabase documentation with the documented RLS authoring model.

Changes

Postgres RLS architecture

Layer / File(s) Summary
Schema differ foundation
docs/architecture docs/adrs/ADR 235 - The schema differ walks two derived schema IRs.md
Defines recursive IR comparison, structured path-based issues, canonical equality, and planner-facing references.
Target model-attribute contract
docs/architecture docs/adrs/ADR 236 - Target-contributed model attributes.md
Defines target-provided model attributes and PSL block requirements with generic framework enforcement.
RLS wire-name and verifier semantics
docs/architecture docs/adrs/ADR 234 - Content-addressed wire names for Postgres-normalized objects.md
Updates policy naming examples, prefix/hash semantics, verifier outcomes, IR representation, and normalizer rules.
RLS subsystem and extension documentation
docs/architecture docs/subsystems/5. Adapters & Targets.md, packages/3-extensions/supabase/README.md
Documents RLS entity behavior, verification and planning operations, and the revised PSL/TypeScript authoring terminology.

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

Possibly related PRs

  • prisma/prisma-next#894: Refactors the schema-node tree and schema diff/verification workflow described by the updated ADRs.
  • prisma/prisma-next#945: Adds Supabase fixtures and tests for the documented RLS naming and rename behavior.
  • prisma/prisma-next#950: Implements the documented Postgres RLS wire-name and lowering semantics.

Suggested reviewers: wmadden

🚥 Pre-merge checks | ✅ 5
✅ Passed checks (5 passed)
Check name Status Explanation
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.
Description Check ✅ Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Title check ✅ Passed The title clearly matches the PR's main closeout work: promoting ADRs and removing completed project artifacts.
✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch docs/postgres-rls-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.

@wmadden-electric
wmadden-electric force-pushed the docs/postgres-rls-closeout branch from cf39b6d to 6044fac Compare July 15, 2026 14:33
@wmadden-electric wmadden-electric changed the title docs(postgres-rls): close out the project — all slices merged chore(postgres-rls): close out the project — promote ADRs, delete project artifacts Jul 15, 2026

@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: 2

🤖 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 234 - Content-addressed wire names for
Postgres-normalized objects.md:
- Around line 109-113: Update the verifier semantics in the “rename”, “missing”,
and “extra” outcomes and the clarification around canonical-body comparison to
be consistently name-only: remove the claim that out-of-band policy body edits
produce extra/missing results, remove the canonical-body comparison fallback,
and state that body edits with unchanged policy names are intentionally
undetectable unless a separate supported detection mechanism is defined.

In `@packages/3-extensions/supabase/README.md`:
- Line 63: Remove all remaining postgres-rls references from the Supabase
README, including the PostgresRole/session-GUC references and the downstream
constituent entry. Replace them with stable package or canonical ADR/subsystem
documentation links where needed, or remove obsolete entries entirely.
🪄 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: 59b75ef1-c429-4d0c-88d9-1d08a52d148e

📥 Commits

Reviewing files that changed from the base of the PR and between aa9c5b5 and 6044fac.

⛔ Files ignored due to path filters (64)
  • projects/postgres-rls/HANDOFF.md is excluded by !projects/**
  • projects/postgres-rls/plan.md is excluded by !projects/**
  • projects/postgres-rls/slices/differ-kind-keying/plan.md is excluded by !projects/**
  • projects/postgres-rls/slices/differ-kind-keying/spec.md is excluded by !projects/**
  • projects/postgres-rls/slices/entity-kind-migration-seam/spec-r4-table-node.md is excluded by !projects/**
  • projects/postgres-rls/slices/entity-kind-migration-seam/spec-r5-build-tree-at-derivation.md is excluded by !projects/**
  • projects/postgres-rls/slices/entity-kind-migration-seam/spec-r6-tables-are-the-nodes.md is excluded by !projects/**
  • projects/postgres-rls/slices/entity-kind-migration-seam/spec.md is excluded by !projects/**
  • projects/postgres-rls/slices/explicit-rls-control/plan.md is excluded by !projects/**
  • projects/postgres-rls/slices/explicit-rls-control/spec.md is excluded by !projects/**
  • projects/postgres-rls/slices/foundation/dispatches/01-ir-kinds.md is excluded by !projects/**
  • projects/postgres-rls/slices/foundation/dispatches/02-canonicalize.md is excluded by !projects/**
  • projects/postgres-rls/slices/foundation/dispatches/02-canonicalize.r2.md is excluded by !projects/**
  • projects/postgres-rls/slices/foundation/dispatches/03-serializer.md is excluded by !projects/**
  • projects/postgres-rls/slices/foundation/dispatches/04-schema-issue-union.md is excluded by !projects/**
  • projects/postgres-rls/slices/foundation/dispatches/04-schema-issue-union.r2.md is excluded by !projects/**
  • projects/postgres-rls/slices/foundation/plan.md is excluded by !projects/**
  • projects/postgres-rls/slices/foundation/spec.md is excluded by !projects/**
  • projects/postgres-rls/slices/one-differ-two-ir-planner/design-codec-render-via-registry.md is excluded by !projects/**
  • projects/postgres-rls/slices/one-differ-two-ir-planner/plan.md is excluded by !projects/**
  • projects/postgres-rls/slices/one-differ-two-ir-planner/spec.md is excluded by !projects/**
  • projects/postgres-rls/slices/rls-policy-operations-and-roles/plan.md is excluded by !projects/**
  • projects/postgres-rls/slices/rls-policy-operations-and-roles/spec.md is excluded by !projects/**
  • projects/postgres-rls/slices/rls-ts-authoring/plan.md is excluded by !projects/**
  • projects/postgres-rls/slices/rls-ts-authoring/spec.md is excluded by !projects/**
  • projects/postgres-rls/slices/rls-walking-skeleton/dispatches/01-un-leak.md is excluded by !projects/**
  • projects/postgres-rls/slices/rls-walking-skeleton/dispatches/02-generic-differ.md is excluded by !projects/**
  • projects/postgres-rls/slices/rls-walking-skeleton/dispatches/03-introspection.md is excluded by !projects/**
  • projects/postgres-rls/slices/rls-walking-skeleton/dispatches/04-psl-authoring.md is excluded by !projects/**
  • projects/postgres-rls/slices/rls-walking-skeleton/dispatches/05-rls-ops.md is excluded by !projects/**
  • projects/postgres-rls/slices/rls-walking-skeleton/dispatches/06-planner-wiring.md is excluded by !projects/**
  • projects/postgres-rls/slices/rls-walking-skeleton/dispatches/07-verify-channel.md is excluded by !projects/**
  • projects/postgres-rls/slices/rls-walking-skeleton/dispatches/08-skeleton-test.md is excluded by !projects/**
  • projects/postgres-rls/slices/rls-walking-skeleton/dispatches/08-skeleton-test.r2.md is excluded by !projects/**
  • projects/postgres-rls/slices/rls-walking-skeleton/dispatches/09-psl-e2e.md is excluded by !projects/**
  • projects/postgres-rls/slices/rls-walking-skeleton/dispatches/10-psl-interpreter-lowering.md is excluded by !projects/**
  • projects/postgres-rls/slices/rls-walking-skeleton/dispatches/11-e2e-repoint.md is excluded by !projects/**
  • projects/postgres-rls/slices/rls-walking-skeleton/dispatches/12-f01-build-fix.md is excluded by !projects/**
  • projects/postgres-rls/slices/rls-walking-skeleton/dispatches/13-drift-fails-verify.md is excluded by !projects/**
  • projects/postgres-rls/slices/rls-walking-skeleton/dispatches/14-drop-policy-op.md is excluded by !projects/**
  • projects/postgres-rls/slices/rls-walking-skeleton/dispatches/15-planner-replace.md is excluded by !projects/**
  • projects/postgres-rls/slices/rls-walking-skeleton/dispatches/16-lifecycle-e2e.md is excluded by !projects/**
  • projects/postgres-rls/slices/rls-walking-skeleton/dispatches/17-orphan-detection.md is excluded by !projects/**
  • projects/postgres-rls/slices/rls-walking-skeleton/dispatches/18-example-setup.md is excluded by !projects/**
  • projects/postgres-rls/slices/rls-walking-skeleton/dispatches/18-example-setup.r2.md is excluded by !projects/**
  • projects/postgres-rls/slices/rls-walking-skeleton/dispatches/19-example-behavioral-e2e.md is excluded by !projects/**
  • projects/postgres-rls/slices/rls-walking-skeleton/dispatches/20-hardening-antileak.md is excluded by !projects/**
  • projects/postgres-rls/slices/rls-walking-skeleton/plan.md is excluded by !projects/**
  • projects/postgres-rls/slices/rls-walking-skeleton/spec.md is excluded by !projects/**
  • projects/postgres-rls/slices/schema-node-tree-restructure/design-diff-and-verify.md is excluded by !projects/**
  • projects/postgres-rls/slices/schema-node-tree-restructure/design.md is excluded by !projects/**
  • projects/postgres-rls/slices/schema-node-tree-restructure/spec.md is excluded by !projects/**
  • projects/postgres-rls/slices/unify-unique-and-index-nodes/code-review.md is excluded by !projects/**
  • projects/postgres-rls/slices/unify-unique-and-index-nodes/design.md is excluded by !projects/**
  • projects/postgres-rls/slices/unify-unique-and-index-nodes/plan.md is excluded by !projects/**
  • projects/postgres-rls/slices/unify-unique-and-index-nodes/spec.md is excluded by !projects/**
  • projects/postgres-rls/spec.md is excluded by !projects/**
  • projects/postgres-rls/specs/adr-schema-diff-over-structured-ir.md is excluded by !projects/**
  • projects/postgres-rls/specs/brief-open-entries-refactor.md is excluded by !projects/**
  • projects/postgres-rls/specs/design-generic-schema-differ.md is excluded by !projects/**
  • projects/postgres-rls/specs/design-rls-authoring-surface.md is excluded by !projects/**
  • projects/postgres-rls/specs/extension-migration-participation.md is excluded by !projects/**
  • projects/postgres-rls/specs/reconciliation-2026-06-08.md is excluded by !projects/**
  • projects/postgres-rls/trace.jsonl is excluded by !projects/**
📒 Files selected for processing (5)
  • docs/architecture docs/adrs/ADR 234 - Content-addressed wire names for Postgres-normalized objects.md
  • docs/architecture docs/adrs/ADR 235 - The schema differ walks two derived schema IRs.md
  • docs/architecture docs/adrs/ADR 236 - Target-contributed model attributes.md
  • docs/architecture docs/subsystems/5. Adapters & Targets.md
  • packages/3-extensions/supabase/README.md

@wmadden-electric
wmadden-electric force-pushed the docs/postgres-rls-closeout branch from 6044fac to 962b961 Compare July 15, 2026 14:38
@github-actions

Copy link
Copy Markdown

size-limit report 📦

Path Size
postgres / no-emit 157.69 KB (0%)
postgres / emit 131.47 KB (0%)
mongo / no-emit 98.71 KB (0%)
mongo / emit 89.43 KB (0%)
cf-worker / no-emit 184.35 KB (0%)
cf-worker / emit 155.53 KB (0%)

@pkg-pr-new

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

Copy link
Copy Markdown

Open in StackBlitz

@prisma-next/extension-author-tools

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

@prisma-next/mongo-runtime

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

@prisma-next/family-mongo

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

@prisma-next/sql-runtime

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

@prisma-next/family-sql

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

@prisma-next/extension-arktype-json

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

@prisma-next/middleware-cache

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

@prisma-next/mongo

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

@prisma-next/extension-paradedb

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

@prisma-next/extension-pgvector

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

@prisma-next/extension-postgis

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

@prisma-next/postgres

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

@prisma-next/sql-orm-client

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

@prisma-next/sqlite

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

@prisma-next/extension-supabase

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

@prisma-next/target-mongo

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

@prisma-next/adapter-mongo

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

@prisma-next/driver-mongo

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

@prisma-next/contract

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

@prisma-next/utils

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

@prisma-next/config

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

@prisma-next/errors

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

@prisma-next/framework-components

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

@prisma-next/operations

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

@prisma-next/ts-render

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

@prisma-next/contract-authoring

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

@prisma-next/ids

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

@prisma-next/psl-parser

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

@prisma-next/psl-printer

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

@prisma-next/cli

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

@prisma-next/cli-telemetry

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

@prisma-next/config-loader

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

@prisma-next/emitter

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

@prisma-next/language-server

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

@prisma-next/migration-tools

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

prisma-next

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

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

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

@prisma-next/mongo-codec

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

@prisma-next/mongo-contract

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

@prisma-next/mongo-value

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

@prisma-next/mongo-contract-psl

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

@prisma-next/mongo-contract-ts

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

@prisma-next/mongo-emitter

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

@prisma-next/mongo-schema-ir

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

@prisma-next/mongo-query-ast

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

@prisma-next/mongo-orm

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

@prisma-next/mongo-query-builder

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

@prisma-next/mongo-lowering

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

@prisma-next/mongo-wire

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

@prisma-next/sql-contract

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

@prisma-next/sql-errors

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

@prisma-next/sql-operations

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

@prisma-next/sql-schema-ir

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

@prisma-next/sql-contract-psl

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

@prisma-next/sql-contract-ts

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

@prisma-next/sql-contract-emitter

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

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

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

@prisma-next/sql-relational-core

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

@prisma-next/sql-builder

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

@prisma-next/target-postgres

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

@prisma-next/target-sqlite

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

@prisma-next/adapter-postgres

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

@prisma-next/adapter-sqlite

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

@prisma-next/driver-postgres

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

@prisma-next/driver-sqlite

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

commit: 2bc171f

… Targets

Migrate the two accepted project ADRs out of projects/postgres-rls/specs/
as ADR 234 (content-addressed wire names) and ADR 235 (schema differ over
two derived IRs), rewritten for a reader without project context: each
leads with the decision, grounds it in a worked example before the
abstractions, matches the shipped surfaces and differ vocabulary, and ends
with alternatives. Author ADR 236 for the two authoring SPIs
(AuthoringContributions.modelAttributes,
AuthoringPslBlockDescriptor.requiresModelAttribute) per the project DoD.
Add the RLS section to the Adapters & Targets subsystem doc.

Signed-off-by: willbot <[email protected]>
Signed-off-by: Will Madden <[email protected]>
The only repo reference into projects/postgres-rls/ pointed at the project
spec and described the pre-decision authoring surface (.rls builder,
policy {} blocks); point it at ADR 234 + the subsystem RLS section and name
the shipped surfaces. The packages/3-extensions/ touch is declared as an
incidental docs-only diff in the 0.14-to-0.15 upgrade instructions.

Signed-off-by: willbot <[email protected]>
Signed-off-by: Will Madden <[email protected]>
All eight slices merged (final: TS RLS authoring, #959); long-lived docs
promoted to docs/ in the preceding commits. Per the projects/ lifecycle,
transient project artifacts (spec, plan, handoff, slice specs/plans,
dispatches, trace) delete with the project.

Signed-off-by: willbot <[email protected]>
Signed-off-by: Will Madden <[email protected]>
@wmadden-electric
wmadden-electric force-pushed the docs/postgres-rls-closeout branch from 962b961 to 2bc171f Compare July 15, 2026 14:56
@wmadden-electric
wmadden-electric added this pull request to the merge queue Jul 15, 2026
Merged via the queue into main with commit 4b18bba Jul 15, 2026
20 checks passed
@wmadden-electric
wmadden-electric deleted the docs/postgres-rls-closeout branch July 15, 2026 15:14
wmadden-electric added a commit that referenced this pull request Jul 23, 2026
…ntity

Slice-0 reality check: postgres-rls 2.6 merged as #947 keeping SqlUniqueIR
and SqlIndexIR as two structural nodes, rejecting the merged-node-with-flag
shape this spec assumed. Operator confirmed the two-node substrate is the
principled one (discrete-entities: an index must not claim to also be a
constraint; ADR 161 superseding note, Data Contract design principle 4).

Amendments: name identity covers index nodes and policies only; unique
constraints keep tuple identity (fully structured, content comparison is
already exact). @@unique/constraints.unique surfaces unchanged; the @@unique
default wire-prefix is dropped. TS policy exact-naming is out of scope
(rls-ts-authoring was never built; postgres-rls closed in #979).

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

Slice-0 reality check: postgres-rls 2.6 merged as #947 keeping SqlUniqueIR
and SqlIndexIR as two structural nodes, rejecting the merged-node-with-flag
shape this spec assumed. Operator confirmed the two-node substrate is the
principled one (discrete-entities: an index must not claim to also be a
constraint; ADR 161 superseding note, Data Contract design principle 4).

Amendments: name identity covers index nodes and policies only; unique
constraints keep tuple identity (fully structured, content comparison is
already exact). @@unique/constraints.unique surfaces unchanged; the @@unique
default wire-prefix is dropped. TS policy exact-naming is out of scope
(rls-ts-authoring was never built; postgres-rls closed in #979).

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