i18n: Go-authored text crosses the seam as message key + params — rescue, notifications, backups, removal plans, updates, errors #2121

Closed
opened 2026-11-03 18:40:10 +00:00 by ben · 5 comments
Owner

What

Every screen in the operator app, control panel and Portal renders in five languages (en/es/nl/fr/pt, DDR 0300, ADR 0232). But much of what a person actually reads is written by Go and crosses the seam as finished English sentences. A Spanish-speaking Administrator still sees English for:

  • rescue checks and their remedies (internal/rescue, internal/breakglass)
  • notifications and alerts (internal/monitor)
  • backup stages and failures (internal/backup)
  • device-removal plans (internal/provision, internal/clan)
  • update notes and update refusals (internal/update)
  • control-API errors (internal/controlapi, control-plane/cmd)
  • member and join flows (internal/member, internal/join, internal/idp)
  • the Access line in founding (draft.access.summary) and other internal/founding prose not yet keyed

Rough size: ~680 English sentences in Go, the biggest packages being internal/founding (107), internal/clan (104), internal/controlapi (58), control-plane/cmd (40), internal/idp (35), internal/breakglass (35), internal/backup (34), internal/rescue (33), internal/monitor (27).

How (already decided — ADR 0232 decision 5)

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 (SeamKeyed, resolveSeamText, app/src/i18n/founding/g8.seam.*, g9.standup.*; useSeamTranslator in app/src/lib/i18n.ts). Extend it, don't invent a second one.

Acceptance

  • Each area above emits keys + params for every operator- or member-facing sentence; English prose stays as the fallback.
  • The keys exist in all five catalogues (en authoritative; es/nl/fr/pt machine drafts) and pass the parity guard.
  • Each surface that shows the text renders it through the seam translator; a live en → es flip re-renders it (one test per area, the shape of app/tests/unit/foundingAccessI18n.test.ts).
  • Logs, audit records and anything machine-read stay English — only person-facing text is keyed.

Notes

This is a parent: it should be split one ticket per area above (they are independent and can run in parallel). Found while answering "what's left for full multi-language" (session 2026-11-03).

## What Every screen in the operator app, control panel and Portal renders in five languages (en/es/nl/fr/pt, DDR 0300, ADR 0232). But much of what a person actually reads is **written by Go** and crosses the seam as finished English sentences. A Spanish-speaking Administrator still sees English for: - rescue checks and their remedies (`internal/rescue`, `internal/breakglass`) - notifications and alerts (`internal/monitor`) - backup stages and failures (`internal/backup`) - device-removal plans (`internal/provision`, `internal/clan`) - update notes and update refusals (`internal/update`) - control-API errors (`internal/controlapi`, `control-plane/cmd`) - member and join flows (`internal/member`, `internal/join`, `internal/idp`) - the Access line in founding (`draft.access.summary`) and other `internal/founding` prose not yet keyed Rough size: ~680 English sentences in Go, the biggest packages being `internal/founding` (107), `internal/clan` (104), `internal/controlapi` (58), `control-plane/cmd` (40), `internal/idp` (35), `internal/breakglass` (35), `internal/backup` (34), `internal/rescue` (33), `internal/monitor` (27). ## How (already decided — ADR 0232 decision 5) 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 (`SeamKeyed`, `resolveSeamText`, `app/src/i18n/founding/g8.seam.*`, `g9.standup.*`; `useSeamTranslator` in `app/src/lib/i18n.ts`). Extend it, don't invent a second one. ## Acceptance - [ ] Each area above emits keys + params for every operator- or member-facing sentence; English prose stays as the fallback. - [ ] The keys exist in all five catalogues (en authoritative; es/nl/fr/pt machine drafts) and pass the parity guard. - [ ] Each surface that shows the text renders it through the seam translator; a live `en → es` flip re-renders it (one test per area, the shape of `app/tests/unit/foundingAccessI18n.test.ts`). - [ ] Logs, audit records and anything machine-read stay English — only person-facing text is keyed. ## Notes This is a parent: it should be split **one ticket per area** above (they are independent and can run in parallel). Found while answering "what's left for full multi-language" (session 2026-11-03).

