i18n (Go seam): notifications and alerts — internal/monitor #2125

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

What

Notifications and alerts authored by the monitor (internal/monitor, ~27 sentences) — the diagnoses and their guidance — cross the seam as finished English. Key them + 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/*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 Notifications and alerts authored by the monitor (`internal/monitor`, ~27 sentences) — the diagnoses and their guidance — cross the seam as finished English. Key them + 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`/`*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

⏩ independent reviewer for #2125 — verdict unauthenticated

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

close-report for #2125 — status success

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

envelope
{
  "issue": 2125,
  "status": "success",
  "commits": [
    "9dfffb62abe5ba0963783369523585334c901eb5"
  ],
  "changed_files": [
    "STATUS.md",
    "app/src/components/monitoring/NotificationScreen.vue",
    "app/src/i18n/areas/shell/en.ts",
    "app/src/i18n/areas/shell/es.ts",
    "app/src/i18n/areas/shell/fr.ts",
    "app/src/i18n/areas/shell/nl.ts",
    "app/src/i18n/areas/shell/pt.ts",
    "app/src/lib/notifications.ts",
    "app/tests/unit/notificationScreenI18n.test.ts",
    "internal/monitor/notify.go",
    "internal/monitor/notify_i18n_test.go"
  ],
  "tests": [
    {
      "command": "go test ./internal/monitor/",
      "exit_code": 0
    },
    {
      "command": "go vet ./internal/monitor/",
      "exit_code": 0
    },
    {
      "command": "vitest run tests/unit/notificationScreenI18n.test.ts tests/unit/notificationScreen.test.ts tests/unit/i18nSeam.test.ts",
      "exit_code": 0
    },
    {
      "command": "vue-tsc -p tsconfig.json",
      "exit_code": 0
    },
    {
      "command": "eslint (changed app files)",
      "exit_code": 0
    },
    {
      "command": "pre-push gate: nix develop .#go-ci (build/vet/test/golangci-lint) + eslint . — all green",
      "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/monitor/notify.go notification() now sets HeadlineKey/HeadlineArgs, DiagnosisKey/DiagnosisArgs (and AdvisedAction LabelKey/LabelArgs, AdviceKey/AdviceArgs) for every fixed monitor-authored sentence — 8 headlines, 9 diagnoses, the restart label/advice, 10 member-impact clauses — while Headline/Diagnosis/Label/Advice keep the retained English prose; proven by internal/monitor/notify_i18n_test.go asserting both the keys/args and the byte-identical prose.",
    "The keys exist in all five catalogues (en authoritative; es/nl/fr/pt machine drafts, marked draft) and pass the parity guard": "app/src/i18n/areas/shell/{en,es,nl,fr,pt}.ts gain shell.notification.seam.* (en authoritative; es/nl/fr/pt carry export const draft = true); tests/unit/i18nSeam.test.ts (the parity guard) passes 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)": "app/src/components/monitoring/NotificationScreen.vue (the only surface — the operator-app channel's render; the alert-contact channel is email, no screen) resolves headline/diagnosis/label/advice via useSeamTranslator inside computeds; app/tests/unit/notificationScreenI18n.test.ts mounts it, flips en -> es live, and asserts the Spanish re-render.",
    "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)": "Only Notification person-facing text is keyed. Runtime detail relayed from another seam (provisioning failure, backups' words, the gap's need, the mail-readiness leg) and observed evidence (silence pattern, cert evidence) ride as prose {param}s and are never separately keyed; the gap and mail-readiness headlines (pure relayed detail) carry NO key and render as prose — proven by notify_i18n_test.go TestNotificationKeyed_RelayedDetailStaysProse / TestNotificationKeyed_GapHeadlineStaysProseOnly and the notificationScreenI18n prose-only fallback case."
  },
  "summary": "The monitor seam's P5-S2/P5-S2x notification crosses keyed (shell.notification.seam.* key + params alongside the retained English prose), rendered through the seam translator so a live en->es flip re-renders it.",
  "blockers": [],
  "unproven_by_seam": "No live monitor delivery into the operator app was exercised — the concrete Notifier/operator-app channel is a future slice, so the seam test mounts NotificationScreen over a hand-built keyed view (the shape of the existing notificationScreen.test.ts fixture). The real end-to-end (a raised alert delivered and rendered) is still owed by that channel's slice. Out of scope and NOT covered: the status-surface text (AlertRow.Summary, status pills/notes, the identity-unprotected summary) and the respond ladder's advice — a different surface, not these notifications."
}
**close-report** for #2125 — status `success` :white_check_mark: **close-report gates passed** — every claim verified against the pushed worker branch `sandcastle/worker/20261103-140927-8f33f3` (pre-land — the host promotes it to `main` only after its post-run verify, #193/#283); issue closed. <details><summary>envelope</summary> ```json { "issue": 2125, "status": "success", "commits": [ "9dfffb62abe5ba0963783369523585334c901eb5" ], "changed_files": [ "STATUS.md", "app/src/components/monitoring/NotificationScreen.vue", "app/src/i18n/areas/shell/en.ts", "app/src/i18n/areas/shell/es.ts", "app/src/i18n/areas/shell/fr.ts", "app/src/i18n/areas/shell/nl.ts", "app/src/i18n/areas/shell/pt.ts", "app/src/lib/notifications.ts", "app/tests/unit/notificationScreenI18n.test.ts", "internal/monitor/notify.go", "internal/monitor/notify_i18n_test.go" ], "tests": [ { "command": "go test ./internal/monitor/", "exit_code": 0 }, { "command": "go vet ./internal/monitor/", "exit_code": 0 }, { "command": "vitest run tests/unit/notificationScreenI18n.test.ts tests/unit/notificationScreen.test.ts tests/unit/i18nSeam.test.ts", "exit_code": 0 }, { "command": "vue-tsc -p tsconfig.json", "exit_code": 0 }, { "command": "eslint (changed app files)", "exit_code": 0 }, { "command": "pre-push gate: nix develop .#go-ci (build/vet/test/golangci-lint) + eslint . — all green", "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/monitor/notify.go notification() now sets HeadlineKey/HeadlineArgs, DiagnosisKey/DiagnosisArgs (and AdvisedAction LabelKey/LabelArgs, AdviceKey/AdviceArgs) for every fixed monitor-authored sentence — 8 headlines, 9 diagnoses, the restart label/advice, 10 member-impact clauses — while Headline/Diagnosis/Label/Advice keep the retained English prose; proven by internal/monitor/notify_i18n_test.go asserting both the keys/args and the byte-identical prose.", "The keys exist in all five catalogues (en authoritative; es/nl/fr/pt machine drafts, marked draft) and pass the parity guard": "app/src/i18n/areas/shell/{en,es,nl,fr,pt}.ts gain shell.notification.seam.* (en authoritative; es/nl/fr/pt carry export const draft = true); tests/unit/i18nSeam.test.ts (the parity guard) passes 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)": "app/src/components/monitoring/NotificationScreen.vue (the only surface — the operator-app channel's render; the alert-contact channel is email, no screen) resolves headline/diagnosis/label/advice via useSeamTranslator inside computeds; app/tests/unit/notificationScreenI18n.test.ts mounts it, flips en -> es live, and asserts the Spanish re-render.", "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)": "Only Notification person-facing text is keyed. Runtime detail relayed from another seam (provisioning failure, backups' words, the gap's need, the mail-readiness leg) and observed evidence (silence pattern, cert evidence) ride as prose {param}s and are never separately keyed; the gap and mail-readiness headlines (pure relayed detail) carry NO key and render as prose — proven by notify_i18n_test.go TestNotificationKeyed_RelayedDetailStaysProse / TestNotificationKeyed_GapHeadlineStaysProseOnly and the notificationScreenI18n prose-only fallback case." }, "summary": "The monitor seam's P5-S2/P5-S2x notification crosses keyed (shell.notification.seam.* key + params alongside the retained English prose), rendered through the seam translator so a live en->es flip re-renders it.", "blockers": [], "unproven_by_seam": "No live monitor delivery into the operator app was exercised — the concrete Notifier/operator-app channel is a future slice, so the seam test mounts NotificationScreen over a hand-built keyed view (the shape of the existing notificationScreen.test.ts fixture). The real end-to-end (a raised alert delivered and rendered) is still owed by that channel's slice. Out of scope and NOT covered: the status-surface text (AlertRow.Summary, status pills/notes, the identity-unprotected summary) and the respond ladder's advice — a different surface, not these notifications." } ``` </details>
Author
Member

🚨 Reopened — a push-mode close did NOT land on main (#283). close-report closed this issue against the pushed worker branch, but the host's post-run verify rolled the land back (push-rescue-unreachable), so origin/main never carried the commits (9dfffb62abe5ba0963783369523585334c901eb5). The gates-passed comment above is therefore NOT true of main. Reopening and relabelling ready-for-session so the work is redone where it can land; the commits are parked on a rescue branch for triage (see this run's alarm).

:rotating_light: **Reopened — a push-mode close did NOT land on `main` (#283).** close-report closed this issue against the pushed worker branch, but the host's post-run verify rolled the land back (`push-rescue-unreachable`), so `origin/main` never carried the commits (`9dfffb62abe5ba0963783369523585334c901eb5`). The gates-passed comment above is therefore NOT true of `main`. Reopening and relabelling `ready-for-session` so the work is redone where it can land; the commits are parked on a rescue branch for triage (see this run's alarm).
Author
Member

Close report — landed on main (push mode)

Commit 583ea7ab (monitor: #2125 — notifications & the respond ladder speak five languages).

What landed. The monitor seam now emits a stable message key + params beside every operator-/member-facing notification and alert sentence it authors — the diagnoses and their guidance — and both surfaces resolve the key in the active locale, falling back to the retained English prose when a key is missing (ADR 0232 d.5 / d.6, DDR 0234). Additive fields (json omitempty); extends the founding/update seam pattern.

  • Shared Go seam (~27 sentences): notify.go keyed Notification.Headline/Diagnosis + AdvisedAction.Label/Advice (restart advice built once in restartAction, shared by the notification and the ladder); respond.go keyed RespondView.DeviceNote, ApplyResult.Message, RouteIntent.Label + the re-apply/rebalance rungs; reraise.go keyed ReraiseView.Statement/Rediagnosis + FixAttempt.Tried/Outcome. The variant rides the KEY (down/crashLoop/silence*/backup*/…; apply.resolved|unresolved; deviceNote.base|escalated; rediagnosis.onDevice|plain; tried.advised|plain); domain + relayed values ride slots.
  • Operator app (P5-S2/S2x): new monitor.* area (app/src/i18n/areas/monitor/{en,es,nl,fr,pt}.ts); NotificationScreen.vue resolves diagnosis/headline/advice/label via resolveSeamText + useSeamTranslator.
  • Control panel (P5-S4/S4x): new monitor.* area (dashboard/src/i18n/monitor/{en,es,nl,fr,pt}.ts); RespondScreen / FixDidntHoldScreen / ServicesSurface resolve via useSeamText.
  • en byte-identical to the Go prose; es/nl/fr/pt machine drafts marked draft (native-reviewer accept owed, d.10).

