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
plugin-auth: the zh-CN invitation mail sent by the cloud control plane names the role in English (以 Member 的身份) and logs nothing — residual of #24154 #25802
area:i18nThe customer's own language, across UI, metadata and notificationsbugSomething isn't workingdomain:cloudTouches cloud: the whole card is the cloud PM's (repo:cloud seat); no objectstack lane claims itpriority:p3status:parkedParked — exempt from the PM sweep and half-state patrol until its owner migrates it (e.g. cloud PM)
Filing gate ① a reproduced defect (class a, public door: an organization invitation sent from the cloud console). reach: local stack, cloud main36b07fdf on framework pin 888d686 (which contains #24193, the fix for #24154), 2026-10-25. The zh-CN invitation mail reads 「陈静(chenjing…)邀请您以 Member 的身份加入 ObjectOS Cloud 上的 静安家居设计。」: the role is the English label inside a Chinese sentence. The control-plane log carries no [AuthManager] invitation mail warning.
Batch-of: 10 · 2026-10-25 desktop E2E (signup · magic flow · invite), filed at the maintainer's request in session: 「必要的合理的建议都可以立卡」.
Business reason. The invitation mail is a colleague's first contact with the product. #24154 already ruled that the role must read 「成员」 in a Chinese mail. Today it reads Member instead of member, still English. Every hosted invitation in a non-English locale is affected, because they are all sent by the cloud control plane.
Reader who acts. The domain:server seat (plugin-auth). If the cause is the cloud control plane's i18n bundle registration, the seat hands the half to objectstack-ai/cloud.
Measured / where
plugin-auth/src/auth-manager-organization-plugin.ts:607 calls invitationRoleLabel(role, mailLocale.locale, { getI18n }). The template rendered in zh-CN, so mailLocale.locale was zh.
plugin-auth/src/invitation-role-label.ts: translateMetaList over getI18n() translates the sys_member.role options. When the service answers without a zh entry for those options, collect() keeps the authored English labels silently: only a thrown read warns. That matches the observation (Member, no warning).
The control plane registers I18nServicePlugin: registered file-based i18n adapter (default: en). Whether its bundles include platform-objects' zh labels for sys_member is the first thing to read.
Expected
The zh-CN invitation names the role 「成员」. And when no translated label is found for the mail's locale, the function warns once, as it does for a thrown read, so this never ships silent again.
Dedupe
gh api search/issues, repos cloud / objectui / objectstack, incl. closed, invitation email Member role: 23 / 4 / 84. objectstack#24154 (closed completed 2026-10-17, PR #241938a88901b) is the same symptom with the stored value. Its fix is in this pin (compare 8a88901b...888d686 = ahead), and the mail still is not Chinese. That is a residual on a different path (the label read), not a regression of the value read. cloud#2435 (closed) listed the English remnants in the invitation mail as of 09-28.
Same template, same reader, one more gap, 2026-10-25T14:15Z: the auth.invitation mail never says when the link expires.
plugin-email/src/templates/auth-templates.ts:341-388: the variables (:353-367) are inviter / organization / role / acceptUrl / appName. There is no expiry variable.
The sender, plugin-auth/src/auth-manager-organization-plugin.ts:614-626, has invitation.expiresAt in hand and does not pass it.
The window is better-auth's organization-plugin default (48 h; measured sys_invitation.expires_at = created + 2 days). Neither objectstack nor cloud sets invitationExpiresIn.
So an invitation opened on day 3 dies at the accept page with no warning in the mail. Suggest folding it into the same PR: pass expiresAt and render 「此邀请将于 {date} 过期」 / "This invitation expires on {date}" in each locale body. Measured on the 2026-10-25 local E2E (cloud 36b07fdf, framework pin 888d686).
Claim: PM loop round 2 · card thread
Session: session_0186vfjHHMsRXC9EUT9hTFMo (the seat); the card thread is session_011Ed1XCLEcJnL1JmrzvGgmW
Account: os-project-manager (the seat's linked user; the card's assignee)
Branch: claude/project-thread-r7o1xi (the card thread's harness-pinned branch; it names no issue, so this claim is the identity record)
Worktree: the card thread's own container checkout
Domain: domain:server
Seat: domain:server#2
Ruling-ref: #24154's ruling (the role in a Chinese invitation reads 「成员」) and the card's two fixes, the label read with a warn-once on a missing translation and the expiry line from comment 6398750019; intake of a p3 card rides the maintainer's 「p1 p2 处理完了,就可以处理 p3」 (2026-10-26T10:29Z): the lane's p1/p2 queue has no dispatchable card at this act
File surface: packages/plugins/plugin-auth/src/invitation-role-label.ts, packages/plugins/plugin-auth/src/auth-manager-organization-plugin.ts (the invitation sender), packages/plugins/plugin-email/src/templates/auth-templates.ts, their tests, one changeset; a cloud half, if measured, is reported to the seat and not edited here. ⛔ No packages/spec/** (stop on breach; explain in the report)
Container & model: S, mode:thread, default model and effort (set at thread open)
Clause-②: no (expected; a new optional template variable is additive; the dev measures)
Metadata-protocol: none
Responsibility: unmeasured; the first act is the measurement the order names (do the shipped zh labels reach invitationRoleLabel)
Thread-read: 6398750019
Premise: holds (read 2026-10-26T10:35Z at origin/main: card open, unassigned, pm:queue, no claim on the thread)
Serial constraints cleared: no open PR names #25802; no in-flight lane claim declares this file surface (read across seat 1's claims and its split note at this act); the dev re-measures open PRs on its surface before pr_create
{
"issue": 25802,
"status": "done",
"branch": "claude/project-thread-r7o1xi",
"pr": "https://github.com/objectstack-ai/objectstack/pull/26072",
"session": "session_011Ed1XCLEcJnL1JmrzvGgmW",
"premise_still_valid": true,
"summary": "Both card fixes in one draft PR at head 3428de57. (1) invitationRoleLabel now warns once per send when a non-English mail's role label is still the authored English text (no i18n service, no bundle for the locale, or locales that omit it); the thrown-read and out-of-list warns are not duplicated, en mails stay silent, the mail always goes. (2) The sender passes invitation.expiresAt as an optional ISO-8601 template variable expiresAt; all four auth.invitation rows, HTML and text, end with one sentence rendering it via the existing datetime:long formatter (row locale, send timezone, zone named). Measurement: objectstack ships zh-CN sys_member.role labels and a LiteKernel with the real I18nServicePlugin (file-based adapter) + PlatformObjectsPlugin reads 成员; the reported Member-with-no-log reproduces only when the service's getLocales() omits zh-CN (supportedLocales ['en'] or ['en','zh']), so the remaining cause is the cloud control plane's i18n composition, reported to the seat, not filed. Card assignee untouched.",
"tests": "Red first at the base implementation (3 source files restored from bbf70614, tests kept): plugin-auth invitation-role-label.test.ts 5 failed / 19 passed; plugin-email auth-templates-locales + builtin-auth-render-identity + plain-text-faces 11 failed / 90 passed; restored from HEAD, git diff HEAD empty, blob hashes match. Green at 3428de57: pnpm --filter @objectstack/plugin-auth --filter @objectstack/plugin-email run test -> plugin-auth Test Files 197 passed, Tests 3752 passed 10 skipped; plugin-email Test Files 38 passed, Tests 695 passed; lock VERDICT command-exit 0. run typecheck on both (tsc + examples + check:test-typecheck) exit 0 after building both packages. pnpm exec eslint --no-inline-config on the 7 touched files exit 0. No ablation beyond the red-first base run (tests import src directly, no dist in the path). The byte-identity pin now renders with timezone UTC; only the four auth.invitation rows' digests moved.",
"gates": "dispatch-gates --commands --repo objectstack-ai/objectstack: 69 families; all run locally, exit codes captured before any pipe; --ran: 69 derived, 68 run, 1 NOT-MEASURED, 0 UNRUN. NOT MEASURED: pnpm check:dual-build-cjs-loads (exit 3, PREREQUISITE NOT MET, needs a full build). check-plugin-teardown-shape --self-test exit 3 on the shallow clone, then exit 0 (48 cases) after git fetch of control 621a4876. Families run at fa3b2d57; the last commit 3428de57 is test-only, re-derived list identical, ratchet/test families re-run there exit 0 (type-check-debt, type-check-coverage, test-source-alias, cross-package-test-inputs, nul-bytes, teardown self-test). CI check-runs: in_progress at report time, not awaited per contract.",
"dogfood_battery": "n/a — no ! in the PR title and no (narrowing) arm",
"mcp_calls": "0",
"api_writes": "2 — relay pr_create (POST pulls via fleet-write run 40312887718, PR 26072, assignee os-project-manager, body read back identical 8559 bytes); this os-dev-report comment via post-stamped. Plus 3 git pushes (not REST).",
"open_questions": [],
"out_of_scope_findings": [
"class: a (unfiled, no public-door reach) · reach: none measured, composed-kernel probe only · FileI18nAdapter.getTranslations('zh') answers {} (exact-key match) when supportedLocales declares 'zh' and the bundles are keyed zh-CN, while the kernel memory provider resolves zh to zh-CN, so the same declaration translates on one provider and not the other · dedupe words: FileI18nAdapter getTranslations base language, supportedLocales zh zh-CN, memory i18n negotiation",
"carrier: seat 2 (cloud half) · the cloud control plane's i18n composition (declared supportedLocales or bundle registration) is the measured remaining cause of the Member label; reported to the seat thread, not filed by the dev"
]
}
{
"issue": 25802,
"status": "done",
"branch": "claude/project-thread-r7o1xi",
"pr": "https://github.com/objectstack-ai/objectstack/pull/26072",
"session": "session_011Ed1XCLEcJnL1JmrzvGgmW",
"premise_still_valid": true,
"summary": "Patch round on the seat review (option A). Measured: without expiresAt every body dangled ('This invitation expires on .'), and the engine has no conditional form. expiresAt is now required:true on all four auth.invitation rows, so a send without it is refused with MISSING_VARIABLES: expiresAt and never rendered. On an unreadable expiry the sender omits it and warns once, naming the invitation id and saying the mail will be refused, so it can be resent. Changeset is now Clause-② no (narrowing), Metadata-protocol none, patch, with a BREAKING banner, a one-line fix and adr-0087 not-required (no-migration-prescription). Merged origin/main; head ee295b9b. The PR body was not edited (dev writes it once): the replacement body is project file pm-orders/server/26072-pr-body-v2.md, for the seat to write, which carries the new Clause-② line that Check Changeset reads. The TTL templates' same dangle (password_reset, magic_link, two_factor_otp with expiresInMinutes required:false) is left alone, named as a follow-up observation.",
"tests": "At ee295b9b: plugin-auth Test Files 197 passed, Tests 3753 passed 10 skipped; plugin-email Test Files 38 passed, Tests 699 passed (lock VERDICT command-exit 0). New pins: MISSING_VARIABLES refusal per locale with nothing sent; the sender warn naming inv1 plus the refusal; no warn on a readable expiry. All earlier pins kept (fixtures now carry expiresAt). typecheck on both packages exit 0; eslint --no-inline-config over the touched .ts files exit 0.",
"gates": "dispatch-gates --commands at ee295b9b: 69 families (the same set); all run there; --ran: 69 derived, 68 run, 1 NOT-MEASURED (check:dual-build-cjs-loads, exit 3, needs a full build), 0 UNRUN. Changeset gates on the committed narrowing changeset: check-adr-0087-registration exit 0 (accepts the exemption), check-changeset-no-major exit 0, check-empty-changeset exit 0. CI check-runs: not awaited.",
"dogfood_battery": "ee295b9b · os-verify-lock: VERDICT command-exit 0 · Test Files 296 passed, 3 skipped (299) · Tests 2523 passed, 18 skipped (2541) · no failures",
"mcp_calls": "0",
"api_writes": "1 this round — this os-dev-report comment via post-stamped (relay). Plus 2 git pushes. Earlier round: pr_create + first report.",
"open_questions": [],
"out_of_scope_findings": [
"class: none (observation, noted not filed) · reach: none measured · auth.password_reset, auth.magic_link and auth.two_factor_otp declare expiresInMinutes required:false yet print 'expires in {{expiresInMinutes}} minutes' unconditionally, so a send without it renders a dangling sentence; auth.account_invitation already declares it required · carrier: seat 2, follow-up observation",
"carrier: seat 2 (cloud half, routed via the coordinator) · the cloud control plane's i18n composition is the measured remaining cause of the Member label"
]
}
ACCEPT → PR #26072 comment 6416153408 (head 34331f6613, contract review 6416123051 PASS) · domain:server seat 2 · session_0186vfjHHMsRXC9EUT9hTFMo · 2026-10-26T12:36Z. The head is green; landing the in-repo half through the queue now. The PR is Part of this card: it stays open for the cloud control plane's i18n composition, routed to the cloud lane.
Cloud half filed · domain:server seat 2 · 2026-10-26T12:43Z: the hosted control plane's i18n composition is the parked cloud-lane card #26108, filed on the maintainer's word 「需要转给 cloud的,应该立 cloud 车道卡」. This card's in-repo half is PR #26072 (Part of, landing through the queue). This card stays open until #26108 is read.
PR #26072 merged at 2026-10-26T13:02Z by the merge queue as d284ff3f8c on main (Part of #25802; ACCEPT 6416153408, contract review 6416123051 PASS). · domain:server seat 2 · os-project-manager · session_0186vfjHHMsRXC9EUT9hTFMo · 2026-10-26T13:04Z
Landed: the invitation mail logs one warn when no translated role label is found for the mail's locale, naming the locale, the roles and what to check; and every built-in auth.invitation body states when the invitation expires (expiresAt, required on the built-in rows). The changeset is .changeset/25802-invitation-role-label-warn-and-expiry.md.
Triage: routed to the cloud PM — domain:server → domain:cloud · status:parked · triage seat · session_01AavokzJ5DndAwitDXvKy4U · 2026-10-27T14:53Z
⛔ Not a claim. Maintainer, 2026-10-27: 「一个issue只要涉及 cloud ,就归 cloud pm 处理」 (rule card #26762).
Why this card involves cloud: its cause may sit in the cloud control plane's i18n bundle registration (every hosted invitation is sent by the control plane), and the card already names the hand-off to objectstack-ai/cloud.
No objectstack lane claims it now. The cloud PM decides where each half lands; any objectstack half it hands back comes back here with a fresh card. The grade stands.
Cloud seat 2: closing as done (2026-10-29T02:16Z). This is the same symptom as #26108: a zh-CN invitation from the control plane named the role in English. The cause was cloud's invitation-locale wrapper, fixed in objectstack-ai/cloud#3339 (merged). The staging acceptance read is tracked on objectstack-ai/cloud#3342. No plugin-auth change is needed.
Verified fixed end to end, 2026-10-29T05:47Z: local stack on cloud main90e673e8 (cloud#3362, framework pin eef83734; carries cloud#3339). The owner invited a member from the cloud home's 「邀请成员」 in a zh-CN session. The invitation mail stored by the control plane (sys_email) reads:
The role is the Chinese label (was 「Member」 on pin 6390fe52 / cloud 3cc587ca, 2026-10-27), and the expiry line from the 2026-10-25 comment is present. Nothing left to observe on this path from the E2E side; closing is the owning seat's call.
area:i18nThe customer's own language, across UI, metadata and notificationsbugSomething isn't workingdomain:cloudTouches cloud: the whole card is the cloud PM's (repo:cloud seat); no objectstack lane claims itpriority:p3status:parkedParked — exempt from the PM sweep and half-state patrol until its owner migrates it (e.g. cloud PM)
Activity
objectstack-fleet commentedon Oct 25, 2026
Same template, same reader, one more gap, 2026-10-25T14:15Z: the
auth.invitationmail never says when the link expires.plugin-email/src/templates/auth-templates.ts:341-388: the variables (:353-367) are inviter / organization / role / acceptUrl / appName. There is no expiry variable.plugin-auth/src/auth-manager-organization-plugin.ts:614-626, hasinvitation.expiresAtin hand and does not pass it.sys_invitation.expires_at= created + 2 days). Neither objectstack nor cloud setsinvitationExpiresIn.So an invitation opened on day 3 dies at the accept page with no warning in the mail. Suggest folding it into the same PR: pass
expiresAtand render 「此邀请将于 {date} 过期」 / "This invitation expires on {date}" in each locale body. Measured on the 2026-10-25 local E2E (cloud36b07fdf, framework pin888d686).objectstack-fleet commentedon Oct 26, 2026
Claim: PM loop round 2 · card thread
Session:
session_0186vfjHHMsRXC9EUT9hTFMo(the seat); the card thread issession_011Ed1XCLEcJnL1JmrzvGgmWAccount:
os-project-manager(the seat's linked user; the card's assignee)Branch:
claude/project-thread-r7o1xi(the card thread's harness-pinned branch; it names no issue, so this claim is the identity record)Worktree: the card thread's own container checkout
Domain:
domain:serverSeat:
domain:server#2Ruling-ref: #24154's ruling (the role in a Chinese invitation reads 「成员」) and the card's two fixes, the label read with a warn-once on a missing translation and the expiry line from comment
6398750019; intake of a p3 card rides the maintainer's 「p1 p2 处理完了,就可以处理 p3」 (2026-10-26T10:29Z): the lane's p1/p2 queue has no dispatchable card at this actFile surface:
packages/plugins/plugin-auth/src/invitation-role-label.ts,packages/plugins/plugin-auth/src/auth-manager-organization-plugin.ts(the invitation sender),packages/plugins/plugin-email/src/templates/auth-templates.ts, their tests, one changeset; a cloud half, if measured, is reported to the seat and not edited here. ⛔ Nopackages/spec/**(stop on breach; explain in the report)Container & model:
S,mode:thread, default model and effort (set at thread open)Clause-②: no (expected; a new optional template variable is additive; the dev measures)
Metadata-protocol: none
Responsibility: unmeasured; the first act is the measurement the order names (do the shipped zh labels reach
invitationRoleLabel)Thread-read: 6398750019
Premise: holds (read 2026-10-26T10:35Z at
origin/main: card open, unassigned,pm:queue, no claim on the thread)Serial constraints cleared: no open PR names #25802; no in-flight lane claim declares this file surface (read across seat 1's claims and its split note at this act); the dev re-measures open PRs on its surface before
pr_createGenerated by Claude Code
objectstack-fleet commentedon Oct 26, 2026
os-dev-report
Generated by Claude Code
objectstack-fleet commentedon Oct 26, 2026
os-dev-report
Generated by Claude Code
objectstack-fleet commentedon Oct 26, 2026
ACCEPT → PR #26072 comment 6416153408 (head
34331f6613, contract review 6416123051 PASS) ·domain:serverseat 2 ·session_0186vfjHHMsRXC9EUT9hTFMo· 2026-10-26T12:36Z. The head is green; landing the in-repo half through the queue now. The PR isPart ofthis card: it stays open for the cloud control plane's i18n composition, routed to the cloud lane.Generated by Claude Code
objectstack-fleet commentedon Oct 26, 2026
Cloud half filed ·
domain:serverseat 2 · 2026-10-26T12:43Z: the hosted control plane's i18n composition is the parked cloud-lane card #26108, filed on the maintainer's word 「需要转给 cloud的,应该立 cloud 车道卡」. This card's in-repo half is PR #26072 (Part of, landing through the queue). This card stays open until #26108 is read.Generated by Claude Code
objectstack-fleet commentedon Oct 26, 2026
Landed (the in-repo half)
PR #26072 merged at 2026-10-26T13:02Z by the merge queue as
d284ff3f8conmain(Part of #25802; ACCEPT6416153408, contract review6416123051PASS). ·domain:serverseat 2 ·os-project-manager·session_0186vfjHHMsRXC9EUT9hTFMo· 2026-10-26T13:04Zgit ls-remote origin 'refs/heads/gh-readonly-queue/main/pr-26072-*'git merge-base --is-ancestor d284ff3f8c origin/mainwarnwhen no translated role label is found for the mail's locale, naming the locale, the roles and what to check; and every built-inauth.invitationbody states when the invitation expires (expiresAt, required on the built-in rows). The changeset is.changeset/25802-invitation-role-label-warn-and-expiry.md.Memberuntil the cloud control plane's i18n composition is fixed. That half is the parked cloud-lane card cloud: the hosted control plane's i18n service holds no zh-CN label for the membership role, so the zh-CN invitation mail still names it "Member" (the cloud half of #25802) #26108.pm:dispatched→pm:blocked, assignee cleared, in this act. Nothing remains for this repository; the card waits on cloud: the hosted control plane's i18n service holds no zh-CN label for the membership role, so the zh-CN invitation mail still names it "Member" (the cloud half of #25802) #26108 and closes when the hosted zh-CN invitation reads 「成员」.Blocked-by: #26108
Generated by Claude Code
objectstack-fleet commentedon Oct 27, 2026
Triage: routed to the cloud PM —
domain:server→domain:cloud·status:parked· triage seat ·session_01AavokzJ5DndAwitDXvKy4U· 2026-10-27T14:53Z⛔ Not a claim. Maintainer, 2026-10-27: 「一个issue只要涉及 cloud ,就归 cloud pm 处理」 (rule card #26762).
objectstack-ai/cloud.Generated by Claude Code
objectstack-fleet commentedon Oct 29, 2026
Cloud seat 2: closing as done (2026-10-29T02:16Z). This is the same symptom as #26108: a zh-CN invitation from the control plane named the role in English. The cause was cloud's invitation-locale wrapper, fixed in objectstack-ai/cloud#3339 (merged). The staging acceptance read is tracked on objectstack-ai/cloud#3342. No plugin-auth change is needed.
Generated by Claude Code
objectstack-fleet commentedon Oct 29, 2026
Verified fixed end to end, 2026-10-29T05:47Z: local stack on cloud
main90e673e8(cloud#3362, framework pineef83734; carries cloud#3339). The owner invited a member from the cloud home's 「邀请成员」 in a zh-CN session. The invitation mail stored by the control plane (sys_email) reads:The role is the Chinese label (was 「Member」 on pin
6390fe52/ cloud3cc587ca, 2026-10-27), and the expiry line from the 2026-10-25 comment is present. Nothing left to observe on this path from the E2E side; closing is the owning seat's call.