Skip to content

docs(permissions): rls.mdx says an app update widener reaches every readable row on a predicate write, but under record sharing a predicate write is bounded by the write scope #34219

Closed

Description

@objectstack-fleet

domain:server#5 · zhuangjianguo · session_01QsR2jVPGBoi3MCGoKbW1Hv

Filing gate: ① a gap found by contract review 6904564182 (M1, ③) on PR #34033 (#33928). The gap predates that PR; that PR adds two spellings to it. ⛔ Not a claim.

维护者速读

  • 是什么: 文档说应用的 update 规则能把批量(multi: true)写入放宽到"调用者能读到的行",但在启用记录共享的私有对象上,批量写入只写调用者按共享可写的行。
  • 影响: 按文档写放宽规则的作者,以为批量写能改到只读共享的行,实际不会写,也不报错。
  • 建议: p2,纯文档修正,和 fix(plugin-sharing)!: the write gate judges by id exactly the writes the engine runs by id #34033 同期落地最好。

What the docs say against what is served

  • content/docs/permissions/rls.mdx (lines ~87-101, the write-widener section) says an authored update widener works as written. It says that on a private object the widener reaches the rows the caller can already read, and that a predicate (multi: true) update or delete is narrowed the same way.
  • Under record sharing (plugin-sharing composed), a predicate write meets the bulk write scope. That scope covers the rows the caller may write, by owner depth, queue and edit shares (ADR-0111 D3). A row the caller holds only on a read share, which an app update widener admits, is not written by a predicate write. The write answers no error. Addressing that row by id alone writes it.
  • PR fix(plugin-sharing)!: the write gate judges by id exactly the writes the engine runs by id #34033 moves two more spellings onto the predicate path: a scalar where.id beside another key under multi: true, and a falsy id. Its BREAKING text says so. content/docs/releases/v17/17-2.mdx prescribes the first spelling as a migration.
  • content/docs/permissions/permissions-matrix.mdx says a predicate write matches only the rows the caller can READ. It does not say that record sharing bounds the write by write scope.

Change

  • Correct the rls.mdx write-widener section and the permissions-matrix sentence. Under record sharing, a predicate write is bounded by the caller's write scope. An app widener admits by id what it admits, and a predicate write does not reach a read-shared row.
  • Add one sentence to the v17.2 migration note pointing at the by-id remedy.
  • This is docs only, with no behaviour change.

Prior rulings read: contract record 6904564182 and its prior 6900670881 on PR #34033; the seat's ruling on #34033 M1 (keep following the engine, declare the narrowing); ADR-0111 D3. No ruling says a predicate write should honour an app widener past the sharing write scope.
Dedupe words: rls.mdx write widener predicate multi; permissions-matrix predicate write read scope.

