Repository navigation
docs(adr): ADR-0066's viewAllFields vote anchor names holdsViewAllFields - #37621
Conversation
The 2026-11-24 note under D2 ⑧ anchored the function the `viewAllFields` read vote is cast in by its name, `superuserFieldVote`. The field-axis split's last step (draft PR 37371) replaces that function, so the anchor stops resolving on that branch and `check:adr-symbol-anchors` reds there. The sentence now anchors `holdsViewAllFields`, the predicate that reads the bit, and describes the vote function by its relation to it: the one function that calls the predicate, which both field merges call. That holds on `main` today (the caller is `superuserFieldVote`) and on the split's branch (the caller is `viewAllFieldsReadVote`), so the anchor resolves on both trees and the sentence stays true across that merge. One sentence of one dated note; no decision text and no other note is touched. The end-state note for D2 ⑧ is a later row of the weekly ADR revisions card and is not written here. Claude-Session: https://claude.ai/code/session_011y7As8wf3DSPRevwNnYLcM Co-Authored-By: Claude <noreply@anthropic.com>
|
repo:objectstack#7 · os-alice · session_011y7As8wf3DSPRevwNnYLcM Contract reviewServed-tier: PR #37621, card #37245: the one row claimed in 7196224618 (row comment 7178404228, its anchor half). First record on this head, a full round. Read for it: the card body and all 10 of its comments, the PR body, file list and net diff against Check-runs on the head, read 2026-11-26T16:02Z: 49 in all, 26 success, 23 skipped, none red, none pending. A first read at 15:58Z still had ① Derived judgments
② Semver level
③ Boundary flagsOpen questions of report 7196910014:
Dev flags (
SQL push-down: the diff holds no code, so nothing to check. Author: The security line above reads yes on purpose. The changed sentence states where a permission field vote is cast and that both field merges agree on it, which is permission behaviour by the template's rule. It teaches nothing new: the code it describes is unchanged, and no reading of the note gets wider or narrower. The PR is Tier H whichever way that line reads, because an in-place edit is not an add-only note. No exploitable issue was found; no private findings file was written. ④ Design judgment
"The vote is cast inside the one function that calls Each clause against the code, on both trees. The anchored file is blob
Every clause is true on both trees.
Open question 1, ruled: A. The name-free sentence loses nothing the note needs.
No must-fix, no should-fix.
Implemented-by: VERDICT: PASS |
|
repo:objectstack#7 · os-alice · session_011y7As8wf3DSPRevwNnYLcM
席位意见:ACCEPT,交维护者合并。 席位核对 — ACCEPT · head edbee34 (2026-11-26T16:10Z)
|
Refs #37245 (one item: the symbol anchor at ADR-0066 line 146, the anchor half of the row added in comment 7178404228)
Clause-②: no
Metadata-protocol: none
维护者速读
What changes
One sentence of one dated note in
docs/adr/0066-unified-authorization-model.md: the note of 2026-11-24 under D2 ⑧, line 146. Nothing else in the file moves.Before:
After:
The anchor now names
holdsViewAllFields, the predicate that reads theviewAllFieldsbit. The sentence describes the vote function by its relation to that predicate and no longer by its name.Why
viewAllFields: truebeside them,superuserFieldVoteandsecurity-superuser-field-mask-inertretire (step 3 of #34365, behaviour change) #36055, the last step of the field-axis split) replacessuperuserFieldVotewithviewAllFieldsReadVote. Line 146 is the only symbol anchor indocs/adr/**that names the removed function, socheck:adr-symbol-anchorsis red on that branch with exactly this one finding.mainuntil feat(security)!: View All and Modify All stop opening fields; viewAllFields is the one every-field bit #37371 merges. An anchor to it would be red onmaintoday, so this pull request cannot use it.holdsViewAllFieldsis declared in that file on both trees, with the same body. The liveness ledger already cites it as the evidence for theviewAllFieldskey (packages/spec/liveness/permission.json).mainthe one function that calls the predicate issuperuserFieldVote. On feat(security)!: View All and Modify All stop opening fields; viewAllFields is the one every-field bit #37371 it isviewAllFieldsReadVote. On both,PermissionEvaluator.getFieldPermissionsandbuildEffectiveFieldPermissionscall that function once per field.Read first
docs/adr/0066-unified-authorization-model.md, line 146. It is the only hunk. The risk is in the rewording: the sentence must read true against the code on both trees.packages/core/src/security/effective-object-permissions.ts, not changed here:holdsViewAllFieldsand its single call site. The call site sits insuperuserFieldVoteonmainand inviewAllFieldsReadVoteon feat(security)!: View All and Modify All stop opening fields; viewAllFields is the one every-field bit #37371.Two-minute check
Run
pnpm check:adr-symbol-anchorson this branch. Expect exit 0 and a line that starts✅ check-adr-symbol-anchors: 4237 anchors across 163 records resolve.For the other tree: check out the head of #37371, run
git merge --no-commitwith this branch, then run the same command. Expect the same line. Without the merge, that head exits 1 and prints one finding,[unresolved-symbol] docs/adr/0066-unified-authorization-model.md:146.Tests
Docs only. No package is touched, so no build closure and no package test is owed. No tested behaviour changed, so there is no ablation.
The before and after of the gate on the tree of #37371 is the reverse verification. Three heads of that branch were read, because it moved twice during this work. Each merge was a throwaway in a scratch worktree, never committed and never pushed; the worktrees are removed.
node scripts/check-adr-symbol-anchors.mjsedbee340d4(onmainat58570d8002)bad558d574, as pushedbad558d574with this branch merged inecc008621e, as pushedecc008621ewith this branch merged in71a5990508, as pushed71a5990508with this branch merged inAll three merges were clean, with no conflicted path. The gate's
--self-testexits 0 on this branch and on each merged tree.How each symbol answers the gate's own resolver, per tree
symbolResolutionClassfromscripts/symbol-anchors.mjs, asked with the text ofpackages/core/src/security/effective-object-permissions.tsat each commit:holdsViewAllFieldssuperuserFieldVoteviewAllFieldsReadVote58570d8002(main)edbee340d4(this branch)bad558d574(the split's branch)71a5990508(the split's branch, latest)What the reworded sentence claims, counted on each tree
holdsViewAllFieldsinpackages/core/src/security/effective-object-permissions.ts, comments aside: one on58570d8002(line 1076, insidesuperuserFieldVote) and one onbad558d574(line 1064, insideviewAllFieldsReadVote). The function is not exported, so nothing outside the file calls it.packages/lintkeeps a separate author-time copy under the same name; the anchor names the file, so it does not point there.58570d8002:buildEffectiveFieldPermissions(line 1175) andgetFieldPermissions(packages/plugins/plugin-security/src/permission-evaluator.ts, line 590). Onbad558d574: lines 1160 and 566 of the same two files.bad558d574,ecc008621eand71a5990508, so the second reading stands for all three.Acceptance notes
superuserFieldVoteonce in prose (lines 142 and 144). All of that is true onmaintoday. It becomes dated when feat(security)!: View All and Modify All stop opening fields; viewAllFields is the one every-field bit #37371 merges, and the end-state note is what supersedes it. The gate passes on those two mentions on both trees: it judges anchors, and a name in prose is not one.viewAllFieldsReadVote. That holds only after feat(security)!: View All and Modify All stop opening fields; viewAllFields is the one every-field bit #37371 merges. This pull request has to be green onmainalone and has to leave that branch green once it mergesmain.docs/adr/**alone, which no package ships.skip-changesetis declared with this pull request.docs/adr/**lands by the maintainer's hand. This pull request stays a draft and nobody is asked to review it from here.mainto pick the sentence up, and its anchor gate reads green from that commit on.pnpm check:adr-indexexits 0 at this head.none, which is what that says.mainat58570d8002.mainhas since moved by one commit,54d6726c09. It changes a changeset, a CLI test and two files ofpackages/lint, and nothing underdocs/adr, in the anchored file or in the gate.Verification
Local gates at head
edbee340d4: 21 derived bynode scripts/pm/dispatch-gates.mjs --commands, 21 run, 21 exit 0.--ranreconciles them:21 derived, 21 run, 0 NOT-MEASURED, 0 UNRUN. Every exit code was captured before any pipe.The 21 commands and what they printed
One command,
pnpm --filter @objectstack/lint run check:doc-formula-expressions, first exited 3: prerequisite not met, nothing measured, because@objectstack/formulaand@objectstack/lintwere not built. Afterpnpm exec turbo run build --filter=@objectstack/formula --filter=@objectstack/lint --concurrency=2under the shared verify lock (VERDICT command-exit 0), it exited 0. That second run is the one counted.node scripts/check-adr-links.mjsand its--self-test: exit 0node scripts/check-closing-keyword-parity.mjsand its--self-test: exit 0node scripts/check-comment-mask-corpus.mjs: exit 0node scripts/ci/plan-test-core-shards.mjs --self-test: exit 0pnpm --filter @objectstack/lint run check:doc-formula-expressions: exit 0pnpm check:adr-anchors: exit 0pnpm check:adr-index: exit 0pnpm check:adr-symbol-anchors: exit 0,4237 anchors across 163 records resolve — 1452 symbol (1423 declaration, 29 literal), 2733 file-level, 52 cross-repo, 6 exempt, 96 continuationpnpm check:ci-filter-parity: exit 0pnpm check:closed-ceremony-text: exit 0pnpm check:cross-package-test-inputs: exit 0pnpm check:doc-authoring: exit 0pnpm check:driver-memory-census: exit 0pnpm check:gitlink-declared: exit 0pnpm check:nul-bytes: exit 0pnpm check:pm-governed-merges: exit 0pnpm check:pm-prior-rulings: exit 0pnpm check:refd-timer-probe: exit 0pnpm check:watch-hint-literal: exit 0The 52 cross-repo anchors are reported and not judged, because no sibling checkout is present. That is the gate's ruled behaviour and the same on every tree above.
Every other gate family is CI's to run on this pull request.
node scripts/pm/overlap-check.mjs --branch=HEADatedbee340d4givesVERDICT clean: the branch merges cleanly withorigin/mainat54d6726c09.Generated by Claude Code