This was generated by AI during triage.

Ruled by agent under ADR 0174 — veto anytime.

Category: enhancement. State: ready-for-agent.

Ruling. This extends a pattern that is already live and decided (ADR 0232 decision 5 — the i18n seam), not a new design. The founding seam already emits key+params and resolves them through useSeamTranslator (app/src/lib/i18n.ts), with catalogues in app/src/i18n/founding/g*.{en,es,nl,fr,pt}.ts and the Go side in internal/founding/standup.go. Each area in the body is an independent application of that same pattern with a shared, testable definition of done. No wireframe/flow is referenced, so the missing-design gate does not fire; there is no needs_human_decision.

Why a two-way door. Every change is additive — Go keeps emitting the English prose as the fallback — and revertible by a later commit, and it is provable by existing test shapes: the parity guard plus a per-area render test in the mould of app/tests/unit/foundingAccessI18n.test.ts. Nothing on the one-way-door list (credentials, security-posture, member-trust accept, data destruction, non-routine spend) is touched.

Note — this is a parent. The body asks for it to be split one ticket per area (the areas are independent and can run in parallel). That fan-out is a to-tickets job, not a triage state; until then each area is independently agent-workable against the same acceptance, so a human or to-tickets can fan it out without re-triage.

> *This was generated by AI during triage.* **Ruled by agent under ADR 0174 — veto anytime.** **Category:** enhancement. **State:** `ready-for-agent`. **Ruling.** This extends a pattern that is already **live and decided** (ADR 0232 decision 5 — the i18n seam), not a new design. The founding seam already emits key+params and resolves them through `useSeamTranslator` (`app/src/lib/i18n.ts`), with catalogues in `app/src/i18n/founding/g*.{en,es,nl,fr,pt}.ts` and the Go side in `internal/founding/standup.go`. Each area in the body is an independent application of that same pattern with a shared, testable definition of done. No wireframe/flow is referenced, so the missing-design gate does not fire; there is no `needs_human_decision`. **Why a two-way door.** Every change is additive — Go keeps emitting the English prose as the fallback — and revertible by a later commit, and it is provable by existing test shapes: the parity guard plus a per-area render test in the mould of `app/tests/unit/foundingAccessI18n.test.ts`. Nothing on the one-way-door list (credentials, security-posture, member-trust accept, data destruction, non-routine spend) is touched. **Note — this is a parent.** The body asks for it to be split one ticket per area (the areas are independent and can run in parallel). That fan-out is a `to-tickets` job, not a triage state; until then each area is independently agent-workable against the same acceptance, so a human or `to-tickets` can fan it out without re-triage.

swarm-claim host=bens-mac-04 run=59061
(automated multi-host claim — lowest live claim id works this ticket)

swarm-claim host=bens-mac-04 run=59061 (automated multi-host claim — lowest live claim id works this ticket)