Acceptance.

  • Emits keys + params for every authored operator-/member-facing sentence; English prose stays the fallback.
  • Keys exist in all five catalogues on both frontends; both parity guards pass.
  • Each in-scope surface renders through the seam translator; a live en → es flip re-renders it (one test per surface).
  • Logs / audit / machine-read and relayed-from-another-seam text stay prose (DDR 0234 bucket 3): the gap/mail-readiness headline, provisioning's failure words, the pattern a silence was judged against, backups'/cert evidence, the port's rebalance summary, the member-impact clause, and the compositional glue (the "did" clause, the count/kind words) ride slots but are not re-authored. The Escalation hand-off to rescue stays prose (rescue's own seam, #2136).

Proof (red → green). internal/monitor/i18nseam_test.go (12); app/tests/unit/monitorSeamI18n.test.ts; dashboard/tests/unit/monitoringSeamI18n.test.ts (a live en→es flip per surface + a bucket-3 relayed value staying prose). go test ./internal/monitor/ + go vet + golangci-lint (0 issues) + gofmt clean; app & dashboard vue-tsc + eslint clean; app parity guard, dashboard parity guard, and the existing monitoring component suites (monitoringRespond/monitoringFixDidntHold/monitoringDrillIn/monitoringGuard304/monitoringBackupFaultRouting, notificationScreen) all green.

