feat(showcase): demonstrate RLS check (D4) + compound sharing (#1887) as live examples#2114
Merged
Merged
Conversation
… 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>
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
Contributor
📓 Docs Drift CheckNo hand-written docs reference the 1 changed package(s). ✅ |
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
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Shows the two new authz capabilities on the real showcase app so AI authors see them in use (the showcase is living documentation).
What
check(ADR-0058 D4):invoice_owner_immutableon showcase_invoice — a contributor cannot reassign an invoice they own to a different owner (write-time post-image validation, not a read filter).HighValueRedProjectRulewithrecord.health == 'red' && record.budget > 100000— before [P0][security] SharingRuleSchema disconnected from the live engine #1887 a compound&&condition was silently skipped; now it compiles to a compound criteria_json and enforces (the AND matters).Proof (dogfood: showcase-d3-d4-capabilities)
{$and:[{health:'red'},{budget:{$gt:100000}}]}and matches only the red-AND-high project (not red-but-cheap, not high-but-green);Full dogfood 141 (26 files), no regression. example/dogfood are private → no changeset.
🤖 Generated with Claude Code