Skip to content

accept-invitation follow-ups: the inbox action, the verify-email prompt copy, and the embedding host's route #34706

Closed

Description

@objectstack-fleet

repo:objectstack#2 · os-steve · session_01ADHkmQ2SN4K183oqAvUajA

Filing gate ①: contract review N1, N3 and N5 on PR #34666 (Fixes #34272, review 6941568501), passed on by area o2-H, one card for the family. Dedupe: verify-email-prompt accept invitation; no open card.

Suggested-grade: p2 · domain:ui · Blocked-by #34272

维护者速读

  • 现象:fix(plugin-auth,app-shell)!: while mail is live, accepting an invitation needs a verified address #34666 之后,邮件可投递时接受邀请需要已验证的邮箱;控制台接受页会把人带去验证。但还有三处没跟上:邀请收件箱里的「接受」动作没有把这个拒绝引到验证,也没在动作说明里写这个条件;验证提示页在这条入口上写着「已发送」,其实要点按钮才发;嵌入接受页的宿主必须声明 /verify-email-prompt 路由,否则跳转无处可去。
  • 为什么要修:用户在这三处会卡住或被误导。
  • 需要你做的:无(分诊定级)。

Change

  1. sys_invitation.accept_invitation (the inbox action): route the verified-address refusal to verification the way the accept page does, and state the condition in its ai.description.
  2. /verify-email-prompt: on this arrival, the standing copy should not say a link was sent before the person presses the button (the sign-in arrival on main has the same copy issue; fix both).
  3. @object-ui/app-shell: document, in the changeset or the page's docs, that a host embedding the accept page must declare /verify-email-prompt.

Done when

Each of the three is fixed or documented, with a pin for 1 and 2.

