Repository navigation
Closed
Labels
bugSomething isn't workingdomain:serverDomain lane — seat card indexed by label:pm:seatfindingRecorded observation — held, not dispatchable until the findings triage round grades itpriority:p2Medium: important, M3
Description
repo:objectstack#2 · os-steve · session_01ADHkmSYVw1sqCsaHSJS9JC
Filing gate ①: an open question from the dev report on #33187 (comment 6938771548, PR #34647), ruled by seat repo:objectstack#2 for option B; filed by area o2-B. Dedupe: alreadyPending re-add email, pendingAgain, add_sso_user already pending: no other card. The seat knocks triage.
Suggested-grade: p2 · domain:server
Blocked-by: #34531
维护者速读
- 现象:托管环境「设置 → 用户 → 添加用户」只填邮箱、重加一个已在等激活的人时,结果弹窗和正常新加完全一样,看不出「此人已在等激活」。
- 原因:门
sys_user.add_sso_user(plugin-authrunAddSsoUser)每次都回alreadyPending,新加时为false。结果弹窗的契约没有「条件显示」,读它的任何字段都会在每次正常新加时画出一行误导的「false」,维护者裁决 A(6915677641)不接受这一行。 - 需要你做的:无。新键名由席位按先例定。
Change
- plugin-auth
runAddSsoUser(packages/plugins/plugin-auth/src/pending-sso-users.ts): on a re-add of an address that is already pending, the answer gains one key that is present only then, with the valuetrue(name settled by the seat from precedent; the dev cites the precedent on this card).alreadyPendingstays as it is, so the change only widens the answer. sys_user.add_sso_user(packages/platform-objects/src/identity/sys-user.object.ts): oneresultDialogfield reads that key. The dialog already skips a field whose path resolves to nothing, so the row appears exactly on a re-add.- Real-answer alignment pin (from the same report, open question 4): a case in
pending-sso-users.test.tsstages the doors and asserts that the first segment of every column path ofsys_user.import_sso_users'stablefield (PR feat(app-shell): the action result dialog draws table answer fields, and Import Users shows its result per row #34647) is a member of a real row answer. - Root
.changeset/.
Done when
- A door test pins the new key: present and
trueon an email-only re-add of a pending address, absent on a fresh add. - A
sys_usertest pins the new field, and its ablation turns red. - The alignment pin above is green, and removing a column path's member from the staged answer turns it red.
- The released Managed environments: re-show the add-people actions in Setup → Users (reverse #25295 / #25309's visible predicates for adding) #33186 sentence "The Add User result names an address that was already pending" (
packages/platform-objects/CHANGELOG.md18.5.0, entry 2e1e3b9) is true once this lands; the PR says so. If this card is declined, a docs-only PR amends that entry instead. - Serial: after PR feat(plugin-auth): import-users assigns positions from a
positionscolumn #34531 (area o2-D) merges, since it holdspending-sso-users.ts.
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingdomain:serverDomain lane — seat card indexed by label:pm:seatfindingRecorded observation — held, not dispatchable until the findings triage round grades itpriority:p2Medium: important, M3
Activity
objectstack-fleet commentedon Nov 17, 2026
triage#1 · hotlong · session_01Q4EjjMnyLqJdzuktEmRPXH
Path: none
Triage: first touch → p2 ·
domain:server·pm:queue· 2026-11-17T05:00Z⛔ Not a claim.
positionscolumn #34531 is a PR that merged today at 03:27, so the card goes straight to the queue.objectstack-fleet commentedon Nov 18, 2026
triage#1 · hotlong · session_01Q4EjjMnyLqJdzuktEmRPXH
Regraded p2 → p1 by the maintainer's grading principle of 2026-11-18, accepted in triage's session (「刚才你建议的分级调整,我全部接受」).
The principle, in order:
Why this card: hosted onboarding: re-adding a pending person by email gives no notice.
objectstack-fleet commentedon Nov 18, 2026
repo:objectstack#1 · os-warren · session_01JQwxbYRqkDAGuse5Wqbohi
Claim: PM loop round 1 · area o1-B · 2026-11-18T07:57Z
Session:
session_01JQwxbYRqkDAGuse5WqbohiAccount:
os-warrenBranch:
claude/issue-34651-add-user-already-pendingWorktree:
objectstack-issue-34651Domain:
domain:serverSeat:
repo:objectstack#1File surface:
packages/plugins/plugin-auth/src/pending-sso-users.ts(runAddSsoUseranswer: one key present only on a re-add of a pending address),packages/plugins/plugin-auth/src/pending-sso-users.test.ts(door pin and the real-answer alignment pin forsys_user.import_sso_users'stablecolumns),packages/platform-objects/src/identity/sys-user.object.ts(oneresultDialogfield onadd_sso_user) and its test, the field's label through the platform-objects translation keys if the dialog's other fields have them, root.changeset/.Container & model:
S,mode:subagent,model: TIER_DEFAULT (dispatch-gates --tier: no path-derived mandate; no packages/spec path),effort: mediumClause-②: yes
Metadata-protocol: none
Responsibility:
objectstack server: Add User on a managed environment says nothing when an email-only re-add hits a pending person | the door answers alreadyPending on every add, and a resultDialog field reading it would print false on each fresh add (ruling A 6915677641 refuses that row) | admins adding people in Setup → Users on a hosted environmentThread-read: 6969710529
Premise: holds by the area's read of origin/main 3446f23:
pending-sso-users.ts:623answersalreadyPending: outcome.alreadyPendingon every add, and nothing in the answer is present only on a re-add. The dev re-measuressys_user.add_sso_user'sresultDialogand that the dialog skips a field whose path resolves to nothing.Serial constraints cleared: blocker PR #34531 merged (triage 6938946687). Area o1-A's open PRs #35093, #35124, #35102, #34978 touch none of these files; the only open PR naming
pending-sso-usersis #34738 (os-steve, draft), which does not change it.overlap-check.mjsbefore each push.Pre-claim lane:
packages/plugins/plugin-auth/**,packages/platform-objects/**→domain:server; outside area o1-B'sui/**roots, taken intoo1-Bby seat 1 (o1-A's slots go to #35142), because this card blocks o1-B's #33187.Pre-claim deps:
Blocked-by: #34531mergedPrior rulings read: ruling A 6915677641 (no misleading
falserow in the result dialog); new key names are seat discretion from precedent (the dev cites the precedent in the PR);Clause-②: yes: the answer gains a key, nothing removed, a TIER_DEFAULT contract record is owed; thread: 6969710529Lease:
lease:o1-Bobjectstack-fleet commentedon Nov 18, 2026
repo:objectstack#1 · os-warren · session_01JQwxbYRqkDAGuse5Wqbohi
os-dev-report
{ "issue": 34651, "status": "done", "branch": "claude/issue-34651-add-user-already-pending", "pr": "https://github.com/objectstack-ai/objectstack/pull/35162", "head_sha": "0ad415bbcc4163a7c5d2af4f9061427be9af3e9c", "session": "session_01JQwxbYRqkDAGuse5Wqbohi", "premise_still_valid": true, "summary": "Premise re-measured on origin/main 3446f234f3: runAddSsoUser answered alreadyPending on every add and nothing was present only on a re-add; the Console result dialog drops a field whose readPath resolves to undefined (ActionResultDialog.tsx, the fields useMemo filter `field.path === '' || value !== undefined`). The add door now answers pendingAgain: true only when outcome.alreadyPending (never false; alreadyPending unchanged), and sys_user.add_sso_user's resultDialog gains { path: 'pendingAgain', label: 'Already pending', format: 'json' }, translated in the ten platform-objects bundles the way its sibling fields are (resultDialog.fields.PATH). Name precedent: the parent's dev report 6938771548 open question 1 option B ('for example pendingAgain: true'), ruled B by the seat when it filed this card, plus this answer's own re-add-only notApplied and the repo's flag-present-only-when-true shape (servedOverride, truncated). The released platform-objects 18.5.0 sentence (entry 2e1e3b9) 'The Add User result names an address that was already pending' becomes true for an email-only re-add once this lands; the PR says so.", "tests": "Head 0ad415bbcc. Door pin (pending-sso-users.test.ts, [#34651] add-sso-user ...): email-only re-add 200 with pendingAgain true; CONTROL fresh add 201 without the property. Alignment pin ([#34651] the import result table reads members of a real row answer): stages a fresh add with an unknown manager, a malformed address and a re-add sending a column; every first segment of import_sso_users table column paths is a member of a real row. sys_user pin (cloud-managed-visibility.test.ts): one field reads pendingAgain (label, format), CONTROL no field reads alreadyPending. plugin-auth vitest run: 285 files, 5997 passed, 10 skipped (VERDICT command-exit 0); platform-objects vitest run: 123 files, 2047 passed (VERDICT command-exit 0); typecheck both packages VERDICT command-exit 0. Ablations via scripts/ablation-replace.mjs (source imports, no dist step): A1 door key deleted -> 1 failed / 2 passed (re-add pin red, controls green); A2 sys_user field deleted -> 1 failed / 1 passed; A3 notApplied member deleted from the import row answer -> alignment pin red ('expected [ notApplied ] to deeply equal []'); each leg restored, blob == HEAD and git diff HEAD empty.", "gates": "dispatch-gates --commands --repo objectstack-ai/objectstack derived 73 on 0ad415bbcc (merge base 3446f234f); each run with stdin closed, exit captured before any pipe: 72 exit 0 (check-plugin-teardown-shape --self-test first exit 3 on a missing fixture commit, exit 0 after a depth-1 fetch of 621a4876); NOT MEASURED: pnpm check:dual-build-cjs-loads exit 3, PREREQUISITE NOT MET (whole-workspace build), declared narrowing, CI Lint & Repo Gates carries it. --ran (with exit codes): '73 derived famil(ies) accounted for — 72 run, 1 NOT-MEASURED (1 DERIVED from a recorded exit 3)'. check-i18n-bundles --filter=platform-objects exit 0. overlap-check exit 0 'VERDICT clean' (origin/main 348340734a and #34717). CI on the PR: not read at report time (in_progress); PM reads convergence.", "dogfood_battery": "n/a — no `!` in the PR title and no (narrowing) arm", "line_budget": "n/a — no skills/** or ratcheted ledger touched", "files_changed": [ ".changeset/34651-add-user-already-pending.md", "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 (11 files, one key each)", "packages/platform-objects/src/identity/cloud-managed-visibility.test.ts", "packages/platform-objects/src/identity/sys-user.object.ts", "packages/plugins/plugin-auth/src/pending-sso-users.test.ts", "packages/plugins/plugin-auth/src/pending-sso-users.ts" ], "deviations": [ "Shared clone deepened: git fetch --deepen=1500 origin main (overlap-check refused exit 3 on a shallow merge base) and a depth-1 fetch of 621a4876 (teardown self-test fixture).", "check:dual-build-cjs-loads NOT MEASURED locally (needs a full workspace build); declared narrowing.", "pr_create sent without a draft key: the relay refuses the key and forces draft true; read back draft true.", "Label 'Already pending' rather than the import table's 'Already pending, told again': a deactivated pending re-add also answers pendingAgain while no invitation is sent; translations taken from each locale's existing 'already pending' half and hand-written into the generated bundles (generator merge mode keeps them; check:i18n green).", "Commit trailers are the model-free pair AGENTS.md requires, not the harness reminder's model-named trailer." ], "mcp_calls": "0", "api_writes": "2 — pr_create via scripts/pm/fleet-write/dispatch.mjs (relay run 44271236297, PR #35162, assignee os-warren, no labels, read-back 8386 bytes identical); this os-dev-report comment on #34651 via scripts/pm/post-stamped.mjs. Also git push (not REST).", "open_questions": [], "security_findings": "none", "out_of_scope_findings": [ "class: a · reach: named producer sys_user.import_sso_users (column alreadyPending and summary.alreadyPending both labelled 'Already pending, told again') · evidence: addOnePendingPerson answers alreadyPending true with host { notified: false, reason: 'deactivated' } for a deactivated pending person (pinned at pending-sso-users.test.ts describe [#33228] 're-adding a deactivated pending person does not invite them'), so the import table draws 'Already pending, told again: true' beside 'Why not told: deactivated' on that row · dedupe: told again deactivated, import already pending label, Already pending told again, deactivated re-add import", "carrier: none · content/docs/permissions/authentication.mdx line 1340 describes the add door answer without pendingAgain (still true, outside file surface) · noted in Acceptance notes, not filed" ] }objectstack-fleet commentedon Nov 18, 2026
triage#1 · hotlong · session_01Q4EjjMnyLqJdzuktEmRPXH
Regraded p1 → p2: p1 is now kept for queue jumps. The maintainer, in triage's session: 「以后我都会要求专门作有一个专题…p1 是不是应该留给真的需要插队的」. He then confirmed triage's review of every open p1 (「确认」). Development is dispatched by epic, and an epic orders its own work. p1 is kept for cards that must jump ahead of it: a regression users meet in a released version, a broken hosted first impression or core flow, data loss or a breach in normal use, or a release or customer blocker.
Why this card: a message detail in Add User (re-adding a pending person); not a queue jump. Any claim on the card is unchanged.
objectstack-fleet commentedon Nov 18, 2026
repo:objectstack#1 · os-warren · session_01JQwxbYRqkDAGuse5Wqbohi
Closed by merge · 2026-11-18T09:52Z
PR #35162 merged through the queue as
d053c7d8e8;Fixes #34651closed this card. Close-out by area o1-B (claim 6972612725, TIER_DEFAULT contract record 6973921268 PASS, L1-a ACCEPT 6974399045, landing 6974424934).pm:dispatchedandlease:o1-Bremoved. Follow-up filed: #35164 (p3, the import table's "Already pending, told again" label for a deactivated person, plus the 18.5.0 changelog clause). #33187's blocker is now cleared; it stays unclaimed per the maintainer's 08:54Z priority (no new cards outside #35159).