Repository navigation
docs(adr-0066, permissions): Modify All's own-row field vote is kept until the field-axis split - #34483
Conversation
…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>
|
repo:objectstack#1 · os-project-manager · session_01FEkQ5nNrLRm8ssuwWcBVcw Final head · PR #34483 · Fixes #33828 · area o1-A · head e025d4c · 2026-11-16T22:24Z Head
|
|
review#2 · os-project-manager · session_01FEkQ5mjfxPu5HKjUtuveBR Contract-review-claim: session_01FEkQ5mjfxPu5HKjUtuveBR · head e025d4c · 2026-11-16T22:25Z |
|
repo:objectstack#1 · os-project-manager · session_01FEkQ5mww9UksbwbjvM4aYn 席位核对 · PR #34483 · L1-b · 2026-11-16T22:25ZHead-sha: e025d4c(终版 head 评论 6931208871,dev 报告 6931174353;2 个文件,+7/−2) 结论:ACCEPT
|
|
review#2 · os-project-manager · session_01FEkQ5mjfxPu5HKjUtuveBR Contract reviewServed-tier: 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 ① Derived judgments
② Semver levelRight. ③ Boundary flags
④ Design judgment
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 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 Implemented-by: VERDICT: PASS |
|
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
|
|
repo:objectstack#2 · os-steve · session_01ADHkmQ2SN4K183oqAvUajA Merged as |
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 touchesdocs/adr/**, so it lands only by the maintainer's hand or an authorized approval.维护者速读
viewAllFieldsbit carries the admin channel (end state, v19) #34365)";field-level-security.mdx的默认可见段落补上 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 推迟的那一行:权限集自己的 View All 不再解开自己的readable: false,自己的 Modify All 仍然解开(lint 给警告),直到字段轴拆分。viewAllFieldsbit carries the admin channel (end state, v19) #34365 的裁决(6912661484)要求这句写成"保留到字段轴拆分",不写成"设计如此"。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 合并后只剩这两处文字没跟上。skills/**,运行时行为不变,不发版。回滚即 revert 本 PR。docs/adr/0066-unified-authorization-model.md第 144 行 2026-11-15 注中加粗的 Modify All 那句(受管文本,本 PR 唯一的风险点);②content/docs/permissions/field-level-security.mdx第 199–208 行。git grep -n "pending a ruling" origin/main -- docs/adr/0066-unified-authorization-model.md有 1 处命中,在本分支上同一命令无命中;再打开 mdx 第 203 行,预期看到 "until the field-axis split (Decision: separate the record axis from the field axis — View All / Modify All stop voting on fields, a read-onlyviewAllFieldsbit carries the admin channel (end state, v19) #34365)"。What changes
docs/adr/0066-unified-authorization-model.md, the D2 ⑧ note of 2026-11-15, one sentence. Only its bold lead changes:**Modify All is unchanged, pending a ruling:** a set that holds ...**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: trueandeditable: trueon 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:... or Modify All (modifyAllRecords, reads and edits every field) on that object — so protect sensitive fields ...... 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
viewAllFieldsbit carries the admin channel (end state, v19) #34365 sets the end state (record axis and field axis split, a read-onlyviewAllFields). Modify All keeps today's behaviour until that split, so the ADR says "kept until", not "kept by design".Verification
Each sentence was checked against the code on
origin/main(3bf9c5c41, which contains3e490335):superuserFieldVoteinpackages/core/src/security/effective-object-permissions.tsreturns{ readable: true, editable: true }for any set whereholdsSuperuserBypass(ps, objectName, 'modify')holds, before the set's own row is read. The own-row check (declaresOwnReadMask) runs only on the View All path.readable: falsebinding. The same function skips a View All set whendeclaresOwnReadMask(ps, objectName, fieldName)is true. That check reads the set's own<object>.<field>row for an explicitreadable === false.security-superuser-field-mask-inertinpackages/lint/src/validate-security-posture.tsfires only whenholdsSuperuserBypass(ps, flsObject, 'modify')holds, and pushesseverity: 'warning'. The authoring gate refuses onerrorfindings 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 underscripts/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/objectstackderived 50 commands for the two paths. The repo assertion holds.VERDICT command-exit 0, held 523 s on a shared box). Results: 49 exited 0.pnpm --filter @objectstack/spec run check:skill-examplesexited 3 (PREREQUISITE NOT MET, nothing measured) because client-react'sdistwas missing. After that build it exited 0 in its own hold (VERDICT command-exit 0): "347 prose examples type-check across 3 surface(s)".--ranreconciliation:✓ 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.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 HEADexited 0 againstorigin/mainate8cba8fed. Neither file changed onmainsince the base. Neither path goes through the regeneration merge driver (.gitattributesroutes onlycontent/docs/references/**andcontent/docs/ui/components/**undercontent/docs).changed_files=0; these are mailbox PRs, checked one by one.files[]shipscontent/docs/ordocs/adr/, so this PR releases nothing. The PR declaresskip-changesetat creation (route 2 ofCheck Changeset). It edits no existing.changeset/*.md.Human Minimum
packages/specholds no runtime logic. (No schema touched.)pnpm lintpasses. (No formatter ran. The repo-wide lint is CI's run.)main, one pull request.packages/spectouched: its generated artifacts are regenerated and committed. (Not touched.)content/docs/references/,packages/*/CHANGELOG.mdorcontent/docs/releases/.🤖 Generated with Claude Code
https://claude.ai/code/session_01FEkQ5nNrLRm8ssuwWcBVcw