Repository navigation
Description
repo:objectstack#7 · os-tesla · session_01L9qibzFAE8YRsK8YCDAeLL
Filing gate: ④ sub-card of the ruled decision #34365 (ruling 6912661484, verbatim 「同意,立决策卡」; the ruling says the implementation cards are cut from it after PR #34082 merges — merged 2026-11-16T21:40Z) · Source: topic #34365
Parent: #34365 (step 2, "next minor, additive only")
Grade: left to triage. Suggested p2: it is the first step of the p2 security card #34365 and blocks the rest of it. Area: data. Type suggestion: Feature (a new authorable key).
Dedupe: repo:objectstack-ai/objectstack is:issue viewAllFields → 3 hits: #34365 (the parent), #33828 (closed, the View All half that PR #34082 fixed), #6015 (triage seat post). No card covers this step.
Business reason
Today a permission set's View All / Modify All on an object also votes on every field of it, so one set's View All re-opens a field another set hides (objectstack-ai/hotcrm#2481 was this case). The maintainer ruled the end state: View All / Modify All only widen records, and a separate read-only viewAllFields bit carries "this role sees every field". This step adds that bit so apps and the built-in admin sets can say it explicitly before the v19 switch takes the field vote away from View All / Modify All. Without it, the v19 conversion has nothing to convert to, and admins would lose field visibility at the switch.
What to build
- Spec key.
viewAllFields?: booleanonObjectPermissionSchema(packages/spec/src/security/permission.zod.ts), with a describe that says: read vote on every field of the object, including fields added later; no edit vote (ruled: read-only); a set's own explicit field row on the same object beats it (ownreadable: falserow ⇒ that set casts no read vote on that field — same rule PR 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 landed for View All). Allowed on the wildcard'*'entry. Liveness-ledger row and generated baselines as the spec gates require. - Both field merges honour it, through the one shared vote in
packages/core/src/security/effective-object-permissions.ts(superuserFieldVotetoday, or a sibling it calls):PermissionEvaluator.getFieldPermissions(packages/plugins/plugin-security/src/permission-evaluator.ts) andbuildEffectiveFieldPermissionsmust give the same answer for the same sets. - Built-in admin sets carry it on their wildcard entry:
admin_full_accessandorganization_admin(packages/plugins/plugin-security/src/objects/default-permission-sets.ts), plus the no-wall admin-set derivation in the same file (around the wildcardviewAllRecords/modifyAllRecordssplit near line 1768) andauto-org-admin-grant.tsif it builds a wildcard entry. - Every reader that enumerates the super-user bits learns the new one, or it becomes an over-grant or a false refusal (list from the ruling, "at least"):
packages/plugins/plugin-security/src/agent-ceiling-clamp.ts(the clamped-key list, line ~49);packages/plugins/plugin-security/src/delegated-admin-gate.ts(the wildcard-bit loop, line ~754, and the doc at ~720);packages/lint/src/validate-rollup-source-visibility.ts(line ~222);packages/spec/src/security/high-privilege.ts(line ~166) andpackages/lint/src/build-access-matrix.ts;- the access explanation's object-bit echo, if it lists the bits.
The dev grepsviewAllRecordsacrosspackages/and lists, in the PR body, each site it judged a super-user-bit enumerator and each it judged record-scope only.
- ADR-0066 D2 ⑧ note for this step (governed text, Tier H): the bit exists, it duplicates today's votes, and the v19 switch is the end state (Decision: separate the record axis from the field axis — View All / Modify All stop voting on fields, a read-only
viewAllFieldsbit carries the admin channel (end state, v19) #34365 step 3).
Constraints
- No behaviour change. Every set that exists today answers exactly as before: the admin sets already read every field through View All / Modify All, so the new bit only duplicates their vote. A test pins this: for the built-in admin sets and for a View All set with and without its own
readable: falserow,getFieldPermissionsandbuildEffectiveFieldPermissionsreturn the same maps before and after. - No snapshot churn.
access-matrix.jsonof an app that does not author the bit stays byte-identical (emit the column only when true, or whatever shape keeps existing snapshots unchanged). - Read-only by ruling:
viewAllFieldsnever casts an edit vote. Edits come from the default (a field no set names) or expliciteditable: truerows. - Muting / deny (ADR-0066 ⑦) is not built here.
Declarations the PR owes
Clause-②: yes (widening: a new authorable key). Metadata-protocol: added. Skills-docs: follow-up #N, where #N is the skills / authoring sub-card of #34365 cut beside this one. Governed surface (docs/adr/**) ⇒ Tier H; contract review owed (spec + security surface).
Out of scope (own sub-cards of #34365)
os explainnaming which channel opened a field.- The lint warning "this set's View All / Modify All re-opens a field another set hides".
- Skills / authoring-rules teaching.
- The v19 switch (View All / Modify All stop voting on fields, ADR-0087 conversion) — a behaviour change, built only on the maintainer's go-ahead.
Acceptance
- The key parses, is in the liveness ledger as live, and both merges honour it with the own-row rule.
- Built-in admin sets carry it; every enumerator listed above reads it; the no-behaviour-change pin passes.
- Gates green; L1 + L2 (contract) PASS on the final head.
Activity
viewAllFieldsbit carries the admin channel (end state, v19) #34365objectstack-fleet commentedon Nov 21, 2026
triage#1 · hotlong · session_01Q4EjjMnyLqJdzuktEmRPXH
Triage: lands in
domain:spec(spec key, field merges, built-in admin sets, super-user-bit readers) ·pm:queue; rationale: area:data · Feature · step 2 of the ruled #34365: add the read-onlyviewAllFieldsobject-permission bit, duplicating today's votes, so no behaviour changes; it blocks #36051, #36052, #36053 and #36055 → p2 (blocker rule: it holds the p2 steps of p2 #34365) · size M.objectstack-fleet commentedon Nov 21, 2026
repo:objectstack#7 · os-tesla · session_01L9qibzFAE8YRsK8YCDAeLL
Claim: PM loop round 1 (card thread c-34365)
Session:
session_01L9qibzFAE8YRsK8YCDAeLLThread session:
session_01L9qibzFAE8YRsK8YCDAeLLAccount:
os-teslaBranch:
claude/project-thread-wkcx9jWorktree:
objectstack-issue-36050Domain:
domain:specSeat:
repo:objectstack#7Area: c-34365
File surface:
packages/spec/src/security,packages/core/src/security,packages/plugins/plugin-security/src,packages/lint/src, their tests, generated spec baselines and the changeset (stop on breach; explain in the report).docs/adr/**is NOT in it: an implementation card's file surface never carriesdocs/adr/**; the ADR-0066 D2 ⑧ step-2 note is acarrier:note at ACCEPT, appended to the open ADR revisions weekly card after merge.Container & model:
L,mode:thread,model: TIER_DEFAULT (dispatch-gates --tier on the surface above: "Model tier — no path-derived mandate"; clause ② widening builds at the default tier, L2 at CONTRACT_REVIEW_TIER),effort: high (size L)Clause-②: yes
Metadata-protocol: added
Responsibility: n/a — not a defect card
Thread-read: 7061967849
Premise: holds
Serial constraints cleared: none — 45 open PRs on objectstack-ai/objectstack read, none touches the file surface above; d7-C's #35917 / #35934 have no open PR; no Blocked-by on this card
Pre-claim lane: repo:objectstack seat 7, area:data; paths are
packages/spec/src/security/**(spec),packages/core/src/security/**,packages/plugins/plugin-security/src/**,packages/lint/src/**(server/spec) — the spec paths stay in this lane under area-lease 留道.Pre-claim deps: none named; parent #34365 step 1 done (PR #34082 merged 3e49033, PR #34483 merged).
Prior rulings read: viewallfields,superuserfieldvote,viewallrecords → 2 hits; ADR-0095 D3, ADR-0105 D4; thread: ruling 6912661484 on #34365; repo: objectstack-ai/objectstack. No conflict:
viewAllFieldsis a field-axis read vote only — it must not feed PLATFORM_ADMIN posture derivation (ADR-0095 D3) nor the record bypass that ADR-0105 D4 contains; the dispatch says so.Premise reading (origin/main 8145424):
superuserFieldVote(packages/core/src/security/effective-object-permissions.ts:1056) is the one field vote both merges apply (buildEffectiveFieldPermissions,PermissionEvaluator.getFieldPermissions); the super-user-bit enumerators the ruling names exist atagent-ceiling-clamp.ts:49,delegated-admin-gate.ts:754,validate-rollup-source-visibility.ts:222,high-privilege.ts:166,build-access-matrix.ts:66; the admin wildcard bits atdefault-permission-sets.ts:400and the no-wall split at:1768. NoviewAllFieldsexists on main.Corrected 11:4xZ by the claimant (same session): the first text named
docs/adr/0066-*in the file surface and the tier/effort that path mandates; the skill keepsdocs/adr/**out of an implementation card's surface, so the surface, tier and effort above are the corrected reading. Contract review (L2) is owed at CONTRACT_REVIEW_TIER for the spec widening.Surface extended 2026-11-21T12:48Z by the claimant:
packages/spec/src/identity/eval-user.zod.ts(theADMIN_FULL_ACCESS_CAPABILITIESwildcard thatadmin_full_accessspreads) andpackages/spec/src/identity/platform-admin-capabilities.test.ts. The card namesadmin_full_access; the dev stopped at the surface breach on PR #36085 (report 7062809571). No open PR touches either file (open-PR scan at extension time).objectstack-fleet commentedon Nov 21, 2026
repo:objectstack#7 · os-tesla · session_01L9qibzFAE8YRsK8YCDAeLL
os-dev-report
{ "issue": 36050, "status": "blocked", "branch": "claude/project-thread-wkcx9j", "pr": "https://github.com/objectstack-ai/objectstack/pull/36085", "pr_number": 36085, "head_sha": "5efa60194b5521768bea4d99fd1c80175a582f5b", "session": "session_01L9qibzFAE8YRsK8YCDAeLL", "premise_still_valid": true, "summary": "Added the read-only viewAllFields bit: optional spec key on ObjectPermissionSchema (liveness row live, authorable surface, reference docs and liveness counts regenerated); superuserFieldVote in core now casts a read vote (never an edit vote) for a set that carries the bit on the object or its wildcard, skipped where that set's own row says readable: false, so both merges agree; holdsSuperuserBypass, the private-posture wildcard rule and posture derivation are NOT widened. organization_admin carries it on its wildcard and deriveWallLessOrgAdmin drops it with the two record bits; the agent ceiling clears it, the organization boundary condition (a) refuses a wildcard carrying it, describeHighPrivilegeBits names it, and the access matrix gains an optional column written only when true (app-crm snapshot byte-identical, with a positive control). BLOCKED on one item only the seat can clear: admin_full_access spreads ADMIN_FULL_ACCESS_CAPABILITIES from packages/spec/src/identity/eval-user.zod.ts, outside the declared file surface, so it does not carry the bit yet; the fix is one line (viewAllFields: true on its '*' entry) plus its pin in packages/spec/src/identity/platform-admin-capabilities.test.ts. Everything else is done and does not wait on it; the no-behaviour-change pin already covers admin_full_access with the bit added.", "tests": "HEAD 5efa6019. pnpm --filter @objectstack/core test: Test Files 155 passed, Tests 3681 passed; @objectstack/lint test: 222 files, 9362 passed; @objectstack/plugin-security test: 286 files, 7152 passed | 45 skipped (lock VERDICT command-exit 0); @objectstack/spec test: 867 passed | 1 skipped files, 27856 passed (VERDICT command-exit 0); typecheck core/lint/plugin-security/spec each exit 0 (tests run before the changeset commit, which touches no source). New pins: fls-own-field-mask-33828.test.ts 62 passed (bit alone read-only, own row beats own bit, explicit entry is whole answer, both merges agree, no row bypass, no-behaviour-change pin for organization_admin and admin_full_access with/without the bit across 5 companion sets x 2 merges + sys_user, control: the bit WOULD change the no-bypass variant). Access-matrix measurement: examples/app-crm rebuilt with the branch buildAccessMatrix, byte-identical true; control with the bit authored on crm_sales_user/crm_account byte-identical false; app-showcase NOT MEASURED (a connector it imports has no dist). No ablation run: the new behaviour is pinned both ways by the with/without pairs and the no-bypass control.", "gates": "Local: node scripts/pm/dispatch-gates.mjs --commands derived 121 families on this tree (repo objectstack-ai/objectstack); run record reconciled with --ran: 'Run reconciliation: 121 derived, 118 run, 3 NOT-MEASURED, 0 UNRUN' exit 0, every run line carrying its exit, all 118 exit 0 (spec check:api-surface/dual-source-exports/entry-nameability/exported-any/generated/skill-examples first refused exit 3 on a stale spec dist, re-run after pnpm --filter @objectstack/spec build: all exit 0). NOT MEASURED: check-plugin-teardown-shape --self-test (shallow clone, pinned fixture commit unreachable), check:dual-build-cjs-loads (needs a full workspace build), check:i18n (needs packages/cli/dist); CI runs all three. overlap-check: 'origin/main: merges cleanly', VERDICT clean exit 0 (0 PR heads). check-platform-checklist --changed-from not owed (no export renamed or removed). CI check-runs on 5efa6019 at report time: in_progress (Check Changeset, Governed Surface Queue Guard, Lint family, Type Check family, Spec property liveness, PR-body guards); skipped: 18.x upgrade harness, Packed-tarball smoke, Queue verdict, Borrowed queue verdict, Schedule gate.", "dogfood_battery": "n/a: no ! in the PR title and no (narrowing) arm", "mcp_calls": "0", "api_writes": "3: git push (not REST); relay pr_create = POST /repos/objectstack-ai/objectstack/dispatches (run 44905540421: POST pulls + POST issues/36085/assignees); this report = post-stamped comment on issue 36050", "files_changed": 25, "line_budget": "+468 -21 across 25 files (generated docs, surface and counts included)", "deviations": [ "Commit trailers: the dispatch asked for 'Co-Authored-By: Claude Opus 5.5'; the pre-push hook check:commit-card-trailers refused it (model-free pair required by AGENTS.md and os-dev.md), so commits carry 'Co-authored-by: Claude' plus the Claude-Session trailer.", "File-surface stop: admin_full_access not given the bit (see summary).", "test:repo not run locally (diff touches no repo-project test); CI Test Core runs it." ], "open_questions": [ { "question": "Extend the file surface to packages/spec/src/identity/eval-user.zod.ts and its test so admin_full_access carries viewAllFields?", "options": [ "A extend the surface; a patch round adds one line plus its pin on this PR", "B split admin_full_access into its own card" ], "recommendation": "A, because the card names admin_full_access, the edit is one line in the one platform-admin declaration, and the no-behaviour-change pin already covers it" }, { "question": "Should viewAllFields on a '*' entry vote on fields of private-posture objects (today it does, same lookup as holdsSuperuserBypass), or follow resolveObjectPermission's private-posture rule?", "options": [ "A keep: field vote only, grants no object access", "B follow the private posture (needs the posture in the field vote)" ], "recommendation": "A, for the L2 contract review to confirm; it changes nothing for any existing set" } ], "security_findings": "none", "out_of_scope_findings": [ "carrier: none · noted, not filed: security-wildcard-vama does not flag a package-authored '*' carrying only viewAllFields (a new lint refusal; acceptance note on the PR)", "carrier: none · noted, not filed: /auth/me/permissions echoes viewAllFields: true on an organization_admin holder's objects['*'] entry (wire-additive; acceptance note)" ] }objectstack-fleet commentedon Nov 21, 2026
repo:objectstack#7 · os-tesla · session_01L9qibzFAE8YRsK8YCDAeLL
os-dev-report
{ "issue": 36050, "status": "done", "branch": "claude/project-thread-wkcx9j", "pr": "https://github.com/objectstack-ai/objectstack/pull/36085", "pr_number": 36085, "head_sha": "68d5bb976287da873b5e85edd3f82ba1155bc0fb", "session": "session_01L9qibzFAE8YRsK8YCDAeLL", "premise_still_valid": true, "summary": "Patch round (Q1 = A, Q2 = A). Using the extended file surface, ADMIN_FULL_ACCESS_CAPABILITIES in packages/spec/src/identity/eval-user.zod.ts now carries viewAllFields: true on its '*' entry, so admin_full_access has the bit; the PLATFORM_ADMIN posture still derives from the two record bits only. platform-admin-capabilities.test.ts pins the bit. The no-behaviour-change pin now compares the real shipped admin_full_access and organization_admin, each with and without the bit, and passes. The pre-move literal pin in default-permission-sets.test.ts records the bit as an on-purpose addition: that pin was the one Test Core (8/10) failure on head 8d75f2db. The PR body is updated: admin_full_access is listed as done, and a 'For the contract review' line states Q2 = A. The CI reds on 5efa6019 were runs cancelled when a newer commit was pushed, not defects. All required checks are green on 68d5bb97.", "ci_reds": [ "Lint & Repo Gates job 136851292230 (run 44905563011, head 5efa6019): '##[error]lint lane `lint-eslint` concluded `cancelled` -- expected `success`' (6 lanes cancelled at 12:50:30-44Z). Cause: GitHub cancelled the superseded run when 8d75f2db was pushed at 12:50:26Z (run conclusion cancelled; the new runs were created 12:50:26Z). Not this diff, nothing to fix. On 68d5bb97, Lint & Repo Gates: success.", "TypeScript Type Check job 136851300888 (same run): '##[error]type-check lane `typecheck-workspace` concluded `cancelled`', plus typecheck-consumers and typecheck-debt. Same supersession. On 68d5bb97: success.", "Test UI job 136851293149 (run 44905563031, head 5efa6019): 'the Test UI shards concluded cancelled, not success'. Same supersession. On 68d5bb97, Test UI and shards 1-16: success.", "Test Core (8/10) job 136851950713 (run 44905881086, head 8d75f2db): 'FAIL src/objects/default-permission-sets.test.ts > admin_full_access imports the kernel capability declaration unchanged (#11965) > parsed declaration deep-equals the pre-#11965 inline literal'. Caused by this diff: the literal lists every on-purpose capability addition and lacked viewAllFields. Reproduced locally (plugin-security: 1 failed | 7151 passed). Fixed in 68d5bb97 by adding the bit to the literal with a docblock note. Local re-run: that file plus the FLS harness, 2 files and 94 tests passed; full plugin-security, 286 files and 7152 passed | 45 skipped. On 68d5bb97, Test Core (8/10): success." ], "tests": "Head 68d5bb97. spec test: 868 files passed, 27859 tests passed | 1 todo (run on 8d75f2db; spec src has not changed since). core test: 155 files, 3681 passed. plugin-hono-server: 43 files, 581 passed. plugin-auth: 291 files, 6177 passed | 10 skipped. plugin-security: 286 files, 7152 passed | 45 skipped. spec check:generated: exit 0 (no generated artifact moved).", "gates": "Local, head 68d5bb97: dispatch-gates --commands derived 121 families. --ran exit 0: 'Run reconciliation: 121 derived, 118 run, 3 NOT-MEASURED, 0 UNRUN', all 118 run families exit 0. check:skill-examples first refused with exit 3 (client-react not built); after building the client-react closure it exited 0. NOT MEASURED: check-plugin-teardown-shape --self-test (shallow clone), check:dual-build-cjs-loads (needs a full build), check:i18n (needs packages/cli/dist). overlap-check against origin/main 493ad095d4: 'merges cleanly', VERDICT clean, exit 0. CI on 68d5bb97: 60 success and 12 skipped; Lint & Repo Gates, TypeScript Type Check, Test Core, Build Core, Test UI, Governed Surface Queue Guard and Dogfood Regression Gate all success; Check Changeset and PR-body guards in_progress (re-run by the body edit).", "dogfood_battery": "n/a: no ! in the PR title and no (narrowing) arm", "mcp_calls": "0", "api_writes": "Relay writes this round: issue_patch on PR 36085 (body, 9721 bytes, read back identical, run 44910332749); this report comment. Plus git push x2 (not REST).", "files_changed": 28, "line_budget": "+488 -22 across 28 files", "deviations": [ "Commit trailers stay model-free, as in round 1 (the pre-push hook requires it). No hook bypass.", "test:repo not run locally; CI Test Core green." ], "open_questions": [], "security_findings": "none", "out_of_scope_findings": [ "carrier: none · noted, not filed: security-wildcard-vama does not flag a package-authored '*' carrying only viewAllFields (Acceptance notes)", "carrier: none · noted, not filed: /auth/me/permissions echoes viewAllFields: true on the objects['*'] entry of an admin_full_access or organization_admin holder; additive wire change (Acceptance notes)" ] }objectstack-fleet commentedon Nov 21, 2026
repo:objectstack#7 · os-tesla · session_01L9qibzFAE8YRsK8YCDAeLL
2026-11-21T14:11Z ADR carrier note for the landing seat (claim 7062072947 routed the ADR-0066 D2 ⑧ step-2 note out of this card's surface; L2 record 7063858938 ③ asks that it be on record before landing). After PR #36085 merges, append to the open "ADR revisions, week of …" card one row naming:
viewAllFieldsbit exists (step 2 of 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); it duplicates today's admin votes; the v19 end state is security (v19 major): View All / Modify All stop voting on fields — ADR-0087 conversion addsviewAllFields: truebeside them,superuserFieldVoteandsecurity-superuser-field-mask-inertretire (step 3 of #34365, behaviour change) #36055.viewAllFields(describeHighPrivilegeBits).viewAllFieldson'*'.viewAllFields.'*'viewAllFieldsvotes on the fields of private-posture objects; it grants no object access. Changing that to follow the private posture would be a maintainer ruling, free until the first release carrying the key.Accepted deviation: the changeset names
organization_adminand notadmin_full_accessas a holder of the bit (L1 N1 / L2 N1); nothing that exists today behaves differently.objectstack-fleet commentedon Nov 21, 2026
repo:objectstack#7 · os-tesla · session_01L9qibzFAE8YRsK8YCDAeLL
2026-11-21T14:45Z Closed out. PR #36085 merged as 78437e2 at 2026-11-21T14:43Z through the merge queue (landing comment 7063932270; L1 7063599142, L2 7063858938). Delivered: the read-only
viewAllFieldsobject-permission bit — spec key, one shared field vote in both merges,admin_full_accessandorganization_admincarry it on'*', and the agent ceiling, organization boundary, audience anchors and access matrix read it; no behaviour change for any set that exists today.pm:dispatchedremoved. The ADR row is on this week's ADR revisions card #36086. What remains of #34365 is #36051, #36052 (now with thesecurity-wildcard-vamaarm, owed before the key ships in a release), #36053 and #36055, queued for a later seat.feat(security): add the read-only viewAllFields object-permission bit (…