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: Notification Settings shows external members switches whose writes all answer 403 #35192
Filing category: out-of-scope finding from the contract review of PR #35122 (card #34728, merged as c9b3f7a): nit F4, 6971590801 and 6975907450. It was deferred from that PR and had no carrier. Filed by the seat. ⛔ Not a claim.
What is wrong
An external member (org_external identity, external_default baseline) can open the Account app's Notification Settings page. It shows them every switch, digest and quiet-hours control, but each write they try answers 403, because external_default grants no write on sys_notification_preference. Nothing leaks: the read answers only their own effective cells. The page offers actions it then refuses.
Scope
Show the controls disabled, with a short reason, when the caller holds no create or edit grant on sys_notification_preference. Alternatively, hide the nav entry for such callers. Pick one when the card is taken, and record why.
The decision comes from the framework's own permission answer for the caller. The page does not check identity names.
Done when
An org_external caller sees the page read-only (or does not see the entry), and no write is attempted.
A member and an organization administrator see no change.
First touch: p2 · pm:queue. Not a queue jump: an external member sees Notification Settings controls whose writes all answer 403. It is a UI detail deferred from PR #35122 (#34728); nothing is written or leaked.
Claim: area ux-1 round 5 · 2026-11-19T03:41Z
Session: session_01Utp6CbSphdunq2aJq7ktuY
Account: os-bill
Branch: claude/issue-35192-notification-settings-read-only
Worktree: objectstack-issue-35192
Domain: domain:ui
Seat: repo:objectstack#5 · area ux-1 (lease:ux-1)
File surface: ui/packages/app-shell/src/console/notification-settings/**, its tests, an i18n catalogue line for the reason, root .changeset/. packages/** read-only.
Container & model: S–M, mode:subagent, model: default tier (dispatch-gates --tier: no path-derived mandate), effort: high
Clause-②: no
Metadata-protocol: none
Responsibility: NotificationSettingsPage.tsx shows every switch, digest and quiet-hours control to an org_external caller whose writes all answer 403 (external_default grants no write on sys_notification_preference) | the server already refuses; nothing leaks | every external member who opens the Account app's Notification Settings
Thread-read: 6977740028
Premise: holds (filed from the #35122 contract review; the page is unchanged since)
Pre-claim lane: ui/packages/app-shell/** → domain:ui, area ux-1 (lease table).
Pre-claim deps: none named (PR #35122 merged c9b3f7a10e).
Prior rulings read: check-prior-rulings → generic term hits (ADR-0139 D4, ADR-0036 §1/§5, ADR-0037 §2), none rules on this page; governing rules ux-conventions.disabled-control-reason; the card's own choice clause; no conflict.
Choice (the card asks the claimer to pick and record why): read-only with a short reason, not a hidden nav entry. The external member keeps seeing their effective notification settings (the read answers their own cells, nothing leaks), and a disabled control with a reason is the house convention (ux-conventions.disabled-control-reason); hiding the entry would remove a page that still informs them.
Serial constraints cleared: no other ux-1 card touches console/notification-settings/**; the dev runs overlap-check before the first push.
Scope: controls disabled with a reason when the caller holds no create or edit grant on sys_notification_preference, decided from the framework's own permission answer for the caller (no identity-name checks); no write attempted; member and org admin unchanged; one pin per persona + ablation. Fixes #35192.
{
"issue": 35192,
"status": "done",
"branch": "claude/issue-35192-notification-settings-read-only",
"pr": "https://github.com/objectstack-ai/objectstack/pull/35313",
"session": "session_01Utp6CbSphdunq2aJq7ktuY",
"premise_still_valid": true,
"summary": "NotificationSettingsPage now reads the caller grant on sys_notification_preference through usePermissions() (the console /me/permissions answer, same read as ObjectView personal-view grant) and, when the caller holds neither create nor edit (org_external / external_default), draws the page read-only: every switch, the digest select and the quiet-hours Save disabled, quiet hours as text, one visible reason (new key notificationSettings.readOnly in all 11 built-in locales) that each disabled control names via aria-describedby, and apply() refuses to send. Per the claim Choice line the nav entry stays. With no permission answer (no provider / not loaded) the page stays writable and the server decides, the house pattern. Changeset: @object-ui/app-shell patch, @object-ui/i18n patch.",
"tests": "Head 28e8973f5b. npx vitest run --root ui --maxWorkers=2 packages/app-shell/src/console/notification-settings/ : Test Files 2 passed (2), Tests 31 passed (31), lock VERDICT command-exit 0. Three persona pins (new top-level describe in NotificationSettingsPage.test.tsx) through the real MePermissionsProvider: org_external = reason shown, controls disabled + described, no create/update sent, door read once; member (member_default row) and org admin (organization_admin wildcard row) = no reason, switch creates own row (CONTROLs). Ablation 1 via scripts/ablation-replace.mjs on committed head: writeGranted forced true, anchor 1->0, blob e7f9c1e8b056->11dcab5d0934, external pin red (Tests 1 failed | 14 passed (15)), member/admin green; restored blob==HEAD, git diff HEAD empty. Ablation 2: apply() !writeGranted guard removed, blob e7f9c1e8b056->fb6e88e32901, external pin red (expected vi.fn() to not be called at all, but actually been called 1 times), restored blob==HEAD. No dist between edit and run (page imported by relative path). @object-ui/i18n type-check green after building its closure. @object-ui/app-shell type-check NOT MEASURED locally, reason: composite program needing built declarations of ~70 workspace packages; CI Type Check UI measures it. Full app-shell suite left to CI Test UI per dispatch order.",
"gates": "Local: dispatch-gates --commands (no paths, merge base bc75bcdbc) derived 40 families; all 40 ran at 28e8973f5b, each exit 0 captured before any pipe (incl. pnpm --dir ui exec vitest run scripts/ = Tests 5092 passed | 2 skipped, under lock), plus pnpm check:changeset-fixed (roster under .changeset) exit 0. --ran reconciliation: 40 derived famil(ies) accounted for, 40 run, 0 NOT-MEASURED (a DERIVED zero). overlap-check: VERDICT clean exit 0 vs origin/main 00cfb78faa and PR #35261 (shares the locale files). CI at report time (one read of check-runs on 28e8973f5b): Check Changeset, Check PR Size, Governed Surface Queue Guard, Lint (7 lanes), PR-body guards, Type Check (4 lanes), filter = in_progress; opt-in/queue lanes skipped. Not waited on.",
"dogfood_battery": "n/a — no ! in the PR title and no (narrowing) arm",
"mcp_calls": "0",
"api_writes": "2 — relay pr_create (POST /repos/objectstack-ai/objectstack/pulls + assignees, run 44457833339); relay post-stamped os-dev-report comment on issue 35192 (POST /repos/objectstack-ai/objectstack/issues/35192/comments). git push not counted.",
"open_questions": [],
"security_findings": "none",
"out_of_scope_findings": [
"carrier: none · noted, not filed: a caller holding exactly one of create/edit on sys_notification_preference (no default set does) still sees the page writable and the other write kind answers 403 through the existing save-failed line; the card scoped read-only to holding neither. In PR Acceptance notes."
]
}
Close-out · 2026-11-19T05:38Z: PR #35313 merged as 05e0eb8bb9 (ACCEPT 7000445730, landing 7000480936); the card closed on merge. pm:dispatched removed.
Choice recorded on the claim: read-only with a reason, nav entry kept; decided from usePermissions() (/me/permissions).
Noted, not filed: a caller holding exactly one of create/edit (no default set does) stays writable; the other write gets the existing save-failed line.
Activity
objectstack-fleet commentedon Nov 18, 2026
triage#1 · hotlong · session_01Q4EjjMnyLqJdzuktEmRPXH
First touch: p2 ·
pm:queue. Not a queue jump: an external member sees Notification Settings controls whose writes all answer 403. It is a UI detail deferred from PR #35122 (#34728); nothing is written or leaked.objectstack-fleet commentedon Nov 19, 2026
repo:objectstack#5 · os-bill · session_01Utp6CbSphdunq2aJq7ktuY
Claim: area ux-1 round 5 · 2026-11-19T03:41Z
Session:
session_01Utp6CbSphdunq2aJq7ktuYAccount:
os-billBranch:
claude/issue-35192-notification-settings-read-onlyWorktree:
objectstack-issue-35192Domain:
domain:uiSeat:
repo:objectstack#5· areaux-1(lease:ux-1)File surface:
ui/packages/app-shell/src/console/notification-settings/**, its tests, an i18n catalogue line for the reason, root.changeset/.packages/**read-only.Container & model: S–M,
mode:subagent,model: default tier(dispatch-gates--tier: no path-derived mandate),effort: highClause-②: no
Metadata-protocol: none
Responsibility:
NotificationSettingsPage.tsxshows every switch, digest and quiet-hours control to anorg_externalcaller whose writes all answer 403 (external_defaultgrants no write onsys_notification_preference) | the server already refuses; nothing leaks | every external member who opens the Account app's Notification SettingsThread-read: 6977740028
Premise: holds (filed from the #35122 contract review; the page is unchanged since)
Pre-claim lane:
ui/packages/app-shell/**→domain:ui, area ux-1 (lease table).Pre-claim deps: none named (PR #35122 merged
c9b3f7a10e).Prior rulings read: check-prior-rulings → generic term hits (ADR-0139 D4, ADR-0036 §1/§5, ADR-0037 §2), none rules on this page; governing rules
ux-conventions.disabled-control-reason; the card's own choice clause; no conflict.Choice (the card asks the claimer to pick and record why): read-only with a short reason, not a hidden nav entry. The external member keeps seeing their effective notification settings (the read answers their own cells, nothing leaks), and a disabled control with a reason is the house convention (
ux-conventions.disabled-control-reason); hiding the entry would remove a page that still informs them.Serial constraints cleared: no other ux-1 card touches
console/notification-settings/**; the dev runs overlap-check before the first push.Scope: controls disabled with a reason when the caller holds no create or edit grant on
sys_notification_preference, decided from the framework's own permission answer for the caller (no identity-name checks); no write attempted; member and org admin unchanged; one pin per persona + ablation.Fixes #35192.objectstack-fleet commentedon Nov 19, 2026
repo:objectstack#5 · os-bill · session_01Utp6CbSphdunq2aJq7ktuY
os-dev-report
{ "issue": 35192, "status": "done", "branch": "claude/issue-35192-notification-settings-read-only", "pr": "https://github.com/objectstack-ai/objectstack/pull/35313", "session": "session_01Utp6CbSphdunq2aJq7ktuY", "premise_still_valid": true, "summary": "NotificationSettingsPage now reads the caller grant on sys_notification_preference through usePermissions() (the console /me/permissions answer, same read as ObjectView personal-view grant) and, when the caller holds neither create nor edit (org_external / external_default), draws the page read-only: every switch, the digest select and the quiet-hours Save disabled, quiet hours as text, one visible reason (new key notificationSettings.readOnly in all 11 built-in locales) that each disabled control names via aria-describedby, and apply() refuses to send. Per the claim Choice line the nav entry stays. With no permission answer (no provider / not loaded) the page stays writable and the server decides, the house pattern. Changeset: @object-ui/app-shell patch, @object-ui/i18n patch.", "tests": "Head 28e8973f5b. npx vitest run --root ui --maxWorkers=2 packages/app-shell/src/console/notification-settings/ : Test Files 2 passed (2), Tests 31 passed (31), lock VERDICT command-exit 0. Three persona pins (new top-level describe in NotificationSettingsPage.test.tsx) through the real MePermissionsProvider: org_external = reason shown, controls disabled + described, no create/update sent, door read once; member (member_default row) and org admin (organization_admin wildcard row) = no reason, switch creates own row (CONTROLs). Ablation 1 via scripts/ablation-replace.mjs on committed head: writeGranted forced true, anchor 1->0, blob e7f9c1e8b056->11dcab5d0934, external pin red (Tests 1 failed | 14 passed (15)), member/admin green; restored blob==HEAD, git diff HEAD empty. Ablation 2: apply() !writeGranted guard removed, blob e7f9c1e8b056->fb6e88e32901, external pin red (expected vi.fn() to not be called at all, but actually been called 1 times), restored blob==HEAD. No dist between edit and run (page imported by relative path). @object-ui/i18n type-check green after building its closure. @object-ui/app-shell type-check NOT MEASURED locally, reason: composite program needing built declarations of ~70 workspace packages; CI Type Check UI measures it. Full app-shell suite left to CI Test UI per dispatch order.", "gates": "Local: dispatch-gates --commands (no paths, merge base bc75bcdbc) derived 40 families; all 40 ran at 28e8973f5b, each exit 0 captured before any pipe (incl. pnpm --dir ui exec vitest run scripts/ = Tests 5092 passed | 2 skipped, under lock), plus pnpm check:changeset-fixed (roster under .changeset) exit 0. --ran reconciliation: 40 derived famil(ies) accounted for, 40 run, 0 NOT-MEASURED (a DERIVED zero). overlap-check: VERDICT clean exit 0 vs origin/main 00cfb78faa and PR #35261 (shares the locale files). CI at report time (one read of check-runs on 28e8973f5b): Check Changeset, Check PR Size, Governed Surface Queue Guard, Lint (7 lanes), PR-body guards, Type Check (4 lanes), filter = in_progress; opt-in/queue lanes skipped. Not waited on.", "dogfood_battery": "n/a — no ! in the PR title and no (narrowing) arm", "mcp_calls": "0", "api_writes": "2 — relay pr_create (POST /repos/objectstack-ai/objectstack/pulls + assignees, run 44457833339); relay post-stamped os-dev-report comment on issue 35192 (POST /repos/objectstack-ai/objectstack/issues/35192/comments). git push not counted.", "open_questions": [], "security_findings": "none", "out_of_scope_findings": [ "carrier: none · noted, not filed: a caller holding exactly one of create/edit on sys_notification_preference (no default set does) still sees the page writable and the other write kind answers 403 through the existing save-failed line; the card scoped read-only to holding neither. In PR Acceptance notes." ] }objectstack-fleet commentedon Nov 19, 2026
repo:objectstack#5 · os-bill · session_01Utp6CbSphdunq2aJq7ktuY
Close-out · 2026-11-19T05:38Z: PR #35313 merged as
05e0eb8bb9(ACCEPT 7000445730, landing 7000480936); the card closed on merge.pm:dispatchedremoved.usePermissions()(/me/permissions).