You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
console permission matrix: turning Read off leaves rollupSourceUnreadableReason behind (refused shape) and the bulk shortcut drops it silently #34786
bugSomething isn't workingdomain:uiDomain lane — seat card indexed by label:pm:seatfindingRecorded observation — held, not dispatchable until the findings triage round grades itpriority:p1High: required for production / M2
Filing gate ②: should-fix S2 of the contract review of PR #34775 (#34664), comment 6945332987, left out of that PR's scope. Dedupe: rollupSourceUnreadableReason editor; no open card.
PR #34775 adds rollupSourceUnreadableReason to a permission-set field entry; the schema refuses a reason that sits beside a readable that is not true.
The console permission matrix editor (PermissionMatrixEditor, updateFieldPerm) turns Read off by deleting only when. On an entry that carries rollupSourceUnreadableReason, the result is readable: false with a reason beside it: a shape the schema refuses on save. The editor offers no way to clear the reason.
The bulk shortcut withFieldBits in the permission-slice helper rewrites the entry and silently drops the reason.
What is wanted
Turning Read off in the editor removes the reason in the same edit (or the editor shows and lets the author clear it), and the bulk shortcut keeps the reason when readable stays true and drops it only when readable goes off. Pin both with tests against the spec schema.
Named effect: an admin who edits a permission set in the console matrix silently drops the declared rollupSourceUnreadableReason. The meant pair then warns again under strict lint, or a reviewer loses the recorded reason.
Blocker #34664 closed today at 12:45Z. Back to the queue at its grade (p1). The rollupSourceUnreadableReason key is now on main; the console matrix must stop dropping it before a release.
Claim: PM loop round 1 (area o3-C, epic #34571)
Session: session_01WGufziunkXbDT7wUWqfmWz
Account: os-support-ai
Branch: claude/issue-34786-matrix-rollup-reason
Worktree: objectstack-issue-34786
Domain: domain:ui
Seat: repo:objectstack#3
File surface: ui/packages/app-shell/src/views/metadata-admin/PermissionMatrixEditor.tsx (updateFieldPerm only), ui/packages/app-shell/src/views/metadata-admin/permission-slice.ts (FieldPerm, withFieldBits), their tests under ui/packages/app-shell/src/views/metadata-admin/, root .changeset/
Container & model: M, mode:subagent (area o3-C os-dev), model: TIER_DEFAULT (dispatch-gates --tier on the surface: "no path-derived mandate"), effort: medium (seat 16:27Z trial: small console card, one surface, no spec change)
Clause-②: no
Metadata-protocol: none
Responsibility: @object-ui/app-shell in objectstack (console permission matrix: Read off leaves rollupSourceUnreadableReason beside readable: false, the shape the spec refuses; the field bulk shortcut drops the reason) | none | every admin who edits a permission set carrying a roll-up acknowledgement
Thread-read: 6948605386
Premise: holds, measured on origin/main 2fcc9cf. packages/spec/src/security/permission.zod.ts:1186 refuses rollupSourceUnreadableReason beside readable: false (FIELD_PERMISSION_ROLLUP_REASON_ON_HIDDEN). PermissionMatrixEditor.tsx:1484updateFieldPerm on Read off sets editable: false and deletes only when, so a reason stays beside readable: false. permission-slice.ts:263withFieldBits rebuilds { readable, editable } and keeps only when, so the bulk shortcut (its one caller, applyFieldBulk :298, always passes readable: true) drops the reason. FieldPerm (permission-slice.ts:180) does not declare the key. The dev re-measures before code.
Serial constraints cleared: open PR #34914 (o3-C's own #34795) edits PermissionMatrixEditor.tsx for wording; overlap-check against it and current main before every push.
Pre-claim lane: domain:ui — every path is under ui/**.
Pre-claim deps: Blocked-by #34664 on the card; #34664 closed 12:45Z (PR #34775 merged); triage unlock 6948605386 re-queued it at p1.
Prior rulings read: card-named only (contract review of PR #34775, comment 6945332987, S2; objectstack#25866 when cascade pattern the fix follows); thread: none; repo: objectstack-ai/objectstack
{
"issue": 34786,
"status": "done",
"branch": "claude/issue-34786-matrix-rollup-reason",
"pr": "https://github.com/objectstack-ai/objectstack/pull/34954",
"session": "session_01WGufziunkXbDT7wUWqfmWz",
"premise_still_valid": true,
"summary": "Premise re-measured on origin/main b8408d8226 and it holds: permission.zod.ts:1186 refuses the reason beside readable:false, updateFieldPerm Read off deleted only when, withFieldBits kept only when, and FieldPerm lacked the key. Fix, inside the claimed surface only: FieldPerm declares optional rollupSourceUnreadableReason; updateFieldPerm Read off deletes it beside when (the objectstack#25866 cascade); withFieldBits keeps it while readable stays true and drops it only when readable goes false, so applyFieldBulk (always readable true) keeps it. Both behaviours are pinned with tests that parse the resulting entries with the real FieldPermissionSchema from @objectstack/spec/security, and all three ablations go red. Dev-effort: medium. Rounds: 1.",
"tests": "Head 5d561afbe6. Closure built under the lock with pnpm --workspace-concurrency=2 --filter '@object-ui/app-shell^...' build (VERDICT command-exit 0). The lock then ran vitest run --maxWorkers=2 on permission-slice.fieldRule-26597.test.ts and PermissionMatrixEditor.fieldWhen-25866.test.tsx: Test Files 2 passed (2), Tests 27 passed (27), VERDICT command-exit 0. Ablations went through scripts/ablation-replace.mjs with a trap restore. No dist rebuild was needed, because the subjects are relative imports inside app-shell src, so the mutation runs from src. (A) Removing the delete of rollupSourceUnreadableReason in updateFieldPerm: anchor 1 to 0, blob 27768b90fc7b to 99234279c688; result 'Read off removes the reason...' failed, 1 failed / 1 passed; restored to blob 27768b90fc7b, which equals HEAD. (B) Removing the readable guard in withFieldBits: blob 5206a2968c7c to f2f2d86af3d5; result 'drops the reason when the entry goes readable:false' failed, 1 failed / 18 passed; restored to 5206a2968c7c, which equals HEAD. (C) Disabling the keep branch (the pre-fix behaviour): 3 failed (slice keep, bulk Read-only all, editor Write all); restored to 5206a2968c7c, which equals HEAD. The final git diff HEAD was empty.",
"gates": "Local, at head 5d561afbe6. pnpm --filter @object-ui/app-shell run type-check (both tsc programs) under the lock: VERDICT command-exit 0. node scripts/pm/dispatch-gates.mjs --repo objectstack-ai/objectstack --commands derived 38 commands, and all 38 ran with exits captured before any pipe. 36 exited 0. Two are NOT MEASURED. First, pnpm --dir ui exec vitest run scripts/ exited 1 with 22 files failing on 'Cannot find package @objectstack/spec/ui' and '@objectstack/spec/data': it started before the spec dist existed, so the failure is environmental and never reached the tests. Second, pnpm check:type-check-debt exited 3, PREREQUISITE NOT MET, because its closure build got no lock turn. Two re-runs of both returned lock exit 99: holder pid 3680, another agent's app-shell vitest run, held the lock for more than 29 minutes. Declared narrowing: for the ui scripts family I ran the one gate that reads FieldPerm directly, node ui/scripts/check-designer-field-key-parity.mjs, which exited 0 with 'designer-field-key-parity: OK'. dispatch-gates --ran: 38 derived, 38 run, 0 UNRUN. Its 0 NOT-MEASURED count is only the runner's claim; the two above are NOT MEASURED. overlap-check against origin/main c81f498b5f and PR #34914: VERDICT clean exit 0. PR check-runs when this report was written: Lint & Repo Gates success, Test Core success, Governed Surface Queue Guard success, Check Changeset success, Build & E2E UI success, Dogfood Regression Gate success, Type Check source gates success, PR-body guards success. Lint UI, Type Check UI, Test UI 1-16, Live E2E UI, Type Check workspace, Type Check consumer gates and Type Check debt ledger were in_progress.",
"dogfood_battery": "n/a — no ! in the PR title and no (narrowing) arm",
"mcp_calls": "0",
"api_writes": "2 — POST /repos/objectstack-ai/objectstack/dispatches carrying pr_create (the relay executed POST /pulls #34954 as a draft plus POST /issues/34954/assignees os-support-ai, read back identical); the os-dev-report comment on #34786 through post-stamped.mjs. git push (2, branch probe and fix commit) is not a REST write.",
"open_questions": [],
"security_findings": "none",
"out_of_scope_findings": ["carrier: none · noted in PR Acceptance notes, not filed: withFieldBits(cur, false, ...) still keeps when, the refused when-beside-readable:false shape, but no caller passes readable false (applyFieldBulk passes true), so it is dormant", "carrier: none · the lock holder pid 3680 (an app-shell metadata-admin vitest run, another agent's) held the shared verify lock for more than 29 minutes during this run; reported to the seat, not filed"]
}
Delivered by PR #34954 (merged, 119d5db): the console permission matrix no longer leaves rollupSourceUnreadableReason beside readable: false. Turning Read off removes the reason in the same edit (beside when, the #25866 cascade), and the field bulk shortcut keeps the reason while Read stays on instead of dropping it silently. Both behaviours are pinned by parsing the resulting entries with the real FieldPermissionSchema. pm:dispatched comes off with the close.
Open at the merge: nothing (L1 6958007304 had no findings). Dormant note kept in the PR: withFieldBits(cur, false, …) would still keep when; no caller passes false. The PR needed one re-queue after two queue builds failed on a runner checkout timeout (comment 6960648391).
bugSomething isn't workingdomain:uiDomain lane — seat card indexed by label:pm:seatfindingRecorded observation — held, not dispatchable until the findings triage round grades itpriority:p1High: required for production / M2
Activity
objectstack-fleet commentedon Nov 17, 2026
triage#1 · hotlong · session_01Q4EjjMnyLqJdzuktEmRPXH
Path: none
Triage: first touch → p1 ·
domain:ui·pm:blocked· 2026-11-17T10:28Z⛔ Not a claim.
rollupSourceUnreadableReason. The meant pair then warns again under strict lint, or a reviewer loses the recorded reason.security-rollup-source-unreadableis advisory ("the pair is legal and is often meant") but has no way to acknowledge a meant pair, soos lint --strictforces either a widened child read or a hidden total #34664 is p1 under addendum 9. This console half earns p1 on its own effect, not by inheritance.ui/→domain:ui.security-rollup-source-unreadableis advisory ("the pair is legal and is often meant") but has no way to acknowledge a meant pair, soos lint --strictforces either a widened child read or a hidden total #34664 (PR feat(spec, lint): a permission set can acknowledge a meant roll-up read with rollupSourceUnreadableReason #34775). Claim it right after the merge, so no release carries a key that the console strips.objectstack-fleet commentedon Nov 17, 2026
triage#1 · hotlong · session_01Q4EjjMnyLqJdzuktEmRPXH
Path: none
Triage: unlock →
pm:queue· 2026-11-17T12:53Z⛔ Not a claim.
Blocker #34664 closed today at 12:45Z. Back to the queue at its grade (p1). The
rollupSourceUnreadableReasonkey is now onmain; the console matrix must stop dropping it before a release.objectstack-fleet commentedon Nov 17, 2026
repo:objectstack#3 · os-support-ai · session_01WGufziunkXbDT7wUWqfmWz
Claim: PM loop round 1 (area o3-C, epic #34571)
Session:
session_01WGufziunkXbDT7wUWqfmWzAccount:
os-support-aiBranch:
claude/issue-34786-matrix-rollup-reasonWorktree:
objectstack-issue-34786Domain:
domain:uiSeat:
repo:objectstack#3File surface:
ui/packages/app-shell/src/views/metadata-admin/PermissionMatrixEditor.tsx(updateFieldPermonly),ui/packages/app-shell/src/views/metadata-admin/permission-slice.ts(FieldPerm,withFieldBits), their tests underui/packages/app-shell/src/views/metadata-admin/, root.changeset/Container & model:
M,mode:subagent(area o3-C os-dev),model: TIER_DEFAULT (dispatch-gates --tier on the surface: "no path-derived mandate"),effort: medium(seat 16:27Z trial: small console card, one surface, no spec change)Clause-②: no
Metadata-protocol: none
Responsibility:
@object-ui/app-shellin objectstack (console permission matrix: Read off leavesrollupSourceUnreadableReasonbesidereadable: false, the shape the spec refuses; the field bulk shortcut drops the reason) | none | every admin who edits a permission set carrying a roll-up acknowledgementThread-read: 6948605386
Premise: holds, measured on origin/main 2fcc9cf.
packages/spec/src/security/permission.zod.ts:1186refusesrollupSourceUnreadableReasonbesidereadable: false(FIELD_PERMISSION_ROLLUP_REASON_ON_HIDDEN).PermissionMatrixEditor.tsx:1484updateFieldPermon Read off setseditable: falseand deletes onlywhen, so a reason stays besidereadable: false.permission-slice.ts:263withFieldBitsrebuilds{ readable, editable }and keeps onlywhen, so the bulk shortcut (its one caller,applyFieldBulk:298, always passesreadable: true) drops the reason.FieldPerm(permission-slice.ts:180) does not declare the key. The dev re-measures before code.Serial constraints cleared: open PR #34914 (o3-C's own #34795) edits
PermissionMatrixEditor.tsxfor wording; overlap-check against it and current main before every push.Pre-claim lane:
domain:ui— every path is underui/**.Pre-claim deps:
Blocked-by #34664on the card; #34664 closed 12:45Z (PR #34775 merged); triage unlock 6948605386 re-queued it at p1.Prior rulings read: card-named only (contract review of PR #34775, comment 6945332987, S2; objectstack#25866
whencascade pattern the fix follows); thread: none; repo: objectstack-ai/objectstackobjectstack-fleet commentedon Nov 17, 2026
repo:objectstack#3 · os-support-ai · session_01WGufziunkXbDT7wUWqfmWz
os-dev-report
{ "issue": 34786, "status": "done", "branch": "claude/issue-34786-matrix-rollup-reason", "pr": "https://github.com/objectstack-ai/objectstack/pull/34954", "session": "session_01WGufziunkXbDT7wUWqfmWz", "premise_still_valid": true, "summary": "Premise re-measured on origin/main b8408d8226 and it holds: permission.zod.ts:1186 refuses the reason beside readable:false, updateFieldPerm Read off deleted only when, withFieldBits kept only when, and FieldPerm lacked the key. Fix, inside the claimed surface only: FieldPerm declares optional rollupSourceUnreadableReason; updateFieldPerm Read off deletes it beside when (the objectstack#25866 cascade); withFieldBits keeps it while readable stays true and drops it only when readable goes false, so applyFieldBulk (always readable true) keeps it. Both behaviours are pinned with tests that parse the resulting entries with the real FieldPermissionSchema from @objectstack/spec/security, and all three ablations go red. Dev-effort: medium. Rounds: 1.", "tests": "Head 5d561afbe6. Closure built under the lock with pnpm --workspace-concurrency=2 --filter '@object-ui/app-shell^...' build (VERDICT command-exit 0). The lock then ran vitest run --maxWorkers=2 on permission-slice.fieldRule-26597.test.ts and PermissionMatrixEditor.fieldWhen-25866.test.tsx: Test Files 2 passed (2), Tests 27 passed (27), VERDICT command-exit 0. Ablations went through scripts/ablation-replace.mjs with a trap restore. No dist rebuild was needed, because the subjects are relative imports inside app-shell src, so the mutation runs from src. (A) Removing the delete of rollupSourceUnreadableReason in updateFieldPerm: anchor 1 to 0, blob 27768b90fc7b to 99234279c688; result 'Read off removes the reason...' failed, 1 failed / 1 passed; restored to blob 27768b90fc7b, which equals HEAD. (B) Removing the readable guard in withFieldBits: blob 5206a2968c7c to f2f2d86af3d5; result 'drops the reason when the entry goes readable:false' failed, 1 failed / 18 passed; restored to 5206a2968c7c, which equals HEAD. (C) Disabling the keep branch (the pre-fix behaviour): 3 failed (slice keep, bulk Read-only all, editor Write all); restored to 5206a2968c7c, which equals HEAD. The final git diff HEAD was empty.", "gates": "Local, at head 5d561afbe6. pnpm --filter @object-ui/app-shell run type-check (both tsc programs) under the lock: VERDICT command-exit 0. node scripts/pm/dispatch-gates.mjs --repo objectstack-ai/objectstack --commands derived 38 commands, and all 38 ran with exits captured before any pipe. 36 exited 0. Two are NOT MEASURED. First, pnpm --dir ui exec vitest run scripts/ exited 1 with 22 files failing on 'Cannot find package @objectstack/spec/ui' and '@objectstack/spec/data': it started before the spec dist existed, so the failure is environmental and never reached the tests. Second, pnpm check:type-check-debt exited 3, PREREQUISITE NOT MET, because its closure build got no lock turn. Two re-runs of both returned lock exit 99: holder pid 3680, another agent's app-shell vitest run, held the lock for more than 29 minutes. Declared narrowing: for the ui scripts family I ran the one gate that reads FieldPerm directly, node ui/scripts/check-designer-field-key-parity.mjs, which exited 0 with 'designer-field-key-parity: OK'. dispatch-gates --ran: 38 derived, 38 run, 0 UNRUN. Its 0 NOT-MEASURED count is only the runner's claim; the two above are NOT MEASURED. overlap-check against origin/main c81f498b5f and PR #34914: VERDICT clean exit 0. PR check-runs when this report was written: Lint & Repo Gates success, Test Core success, Governed Surface Queue Guard success, Check Changeset success, Build & E2E UI success, Dogfood Regression Gate success, Type Check source gates success, PR-body guards success. Lint UI, Type Check UI, Test UI 1-16, Live E2E UI, Type Check workspace, Type Check consumer gates and Type Check debt ledger were in_progress.", "dogfood_battery": "n/a — no ! in the PR title and no (narrowing) arm", "mcp_calls": "0", "api_writes": "2 — POST /repos/objectstack-ai/objectstack/dispatches carrying pr_create (the relay executed POST /pulls #34954 as a draft plus POST /issues/34954/assignees os-support-ai, read back identical); the os-dev-report comment on #34786 through post-stamped.mjs. git push (2, branch probe and fix commit) is not a REST write.", "open_questions": [], "security_findings": "none", "out_of_scope_findings": ["carrier: none · noted in PR Acceptance notes, not filed: withFieldBits(cur, false, ...) still keeps when, the refused when-beside-readable:false shape, but no caller passes readable false (applyFieldBulk passes true), so it is dormant", "carrier: none · the lock holder pid 3680 (an app-shell metadata-admin vitest run, another agent's) held the shared verify lock for more than 29 minutes during this run; reported to the seat, not filed"] }objectstack-fleet commentedon Nov 17, 2026
repo:objectstack#3 · os-support-ai · session_01WGufziunkXbDT7wUWqfmWz
Delivered by PR #34954 (merged, 119d5db): the console permission matrix no longer leaves
rollupSourceUnreadableReasonbesidereadable: false. Turning Read off removes the reason in the same edit (besidewhen, the #25866 cascade), and the field bulk shortcut keeps the reason while Read stays on instead of dropping it silently. Both behaviours are pinned by parsing the resulting entries with the realFieldPermissionSchema.pm:dispatchedcomes off with the close.Open at the merge: nothing (L1 6958007304 had no findings). Dormant note kept in the PR:
withFieldBits(cur, false, …)would still keepwhen; no caller passesfalse. The PR needed one re-queue after two queue builds failed on a runner checkout timeout (comment 6960648391).