Fanned out (the parent's own split instruction).

This parent asked to be split "one ticket per area above (they are independent and can run in parallel)", and the triage ruling confirmed the fan-out is a to-tickets job with each area independently agent-workable against the same acceptance, without re-triage. Done — one child per area, each ready-for-agent + enhancement, each carrying the shared ADR 0232 d.5 / DDR 0234 pattern reference and the area-scoped acceptance:

  • #2124 — rescue checks + remedies and break-glass prose (internal/rescue, internal/breakglass)
  • #2125 — notifications and alerts (internal/monitor)
  • #2126 — backup stages and failures (internal/backup)
  • #2127 — device-removal plans (internal/provision, internal/clan)
  • #2128 — update notes and update refusals (internal/update)
  • #2129 — control-API errors (internal/controlapi, control-plane/cmd)
  • #2130 — member and join flows (internal/member, internal/join, internal/idp)
  • #2131 — remaining founding prose (the Access line + un-keyed internal/founding)

No code lands under this parent — the work lives in the children, which the swarm can pick up in parallel. Closing this as fanned-out; the children track the remaining work.

**Fanned out (the parent's own split instruction).** This parent asked to be split "one ticket per area above (they are independent and can run in parallel)", and the triage ruling confirmed the fan-out is a `to-tickets` job with each area independently agent-workable against the same acceptance, without re-triage. Done — one child per area, each `ready-for-agent` + `enhancement`, each carrying the shared ADR 0232 d.5 / DDR 0234 pattern reference and the area-scoped acceptance: - #2124 — rescue checks + remedies and break-glass prose (`internal/rescue`, `internal/breakglass`) - #2125 — notifications and alerts (`internal/monitor`) - #2126 — backup stages and failures (`internal/backup`) - #2127 — device-removal plans (`internal/provision`, `internal/clan`) - #2128 — update notes and update refusals (`internal/update`) - #2129 — control-API errors (`internal/controlapi`, `control-plane/cmd`) - #2130 — member and join flows (`internal/member`, `internal/join`, `internal/idp`) - #2131 — remaining founding prose (the Access line + un-keyed `internal/founding`) No code lands under this parent — the work lives in the children, which the swarm can pick up in parallel. Closing this as fanned-out; the children track the remaining work.

⏩ independent reviewer for #2121 — verdict unauthenticated

review JSON
{
  "verdict": "unauthenticated",
  "findings": []
}
:fast_forward: **independent reviewer** for #2121 — verdict `unauthenticated` <details><summary>review JSON</summary> ```json { "verdict": "unauthenticated", "findings": [] } ``` </details>

close-report for #2121 — status success

✅ close-report gates passed — every claim verified against main; issue closed.

envelope
{
  "issue": 2121,
  "status": "success",
  "commits": [],
  "changed_files": [],
  "tests": [],
  "criteria": {
    "Each area emits keys + params; English prose stays as fallback": "Delegated to per-area children #2124-#2131, each carrying this clause scoped to its packages.",
    "Keys exist in all five catalogues and pass the parity guard": "Delegated to children #2124-#2131.",
    "Each surface renders through the seam translator; live en->es flip re-renders": "Delegated to children #2124-#2131 (one test each, foundingAccessI18n.test.ts shape).",
    "Logs/audit/machine-read stay English": "Delegated to children #2124-#2131 (DDR 0234 bucket 3)."
  },
  "summary": "Fanned the parent out into eight independent per-area child tickets (#2124-#2131); the work lands under the children.",
  "no_code_change": "This is a parent whose own body and triage ruling ask it to be split one-ticket-per-area; the deliverable is the fan-out. Created #2124 (rescue+breakglass), #2125 (monitor), #2126 (backup), #2127 (removal plans), #2128 (update), #2129 (controlapi+cmd), #2130 (member+join+idp), #2131 (remaining founding prose), each ready-for-agent with the area-scoped acceptance. No code lands under the parent.",
  "blockers": []
}
**close-report** for #2121 — status `success` :white_check_mark: **close-report gates passed** — every claim verified against main; issue closed. <details><summary>envelope</summary> ```json { "issue": 2121, "status": "success", "commits": [], "changed_files": [], "tests": [], "criteria": { "Each area emits keys + params; English prose stays as fallback": "Delegated to per-area children #2124-#2131, each carrying this clause scoped to its packages.", "Keys exist in all five catalogues and pass the parity guard": "Delegated to children #2124-#2131.", "Each surface renders through the seam translator; live en->es flip re-renders": "Delegated to children #2124-#2131 (one test each, foundingAccessI18n.test.ts shape).", "Logs/audit/machine-read stay English": "Delegated to children #2124-#2131 (DDR 0234 bucket 3)." }, "summary": "Fanned the parent out into eight independent per-area child tickets (#2124-#2131); the work lands under the children.", "no_code_change": "This is a parent whose own body and triage ruling ask it to be split one-ticket-per-area; the deliverable is the fan-out. Created #2124 (rescue+breakglass), #2125 (monitor), #2126 (backup), #2127 (removal plans), #2128 (update), #2129 (controlapi+cmd), #2130 (member+join+idp), #2131 (remaining founding prose), each ready-for-agent with the area-scoped acceptance. No code lands under the parent.", "blockers": [] } ``` </details>
Sign in to join this conversation.
No milestone
No project
No assignees
2 participants
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
Matou/idss#2121
No description provided.