Repository navigation
Commit 8a60f50
docs(adr-0066, permissions): Modify All's own-row field vote is kept until the field-axis split (#34483)
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.
## 维护者速读
- 改了什么:ADR-0066 D2 ⑧ 2026-11-15 注里关于"修改全部"(Modify
All)的那句,从"保持不变,等待裁决"改为"按 #33828 上的裁决
A(「保持现状,只给警告」)保持不变,直到字段轴拆分(#34365)";`field-level-security.mdx` 的默认可见段落补上
#34082 推迟的那一行:权限集自己的 View All 不再解开自己的 `readable: false`,自己的 Modify All
仍然解开(lint 给警告),直到字段轴拆分。
- 为什么改:维护者 2026-11-16 在本卡对 Modify All 选了 A(评论 6909362597);#34365
的裁决(6912661484)要求这句写成"保留到字段轴拆分",不写成"设计如此"。#34082 合并后只剩这两处文字没跟上。
- 风险与回滚:只改文档,不改代码、spec 或 `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 (#34365)"。
- 需要你做的:审阅 ADR-0066 这一句受管文本,同意后批准或亲自合并(Tier H)。
## 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
- The maintainer ruled A on the Modify All half of the card
(6909362597): 「保持现状,只给警告」. Modify All keeps its behaviour, and the
warning is the only change.
- Ruling 6912661484 on #34365 sets the end state (record axis and field
axis split, a read-only `viewAllFields`). Modify All keeps today's
behaviour until that split, so the ADR says "kept until", not "kept by
design".
- Hand-off 6912083426 and delivery note 6930255285 name exactly these
two items as what the card still owes.
## 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')`).
<details><summary>Gates</summary>
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.
</details>
<details><summary>Overlap and changeset</summary>
- `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`.
</details>
## Human Minimum
- [x] 1. Schemas start as Zod; `packages/spec` holds no runtime logic.
(No schema touched.)
- [x] 2. Every name I added uses the casing for its kind. (No names
added.)
- [x] 3. No formatter ran; `pnpm lint` passes. (No formatter ran. The
repo-wide lint is CI's run.)
- [x] 4. One issue, one branch off an up-to-date `main`, one pull
request.
- [x] 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.)
- [x] 6. `packages/spec` touched: its generated artifacts are
regenerated and committed. (Not touched.)
- [x] 7. No hand edits to `content/docs/references/`,
`packages/*/CHANGELOG.md` or `content/docs/releases/`.
- [x] 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.)
- [x] The *Before Submitting* list in CONTRIBUTING.md is done.
🤖 Generated with [Claude Code](https://claude.com/claude-code)
https://claude.ai/code/session_01FEkQ5nNrLRm8ssuwWcBVcw
<!-- signed: repo:objectstack#1 · os-project-manager ·
session_01FEkQ5nNrLRm8ssuwWcBVcw -->
Co-authored-by: Claude <noreply@anthropic.com>1 parent f7b2d02 commit 8a60f50
2 files changed
Lines changed: 7 additions & 2 deletions
File tree
- content/docs/permissions
- docs/adr
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
200 | 200 | | |
201 | 201 | | |
202 | 202 | | |
203 | | - | |
| 203 | + | |
| 204 | + | |
| 205 | + | |
| 206 | + | |
| 207 | + | |
| 208 | + | |
204 | 209 | | |
205 | 210 | | |
206 | 211 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
141 | 141 | | |
142 | 142 | | |
143 | 143 | | |
144 | | - | |
| 144 | + | |
145 | 145 | | |
146 | 146 | | |
147 | 147 | | |
| |||
0 commit comments