i18n (Go seam): member and join flows — internal/member, internal/join, internal/idp #2130
Labels
No labels
agent-blocked
agent-working
autopilot
bug
deferred
deploy-pending
enhancement
landing-pr
model-haiku
model-opus
model-sonnet
needs-design
needs-info
needs-triage
no-triage
out-of-scope
priority
ready-for-agent
ready-for-human
ready-for-session
rehearsal-183
snapshot-pending
standing-drive
wayfinder:grilling
wayfinder:map
wayfinder:prototype
wayfinder:research
wayfinder:task
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
Matou/idss#2130
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
What
Member and join flows (
internal/member;internal/join;internal/idp, ~35 sentences) render member-facing prose in English. Key the member- and operator-facing sentences + params.How (already decided — ADR 0232 decision 5, DDR 0234)
Go emits a message key + params alongside (not instead of) the English prose; the screen resolves the key in the active locale and falls back to the prose when the key is missing. The pattern is already live for the founding seam — see
StandupEvent.Key/Args,logEventKeyed, and the*Key/*Argsstruct fields ininternal/founding/standup.go; the cataloguesapp/src/i18n/founding/g8.seam.*andg9.standup.*; anduseSeamTranslator/resolveSeamTextinapp/src/lib/i18n.ts. Extend that pattern, don't invent a second one.Acceptance (scoped to this area)
en → esflip re-renders it (one test per surface, the shape ofapp/tests/unit/foundingAccessI18n.test.ts).Parent: #2121. Independent of the other #2121 children — can run in parallel.
Ruled by agent under ADR 0174 — veto anytime.
Decision: split this ticket. Its three packages are three distinct surfaces with distinct carriage, not one slice (mirrors #2129→#2152 and #2124→#2136):
internal/joindevice-end screens cross the ADR 0053 stdio socket →app/src/lib/*→ the P3 device-add screens (the foundingresolveSeamTextpattern, no new infra).internal/membercrosses the control-plane HTTP API →dashboard/(OpenAPI carriage, the #2129Problemshape).internal/idpis server-rendered branded HTML (<html lang="en">,writePage→brand.signIn().render(status)) with no app-side JS resolver — the key+params/resolveSeamTextseam structurally cannot apply; it needs an idp-side locale mechanism (a design question, a member-facing trust surface). That design ruling is already filed as #2138 → #2132, sointernal/idpis not re-filed here.This slice keys the one surface that is a clean, self-contained extension of the pattern: the device-end code-taxonomy (
internal/join'sRedeemOutcome.Message— the five "no such code / expired / revoked / consumed / in-use" lines) on the P3-S2 Join with a code screen. NewMessageKeybeside the retained EnglishMessage; newdeviceAdd.seam.redeem.*keys in all five app catalogues (en byte-identical to the Go prose; es/nl/fr/pt machine drafts, marked draft);JoinWithCodeScreen.vueresolves them throughuseSeamTranslator/resolveSeamText. Bucket 1 throughout (every taxonomy line is join-authored and static); the valid read stays keyless.Owed by the open follow-up #2154:
internal/member(dashboard, OpenAPI carriage), theinternal/joinrejection surface (entangled withconsent.tscheckRows' prefix-parse — needs a dimension-tagged line carrier), theModeOffer.Consentcopy (needs a design ruling — it is cryptographically bound into the pairing viaconsentHash, ADR 0024), and the join CLI surface (terminal, out of pattern). Owed by #2138/#2132: all ofinternal/idp.Why a two-way door: the change is additive —
MessageKeyisomitemptywith the EnglishMessageas the decision-6 fallback, so nothing regresses if reverted — and revertible per commit. Proven byinternal/join/join_i18n_seam_test.go(every taxonomy line emits its key beside retained prose; the valid read stays keyless) +app/tests/unit/joinWithCodeI18n.test.ts(one live en→es flip + the keyless-stays-prose fallback) + the app parity guard. The remaining acceptance is not lost — it is carried, in full, by the open #2154 and the open #2138/#2132.Correction / status (run 59634). This run's iteration lost its claim on #2130 mid-flight — the claim lease expired during the (long) exploration, so by commit time no live
swarm-claimremained and the commit-msg gate (#1717) correctly refused any commit from run 59634 for this ticket. Nothing from this run landed: the slice was prepared in the sandbox working tree only (never committed, never pushed).So the preceding "Ruled by agent under ADR 0174" comment describes work that was prepared but did NOT land, and the follow-up #2154 I filed is provisional: whoever next holds the claim on #2130 owns it afresh and should proceed as they see fit — the proposed split (key the
joincode-taxonomy now;member+ join rejection/consent/CLI → #2154;internal/idp→ the already-open #2138/#2132) is only a suggestion. If #2130 is completed whole, close #2154 as redundant.I am not touching this ticket's labels or claim — it is already
ready-for-agentwith noagent-workingand no live claim, so the next iteration can claim it cleanly. The split analysis above stands as a useful map regardless of which run lands the work.Ruled by agent under ADR 0174 — veto anytime (run 59762).
Decision: ship the one clean pattern-extension in #2130 now; the rest is carried by open follow-ups. Confirmed afresh this run that the ticket's three packages are three distinct carriages, not one slice (mirrors #2124→#2136 and #2129→#2152):
internal/joindevice-end code-taxonomy (RedeemOutcome.Message— the five no-such-code / expired / revoked / consumed / in-use lines) crosses the ADR 0053 stdio socket →app/src/lib/*→ the P3-S2 Join with a code screen: the foundingresolveSeamTextpattern, no new infra. ← keyed this slice.internal/membercrosses the control-plane HTTP API (internal/controlapi/members.goconsumes it) →dashboard/— the #2129Problem-shape carriage, a different mechanism.internal/idpis server-rendered branded HTML (writePage→brand.signIn().render,http.ResponseWriter) with no app-side JS resolver — the key+params/resolveSeamTextseam structurally cannot apply; it needs an idp-side locale mechanism (a member-facing design question).This slice keys the device-end taxonomy: new
MessageKey(json omitempty) beside the retained EnglishMessage;deviceAdd.seam.redeem.*in all five app catalogues (en byte-identical to the Go prose; es/nl/fr/pt machine drafts);JoinWithCodeScreen.vueresolves them throughuseSeamTranslator/resolveSeamText. The valid read stays keyless.Carried by OPEN follow-ups (verified open this run):
internal/member+ the join rejection/consent/CLI remainder → #2154; all ofinternal/idp→ #2138/#2132. These are not re-filed; if #2130 is ever completed whole, close #2154 as redundant.Why a two-way door: the change is additive —
MessageKeyisomitemptywith the EnglishMessageas the decision-6 fallback, so nothing regresses if reverted — and revertible per commit; not on the one-way-door list. Proven byinternal/join/join_i18n_seam_test.go(every taxonomy line emits its key beside retained prose; the valid read stays keyless) +app/tests/unit/joinWithCodeI18n.test.ts(one live en→es flip + the keyless-stays-prose fallback) + the app parity guard. The remaining acceptance is not lost — it is carried in full by the open #2154 and #2138/#2132.⏩ independent reviewer for #2130 — verdict
unauthenticatedreview JSON
close-report for #2130 — status
success✅ close-report gates passed — every claim verified against the pushed worker branch
sandcastle/worker/20261104-114250-364e22(pre-land — the host promotes it tomainonly after its post-run verify, #193/#283); issue closed.envelope
defer res.Body.Close()in internal/controlapi/updates_i18n_seam_test.go:47 (from #2129/6caf5c25) #2153