Repository navigation
Closed
Labels
domain:serverDomain lane — seat card indexed by label:pm:seatpriority:p1High: required for production / M2security
Description
repo:hotcrm#1 · huangyiirene · session_01J8VVAnPkgK6CWrJa6t7Fk5
Maintainer ruling (Irene, decision card in the hotcrm project, tapped 2026-11-15 11:44 UTC): A, platform. An explicit readable: false field-permission row on a permission set must win over that same set's View All (viewAllRecords) field vote. This amends ADR-0066 D2 ⑧ as amended by ruling of record 6573563853.
What happens today (measured on 18.4.0)
superuserFieldVote(packages/core/src/security/effective-object-permissions.ts) has a set that holdsviewAllRecordson an object votereadable: trueon every field of that object.PermissionEvaluator.getFieldPermissionsandbuildEffectiveFieldPermissionsapply it after the declared-entry votes.- So a set cannot give View All on an object and still hide some of its fields. Its own
fieldsrows are out-voted by its own object row. - Measured by the hotcrm PSA thread:
project_memberholds read with View All oncrm_account, plusreadable: falserows for the account's Order to Cash totals (invoiced_amount,received_amount,receivable_balance). A consultant still reads all three over REST and in the console.
Why it matters
- Ruling 6573563853 fixed a real case: a platform admin was hidden from a field by another set's
false. That case is about other sets and stays as it is. - The gap is the same-set case. Every View All set that also tries to narrow fields silently loses the narrowing, so a declared field mask is not enforced (declared ≠ enforced).
- Mainstream reference: Salesforce and Dynamics keep field-level security independent of record-level View All / organization-wide read.
Asked
- In the field merge, a set's own explicit
readable: false(oreditable: false) row on<object>.<field>is not overridden by that set's own View All / Modify All vote on<object>. - Another set's super-user vote still wins over this set's
false, keeping ruling 6573563853's admin case. Whether Modify All should get the same treatment as View All is part of this card's design; the ruling names View All. - ADR-0066 D2 ⑧ is amended in the same PR.
- Lint, same PR: the rule
security-superuser-field-mask-inertfires today. Underobjectstack lint --strict, hotcrm's three rows give 3 warnings,permission set "project_member": viewAllRecords on objects.crm_account votes on every field of "crm_account", so readable: false on 'crm_account.invoiced_amount' binds none of this set's holders, atpermissions[6].fields[...]. After the fix, the rule must stop flagging a row that its own set's View All no longer out-votes. Today the rows cannot even land, because they turn the consumer's strict lint red. - Tests: a View All set with a
readable: falserow hides the field from its holder, both ingetFieldPermissionsand in/auth/me/permissions. A second set holding Modify All on the object still reveals it.
Consumer
hotcrm#2481 (pm:blocked on this card) adds the three project_member rows once a release carries the fix. Until then, consultants see the totals.
Governing text: ADR-0066 D2 ⑧ (as amended, ruling of record 6573563853); superuserFieldVote docblock.
Metadata
Metadata
Assignees
Labels
domain:serverDomain lane — seat card indexed by label:pm:seatpriority:p1High: required for production / M2security
Activity
objectstack-fleet commentedon Nov 16, 2026
domain:server#5 · zhuangjianguo · session_01QsR2jVPGBoi3MCGoKbW1Hv
Hand-off · #33828 · 2026-11-16T09:05Z
By the maintainer's order to push and hand off, area S1 clocks out.
field-level-security.mdxline.objectstack-fleet commentedon Nov 16, 2026
triage#1 · hotlong · session_01Q4EjjMnyLqJdzuktEmRPXH
Cross-link · 2026-11-16T09:33Z
The end state for View All / Modify All and field security is now ruled on #34365 (ruling 6912661484): a separate record axis and field axis, with a read-only
viewAllFieldsbit, landing in v19.What this means for this card:
viewAllFieldsbit carries the admin channel (end state, v19) #34365's step 3.viewAllFieldsbit carries the admin channel (end state, v19) #34365)", not "kept by design".objectstack-fleet commentedon Nov 16, 2026
repo:objectstack#1 · os-project-manager · session_01FEkQ5nNrLRm8ssuwWcBVcw
Release: claim 6895282693 (session
session_01QsR2jVPGBoi3MCGoKbW1Hv, area S1 ofdomain:server#5, accountzhuangjianguo, with amendments 6895365610, 6895411337 and 6902098081) is withdrawn by takeover, cross-account. Who: the maintainer (Leehom). Words: 「接手 前任。#28677 (comment) 的未完成任务」. Where: the project seat thread ofrepo:objectstack#1(seat post #34366), with the seat's order to this area. The predecessor handed off at 6912083426; the last pushed head isclaude/area-A2-33828@25dcfa863613d10673918f081c89e6d0b09b558d. PR #34082 was approved and queued, then left the merge queue (run 43877147326): two control cases informula-reads-hidden-field-masking.test.ts, added tomainafter this head was measured, still pin the reading this card's ruling changes. The seat removedpm:awaiting-merge.Claim: repo:objectstack#1 area o1-A takeover · p1 · executed by
os-devsubagents of the area o1-A thread · posted at 2026-11-16T14:48ZSession:
session_01FEkQ5nNrLRm8ssuwWcBVcwAccount:
os-project-managerBranch:
claude/area-A2-33828Worktree:
objectstack-area-A2-33828Domain:
domain:serverSeat:
repo:objectstack#1File surface: the files of PR #34082 (claim amendments 6895411337 and 6902098081), plus
packages/plugins/plugin-security/src/formula-reads-hidden-field-masking.test.ts(its two View All controls only, brought under the ruling) after a merge oforigin/main. No new source. On any breach, stop and explain in the report.Container & model:
S,mode:subagent,model: default (a test-only fix round; the contract face gets its CONTRACT_REVIEW_TIER L2 delta separately),effort: highClause-②: yes (narrowing)
Metadata-protocol: semantic
Responsibility:
a permission set's own readable: false row was out-voted by that same set's View All, so a declared field mask was not enforced (objectstack) | hotcrm#2481 | administrators who give a set View All and hide some fields from itThread-read: 6912701885
Premise: holds (the ruling on the card stands; the queue failure is a semantic conflict with tests that landed after this head, not a change of the rule)
Pre-claim lane: repo:objectstack (server face: core and plugin-security, with lint and one governed ADR-0066 note), unchanged from the predecessor's claim.
Pre-claim deps: none blocking.
Prior rulings read: the card's ruling (View All half, A); the Modify All ruling 6909362597; cross-link 6912701885 (#34365); ADR-0066 D2 ⑧ and its notes.
Serial constraints cleared:
merge-treeagainstorigin/mainand every open PR that touches a file of this diff before the push.Resume-from:
claude/area-A2-33828@25dcfa863613d10673918f081c89e6d0b09b558dobjectstack-fleet commentedon Nov 16, 2026
repo:objectstack#1 · os-project-manager · session_01FEkQ5nNrLRm8ssuwWcBVcw
os-dev-report
Read at 2026-11-16T17:37Z. Fix round on PR #34082 after the queue ejection; the revised PR body is with the seat, which writes it.
{ "issue": 33828, "status": "done", "branch": "claude/area-A2-33828", "pr": "https://github.com/objectstack-ai/objectstack/pull/34082", "session": "session_01FEkQ5nNrLRm8ssuwWcBVcw", "premise_still_valid": true, "summary": "Fix round after the merge-queue ejection of run 43877147326. origin/main (898655a9d) merged into claude/area-A2-33828 (no rebase, no force-push); one test-only commit on top, head 880f1686b. In packages/plugins/plugin-security/src/formula-reads-hidden-field-masking.test.ts a boot option gives the fixture's second set View All on the object, and the controls block now reads: (new) 'View All on the set that hides the field does not read it: the field and the computed fields over it stay withheld'; 'a holder of another set's View All reads the hidden field and the formulas over it'; 'a holder of another set's View All is still withheld a computed field over a capability-gated or masked field (the vote lifts readable: false only)'. No source change in core, plugin-security, lint, spec or the ADR; the PR's own source is byte-identical to head 25dcfa863. The sweep for other tests pinning the old reading found none needing an edit.", "tests": "On head 880f1686b, each under scripts/pm/os-verify-lock.sh. Closure build pnpm --workspace-concurrency=2 --filter '@objectstack/dogfood^...' build: VERDICT command-exit 0. One hold (VERDICT command-exit 0): typecheck of core, plugin-security, lint, spec, dogfood exit 0 each; core test 148/148 files, 3410 passed; plugin-security test 274/274 files, 6849 passed, 45 skipped; lint test 214/214 files, 9077 passed; spec test 844/844 files, 27031 passed, 1 todo; dogfood door pin fls-own-field-mask-33828.dogfood.test.ts 1/1 file, 5 passed. Targeted: formula-reads-hidden-field-masking + fls-own-field-mask-33828, 2 files, 92 passed. Ablation (VERDICT command-exit 0): ablation-replace.mjs deleted the vote's own-row check in packages/core/src/security/effective-object-permissions.ts (anchor 1 -> 0, blob 5b14742f1880 -> 0870799b155c); core rebuilt (exit 1: the declaration step refuses the now-unused helper under noUnusedLocals after the JS was emitted); ablation-dist-preflight.mjs @objectstack/core marker --absent exit 0 (absent from all 12 built files); the controls block: 1 failed (the new own-set case, 'open_cases: expected ... to not have property'), 6 passed. Restored: blob 5b14742f1880 == HEAD, git diff HEAD empty, core rebuilt exit 0, preflight marker present in dist/index.js and dist/index.cjs exit 0, tree clean; the block 7 passed. Control on the boot option: second set's View All removed from the two other-set cases (--expect 2): both red, five green; restored to the HEAD blob.", "gates": "dispatch-gates.mjs --commands --repo objectstack-ai/objectstack (tree objectstack-ai/objectstack at 880f1686b, merge base 898655a9d): 122 derived. 119 exit 0 on the first pass; check:skill-examples, check:dual-build-cjs-loads and check:type-check-debt exit 3 (PREREQUISITE NOT MET, nothing measured). After building the eight packages outside the dogfood closure: check:skill-examples exit 0, check:dual-build-cjs-loads exit 0; check:type-check-debt exit 0 in its own hold (VERDICT command-exit 0). --ran with exit codes: '122 derived famil(ies) accounted for — 122 run, 0 NOT-MEASURED (a DERIVED zero — all 122 recorded an exit code and none of them is 3)'. Extra: check-platform-checklist --changed-from origin/main OK (11 anchors, 0 lost); check-nul-bytes OK; eslint --no-inline-config on the edited file exit 0. merge-tree --write-tree before the push: origin/main 898655a9d exit 0, #34252 head 317c4955 exit 0 (the only open PR touching a file of the diff, rule-explanations.ts); after the push: origin/main fa9d69552 exit 0, #34358 and #34355 (semantic-entry directory) exit 0; no path is driver-routed. CI on 880f1686b: 68 check-runs, all completed, 58 success, 10 skipped, 0 failure; Lint & Repo Gates, TypeScript Type Check, Test Core (8/8), Build Core, Governed Surface Queue Guard, Test UI, Type Check UI, Build & E2E UI, Live E2E UI, Dogfood Regression Gate, Check Changeset success; Lint UI skipped. test:repo declared to CI (no repo-project test edited).", "dogfood_battery": "880f1686b · os-verify-lock VERDICT command-exit 0 · Test Files 476 passed, 3 skipped (479) · Tests 4023 passed, 42 skipped (4065) · no failure", "mcp_calls": "0", "api_writes": "1 — POST /repos/objectstack-ai/objectstack/issues/33828/comments (this report, via scripts/pm/post-stamped.mjs). git push of claude/area-A2-33828 is not a REST write.", "open_questions": [], "security_findings": "none", "out_of_scope_findings": [] }objectstack-fleet commentedon Nov 16, 2026
repo:objectstack#1 · os-project-manager · session_01FEkQ5pmEYLVFDcQ1Z1CS8H
Delivery · 2026-11-16T21:41Z
PR #34082 merged at 2026-11-16T21:40:21Z (
3e490335), approved by os-zhuang at head880f1686.This card stays open for the owed follow-up from hand-off 6912083426, read with cross-link 6912701885:
viewAllFieldsbit carries the admin channel (end state, v19) #34365)";field-level-security.mdxline.The ADR path makes it Tier H. Area o1-A builds it; the seat hands it off after L1-b and review#2.
objectstack-fleet commentedon Nov 16, 2026
repo:objectstack#1 · os-project-manager · session_01FEkQ5nNrLRm8ssuwWcBVcw
Claim amendment · #33828 · the owed follow-up after #34082 · posted at 2026-11-16T21:45Z
PR #34082 merged (
3e490335). This claim's remaining work is the follow-up named in hand-off 6912083426 and cross-link 6912701885.Scope: one ADR-0066 sentence replaces "pending a ruling" about Modify All with ruling A, worded "kept until the field-axis split (#34365)". It is joined by the deferred
field-level-security.mdxline. The PR saysFixes #33828, and it is Tier H because of the ADR path.File surface:
docs/adr/0066-*.md(one sentence),content/docs/**/field-level-security.mdx(one line), and a changeset or the repo's skip mechanism. No code, no spec, noskills/**.Branch:
claude/issue-33828-adr0066-modify-all-note(new, fromorigin/main). It replacesclaude/area-A2-33828, which merged with #34082 and takes no further push.Clause-②: no
Metadata-protocol: none
objectstack-fleet commentedon Nov 16, 2026
repo:objectstack#1 · os-project-manager · session_01FEkQ5nNrLRm8ssuwWcBVcw
os-dev-report
Read at 2026-11-16T22:22Z. The owed follow-up after #34082: draft PR #34483 (Tier H).
{ "issue": 33828, "status": "done", "branch": "claude/issue-33828-adr0066-modify-all-note", "pr": "https://github.com/objectstack-ai/objectstack/pull/34483", "session": "session_01FEkQ5nNrLRm8ssuwWcBVcw", "premise_still_valid": true, "summary": "Docs-only follow-up owed after #34082 (3e490335), on head e025d4c6f: 2 files, +7/-2. ADR-0066 D2 note of 2026-11-15: the bold lead 'Modify All is unchanged, pending a ruling:' now reads '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):'. The rest of that sentence and of the note is unchanged. field-level-security.mdx, default-visible paragraph (the line #34082 deferred): the mask's condition gains its own-set half. The set's own View All leaves its readable: false binding, while its own Modify All still reads and edits every field, its own rows included (security-superuser-field-mask-inert warns), until the field-axis split (#34365). Each sentence was checked against origin/main: superuserFieldVote returns {readable,editable} for a Modify All set before any own-row read; the View All path skips on declaresOwnReadMask; the inert-mask lint finding is severity 'warning', and the authoring gate refuses on errors only. Draft PR, Tier H (docs/adr/**), Fixes #33828.", "tests": "No tested behaviour changed (docs only), so no test was owed and no ablation ran. Only the derived gate families below were run.", "gates": "dispatch-gates.mjs --commands --repo objectstack-ai/objectstack derived 50 commands for 2 paths (merge base 3bf9c5c41). Closure for the dist readers: pnpm --workspace-concurrency=2 --filter '@objectstack/lint...' build, exit 0. All 50 ran in one verify-lock hold (VERDICT command-exit 0, 523 s on a shared box): 49 exit 0. spec check:skill-examples exited 3 (PREREQUISITE NOT MET: client-react dist missing). After '@objectstack/client-react...' build it exited 0 in its own hold (VERDICT command-exit 0; '347 prose examples type-check across 3 surface(s)'). --ran reconciliation: '50 derived famil(ies) accounted for — 50 run, 0 NOT-MEASURED (a DERIVED zero ...)', exit 0. CI on e025d4c6f: 52 check-runs completed, 30 success, 22 skipped, 0 failed. Among them: Lint & Repo Gates, TypeScript Type Check, Test Core (all shards), Governed Surface Queue Guard, Test UI, Dogfood Regression Gate, Check Changeset, PR-body guards, Build Docs, Check Documentation Links: success. Build Core, Lint UI, Type Check UI, Build & E2E UI, Live E2E UI: skipped by path filter. Merge-tree: git merge-tree --write-tree exit 0 against origin/main e8cba8fed. Of the 48 open PRs, none touches either file; 20 list no files, each checked as changed_files=0 (mailbox PRs).", "dogfood_battery": "n/a — no ! in the PR title and no (narrowing) arm", "mcp_calls": "0", "api_writes": "3 — git push of the branch (an empty-branch probe, then e025d4c6f; not REST); one fleet-write relay stroke POST /repos/objectstack-ai/objectstack/dispatches (pr_create #34483 with assignees os-project-manager and labels skip-changeset, read back byte-identical, run 43966733143); this os-dev-report comment through post-stamped.mjs on #33828", "open_questions": [ { "question": "The brief asked for the PR body to end with an HTML-comment signed trailer. os-dev.md forbids HTML comments in dev-written GitHub text and wins over the brief. The relay's PR_BODY_TRAILER_SHAPE expects that comment form only on a seat issue_patch rewrite. Should the seat add the trailer form when it next rewrites the body?", "options": [ "A: the seat adds the comment trailer at its own rewrite (scratchpad body is ready)", "B: keep the plain-text signed line already on the last line" ], "recommendation": "A, because the seat's issue_patch path reads that shape, and the dev contract keeps devs from writing it." }, { "question": "The brief says 'no labels' but also 'use the repo's skip mechanism as os-dev.md says'. os-dev.md's mechanism is skip-changeset in pr_create's labels. I read 'no labels' as no separate label writes and sent skip-changeset on the create. Was that the intent?", "options": [ "A: yes, the label rides the create (current state)", "B: no, the seat removes it and Check Changeset goes red (not a required context)" ], "recommendation": "A, because the diff releases nothing (content/docs and docs/adr ship in no package's files[]) and route 2 of Check Changeset names the label." } ], "security_findings": "none", "out_of_scope_findings": [] }objectstack-fleet commentedon Nov 17, 2026
repo:objectstack#2 · os-steve · session_01ADHkmRPxhTmqbUbMrqygh4
Release: claim 6919765887 (the takeover claim of seat
repo:objectstack#1, sessionsession_01FEkQ5nNrLRm8ssuwWcBVcw, area o1-A, accountos-project-manager) and its amendment 6930338563 · 2026-11-17T02:48ZProvenance: whose order — seat
repo:objectstack#1(os-project-manager) is out of tokens and stops, by the maintainer's word of 2026-11-17T02:41Z 「1号座位 pm leehom 没有token了,你看看他还有哪些 issue 和 pr 你全部接手」; words — "o2-I 改作「席 1 遗留 · 服务端」区 … 每张卡由 o2-I 写一笔接管" (seatrepo:objectstack#2's order of 2026-11-17T02:45Z); where — this account's Claude Code project channel (the maintainer's words, relayed by the coordinator to the seat), and the seat's takeover order to area o2-I. Seat 1's own L1 and L2 review seats (same account) stopped with it, so every delta from here goes to L1-c and this account's L2 review seat.Claim: takeover · #33828 · area o2-I (seat 1 legacy · server) · 2026-11-17T02:48Z
Session:
session_01ADHkmRPxhTmqbUbMrqygh4(area o2-I holds the claim); the landing after aGOVERNED_APPROVERSapproval is done by the seatrepo:objectstack#2Account:
os-steveBranch:
claude/issue-33828-adr0066-modify-all-note(PR #34483), continued as it is, no new PRWorktree: none here (no code is owed)
Domain:
domain:serverSeat:
repo:objectstack#2File surface: unchanged from 6919765887 / 6930338563 and PR #34483 as it stands
Clause-②: no
Metadata-protocol: none
Pre-claim lane:
domain:server; the seatrepo:objectstack#2is a full-repo seat.Pre-claim deps: no open
Blocked-by:.Prior rulings read:
check-prior-rulings.mjs --card 33828→ card thread 0 rulings of 14 comments; governing text inline (ADR-0066 D2 ⑧ amendment).Lease:
lease:o2-I(replaceslease:o1-A).Hand-over record:
claude/issue-33828-adr0066-modify-all-note@e025d4c6f6058f2c37e3bd982b2d6534f68a4685(PR #34483, ready,pm:awaiting-merge, review requested from hotlong and os-zhuang; hand-over state 6933545656). The branch tip matches the PR head at this reading.objectstack-fleet commentedon Nov 17, 2026
repo:objectstack#2 · os-steve · session_01ADHkmQ2SN4K183oqAvUajA
Closing hygiene, written at 2026-11-17T03:14Z: PR #34483 merged (
8a60f509c6) and closed this card through Fixes.pm:dispatched,lease:o2-Iand the assignee were still on it. This stroke removes all three, because a closed card carries no pm state.