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
Invitations page: show a not-allowed state when a member may not list invitations #39165
After better-auth 1.7.29 (#39089), the organization invitation list answers 403 YOU_ARE_NOT_ALLOWED_TO_LIST_INVITATIONS to any role that may not create invitations (an ordinary member, an external member). The maintainer ruled to accept that narrowing (decision recorded on #39068).
The app-shell Invitations page calls the invitation list for every member, so a member who opens it sees the refusal as a page error.
Expected
A member who may not create invitations sees a plain not-allowed state on the Invitations page (or the entry is hidden for them), not an error.
Owner/admin roles are unaffected.
A member's own received invitations are still reachable (list-user-invitations).
Blocked-by: #39089 no longer holds: PR #39089 merged at 2026-12-02T22:11:29Z (9a13387d, now origin/main). pm:blocked → pm:queue. Grade unchanged (p2).
Premise re-check (the card's own command) at 9a13387d: grep -rn "listInvitations" ui/packages/app-shell/src → console/organizations/manage/InvitationsPage.tsx:65 and :95 (the list call still runs for every member).
Zone ux-1202 of seat repo:objectstack@os-bill (area:ux p1/p2 intake, the maintainer's order 「再开 专区 处理 area:ux area:data p1 p2」, project chat 2026-12-02T22:22:01Z).
Claim: PM loop round 1 · 2026-12-02T22:30Z
Session: session_01Utp6CZQVVFKDKH894psuGy
Account: os-bill
Branch: claude/issue-39165-invitations-not-allowed
Worktree: objectstack-issue-39165
Domain: domain:ui
Seat: repo:objectstack@os-bill
Area: ux-1202
File surface: ui/packages/app-shell/src/console/organizations/manage/InvitationsPage.tsx, ui/packages/app-shell/src/console/organizations/manage/OrganizationLayout.tsx, ui/packages/app-shell/src/console/organizations/manage/orgCapabilities.ts, ui/packages/i18n/src/locales/en.ts, ui/packages/i18n/src/locales/zh-Hans.ts, ui/packages/i18n/src/locales/zh-Hant.ts (reason: a not-allowed string, only if no existing key fits; the other locales only if the i18n parity gate requires them, named in the report); stop on any other breach and explain in the report.
Container & model: M, mode:subagent, model: default (dispatch-gates --tier on the surface: "no path-derived mandate", floor · default · ceiling; UI behaviour with a design choice → default), effort: high
Clause-②: no
Metadata-protocol: none
Responsibility: ui/packages/app-shell in objectstack produces the page error (InvitationsPage.tsx:95 calls the invitation list for every member; after better-auth 1.7.29 the server answers 403 YOU_ARE_NOT_ALLOWED_TO_LIST_INVITATIONS to roles that may not create invitations, a narrowing the maintainer accepted on #39068) | no platform path covers it: orgCapabilities.ts gates only the write affordances (canCancel, canCopyLink) | every ordinary or external member who opens the org Invitations page, todayThread-read: 7360731087 Premise: holds — read atorigin/main9a13387d:grep -rn "listInvitations" ui/packages/app-shell/src → InvitationsPage.tsx:65 and :95; the page comment at :78 says what a member may read is "deliberately NOT decided by this card"; #39089 (better-auth 1.7.29) merged. Clause-② note: the seat cannot read whether a new translation key widens the published surface (TranslationKeysis exported from@object-ui/i18n, locales/index.ts:84); if the dev adds a key, it measures this on the built declaration closure and reports, and the measurement decides. Pre-claim lane: domain:ui— every path is underui/**; the seat keeps it (lane-keep). Pre-claim deps: Blocked-by: #39089merged 2026-12-02 (unlock comment 7360731087). Prior rulings read:check-prior-rulings.mjs --card 39165 --paths ui/packages/app-shell/src/console/organizations/manage/InvitationsPage.tsx→ 零命中 → 无裁决 on the surface; card refs #39068 (closed, the accepted narrowing) and #39089 (merged). Serial constraints cleared:check-handover.mjs --inflight→ OVERLAP with #39062 (claim 7357851197, seat repo:objectstack@os-justin) onui/packages/i18n/src/locales/*.ts`, carried by open PR #39175. Notify: serial — the locale edits wait for PR #39175 to merge, then merge main once before pushing them; the app-shell half goes first. Open PRs touching the app-shell files: none (42 open pulls' file lists read).
{
"issue": 39165,
"status": "done",
"branch": "claude/issue-39165-invitations-not-allowed",
"pr": "https://github.com/objectstack-ai/objectstack/pull/39215",
"session": "session_01Utp6CZQVVFKDKH894psuGy",
"premise_still_valid": true,
"summary": "Resumed from claude/issue-39165-invitations-not-allowed@bbe8d326 (the three pushed commits reviewed against the card and kept), merged origin/main f1df7a8f once (c56ff4a1), and opened draft PR #39215. canListInvitations (orgCapabilities.ts) mirrors better-auth 1.7.29's canViewInvitations gate (invitation:[\"create\"], verified in node_modules has-permission.mjs and the wire code in the external-member dogfood test). The Invitations page does not call the list for member or external, and turns a YOU_ARE_NOT_ALLOWED_TO_LIST_INVITATIONS refusal (matched by code) into a plain not-allowed state with no Retry. Owner, admin and delegated_admin are unchanged, and received invitations stay on OrganizationsPage via list-user-invitations. The page reuses organization.members.inviteRestrictedNote, so no new key and no locale edit: the Clause-② TranslationKeys measurement has nothing to measure. The assignee on the card was left alone.",
"tests": "At c56ff4a1: members-role-gating-4475.test.tsx 31 passed (31), including the 8 cases in the #39165 block (member and external: list not called and not-allowed state shown; unresolved row: refusal gives the not-allowed state; unpredicted refusal: not-allowed state; 503: still an error with Retry; owner, admin and delegated_admin: ledger listed). The organizations/ directory: 20 files and 227 tests passed. Ablation through scripts/ablation-replace.mjs (no dist: the test imports src). Forcing roleMayList to true failed 3 tests and passed 28. Forcing the refusal branch false failed 2 and passed 29. Both restore legs gave blob == HEAD d2bc543c with git diff HEAD empty. The removed pin 'member: the ledger itself still renders' pinned the old behaviour this card reverses, and its deferred question #8095 is closed.",
"gates": "Local at c56ff4a1, each exit captured before any pipe. pnpm --filter @object-ui/app-shell type-check: VERDICT command-exit 0, after turbo build of the app-shell closure (72/72). dispatch-gates --commands: 39 families, all run, each exit 0 (ui scripts vitest: 172 files passed, 2 skipped). --ran reconciliation: 39 derived, 39 run, 0 NOT-MEASURED, 0 UNRUN (a derived zero: all 39 carry an exit code). The PR's check-runs had not reported when this report was written; NOT MEASURED: CI families, reason: report delivered at PR open, CI convergence is the PM's.",
"line_budget": "189 changed lines (+165/-24, 4 files) vs the 3000 human-merge line: under; no skills/** touched",
"files_changed": [
".changeset/39165-invitations-not-allowed.md",
"ui/packages/app-shell/src/console/organizations/__tests__/members-role-gating-4475.test.tsx",
"ui/packages/app-shell/src/console/organizations/manage/InvitationsPage.tsx",
"ui/packages/app-shell/src/console/organizations/manage/orgCapabilities.ts"
],
"deviations": [
"The derived-gate loop (38 commands in one Bash call) passed the 600s foreground cap, and the harness moved it to the background. It finished there with all 38 exit codes recorded, and no result was read before it finished. The rule says do not background, so this is reported here.",
"The card was read through public unauthenticated REST. with-fleet --read refused in this container (exit 3: no mint), and no write went that way.",
"test:repo was not run locally: the diff does not touch that project and the derived list does not name it. CI runs it."
],
"mcp_calls": "0",
"api_writes": "2 relay actions: pr_create (POST /repos/objectstack-ai/objectstack/pulls, then POST /repos/objectstack-ai/objectstack/issues/39215/assignees [os-bill]), and this os-dev-report comment (POST /repos/objectstack-ai/objectstack/issues/39165/comments). Plus 1 git push (c56ff4a1, the merge of origin/main), which is not a REST write.",
"classifier_refusals": [],
"open_questions": [],
"security_findings": "withheld",
"out_of_scope_findings": []
}
Close-out · 2026-12-03T01:34Z · PR #39215 merged (2026-12-03T01:13:58Z); Fixes #39165 closed the card. ACCEPT + landing 7363407877. Members and external members now see a plain not-allowed state on the Invitations page instead of an error; owner, admin and delegated_admin unchanged. pm:dispatched removed.
Activity
objectstack-fleet commentedon Dec 2, 2026
triage@os-warren · os-warren · session_01JQwxbZzZ2f5mzcvJbRrRNZ
First touch · 2026-12-02T19:05Z
定级:
area:ux · Bug · p2 · better-auth 升级后普通成员打开组织「邀请」页看到报错而非无权限提示 · 读码(#39068 裁定接受收窄)domain:ui、类型 Bug。卡上写明「fix(deps): take the fixed releases for seven advisories, refresh undici, nodemailer and the MCP SDK #39089 合并后落地」,已补Blocked-by: #39089(p1 deps: refresh five packages with available fixes (ws, fast-xml-parser, glob, cross-spawn, minimatch) #39068 的 PR,级不低于本卡)并进pm:blocked;fix(deps): take the fixed releases for seven advisories, refresh undici, nodemailer and the MCP SDK #39089 合并后由巡检解锁。objectstack-fleet commentedon Dec 2, 2026
repo:objectstack@os-bill · os-bill · session_01Utp6CZQVVFKDKH894psuGy
维护者速读
Released: blocker merged · 2026-12-02T22:27Z
Blocked-by: #39089no longer holds: PR #39089 merged at 2026-12-02T22:11:29Z (9a13387d, noworigin/main).pm:blocked→pm:queue. Grade unchanged (p2).Premise re-check (the card's own command) at
9a13387d:grep -rn "listInvitations" ui/packages/app-shell/src→console/organizations/manage/InvitationsPage.tsx:65and:95(the list call still runs for every member).Zone ux-1202 of seat
repo:objectstack@os-bill(area:ux p1/p2 intake, the maintainer's order 「再开 专区 处理 area:ux area:data p1 p2」, project chat 2026-12-02T22:22:01Z).objectstack-fleet commentedon Dec 2, 2026
repo:objectstack@os-bill · os-bill · session_01Utp6CZQVVFKDKH894psuGy
Claim: PM loop round 1 · 2026-12-02T22:30Z
Session:
session_01Utp6CZQVVFKDKH894psuGyAccount:
os-billBranch:
claude/issue-39165-invitations-not-allowedWorktree:
objectstack-issue-39165Domain:
domain:uiSeat:
repo:objectstack@os-billArea: ux-1202
File surface:
ui/packages/app-shell/src/console/organizations/manage/InvitationsPage.tsx,ui/packages/app-shell/src/console/organizations/manage/OrganizationLayout.tsx,ui/packages/app-shell/src/console/organizations/manage/orgCapabilities.ts,ui/packages/i18n/src/locales/en.ts,ui/packages/i18n/src/locales/zh-Hans.ts,ui/packages/i18n/src/locales/zh-Hant.ts(reason: a not-allowed string, only if no existing key fits; the other locales only if the i18n parity gate requires them, named in the report); stop on any other breach and explain in the report.Container & model:
M,mode:subagent,model: default (dispatch-gates --tier on the surface: "no path-derived mandate", floor · default · ceiling; UI behaviour with a design choice → default),effort: highClause-②: no
Metadata-protocol: none
Responsibility:
ui/packages/app-shellin objectstack produces the page error (InvitationsPage.tsx:95 calls the invitation list for every member; after better-auth 1.7.29 the server answers 403 YOU_ARE_NOT_ALLOWED_TO_LIST_INVITATIONS to roles that may not create invitations, a narrowing the maintainer accepted on #39068) | no platform path covers it: orgCapabilities.ts gates only the write affordances (canCancel, canCopyLink) | every ordinary or external member who opens the org Invitations page, todayThread-read: 7360731087 Premise: holds — read atorigin/main9a13387d:grep -rn "listInvitations" ui/packages/app-shell/src→ InvitationsPage.tsx:65 and :95; the page comment at :78 says what a member may read is "deliberately NOT decided by this card"; #39089 (better-auth 1.7.29) merged. Clause-② note: the seat cannot read whether a new translation key widens the published surface (TranslationKeysis exported from@object-ui/i18n,locales/index.ts:84); if the dev adds a key, it measures this on the built declaration closure and reports, and the measurement decides. Pre-claim lane:domain:ui— every path is underui/**; the seat keeps it (lane-keep). Pre-claim deps:Blocked-by: #39089merged 2026-12-02 (unlock comment 7360731087). Prior rulings read:check-prior-rulings.mjs --card 39165 --paths ui/packages/app-shell/src/console/organizations/manage/InvitationsPage.tsx→ 零命中 → 无裁决 on the surface; card refs #39068 (closed, the accepted narrowing) and #39089 (merged). Serial constraints cleared:check-handover.mjs --inflight→ OVERLAP with #39062 (claim 7357851197, seat repo:objectstack@os-justin) onui/packages/i18n/src/locales/*.ts`, carried by open PR #39175. Notify: serial — the locale edits wait for PR #39175 to merge, then merge main once before pushing them; the app-shell half goes first. Open PRs touching the app-shell files: none (42 open pulls' file lists read).objectstack-fleet commentedon Dec 3, 2026
repo:objectstack@os-bill · os-bill · session_01Utp6CZQVVFKDKH894psuGy
os-dev-report
{ "issue": 39165, "status": "done", "branch": "claude/issue-39165-invitations-not-allowed", "pr": "https://github.com/objectstack-ai/objectstack/pull/39215", "session": "session_01Utp6CZQVVFKDKH894psuGy", "premise_still_valid": true, "summary": "Resumed from claude/issue-39165-invitations-not-allowed@bbe8d326 (the three pushed commits reviewed against the card and kept), merged origin/main f1df7a8f once (c56ff4a1), and opened draft PR #39215. canListInvitations (orgCapabilities.ts) mirrors better-auth 1.7.29's canViewInvitations gate (invitation:[\"create\"], verified in node_modules has-permission.mjs and the wire code in the external-member dogfood test). The Invitations page does not call the list for member or external, and turns a YOU_ARE_NOT_ALLOWED_TO_LIST_INVITATIONS refusal (matched by code) into a plain not-allowed state with no Retry. Owner, admin and delegated_admin are unchanged, and received invitations stay on OrganizationsPage via list-user-invitations. The page reuses organization.members.inviteRestrictedNote, so no new key and no locale edit: the Clause-② TranslationKeys measurement has nothing to measure. The assignee on the card was left alone.", "tests": "At c56ff4a1: members-role-gating-4475.test.tsx 31 passed (31), including the 8 cases in the #39165 block (member and external: list not called and not-allowed state shown; unresolved row: refusal gives the not-allowed state; unpredicted refusal: not-allowed state; 503: still an error with Retry; owner, admin and delegated_admin: ledger listed). The organizations/ directory: 20 files and 227 tests passed. Ablation through scripts/ablation-replace.mjs (no dist: the test imports src). Forcing roleMayList to true failed 3 tests and passed 28. Forcing the refusal branch false failed 2 and passed 29. Both restore legs gave blob == HEAD d2bc543c with git diff HEAD empty. The removed pin 'member: the ledger itself still renders' pinned the old behaviour this card reverses, and its deferred question #8095 is closed.", "gates": "Local at c56ff4a1, each exit captured before any pipe. pnpm --filter @object-ui/app-shell type-check: VERDICT command-exit 0, after turbo build of the app-shell closure (72/72). dispatch-gates --commands: 39 families, all run, each exit 0 (ui scripts vitest: 172 files passed, 2 skipped). --ran reconciliation: 39 derived, 39 run, 0 NOT-MEASURED, 0 UNRUN (a derived zero: all 39 carry an exit code). The PR's check-runs had not reported when this report was written; NOT MEASURED: CI families, reason: report delivered at PR open, CI convergence is the PM's.", "line_budget": "189 changed lines (+165/-24, 4 files) vs the 3000 human-merge line: under; no skills/** touched", "files_changed": [ ".changeset/39165-invitations-not-allowed.md", "ui/packages/app-shell/src/console/organizations/__tests__/members-role-gating-4475.test.tsx", "ui/packages/app-shell/src/console/organizations/manage/InvitationsPage.tsx", "ui/packages/app-shell/src/console/organizations/manage/orgCapabilities.ts" ], "deviations": [ "The derived-gate loop (38 commands in one Bash call) passed the 600s foreground cap, and the harness moved it to the background. It finished there with all 38 exit codes recorded, and no result was read before it finished. The rule says do not background, so this is reported here.", "The card was read through public unauthenticated REST. with-fleet --read refused in this container (exit 3: no mint), and no write went that way.", "test:repo was not run locally: the diff does not touch that project and the derived list does not name it. CI runs it." ], "mcp_calls": "0", "api_writes": "2 relay actions: pr_create (POST /repos/objectstack-ai/objectstack/pulls, then POST /repos/objectstack-ai/objectstack/issues/39215/assignees [os-bill]), and this os-dev-report comment (POST /repos/objectstack-ai/objectstack/issues/39165/comments). Plus 1 git push (c56ff4a1, the merge of origin/main), which is not a REST write.", "classifier_refusals": [], "open_questions": [], "security_findings": "withheld", "out_of_scope_findings": [] }objectstack-fleet commentedon Dec 3, 2026
repo:objectstack@os-bill · os-bill · session_01Utp6CZQVVFKDKH894psuGy
Close-out · 2026-12-03T01:34Z · PR #39215 merged (2026-12-03T01:13:58Z);
Fixes #39165closed the card. ACCEPT + landing 7363407877. Members and external members now see a plain not-allowed state on the Invitations page instead of an error; owner, admin and delegated_admin unchanged.pm:dispatchedremoved.