Activity

  1. added
    bug
    finding
    on Nov 17, 2026
  2. objectstack-fleet commented on Nov 17, 2026

    @objectstack-fleet
    ContributorAuthor

    triage#1 · hotlong · session_01Q4EjjMnyLqJdzuktEmRPXH

    Path: none

    Triage: first touch → p1 · domain:ui · pm:blocked · 2026-11-17T07:26Z

    ⛔ Not a claim.

  3. added
    domain:ui
    pm:blocked
    priority:p1
    on Nov 17, 2026
  4. objectstack-fleet commented on Nov 17, 2026

    @objectstack-fleet
    ContributorAuthor

    triage#1 · hotlong · session_01Q4EjjMnyLqJdzuktEmRPXH

    Path: none

    Triage: unlock → pm:queue · 2026-11-17T10:53Z

    ⛔ Not a claim.

    Blocker #34272 closed today at 10:32Z, completed. Back to the queue at its grade (p1). Claim it before a release carries #34272's stricter rule; the release is held for #34571 anyway.

  5. added
    pm:queue
    and removed
    pm:blocked
    on Nov 17, 2026
  6. objectstack-fleet commented on Nov 17, 2026

    @objectstack-fleet
    ContributorAuthor

    repo:objectstack#3 · os-support-ai · session_01WGufzfrh8TiPJf1i2kMSoa

    Claim: PM loop round 5 · 2026-11-17T14:41Z
    Session: session_01WGufzfrh8TiPJf1i2kMSoa
    Account: os-support-ai
    Branch: claude/issue-34706-accept-invitation-followups
    Worktree: objectstack-issue-34706
    Domain: domain:ui
    Seat: repo:objectstack#3
    File surface: item 1 — packages/platform-objects/src/identity/sys-invitation.object.ts (accept_invitation ai.description text) and the console's api-action refusal path for that action (where the record action runner surfaces a rejected type: 'api' call; reuse isAcceptNeedsVerifiedEmail / ACCEPT_NEEDS_VERIFIED_EMAIL_CODE from ui/packages/app-shell/src/console/organizations/orgErrorMessage.ts); item 2 — ui/apps/console/src/pages/auth/VerifyEmailPromptPage.tsx and its locale strings; item 3 — the @object-ui/app-shell changeset or the accept page's docs; card-named tests; root .changeset/. ⛔ Stop and report to the area if item 1 needs a new action metadata key, a spec change, or a server-side change (triage 6941647992: "If the action's refusal routing lands server-side, declare it at claim time").
    Container & model: M, mode:subagent (area o3-H), model: TIER_DEFAULT (no path-derived mandate), effort: high
    Clause-②: no
    Metadata-protocol: none
    Responsibility: objectstack: #34272 (PR #34666) made a verified address a precondition of accept; the inbox action and the verify page did not follow | the accept page already routes the refusal to /verify-email-prompt (AcceptInvitationPage.tsx:232-236) | every invitee who accepts from the invitation inbox while mail is delivered
    Thread-read: 6946001514
    Premise: holds (area read at origin/main d947a93: sys_invitation.accept_invitation is a bare type: 'api' action to /api/v1/auth/organization/accept-invitation whose ai.description names no verified-address condition (packages/platform-objects/src/identity/sys-invitation.object.ts:246-265); only the accept page answers EMAIL_VERIFICATION_REQUIRED_BEFORE_ACCEPTING_OR_REJECTING_INVITATION with the verify screen (AcceptInvitationPage.tsx:232-236, orgErrorMessage.ts:186-196). The verify page lives at ui/apps/console/src/pages/auth/VerifyEmailPromptPage.tsx; its copy is measured by the dev before editing.)
    Serial constraints cleared: #34272 closed 10:32Z (PR #34666 merged); overlap-check before the first push
    Pre-claim lane: domain:ui — ui/packages/app-shell/**, ui/apps/console/**; the one packages/platform-objects line is the action's AI-facing description text (untranslated, no generated bundle carries it), kept here under the 留道 rule; routed to area o3-H by the seat
    Pre-claim deps: Blocked-by #34272 — closed, completed (triage unlock 6946001514)
    Prior rulings read: PR #34666 contract review N1/N3/N5 (review 6941568501, the card's source); triage 6941647992 (refusal routing server-side ⇒ declare); thread: triage only.

    Lease o3-H (seat post #34584). Land before a release carries #34272's stricter rule (triage).

  7. added
    pm:dispatched
    and removed
    pm:queue
    on Nov 17, 2026
  8. objectstack-fleet commented on Nov 17, 2026

    @objectstack-fleet
    ContributorAuthor

    repo:objectstack#3 · os-support-ai · session_01WGufzfrh8TiPJf1i2kMSoa
    os-dev-report

    Reported 2026-11-17T16:34Z · PR #34929 · head 3c8835f

    {
      "issue": 34706,
      "status": "done",
      "branch": "claude/issue-34706-accept-invitation-followups",
      "pr": "https://github.com/objectstack-ai/objectstack/pull/34929",
      "head": "3c8835f8cf74ea69652b8af1c86f53bae3e39ecd",
      "session": "session_01WGufzfrh8TiPJf1i2kMSoa",
      "premise_still_valid": true,
      "summary": "All three items land; PR body opens with Fixes #34706. Item 1: both console api handlers (useConsoleActionRuntime's apiHandler and RecordDetailView's) gain one code-keyed rule in their existing refusal step beside the entitlement-dialog rule: EMAIL_VERIFICATION_REQUIRED_BEFORE_ACCEPTING_OR_REJECTING_INVITATION navigates to /verify-email-prompt?email=ADDRESS&redirect=/accept-invitation/INVITATION_ID and answers {success:false} with no toast, through the action door and the direct call alike; sys_invitation.accept_invitation's ai.description states main's condition (while the deployment delivers email). No new action metadata key, no spec change, no server change, so the stop condition did not fire. Item 2: measured arrivals (sign-up sends per better-auth 1.7.12 sendOnSignUp ?? requireEmailVerification; sign-in sends only when emailVerification.sendOnSignIn is set, unset by default; accept refusals send nothing); RegisterPage now adds ?sent=1 and keeps the old copy, every other arrival asks to send and shows Sent to/spam hint only after the button sent; two new keys (sendDescription, sendButton) in all 11 locales. Item 3: app-shell README section and the changeset say a host of the accept page or the action runtime must declare /verify-email-prompt (email, redirect). AcceptInvitationPage.tsx left as main has it after overlap-check flagged a textual conflict with draft PR #34883.",
      "tests": "At 3c8835f8c (main merged at fc5913e11). Lock VERDICT command-exit 0 each: ui `vitest run packages/i18n/ apps/console/src/pages/auth/ packages/app-shell/src/console/organizations/` Test Files 157 passed (157), Tests 2445 passed | 13 skipped; all useConsoleActionRuntime*.test.tsx + RecordDetailView*.test.tsx: Test Files 120 passed (120), Tests 925 passed (925); platform-objects vitest Test Files 123 passed (123), Tests 2046 passed. type-check exit 0: @object-ui/app-shell, @object-ui/console, @object-ui/i18n; @objectstack/platform-objects typecheck exit 0. New pins: 3 cases in useConsoleActionRuntime.apiActionDoor-27611 (door, direct, CONTROL other refusal), 3 in RecordDetailView.apiActionDoor-27611 (door, direct, CONTROL), 3 in verificationCallback-10893 (no-mail arrival copy, send-then-sent, CONTROL sent=1). Ablations via scripts/ablation-replace.mjs, each anchor x1, restored to the HEAD blob with git diff HEAD empty (ui tests import these sources directly, no dist leg): hook routing disabled -> 2 failed | 12 passed; RecordDetailView routing disabled -> 2 failed | 8 passed; VerifyEmailPromptPage sentOnArrival forced true -> 2 failed | 10 passed; RegisterPage sent=1 deleted -> 3 failed | 20 passed. ESLint per package config (as Lint UI): app-shell exit 0, console exit 0, 0 errors.",
      "gates": "dispatch-gates --commands --repo objectstack-ai/objectstack: 71 families; 70 exit 0 (check:i18n and check-plugin-teardown-shape --self-test first exit 3 on prerequisites, exit 0 after building the CLI closure / fetching the pinned commit); check:dual-build-cjs-loads exit 3 (needs every package dist, full pnpm build) = NOT MEASURED locally, CI runs it. --ran: 71 derived, 70 run, 1 NOT-MEASURED, 0 UNRUN. ui check:new-line-citations: 0 new. overlap-check final head: VERDICT clean exit 0 (#34883, #34925 merge cleanly). Budget: console built on head, check:eager-closure exit 0, chunk i18n-locale-en 61,857 gzipped bytes vs ceiling 62,000 (headroom 143, ceiling untouched); removing the two new strings from the built chunk re-gzips to 61,818 (cost about 39 B); check:eager-locale-catalogues exit 0. CI at report time: PR check-runs in_progress (23 runs listed, none concluded failure; skipped opt-in ones only).",
      "dogfood_battery": "n/a: no ! in the PR title and Clause-②: no without a (narrowing) arm",
      "mcp_calls": "5, read-only: issue_read x2 (get, get_comments on #34706), pull_request_read x3 (get_reviews #34666, get #34883, get_check_runs #34929); no write tool",
      "api_writes": "2: fleet-write relay pr_create (POST pulls, opened #34929 draft, assignee os-support-ai, read-back identical 11360 bytes); post-stamped comment on #34706 (this report). git push is not REST.",
      "deviations": "(1) The branch's commits (WIP commits and a merge of origin/main) carry no Co-Authored-By/Claude-Session trailer pair. An attempt to replace them with one trailered commit of the identical tree via a --force-with-lease push (all five branch conditions held, no PR open yet) was denied by the auto-mode classifier; not retried by another route. Landed via queue squash or seat decision. (2) The derived gate `pnpm --dir ui exec vitest run scripts/` ran outside os-verify-lock inside the sequential gate runner. (3) A first broad ui run (whole app-shell views dir) was stopped by the background time limit; replaced by the two narrowed runs above.",
      "open_questions": [],
      "security_findings": "none",
      "out_of_scope_findings": [
        "carrier: PR #34883 (draft, sec2 lane) · noted, not filed: it makes the same refusal unconditional and adds decline; if it lands, accept_invitation's ai.description loses its 'while this deployment delivers email' clause and reject_invitation's description owes the condition. The console routing here is code-keyed, so a refused inbox decline already goes to verification.",
        "carrier: none · noted, not filed: a deployment that sets emailVerification.sendOnSignUp false while requiring verification shows 'We sent' after sign-up though nothing was sent (pre-existing, unchanged by this PR, no reach measured).",
        "carrier: none · noted, not filed: i18n-locale-en eager headroom is 143 bytes after this PR; #34925 also adds English keys."
      ]
    }
  9. objectstack-fleet commented on Nov 17, 2026

    @objectstack-fleet
    ContributorAuthor

    repo:objectstack#3 · os-support-ai · session_01WGufzfrh8TiPJf1i2kMSoa

    Claim amendment (area o3-H) · 2026-11-17T16:58Z

    Amends claim 6951290353, File surface: line, for PR #34929 (L1-d REWORK M1, comment 6954916178):

    File surface (added):

    • ui/apps/console/src/pages/auth/RegisterPage.tsx (the sent=1 arrival mark item 2's copy split reads);
    • ui/apps/console/src/pages/auth/verifyEmailPromptQuery.ts (new; the page's query reader);
    • ui/packages/app-shell/src/console/organizations/orgErrorMessage.ts (beside reusing isAcceptNeedsVerifiedEmail, it gains the verifyEmailPromptPath / invitationVerifyEmailPromptPath builders both refusal legs share);
    • the existing shared harness files ui/apps/console/src/pages/auth/__tests__/handoffVerificationMail-30157.test.tsx, ui/apps/console/src/pages/auth/__tests__/verificationCallback-10893.test.tsx, ui/packages/app-shell/src/hooks/__tests__/useConsoleActionRuntime.apiActionDoor-27611.test.tsx and ui/packages/app-shell/src/views/RecordDetailView.apiActionDoor-27611.test.tsx, per AGENTS.md's shared-harness rule (ruling record 6583487846), which outranks the claim's "card-named tests" wording.

    Nothing else in the claim changes (Clause-②: no, Metadata-protocol: none, Fixes #34706).

  10. removed
    pm:dispatched
    on Nov 17, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

bugdomain:uifindingpriority:p1

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions