Skip to content

Invite outcome messages: the no-mail hand-over matches the verified-address rule (follow-up to #34883) #34889

Closed

Description

@objectstack-fleet

security#2 · os-justin · session_01QSeKYn5CmmdShCJifm6WYj

Follow-up owed by #34883, from contract review S2. Text only.

Rule after #34883: accepting, declining and listing invitations require a verified address. A deployment without live mail therefore cannot complete invitation onboarding for an invitee whose account no provider has verified. The platform admin creates the account instead (see content/docs/deployment/self-hosting.mdx).

Out of date:

  • packages/platform-objects/src/identity/invite-outcome-messages.ts (around :24 and :32) still answers every invite and resend on a no-mail deployment with "Use Copy Invite Link on the invitation to share it."
  • Its generated translations carry the same text.

Done when:

  • The no-mail invite and resend outcomes state the rule above and point at the operator path, matching the docs.
  • The translations are regenerated.
  • No behaviour changes.

Land after #34883.

Activity

  1. objectstack-fleet commented on Nov 17, 2026

    @objectstack-fleet
    ContributorAuthor

    triage#1 · hotlong · session_01Q4EjjMnyLqJdzuktEmRPXH

    First touch (R1198, 15:5xZ): p2 · domain:server → pm:queue.

    Theme: performance and security (follow-up of the security change #34883). On a no-mail deployment, the outcome message still tells the admin to share a copy link, which an unverified invitee can no longer use. That is a user-visible wrong instruction, not pure wording, so p2.

  2. added
    domain:server
    pm:queue
    priority:p2
    on Nov 17, 2026
  3. objectstack-fleet commented on Nov 19, 2026

    @objectstack-fleet
    ContributorAuthor

    repo:objectstack#5 · os-bill · session_01Utp6CZiaBg6rk7dpy1s9Me

    Claim: PM loop round 1 (area-lease ux-3 of repo:objectstack#5; the maintainer, verbatim, 2026-11-19T00:07Z: 「接手 area:ux」「优先 p1 p2」) · 2026-11-19T00:12Z
    Session: session_01Utp6CZiaBg6rk7dpy1s9Me
    Account: os-bill
    Branch: claude/issue-34889-identity-outcome-copy
    Worktree: objectstack-issue-34889 (os-dev worktree in the ux-3 container)
    Domain: domain:server
    Seat: repo:objectstack#5
    File surface: packages/platform-objects/src/identity/{invite-outcome-messages,sys-invitation.object,sys-user.object}.ts, packages/platform-objects/src/apps/translations/*.objects.generated.ts (regenerated), packages/platform-objects/CHANGELOG.md (the 18.5.0 sentence #35164 names), tests, changeset. Stop on breach and report.
    Container & model: S, mode:subagent, model: default — no path-derived mandate, effort: high
    Clause-②: no
    Metadata-protocol: none
    Responsibility: platform — packages/platform-objects produces both sentences (objectstack); no other path covers them; every admin on a no-mail deployment (this card) and every admin importing a deactivated pending person (#35164) reads them.
    Thread-read: 6953077196
    Premise: holds — invite-outcome-messages.ts :24 and :32 still say "Use Copy Invite Link on the invitation to share it." on main cdb327f; #34883 merged 2026-11-17.
    Serial constraints cleared: fold with #35164 (chain head = this card; five gates: ① one defect shape, an identity outcome sentence states what is not true, one fix: rewrite it at its producer and regenerate translations; ② one package platform-objects, one worktree, one changeset; ③ both graded p2, no decision box; ④ each checkable on its own sentence; ⑤ excluded: #34863 / #34212 / #34660, refusal envelopes in other packages, not copy in this package). Open draft #34717 (security lane) touches sys-user.object.ts and the generated translations: overlap-check runs before the first push, queue behind it on a textual conflict.
    Lease: lease:ux-3
    Pre-claim lane: server — packages/platform-objects/src/identity/** (domain:server); no ui/** or packages/spec/** path.
    Pre-claim deps: Land after #34883 → #34883 merged 2026-11-17T17:53Z.
    Prior rulings read: #34883 (verified-address rule) and content/docs/deployment/self-hosting.mdx (operator path); no ADR names these sentences; reverse pins: none assert the old sentence outside the producer files (grep "Copy Invite Link").

  4. added
    pm:dispatched
    and removed
    pm:queue
    on Nov 19, 2026
  5. objectstack-fleet commented on Nov 19, 2026

    @objectstack-fleet
    ContributorAuthor

    repo:objectstack#5 · os-bill · session_01Utp6CZiaBg6rk7dpy1s9Me
    os-dev-report

    {
      "issue": 34889,
      "folded": [35164],
      "status": "done",
      "branch": "claude/issue-34889-identity-outcome-copy",
      "pr": "https://github.com/objectstack-ai/objectstack/pull/35274",
      "head": "ffa2ad230ccdf712106b653eb18bc6a578ba9ac3",
      "docs_pr": "https://github.com/objectstack-ai/objectstack/pull/35275 (branch claude/issue-35164-changelog-18-5-0, head 08a217f2e901d2f5805c0c665593be77aa2346e7, label skip-changeset, body 'Part of #35164')",
      "session": "session_01Utp6CZiaBg6rk7dpy1s9Me",
      "premise_still_valid": true,
      "summary": "Resumed after a container restart. #34889: the link_only outcome of the four invite_user mirrors and resend_invitation no longer sends the admin to Copy Invite Link; it states the verified-address rule, the social/SSO exception and the operator path (a platform administrator creates the account), matching self-hosting.mdx; no behaviour change. #35164: import_sso_users labels summary.alreadyPending and the alreadyPending column 'Already pending'; 'told' stays with the host columns. en regenerated by the generator, ten locales translated; one patch changeset. The released 18.5.0 CHANGELOG sentence is amended in a separate docs-only PR #35275, because AGENTS.md makes packages/*/CHANGELOG.md release-owned (never in a code PR). This run added one test per card, merged origin/main once, and opened both drafts.",
      "tests": "At head ffa2ad230c: platform-objects test + typecheck under os-verify-lock: 'Test Files 123 passed (123)', 'Tests 2050 passed (2050)', 'check:test-typecheck: OK', VERDICT command-exit 0. New cases: invitation-delivery-copy.test.ts (link_only of invite_user and resend_invitation contains no Copy Invite Link label, en and every translated bundle, every mirror); cloud-managed-visibility.test.ts (alreadyPending field and column read 'Already pending', host column keeps 'told'). Ablation via scripts/ablation-replace.mjs (source resolved by relative import, no dist leg): old sentence back in both link_only copies -> 2 failed / 38 passed, restored blob eeee13932622 == HEAD, git diff HEAD empty; 'Already pending, told again' back on the column -> 1 failed / 62 passed, restored blob bd5c430eb155 == HEAD. Bundles at cdb327fd hold each locale's translated label 6 times (label + five link_only copies), so the translated leg would have been red too.",
      "gates": "Local, head ffa2ad230c: closure build pnpm --filter '@objectstack/platform-objects^...' build VERDICT command-exit 0. dispatch-gates --commands derived 67; 66 exit 0 (incl. check:i18n 'all bundles in sync', check:i18n-stale-fill, check:nul-bytes, check:doc-authoring, check:published-files, check:empty-changeset, check:adr-0087-registration); 1 NOT MEASURED: pnpm check:dual-build-cjs-loads exit 3 PREREQUISITE NOT MET (needs every package dist; CI runs it). dispatch-gates --ran: '67 derived famil(ies) accounted for — 66 run, 1 NOT-MEASURED', exit 0. overlap-check --branch=claude/issue-34889-identity-outcome-copy: run before the first push of this run and before the last push, both 'VERDICT clean exit 0' against origin/main e8a78c4bd and #34717 (shares sys-user.object.ts + 11 translation bundles, merges cleanly). PR #35274 check-runs at report time: all gate-carrying runs in_progress (Lint, Type Check, Check Changeset, Governed Surface Queue Guard, PR-body guards); opt-in and queue-only runs skipped. test:repo and the full farm are CI's.",
      "dogfood_battery": "n/a — no '!' in the PR title and no (narrowing) arm",
      "line_budget": "PR #35274: +143 / -81 = 224 changed lines, 17 files; PR #35275: +1 / -1, 1 file",
      "files_changed": ".changeset/34889-identity-outcome-copy.md; packages/platform-objects/src/identity/{invite-outcome-messages,sys-invitation.object,sys-user.object}.ts; packages/platform-objects/src/identity/{invitation-delivery-copy,cloud-managed-visibility}.test.ts; packages/platform-objects/src/apps/translations/{ar,de,en,es-ES,fr,ja-JP,ko,pt-BR,ru,zh-CN,zh-Hant}.objects.generated.ts; docs PR: packages/platform-objects/CHANGELOG.md",
      "readings": {
        "A1": "'Copy Invite Link' in content/docs/releases/v18/18-3.mdx:457 is the expired-invitation gate note, still true: left as released. self-hosting.mdx (around :789-800) already states the verified-address rule and the operator path: confirmed, unchanged. Other hits are released CHANGELOGs (left), the producer, and a ui test fixture plus a QA checklist row (Acceptance notes).",
        "A2": "plugin-auth/src/auth-route-ledger.ts:263 describes the add-sso-user route ('the host is told again, unless the person is deactivated'): accurate, does not quote this label. plugin-audit mention-recipient-gate.integration.test.ts:594, cli cloud-login test and ui queryDataset.test.ts use 'told again' in unrelated senses. Unchanged."
      },
      "deviations": [
        "Branch was already pushed at 379ae69ac when this run started (the resume note said unpushed).",
        "Fold rule 'one commit per card' not held exactly: folding the new tests into the two card commits needed a force-with-lease push (all five AGENTS.md section 3 conditions held), which the auto-mode classifier refused; not retried. The branch went forward instead: per card one fix commit + one test commit, then one merge of origin/main.",
        "CHANGELOG 18.5.0 sentence: the dispatch and claim put it in this PR; AGENTS.md Documentation Guardrails (binding) say a released entry is amended only in a dedicated docs-only PR. Done as PR #35275 ('Part of #35164'; #35274 keeps 'Fixes #35164'). This added writes beyond the budget: 1 extra git push, 1 extra pr_create.",
        "The harness attribution note asked for a model-named Co-Authored-By trailer and a different PR footer. Followed AGENTS.md: the model-free trailer pair and the session-URL footer."
      ],
      "mcp_calls": "0",
      "api_writes": "3 relay/REST writes: 1 repository_dispatch (fleet-write stroke fw-20261119T011441Z-d0ff1b, run 44435414557 success) carrying 2 pr_create (POST /repos/objectstack-ai/objectstack/pulls x2, POST /issues/35274/assignees, POST /issues/35275/assignees, POST /issues/35275/labels [skip-changeset]); this report comment POST /issues/34889/comments via post-stamped. Plus 2 git pushes (not REST).",
      "open_questions": [],
      "security_findings": "none",
      "out_of_scope_findings": [
        "carrier: none · noted, not filed: docs/qa/platform-checklist/areas/ux-conventions.json invite-outcome row quotes the old link_only sentence verbatim as the expected toast; a checklist run on a no-mail deployment will now read the new text (in #35274 Acceptance notes).",
        "carrier: none · noted, not filed: ui/packages/app-shell/src/views/ObjectView.inviteOutcome-27797.test.tsx keeps a local LINK_ONLY_TAIL fixture with the old sentence; a test-local fixture, not a pin on the producer, stays green (in #35274 Acceptance notes)."
      ]
    }
  6. objectstack-fleet commented on Nov 19, 2026

    @objectstack-fleet
    ContributorAuthor

    repo:objectstack#5 · os-bill · session_01Utp6CZiaBg6rk7dpy1s9Me

    Close-out 2026-11-19T02:12Z: PR #35274 MERGED as 4026c44343; Fixes closed this card. Delivered: on a server without mail, the Invite User (four mirrors) and Resend Invitation link_only outcome states the verified-address rule and the operator path instead of "Use Copy Invite Link"; 11 bundles. Follow-up owed by the L1 ACCEPT: #35282 (QA checklist row and the ObjectView test fixture still quote the old sentence). pm:dispatched off.

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

Metadata

Metadata

Assignees

Labels

area:uxdomain:serverpriority:p2

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions