Skip to content

docs(adr-0066, permissions): Modify All's own-row field vote is kept until the field-axis split - #34483

Merged
os-zhuang merged 1 commit into
mainfrom
claude/issue-33828-adr0066-modify-all-note
Nov 17, 2026
Merged

os-zhuang merged 1 commit into
mainfrom
claude/issue-33828-adr0066-modify-all-note

Conversation

@objectstack-fleet

@objectstack-fleet objectstack-fleet Bot commented Nov 16, 2026 •

Copy link
Copy Markdown
Contributor

Fixes #33828

Clause-②: no
Metadata-protocol: none

This is the last item owed on the card after #34082 merged (3e490335). It is a docs-only follow-up with two files and nine changed lines. Tier H: the diff touches docs/adr/**, so it lands only by the maintainer's hand or an authorized approval.

维护者速读

What changes

docs/adr/0066-unified-authorization-model.md, the D2 ⑧ note of 2026-11-15, one sentence. Only its bold lead changes:

  • Before: **Modify All is unchanged, pending a ruling:** a set that holds ...
  • After: **Modify All is unchanged, kept until the field-axis split (#34365), by the maintainer's ruling on the card of 2026-11-16 (6909362597, letter A), verbatim 「保持现状,只给警告」 (keep the current behaviour, warn only):** a set that holds ...

The rest of the sentence (the set still votes readable: true and editable: true on every field, its own rows included) and the rest of the note are unchanged. The wording follows cross-link 6912701885 and ruling 6912661484 on #34365: "kept until the field-axis split", not "kept by design". The ruling is quoted in the original Chinese.

content/docs/permissions/field-level-security.mdx, the default-visible paragraph. This is the line #34082 deferred ("Its sentence that a mask holds unless another set unmasks it does not name the own-set Modify All case; that line belongs with the Modify All ruling"). The sentence's condition gains its own-set half:

  • Before: ... or Modify All (modifyAllRecords, reads and edits every field) on that object — so protect sensitive fields ...
  • After: ... on that object, and the set that declares it does not itself hold Modify All on that object: the set's own View All leaves its readable: false binding, while its own Modify All still reads and edits every field of the object, its own rows included (security-superuser-field-mask-inert warns on such a row), until the field-axis split (#34365) — so protect sensitive fields ...

The paragraph is about the condition under which a mask holds, so it states both own-set cases. The View All clause is the rule #34082 landed.

Why

Verification

Each sentence was checked against the code on origin/main (3bf9c5c41, which contains 3e490335):

  • Modify All votes on every field, its own rows included. superuserFieldVote in packages/core/src/security/effective-object-permissions.ts returns { readable: true, editable: true } for any set where holdsSuperuserBypass(ps, objectName, 'modify') holds, before the set's own row is read. The own-row check (declaresOwnReadMask) runs only on the View All path.
  • The set's own View All leaves its readable: false binding. The same function skips a View All set when declaresOwnReadMask(ps, objectName, fieldName) is true. That check reads the set's own <object>.<field> row for an explicit readable === false.
  • Warn only, no save refused. security-superuser-field-mask-inert in packages/lint/src/validate-security-posture.ts fires only when holdsSuperuserBypass(ps, flsObject, 'modify') holds, and pushes severity: 'warning'. The authoring gate refuses on error findings only (authoring-rules.ts, errors: findings.filter((f) => f.severity === 'error')).
Gates

On head e025d4c6f. The diff touches no package, so no closure build was owed. The gates that read built output had their closure built first under scripts/pm/os-verify-lock.sh: @objectstack/lint... (exit 0), then @objectstack/client-react... (exit 0).

  • node scripts/pm/dispatch-gates.mjs --commands --repo objectstack-ai/objectstack derived 50 commands for the two paths. The repo assertion holds.
  • One hold of the verify lock ran all 50 (VERDICT command-exit 0, held 523 s on a shared box). Results: 49 exited 0. pnpm --filter @objectstack/spec run check:skill-examples exited 3 (PREREQUISITE NOT MET, nothing measured) because client-react's dist was missing. After that build it exited 0 in its own hold (VERDICT command-exit 0): "347 prose examples type-check across 3 surface(s)".
  • --ran reconciliation: ✓ dispatch-gates --ran: 50 derived famil(ies) accounted for — 50 run, 0 NOT-MEASURED (a DERIVED zero — all 50 recorded an exit code and none of them is 3).
  • pnpm check:nul-bytes (in the derived list) exited 0. A control-byte scan of both files found no hits.
  • Not run locally, and owned by CI: the repo-wide pnpm lint, test:repo, and the dogfood battery. The title carries no ! and there is no (narrowing) arm, so the battery is not owed.
Overlap and changeset
  • git merge-tree --write-tree origin/main HEAD exited 0 against origin/main at e8cba8fed. Neither file changed on main since the base. Neither path goes through the regeneration merge driver (.gitattributes routes only content/docs/references/** and content/docs/ui/components/** under content/docs).
  • The file lists of all 48 open PRs were read. None touches either file. The 20 that list no files report changed_files=0; these are mailbox PRs, checked one by one.
  • No changeset. No published package's files[] ships content/docs/ or docs/adr/, so this PR releases nothing. The PR declares skip-changeset at creation (route 2 of Check Changeset). It edits no existing .changeset/*.md.

Human Minimum

  • 1. Schemas start as Zod; packages/spec holds no runtime logic. (No schema touched.)
  • 2. Every name I added uses the casing for its kind. (No names added.)
  • 3. No formatter ran; pnpm lint passes. (No formatter ran. The repo-wide lint is CI's run.)
  • 4. One issue, one branch off an up-to-date main, one pull request.
  • 5. A change that publishes carries a changeset, and both declaration lines are filled in here and in the changeset. (Publishes nothing; both lines are above.)
  • 6. packages/spec touched: its generated artifacts are regenerated and committed. (Not touched.)
  • 7. No hand edits to content/docs/references/, packages/*/CHANGELOG.md or content/docs/releases/.
  • 8. Title, body and comments are in English. (The maintainer quick-read section is in Chinese by the dispatch contract. The ruling is quoted in the original.)
  • The Before Submitting list in CONTRIBUTING.md is done.

🤖 Generated with Claude Code

https://claude.ai/code/session_01FEkQ5nNrLRm8ssuwWcBVcw

…until the field-axis split

ADR-0066 D2 note of 2026-11-15: the Modify All sentence no longer says
"pending a ruling". It records the maintainer's ruling A on the card
(keep the current behaviour, warn only) and that the behaviour is kept
until the field-axis split, not kept by design.

field-level-security.mdx: the default-visible paragraph names the
own-set case the merged View All change left unstated: a set's own View
All leaves its readable: false binding, its own Modify All still votes on
every field (the inert-mask lint rule warns), until the field-axis split.

Claude-Session: https://claude.ai/code/session_01FEkQ5nNrLRm8ssuwWcBVcw
Co-authored-by: Claude <noreply@anthropic.com>
@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

repo:objectstack#1 · os-project-manager · session_01FEkQ5nNrLRm8ssuwWcBVcw

Final head · PR #34483 · Fixes #33828 · area o1-A · head e025d4c · 2026-11-16T22:24Z

Head e025d4c6f6058f2c37e3bd982b2d6534f68a4685 is the first and final head. It carries the owed follow-up after #34082: hand-off 6912083426, cross-link 6912701885, delivery 6930255285, and claim amendment 6930338563. The dev report is 6931174353 on #33828. The area rewrote the body's signature line to the relay's comment form (body-only).

  • ADR-0066, D2 ⑧ note. "Modify All is unchanged, pending a ruling" now reads "kept until the field-axis split (Decision: separate the record axis from the field axis — View All / Modify All stop voting on fields, a read-only viewAllFields bit carries the admin channel (end state, v19) #34365)". It cites the maintainer's ruling A 「保持现状,只给警告」 (6909362597). The rest of the note is unchanged.
  • field-level-security.mdx. This is the line fix(core, plugin-security, lint)!: a permission set's own field-mask row binds its own holders over that set's View All vote #34082 deferred. The default-visible paragraph now says when a mask holds: a set's own View All leaves its own readable: false binding, while its own Modify All still reads and edits every field, its own rows included, until the split. security-superuser-field-mask-inert warns on such a row.
  • The code on main behind each sentence.
    • superuserFieldVote returns readable and editable on Modify All before the own row is read.
    • The View All path skips a set with declaresOwnReadMask.
    • The lint rule is severity: 'warning', and the authoring gate refuses only on errors.
  • Readings. dispatch-gates: 50 derived, 50 run, all exit 0. check:skill-examples exited 0 after its prerequisite build. merge-tree against main is clean, and no open PR touches either file.
  • CI on this head: 30 success, 22 skipped, 0 failed.
  • Tier: GOVERNED (docs/adr/**). Two files, +7/−2, docs only, with skip-changeset.
  • Owed:
    • The L1 review (L1-b).
    • The first L2 at CONTRACT_REVIEW_TIER (review#2).
    • Then the seat's Tier H hand-off.

@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

review#2 · os-project-manager · session_01FEkQ5mjfxPu5HKjUtuveBR

Contract-review-claim: session_01FEkQ5mjfxPu5HKjUtuveBR · head e025d4c · 2026-11-16T22:25Z

@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

repo:objectstack#1 · os-project-manager · session_01FEkQ5mww9UksbwbjvM4aYn

席位核对 · PR #34483 · L1-b · 2026-11-16T22:25Z

Head-sha: e025d4c(终版 head 评论 6931208871,dev 报告 6931174353;2 个文件,+7/−2)

结论:ACCEPT

  • PR 形态:Fixes #33828。Modify All 那一半的裁决记录(6909362597)写明,后续只欠这两处文字:ADR 那一句和 fix(core, plugin-security, lint)!: a permission set's own field-mask row binds its own holders over that set's View All vote #34082 推迟的 mdx 那一行,本 PR 正好就是这两处,所以用 Fixes 关卡是对的。
  • ADR-0066 D2 ⑧ 的 2026-11-15 注:只改了加粗的引导句。
  • 按代码逐句核对(origin/main 上的 superuserFieldVote,effective-object-permissions.ts:1056):
    • 任何一个权限集只要持有 Modify All(holdsSuperuserBypass(…, 'modify')),函数就直接返回可读、可编辑,不会去读这个集自己的行。这与 mdx 新增的"its own Modify All still reads and edits every field… its own rows included"相符。
    • View All 这条路径会先问 declaresOwnReadMask,自己声明了 readable: false 的字段就跳过、不投读票。这与"the set's own View All leaves its readable: false binding"相符。
  • lint 只警告、不拒绝保存:正文给出了 validate-security-posture.ts 中的 severity 和 authoring-rules.ts 中只按 error 拒绝的依据,与文中"warns"一致。
  • 陈旧文字扫描:在 head 上 grep 了 docs/、content/、skills/ 和 packages/lint/src,已没有"Modify All 待裁决"一类的说法。
  • Changeset:不发版,按 skip-changeset 处理。两个路径都不在任何已发布包的 files[] 里,正文写明了。声明为 Clause-② no、Metadata-protocol none,与纯文档改动相符。
  • 门禁:dispatch-gates 推导出 50 族,全部跑过,0 NOT MEASURED。其中 check:skill-examples 第一次因缺前置 build 返回 exit 3,补完 build 后重跑为 exit 0,正文有读数。
  • CI:这个 head 上 31 项成功、25 项跳过、0 红,已读。
  • Tier H:路径是 docs/adr/**,按规定需要维护者亲自合并或由他授权批准。L2 由 review#2 负责,不在 L1 的范围内。

@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

review#2 · os-project-manager · session_01FEkQ5mjfxPu5HKjUtuveBR

Contract review

Served-tier: CONTRACT_REVIEW_TIER
Head-sha: e025d4c6f6058f2c37e3bd982b2d6534f68a4685
Local-runs: none
Scope: docs/adr/0066-unified-authorization-model.md + content/docs/permissions/field-level-security.mdx
Security-touching: yes

First contract review of this PR; no earlier record on it. It is the follow-up owed after #34082 (record 6903726508 there). Read: card #33828 and every comment, ruling 6909362597, cross-link 6912701885, #34365 and its ruling 6912661484, the PR body, the net diff against main (2 files, +7/−2), the check-runs, and the cited code at this head.

① Derived judgments

② Semver level

Right. Clause-②: no and Metadata-protocol: none hold: nothing an author writes or a consumer reads changes. No changeset, with the skip-changeset label: neither docs/adr/** nor content/docs/** ships in a published package. Check Changeset is green on the head.

③ Boundary flags

  • Dev report 6931174353, open question 1 (signed trailer form on the PR body): a seat matter, answered by final-head comment 6931208871 (the area rewrote the line to the relay's comment form). No contract effect.
  • Open question 2 (skip-changeset riding the create): answered A by the tree; the diff releases nothing.
  • Fixes #33828 closes the card: ruling 6909362597 and hand-off 6912083426 name exactly these two texts as all the card still owes after fix(core, plugin-security, lint)!: a permission set's own field-mask row binds its own holders over that set's View All vote #34082. Right.
  • Checks at the read: 56 check-runs, 31 success, 25 skipped, none red, none pending. Governed Surface Queue Guard, Build Docs, Check Documentation Links and the PR-body guards are green.
  • Tier H stands: docs/adr/** is governed and this record says Security-touching: yes, so the low-risk arm does not apply. The PR is a draft.
  • SQL push-down: not applicable, no code.
  • Stale-text scan at this head over content/docs, docs/adr and skills: no "pending a ruling" left for this rule. authorization.mdx (FLS posture callout) and permissions-matrix.mdx already state the same rule and agree with the new text.

④ Design judgment

docs/adr/0066-unified-authorization-model.md (hit) — holds.

content/docs/permissions/field-level-security.mdx — agrees with the code, clause by clause.

  • "the set that declares it does not itself hold Modify All on that object": holdsSuperuserBypass reads the set's own entry for the object, else its '*' wildcard. "holds … on that object" is the same phrase the paragraph already uses for other sets, and it covers both.
  • "the set's own View All leaves its readable: false binding": the View All path of superuserFieldVote skips a set whose own row declares readable: false, and only when the set does not hold Modify All. The sentence's first half already says the row stops binding when another set votes.
  • "its own Modify All still reads and edits every field of the object, its own rows included": true, as above.
  • "security-superuser-field-mask-inert warns on such a row": the rule id is exact (packages/lint/src/validate-security-posture.ts). It fires only when the set holds Modify All on the row's object, with severity: 'warning', and is silent beside View All alone. See N3.
  • Grammar: the sentence still parses as one, condition, colon, elaboration, then the "— so protect…" tail. See N1.
  • Tried to break it: a set with its own entry lacking Modify All beside a '*' Modify All (own entry answers, mask binds, text right); Modify All plus View All on one set (Modify All wins, text right); an omitted readable (never a mask, the text speaks only of readable: false). None contradicts the text.

No must-fix, no should-fix.

N1 (nit) — the docs sentence now runs past a hundred words and carries two "until" clauses (the muting layer, the field-axis split). "the field-axis split" is defined on no docs page; a reader has only the issue number. Two sentences would read better. No effect on what it states.

N2 (nit) — the ADR lead reads as if ruling 6909362597 set the "until the field-axis split" bound. That record says keep and warn only; the bound comes from ruling 6912661484 on #34365. The issue number is cited, so it is traceable.

N3 (nit) — the lint rule also reports an edit lock beside the set's own Modify All; "such a row" names only the readable: false row. True, and the paragraph is about read masks.

N4 (nit) — outside the diff: the same paragraph's older half says a mask fails when another set "holds View All" on the object. A View All set that itself declares readable: false on that field casts no vote. The text errs to the cautious side, and authorization.mdx states the exact rule.

Implemented-by: claude/issue-33828-adr0066-modify-all-note
Reviewed-by: session_01FEkQ5mjfxPu5HKjUtuveBR

VERDICT: PASS

@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

repo:objectstack#1 · os-project-manager · session_01FEkQ5pmEYLVFDcQ1Z1CS8H

维护者速读

Head-sha: e025d4c6f6058f2c37e3bd982b2d6534f68a4685

席位意见:建议批准。合并后 #33828 关闭。

席位核对

  1. 形态:2 个文件,+7/−2,check-governed-merges 判 GOVERNED(docs/adr/**),Tier H。Fixes #33828。
  2. 审核:L1-b ACCEPT 6931238413 和 review#2 CONTRACT_REVIEW_TIER PASS 6931340160 都在本 head 上,没有 must-fix 或 should-fix,另有四条 nit(N1–N4)。
  3. 门禁:本 head 上 CI 31 条 success,没有失败。
  4. 落地条款:等 GOVERNED_APPROVERS 在本 head 上 APPROVED(或你直接合并)。落地前席位重读 head 和 check-runs;head 一动就摘掉挂签,回到等待。之后清掉 pm:awaiting-merge,标 ready,开 auto-merge。

@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

repo:objectstack#1 · os-project-manager · session_01FEkQ5nNrLRm8ssuwWcBVcw

State · PR #34483 · Fixes #33828 · head e025d4c · hand-over to repo:objectstack#2 · 2026-11-17T00:17Z

  • Done: two docs-only files (the ADR-0066 D2 ⑧ sentence and the field-level-security.mdx line). L1-b ACCEPT 6931238413 and review#2 L2 PASS 6931340160 are both on this head. CI is green. The seat's Tier H hand-off is 6931382644, and the PR carries pm:awaiting-merge.
  • Owed: the maintainer's approval or merge on this head. After that, the landing (ready, then auto-merge) is done by seat repo:objectstack#2. There are no open fix items. Review#2's four nits (N1–N4) are not owed.

@os-zhuang
os-zhuang marked this pull request as ready for review November 17, 2026 02:13
@os-zhuang
os-zhuang enabled auto-merge November 17, 2026 02:13
@os-zhuang
os-zhuang added this pull request to the merge queue Nov 17, 2026
Merged via the queue into main with commit 8a60f50 Nov 17, 2026
62 checks passed
@os-zhuang
os-zhuang deleted the claude/issue-33828-adr0066-modify-all-note branch November 17, 2026 03:02
@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

repo:objectstack#2 · os-steve · session_01ADHkmQ2SN4K183oqAvUajA

Merged as 8a60f509c6, written at 2026-11-17T03:12Z. The approval is on record and the PR landed through the queue. pm:awaiting-merge comes off in this stroke.

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

Labels

documentation Improvements or additions to documentation size/xs skip-changeset PR has no user-facing published change; bypasses the changeset gate

Projects

None yet

Development

Successfully merging this pull request may close these issues.

security: a permission set's own readable:false field row must win over that same set's View All field vote (amend ADR-0066 D2 ⑧)

3 participants