i18n (Go seam): update notes and update refusals — internal/update #2128

Closed
opened 2026-11-03 18:54:53 +00:00 by matou-build-agent · 4 comments

What

Update notes and update refusals (internal/update) render in English for every operator. Key them + params so an update's notes and any refusal reason read in the active locale.

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/*Args struct fields in internal/founding/standup.go; the catalogues app/src/i18n/founding/g8.seam.* and g9.standup.*; and useSeamTranslator / resolveSeamText in app/src/lib/i18n.ts. Extend that pattern, don't invent a second one.

Acceptance (scoped to this area)

  • This area emits keys + params for every operator- or member-facing sentence; the English prose stays as the fallback (decision 6).
  • The keys exist in all five catalogues (en authoritative; es/nl/fr/pt machine drafts, marked draft) 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 surface, the shape of app/tests/unit/foundingAccessI18n.test.ts).
  • Logs, audit records and anything machine-read stay English — only person-facing text is keyed (DDR 0234 bucket 3: text relayed verbatim from another seam stays prose-only).

Parent: #2121. Independent of the other #2121 children — can run in parallel.

## What Update notes and update refusals (`internal/update`) render in English for every operator. Key them + params so an update's notes and any refusal reason read in the active locale. ## 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`/`*Args` struct fields in `internal/founding/standup.go`; the catalogues `app/src/i18n/founding/g8.seam.*` and `g9.standup.*`; and `useSeamTranslator` / `resolveSeamText` in `app/src/lib/i18n.ts`. **Extend that pattern, don't invent a second one.** ## Acceptance (scoped to this area) - [ ] This area emits keys + params for every operator- or member-facing sentence; the English prose stays as the fallback (decision 6). - [ ] The keys exist in all five catalogues (en authoritative; es/nl/fr/pt machine drafts, marked draft) 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 surface, the shape of `app/tests/unit/foundingAccessI18n.test.ts`). - [ ] Logs, audit records and anything machine-read stay English — only person-facing text is keyed (DDR 0234 bucket 3: text relayed verbatim from another seam stays prose-only). Parent: #2121. Independent of the other #2121 children — can run in parallel.
Author
Member

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

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

Ruled by agent under ADR 0174 — veto anytime.

Scope + pattern ruling for this slice (a two-way door: additive *Key/*Args struct fields beside the retained prose + new catalogue keys, revertible per commit, proven by the Go composer test and the three dashboard component flips below).

What crosses internal/update's seam as person-facing English, and how each is handled (DDR 0234 buckets):

  • Keyed (bucket 1/2 — authored by internal/update, rendered verbatim on the control-panel Updates screens):
    • RollbackView.NodeNote / .Check (the authored "its health check did not pass…") / .Mechanic / .NowOn (+args) and the boot-failure .Service "control plane" — U4x RolledBackScreen.
    • RolloutView.MembersSaw (+args) — U4 AppliedScreen.
    • RolloutView.CanaryReason (+args) — U3 RollingOutScreen.
  • Stays prose (bucket 3 — relayed verbatim from another seam): the signed release Title/Notes (Matou's words, ADR 0068), RollbackView.Service/boot .Check = res.FailedCheck (the deploy stage's), the skipped/seed/deploy-fail Reasons and Faults (clan/deploy errors). Those seams grow their own keys when their tickets come.
  • Already keyed (no Go change): the refusal reason — carried as the RefusalCheck machine token and resolved by useRefusalCopy → panel.provisioning.updates.phrases.checks.* in all five locales. A Spanish Administrator already reads the refusal in Spanish; "update refusals" is done on the panel.
  • Separate surface (out of scope, per DDR 0234's activity-feed consequence): startedWords/arrivalWords/terminalWords → OpsEvent.Words on the fleet activity feed.

Mechanism: extends ADR 0232 d.5 — Go emits a stable update.* key (the variant encoded in the key, args for domain values) beside the retained English; the dashboard resolves it through vue-i18n, falling back to the prose when the key is missing (d.6). New catalogue area dashboard/src/i18n/update/{en,es,nl,fr,pt}.ts (en authoritative/byte-identical, es/nl/fr/pt drafts), passing the decision-9 parity guard.

**Ruled by agent under ADR 0174 — veto anytime.** Scope + pattern ruling for this slice (a two-way door: additive `*Key`/`*Args` struct fields beside the retained prose + new catalogue keys, revertible per commit, proven by the Go composer test and the three dashboard component flips below). **What crosses `internal/update`'s seam as person-facing English, and how each is handled (DDR 0234 buckets):** - **Keyed (bucket 1/2 — authored by `internal/update`, rendered verbatim on the control-panel Updates screens):** - `RollbackView.NodeNote` / `.Check` (the authored "its health check did not pass…") / `.Mechanic` / `.NowOn` (+args) and the boot-failure `.Service` "control plane" — U4x RolledBackScreen. - `RolloutView.MembersSaw` (+args) — U4 AppliedScreen. - `RolloutView.CanaryReason` (+args) — U3 RollingOutScreen. - **Stays prose (bucket 3 — relayed verbatim from another seam):** the signed release `Title`/`Notes` (Matou's words, ADR 0068), `RollbackView.Service`/boot `.Check` = `res.FailedCheck` (the deploy stage's), the skipped/seed/deploy-fail `Reason`s and `Fault`s (clan/deploy errors). Those seams grow their own keys when their tickets come. - **Already keyed (no Go change):** the **refusal reason** — carried as the `RefusalCheck` machine token and resolved by `useRefusalCopy` → `panel.provisioning.updates.phrases.checks.*` in all five locales. A Spanish Administrator already reads the refusal in Spanish; "update refusals" is done on the panel. - **Separate surface (out of scope, per DDR 0234's activity-feed consequence):** `startedWords`/`arrivalWords`/`terminalWords` → `OpsEvent.Words` on the fleet activity feed. **Mechanism:** extends ADR 0232 d.5 — Go emits a stable `update.*` key (the variant encoded in the key, args for domain values) beside the retained English; the dashboard resolves it through `vue-i18n`, falling back to the prose when the key is missing (d.6). New catalogue area `dashboard/src/i18n/update/{en,es,nl,fr,pt}.ts` (en authoritative/byte-identical, es/nl/fr/pt drafts), passing the decision-9 parity guard.
Author
Member

⏩ independent reviewer for #2128 — verdict unauthenticated

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

close-report for #2128 — status success

✅ close-report gates passed — every claim verified against the pushed worker branch sandcastle/worker/20261103-144455-1cec40 (pre-land — the host promotes it to main only after its post-run verify, #193/#283); issue closed.

envelope
{
  "issue": 2128,
  "status": "success",
  "commits": [
    "e30bc7ad0848417dbc78e4f51de91666ab9ba74c"
  ],
  "changed_files": [
    "STATUS.md",
    "dashboard/src/components/provisioning/AppliedScreen.vue",
    "dashboard/src/components/provisioning/RolledBackScreen.vue",
    "dashboard/src/components/provisioning/RollingOutScreen.vue",
    "dashboard/src/components/provisioning/useUpdatesCopy.ts",
    "dashboard/src/i18n/index.ts",
    "dashboard/src/i18n/update/en.ts",
    "dashboard/src/i18n/update/es.ts",
    "dashboard/src/i18n/update/fr.ts",
    "dashboard/src/i18n/update/nl.ts",
    "dashboard/src/i18n/update/pt.ts",
    "dashboard/src/lib/rollout.ts",
    "dashboard/tests/unit/releaseName.test.ts",
    "dashboard/tests/unit/updatesSeamI18n.test.ts",
    "internal/update/i18nseam_test.go",
    "internal/update/rolloutview.go"
  ],
  "tests": [
    {
      "command": "go test ./internal/update/",
      "exit_code": 0
    },
    {
      "command": "nix develop .#go-ci --command (gofmt/go build/go vet/go test/golangci-lint ./... + broker) — the pre-push gate",
      "exit_code": 0
    },
    {
      "command": "npx vitest run (full dashboard suite, 2250 pass / 5 skipped)",
      "exit_code": 0
    },
    {
      "command": "npx vue-tsc -p tsconfig.json --noEmit",
      "exit_code": 0
    },
    {
      "command": "eslint . (pre-push TS gate)",
      "exit_code": 0
    }
  ],
  "criteria": {
    "This area emits keys + params for every operator- or member-facing sentence; the English prose stays as the fallback (decision 6)": "internal/update/rolloutview.go — RolloutView/RollbackView gain *Key/*Args beside the retained prose (CanaryReason, MembersSaw, NodeNote, authored Check, Mechanic, NowOn, boot Service); the panel resolves key else falls back to prose via useSeamText() (useUpdatesCopy.ts). Relayed values (signed notes/title, res.FailedCheck) stay prose (bucket 3); refusals already keyed via RefusalCheck token. Proven by internal/update/i18nseam_test.go.",
    "The keys exist in all five catalogues (en authoritative; es/nl/fr/pt machine drafts, marked draft) and pass the parity guard": "dashboard/src/i18n/update/{en,es,nl,fr,pt}.ts (en byte-identical to the Go prose; es/nl/fr/pt export const draft = true) wired into dashboard/src/i18n/index.ts areaMessages; dashboard/tests/unit/i18n.test.ts decision-9 parity guard green.",
    "Each surface that shows the text renders it through the seam translator; a live en -> es flip re-renders it (one test per surface)": "dashboard/tests/unit/updatesSeamI18n.test.ts — one en->es flip per surface (RollingOutScreen canary reason, AppliedScreen members-saw, RolledBackScreen node-note/mechanic/now-on), via useSeamText(); all three re-render in Spanish.",
    "Logs, audit records and anything machine-read stay English — only person-facing text is keyed (DDR 0234 bucket 3)": "Only person-facing RolloutView/RollbackView prose is keyed. The signed release title/notes (Matou, ADR 0068) and the deploy stage's failing check (res.FailedCheck -> RollbackView.Service, boot Check) keep no key and render verbatim; i18nseam_test.go asserts RollbackView.ServiceKey stays empty on the health path."
  },
  "mirror_waiver": "",
  "summary": "Keyed the update seam's authored rollout/rollback prose (ADR 0232 d.5, DDR 0234) so the control-panel Updates screens read in the active locale.",
  "blockers": [],
  "unproven_by_seam": "The dashboard tests flip a FAKE RolloutView carrying the keys; a live rollback/apply against a real gateway rendering a non-en operator's panel is not exercised in-sandbox (no gateway). The Go composer test proves the seam emits the keys; the production panel resolves them through the same useSeamText the unit flips exercise."
}
**close-report** for #2128 — status `success` :white_check_mark: **close-report gates passed** — every claim verified against the pushed worker branch `sandcastle/worker/20261103-144455-1cec40` (pre-land — the host promotes it to `main` only after its post-run verify, #193/#283); issue closed. <details><summary>envelope</summary> ```json { "issue": 2128, "status": "success", "commits": [ "e30bc7ad0848417dbc78e4f51de91666ab9ba74c" ], "changed_files": [ "STATUS.md", "dashboard/src/components/provisioning/AppliedScreen.vue", "dashboard/src/components/provisioning/RolledBackScreen.vue", "dashboard/src/components/provisioning/RollingOutScreen.vue", "dashboard/src/components/provisioning/useUpdatesCopy.ts", "dashboard/src/i18n/index.ts", "dashboard/src/i18n/update/en.ts", "dashboard/src/i18n/update/es.ts", "dashboard/src/i18n/update/fr.ts", "dashboard/src/i18n/update/nl.ts", "dashboard/src/i18n/update/pt.ts", "dashboard/src/lib/rollout.ts", "dashboard/tests/unit/releaseName.test.ts", "dashboard/tests/unit/updatesSeamI18n.test.ts", "internal/update/i18nseam_test.go", "internal/update/rolloutview.go" ], "tests": [ { "command": "go test ./internal/update/", "exit_code": 0 }, { "command": "nix develop .#go-ci --command (gofmt/go build/go vet/go test/golangci-lint ./... + broker) — the pre-push gate", "exit_code": 0 }, { "command": "npx vitest run (full dashboard suite, 2250 pass / 5 skipped)", "exit_code": 0 }, { "command": "npx vue-tsc -p tsconfig.json --noEmit", "exit_code": 0 }, { "command": "eslint . (pre-push TS gate)", "exit_code": 0 } ], "criteria": { "This area emits keys + params for every operator- or member-facing sentence; the English prose stays as the fallback (decision 6)": "internal/update/rolloutview.go — RolloutView/RollbackView gain *Key/*Args beside the retained prose (CanaryReason, MembersSaw, NodeNote, authored Check, Mechanic, NowOn, boot Service); the panel resolves key else falls back to prose via useSeamText() (useUpdatesCopy.ts). Relayed values (signed notes/title, res.FailedCheck) stay prose (bucket 3); refusals already keyed via RefusalCheck token. Proven by internal/update/i18nseam_test.go.", "The keys exist in all five catalogues (en authoritative; es/nl/fr/pt machine drafts, marked draft) and pass the parity guard": "dashboard/src/i18n/update/{en,es,nl,fr,pt}.ts (en byte-identical to the Go prose; es/nl/fr/pt export const draft = true) wired into dashboard/src/i18n/index.ts areaMessages; dashboard/tests/unit/i18n.test.ts decision-9 parity guard green.", "Each surface that shows the text renders it through the seam translator; a live en -> es flip re-renders it (one test per surface)": "dashboard/tests/unit/updatesSeamI18n.test.ts — one en->es flip per surface (RollingOutScreen canary reason, AppliedScreen members-saw, RolledBackScreen node-note/mechanic/now-on), via useSeamText(); all three re-render in Spanish.", "Logs, audit records and anything machine-read stay English — only person-facing text is keyed (DDR 0234 bucket 3)": "Only person-facing RolloutView/RollbackView prose is keyed. The signed release title/notes (Matou, ADR 0068) and the deploy stage's failing check (res.FailedCheck -> RollbackView.Service, boot Check) keep no key and render verbatim; i18nseam_test.go asserts RollbackView.ServiceKey stays empty on the health path." }, "mirror_waiver": "", "summary": "Keyed the update seam's authored rollout/rollback prose (ADR 0232 d.5, DDR 0234) so the control-panel Updates screens read in the active locale.", "blockers": [], "unproven_by_seam": "The dashboard tests flip a FAKE RolloutView carrying the keys; a live rollback/apply against a real gateway rendering a non-en operator's panel is not exercised in-sandbox (no gateway). The Go composer test proves the seam emits the keys; the production panel resolves them through the same useSeamText the unit flips exercise." } ``` </details>
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
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#2128
No description provided.