Skip to content

feat(showcase): demonstrate RLS check (D4) + compound sharing (#1887) as live examples#2114

Merged
xuyushun441-sys merged 1 commit into
mainfrom
feat/showcase-d3-d4-examples
Jun 21, 2026
Merged

feat(showcase): demonstrate RLS check (D4) + compound sharing (#1887) as live examples#2114
xuyushun441-sys merged 1 commit into
mainfrom
feat/showcase-d3-d4-examples

Conversation

@xuyushun441-sys

Copy link
Copy Markdown
Contributor

Shows the two new authz capabilities on the real showcase app so AI authors see them in use (the showcase is living documentation).

What

Proof (dogfood: showcase-d3-d4-capabilities)

  • the compound condition seeds as {$and:[{health:'red'},{budget:{$gt:100000}}]} and matches only the red-AND-high project (not red-but-cheap, not high-but-green);
  • the RLS check denies an owner reassignment over HTTP and allows a same-owner edit.

Full dogfood 141 (26 files), no regression. example/dogfood are private → no changeset.

🤖 Generated with Claude Code

… as live examples

After landing the two capabilities, show them on the REAL showcase app so AI
authors and readers see them in use (the showcase is living documentation):

- RLS `check` (ADR-0058 D4): an `invoice_owner_immutable` policy on
  showcase_invoice — a contributor cannot reassign an invoice they own to a
  different owner (write-time post-image validation, not a read filter).
- Compound sharing condition (ADR-0058 D3 / #1887): a new HighValueRedProjectRule
  with `record.health == 'red' && record.budget > 100000` — before #1887 a
  compound `&&` condition was silently skipped; now it compiles to a compound
  criteria_json and enforces (the AND matters).

dogfood proof (showcase-d3-d4-capabilities): asserts the compound condition seeds
as `{$and:[{health:'red'},{budget:{$gt:100000}}]}` and matches ONLY the
red-AND-high project, and that the RLS check denies an owner reassignment over
HTTP while allowing a same-owner edit. Full dogfood 141; no regression.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
@vercel

vercel Bot commented Jun 21, 2026

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
spec Ready Ready Preview, Comment Jun 21, 2026 8:20am

Request Review

@github-actions

Copy link
Copy Markdown
Contributor

📓 Docs Drift Check

No hand-written docs reference the 1 changed package(s). ✅

@xuyushun441-sys
xuyushun441-sys merged commit b3cfd43 into main Jun 21, 2026
17 checks passed
@xuyushun441-sys
xuyushun441-sys deleted the feat/showcase-d3-d4-examples branch June 21, 2026 08:22
os-zhuang added a commit that referenced this pull request Jun 30, 2026
feat(list): server-side export (csv/xlsx/json) with export button + permission gate (#2114)

objectui@de6f8e24f84080d5e1227a5e90327c262bcd4558
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants