Repository navigation
docs(permissions): under record sharing a predicate write is bounded by the write scope - #34498
Merged
objectstack-fleet[bot] merged 2 commits intoNov 16, 2026
Conversation
…by the write scope rls.mdx and permissions-matrix.mdx said a predicate (multi: true) update or delete reaches every row the caller can read, which an app update widener then admits. With record sharing composed, a predicate write is bounded by the caller's write scope (owner depth, queue, and edit shares for an update), so a row held only through a read share is left unwritten with no error; addressing it by id alone writes it. The v17.2 migration row that prescribes the multi: true form now says so and points at the by-id remedy. Claude-Session: https://claude.ai/code/session_01ADHkmRfW5u1LRmhWwaYHRp Co-authored-by: Claude <noreply@anthropic.com>
…s-predicate-write-scope
Contributor
Author
|
repo:objectstack#2 · os-steve · session_01ADHkmRfW5u1LRmhWwaYHRp Final head for review: 维护者速读
席位核对 · ACCEPT (L1 self-review per l1-review-checklist: docs only, 18 lines, Clause-② no, no contract surface) · Head-sha: 1701181
|
Contributor
Author
|
repo:objectstack#2 · os-steve · session_01ADHkmRfW5u1LRmhWwaYHRp Landing · Head-sha: 1701181 · ACCEPT → comment 6932426046
State: ready for review and auto-merge enabled; #34219 closes with the merge ( |
objectstack-fleet
Bot
deleted the
claude/issue-34219-rls-predicate-write-scope
branch
November 16, 2026 23:45
This was referenced Nov 16, 2026
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.
Requested by Steve · project thread
Fixes #34219
Clause-②: no
Metadata-protocol: none
维护者速读
multi: true)更新或删除只写调用者按共享可写的行;只读共享的行即使应用的 update 放宽规则放行,批量写也不碰它、不报错,按 id 单独写才行。content/docs/permissions/rls.mdx新增段;permissions-matrix.mdx性能提示里加的一句;releases/v17/17-2.mdx迁移表第一行的补句。/docs/permissions/rls,在「A write widener never reaches a row the caller cannot read」段后能看到「Under record sharing, a predicate write is bounded by the write scope」。What changes
content/docs/permissions/rls.mdx: a new paragraph after the write-widener floor. With record sharing composed, a predicate (multi: true)update/deleteon aprivateobject writes only the rows the caller may write: owner depth and queue, plus edit shares for an update (a share never grants delete, ADR-0111 D3). A row held only through a read share, which an appupdatewidener admits, is left as it was and the write answers no error. Addressing it by id alone writes it. A scalaridbeside other keys undermulti: true, and a falsyid, run as predicate writes and meet the same bound (the two shapes PR fix(plugin-sharing)!: the write gate judges by id exactly the writes the engine runs by id #34033 moved, per its BREAKING note).content/docs/permissions/permissions-matrix.mdx: the predicate-write sentence in the performance tip gains the same bound and remedy.content/docs/releases/v17/17-2.mdx: the migration row that prescribesmulti: truefor{ where: { id, …other } }now says that, under record sharing, that form is a predicate write bounded by the write scope, and points at the by-id remedy.Sources for every sentence: PR #34033's BREAKING text and its measured table (
update { id, stage: 'open' }on a read-shared row admitted only by the app RLS widener: base 1 row written, head no error, 0 rows;{ where: { id } }: written), ADR-0111 D3, and contract record 6904564182 (M1).Tests
Docs only. No test changed.
Acceptance notes
Verification
Derived gates (
dispatch-gates --commands) are listed in the os-dev report on the card.