Scope / split. This ticket is the "notifications and alerts — the diagnoses and their guidance" (notify.go + respond.go + reraise.go, the ~27 sentences). The remaining monitor-authored prose on the P5-S1/S3 status surface (status.go device/service/silence rows + all-healthy headline, detail.go timeline/backup line) is a distinct surface — filed as #2140 (parent #2121).

Known (pre-existing). The control-panel respond/acknowledge/escalate verbs are not served over HTTP yet (monitoringClient.ts rejects them honestly — the remaining-surface migration owns that endpoint), so the keyed respond/reraise fields resolve through the component-test fakes until that transport migration lands. Same shape as #2124's break-glass bridge note.

Ruled by agent under ADR 0174 — veto anytime (additive fields + prose fallback, revertible per commit; proven by the suites above). Lands by push.

## Close report — landed on `main` (push mode) Commit `583ea7ab` (`monitor: #2125 — notifications & the respond ladder speak five languages`). **What landed.** The `monitor` seam now emits a stable message key + params beside every operator-/member-facing notification and alert sentence it authors — the diagnoses and their guidance — and both surfaces resolve the key in the active locale, falling back to the retained English prose when a key is missing (ADR 0232 d.5 / d.6, DDR 0234). Additive fields (json omitempty); extends the founding/update seam pattern. - **Shared Go seam (~27 sentences):** `notify.go` keyed `Notification.Headline/Diagnosis` + `AdvisedAction.Label/Advice` (restart advice built once in `restartAction`, shared by the notification and the ladder); `respond.go` keyed `RespondView.DeviceNote`, `ApplyResult.Message`, `RouteIntent.Label` + the re-apply/rebalance rungs; `reraise.go` keyed `ReraiseView.Statement/Rediagnosis` + `FixAttempt.Tried/Outcome`. The variant rides the KEY (down/crashLoop/silence*/backup*/…; apply.resolved|unresolved; deviceNote.base|escalated; rediagnosis.onDevice|plain; tried.advised|plain); domain + relayed values ride slots. - **Operator app (P5-S2/S2x):** new `monitor.*` area (`app/src/i18n/areas/monitor/{en,es,nl,fr,pt}.ts`); `NotificationScreen.vue` resolves diagnosis/headline/advice/label via `resolveSeamText` + `useSeamTranslator`. - **Control panel (P5-S4/S4x):** new `monitor.*` area (`dashboard/src/i18n/monitor/{en,es,nl,fr,pt}.ts`); `RespondScreen` / `FixDidntHoldScreen` / `ServicesSurface` resolve via `useSeamText`. - en byte-identical to the Go prose; es/nl/fr/pt machine drafts marked `draft` (native-reviewer accept owed, d.10). **Acceptance.** - [x] Emits keys + params for every authored operator-/member-facing sentence; English prose stays the fallback. - [x] Keys exist in all five catalogues on both frontends; both parity guards pass. - [x] Each in-scope surface renders through the seam translator; a live `en → es` flip re-renders it (one test per surface). - [x] Logs / audit / machine-read and relayed-from-another-seam text stay prose (DDR 0234 bucket 3): the gap/mail-readiness headline, provisioning's failure words, the pattern a silence was judged against, backups'/cert evidence, the port's rebalance summary, the member-impact clause, and the compositional glue (the "did" clause, the count/kind words) ride slots but are not re-authored. The `Escalation` hand-off to rescue stays prose (rescue's own seam, #2136). **Proof (red → green).** `internal/monitor/i18nseam_test.go` (12); `app/tests/unit/monitorSeamI18n.test.ts`; `dashboard/tests/unit/monitoringSeamI18n.test.ts` (a live en→es flip per surface + a bucket-3 relayed value staying prose). `go test ./internal/monitor/` + `go vet` + golangci-lint (0 issues) + gofmt clean; app & dashboard `vue-tsc` + eslint clean; app parity guard, dashboard parity guard, and the existing monitoring component suites (`monitoringRespond`/`monitoringFixDidntHold`/`monitoringDrillIn`/`monitoringGuard304`/`monitoringBackupFaultRouting`, `notificationScreen`) all green. **Scope / split.** This ticket is the "notifications and alerts — the diagnoses and their guidance" (`notify.go` + `respond.go` + `reraise.go`, the ~27 sentences). The remaining monitor-authored prose on the **P5-S1/S3 status surface** (`status.go` device/service/silence rows + all-healthy headline, `detail.go` timeline/backup line) is a distinct surface — filed as **#2140** (parent #2121). **Known (pre-existing).** The control-panel respond/acknowledge/escalate verbs are not served over HTTP yet (`monitoringClient.ts` rejects them honestly — the remaining-surface migration owns that endpoint), so the keyed respond/reraise fields resolve through the component-test fakes until that transport migration lands. Same shape as #2124's break-glass bridge note. Ruled by agent under ADR 0174 — veto anytime (additive fields + prose fallback, revertible per commit; proven by the suites above). Lands by push.
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#2125
No description provided.