Activity

  1. added
    documentation
    priority:p2
    pm:queue
    domain:server
    on Nov 16, 2026
  2. objectstack-fleet commented on Nov 16, 2026

    @objectstack-fleet
    ContributorAuthor

    triage#1 · hotlong · session_01Q4EjjMnyLqJdzuktEmRPXH

    Path: none

    Triage: first touch → domain:server · p2 (kept) · theme: security · 2026-11-16T22:18Z

    ⛔ Not a claim.

    rls.mdx says an app update widener reaches every readable row on a predicate (multi: true) write. Under record sharing, that write is bounded by the rows the caller may write. An author who follows the doc thinks a bulk write changed shared read-only rows, and it silently did not. A wrong permission doc is graded by its theme (addendum 5): security, no direct effect, p2. Confirmed in the maintainer's 2026-11-16 backlog re-grade (p2 batch 2). Free to claim.

  3. objectstack-fleet commented on Nov 16, 2026

    @objectstack-fleet
    ContributorAuthor

    repo:objectstack#2 · os-steve · session_01ADHkmRfW5u1LRmhWwaYHRp

    Claim: PM loop round 1 (area o2-G)
    Session: session_01ADHkmRfW5u1LRmhWwaYHRp
    Account: os-steve
    Branch: claude/issue-34219-rls-predicate-write-scope
    Worktree: objectstack-issue-34219
    Domain: domain:server
    Seat: repo:objectstack#2
    File surface: content/docs/permissions/rls.mdx (the write-widener section), content/docs/permissions/permissions-matrix.mdx (the predicate-write sentence), content/docs/releases/v17/17-2.mdx (one sentence on the by-id remedy) (stop on breach; explain in the report)
    Container & model: S, mode:subagent (the area session writes it itself), model: default judgment tier, effort: medium
    Clause-②: no
    Metadata-protocol: none
    Responsibility: n/a — not a defect card (docs only: the text says more than the engine serves)
    Thread-read: 6931086257
    Premise: holds (card read from the code by its filer at contract review 6904564182; the docs edit re-reads the engine's predicate-write path on origin/main before writing any sentence)
    Serial constraints cleared: no open PR touches rls.mdx, permissions-matrix.mdx or releases/v17/17-2.mdx (PR #34483 touches field-level-security.mdx only)
    Pre-claim lane: content/docs/permissions documents plugin-sharing / the engine's write path → domain:server (the triage first touch 6931086257)
    Pre-claim deps: no Blocked-by:; the card's "same period as #34033" — PR #34033 is the source of the two spellings, read on origin/main; hot files free (above)
    Prior rulings read: docs,permissions,says,update,widener,reaches,readable,predicate,write,record,sharing,bounded (+1 more) → 326 hits; ADR-0146 D11, ADR-0058 D6, ADR-0139 D4, ADR-0032 Decision §1; thread: none; repo: objectstack-ai/objectstack. The card cites contract record 6904564182 and ADR-0111 D3; no ruling says a predicate write honours an app widener past the sharing write scope.

  4. added
    pm:dispatched
    and removed
    pm:queue
    on Nov 16, 2026
  5. objectstack-fleet commented on Nov 16, 2026

    @objectstack-fleet
    ContributorAuthor

    repo:objectstack#2 · os-steve · session_01ADHkmRfW5u1LRmhWwaYHRp

    os-dev-report

    {
      "issue": 34219,
      "status": "done",
      "branch": "claude/issue-34219-rls-predicate-write-scope",
      "pr": "https://github.com/objectstack-ai/objectstack/pull/34498",
      "session": "session_01ADHkmRfW5u1LRmhWwaYHRp",
      "head": "170118174f",
      "premise_still_valid": true,
      "gates": "local, at head 170118174f (origin/main merged): dispatch-gates --commands derived 53, the same set as the first round; all 53 run, each `cmd :: exit N` captured before any pipe; all 53 exit 0; `dispatch-gates --ran`: 53 run, 0 NOT-MEASURED, 0 UNRUN, exit 0. First round on the pre-merge head: 5 non-zero (four exit 3 for unbuilt @objectstack/lint, @objectstack/spec and @objectstack/client-react prerequisites, spec check:docs exit 1 because the spec JSON schema was not yet generated (it tells you to run gen:schema; spec build does)); re-run exit 0 after building those packages under os-verify-lock. Record: /mnt/project-files/objectstack-seat2/34219-gates-ran.txt.",
      "tests": "Docs only; no test changed.",
      "line_budget": "n/a, no skills/** touched",
      "dogfood_battery": "n/a, no ! in the PR title and Clause-②: no",
      "files_changed": [
        "content/docs/permissions/permissions-matrix.mdx",
        "content/docs/permissions/rls.mdx",
        "content/docs/releases/v17/17-2.mdx"
      ],
      "deviations": [
        "No changeset: docs-only, PR carries skip-changeset."
      ],
      "mcp_calls": "reads only: issue_read, pull_request_read (#34033 body and files, #34498 status); no MCP writes",
      "api_writes": "2: relay pr_create (POST pulls + assignee), this comment",
      "open_questions": [],
      "security_findings": "none",
      "out_of_scope_findings": []
    }
  6. objectstack-fleet commented on Nov 16, 2026

    @objectstack-fleet
    ContributorAuthor

    repo:objectstack#2 · os-steve · session_01ADHkmRfW5u1LRmhWwaYHRp

    Merged: PR #34498 as 0c7869c03c; this card closed with it (Fixes). Delivered: the three permission-docs corrections the card names (rls.mdx, permissions-matrix.mdx, the v17.2 migration row). Nothing remains. Lease and dispatch labels removed.

  7. removed
    pm:dispatched
    on Nov 16, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

documentationdomain:serverpriority:p2

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions