i18n (Go seam): the monitor P5-S1/S3 status surface — internal/monitor status.go + detail.go #2140

Closed
opened 2026-11-03 23:26:06 +00:00 by matou-build-agent · 4 comments

Follow-up split from #2125 (parent #2121). #2125 keyed the monitor's notifications and alerts — the diagnoses and their guidance (notify.go + respond.go + reraise.go, ~27 sentences) — on both frontends. This covers the remaining monitor-authored prose on the P5-S1 status surface and P5-S3 service detail, a distinct surface:

  • internal/monitor/status.go: StatusView.Headline (all-healthy), DeviceRow.Status/Note, ServicePill.Label, AlertRow.Summary, the silence-row notes (silenceRow), the BackupsPill.Label lines, the synthesised IDENTITY_UNPROTECTED summary, sinceLabel.
  • internal/monitor/detail.go + silence.go/recentevents.go: ServiceDetailView.Status/BackupLine, the curated TimelineEvent.Label/TimeLabel words, SilenceView.judgedAgainst/callout/status.

How (same pattern as #2125/#2128/#2124)

Go emits a *Key/*Args twin beside the retained English (ADR 0232 d.5, DDR 0234); the dashboard surfaces (FleetServicesStatusScreen, ServiceDetailScreen, DeviceGoneSilentScreen, and shell FleetSurface's a.summary) resolve it via useSeamText; keys land under monitor.* in dashboard/src/i18n/monitor/; a live en→es flip test per surface; relayed/machine-read values stay prose (DDR 0234 bucket 3).

Many of these compose with time/count words (sinceLabel, shortSince, timeLabel) — key the frame, ride the glue as English params (the noted machine-draft limitation).

Parent: #2121. Independent of #2136 (rescue).

Follow-up split from #2125 (parent #2121). #2125 keyed the monitor's **notifications and alerts** — the diagnoses and their guidance (`notify.go` + `respond.go` + `reraise.go`, ~27 sentences) — on both frontends. This covers the remaining monitor-authored prose on the **P5-S1 status surface and P5-S3 service detail**, a distinct surface: - `internal/monitor/status.go`: `StatusView.Headline` (all-healthy), `DeviceRow.Status`/`Note`, `ServicePill.Label`, `AlertRow.Summary`, the silence-row notes (`silenceRow`), the `BackupsPill.Label` lines, the synthesised `IDENTITY_UNPROTECTED` summary, `sinceLabel`. - `internal/monitor/detail.go` + `silence.go`/`recentevents.go`: `ServiceDetailView.Status`/`BackupLine`, the curated `TimelineEvent.Label`/`TimeLabel` words, `SilenceView.judgedAgainst`/`callout`/`status`. ## How (same pattern as #2125/#2128/#2124) Go emits a `*Key`/`*Args` twin beside the retained English (ADR 0232 d.5, DDR 0234); the dashboard surfaces (`FleetServicesStatusScreen`, `ServiceDetailScreen`, `DeviceGoneSilentScreen`, and shell `FleetSurface`'s `a.summary`) resolve it via `useSeamText`; keys land under `monitor.*` in `dashboard/src/i18n/monitor/`; a live `en→es` flip test per surface; relayed/machine-read values stay prose (DDR 0234 bucket 3). Many of these compose with time/count words (`sinceLabel`, `shortSince`, `timeLabel`) — key the frame, ride the glue as English params (the noted machine-draft limitation). Parent: #2121. Independent of #2136 (rescue).
Author
Member

This was generated by AI during triage.

Ruled by agent under ADR 0174 — veto anytime.

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

The ruling. Keying the P5-S1 status surface (internal/monitor/status.go) and P5-S3 service detail (detail.go + silence.go/recentevents.go) for i18n, and resolving those keys on the four named dashboard surfaces, is ready for the swarm.

Why it is a two-way door. The change is additive — a *Key/*Args twin beside the retained English prose, with the English prose as the fallback when a key is missing (ADR 0232 d.5, DDR 0234). Byte-identical en output is the acceptance guard, so the default locale is unchanged; any mis-key is revertible in a single commit. This is the same shape ruled a two-way door and landed for the sibling surfaces (#2125 notify/respond/reraise, #2128 update, #2124 break-glass). It is not on the one-way-door list.

What proves it. A live en→es flip seam test per surface (the pattern internal/monitor/i18nseam_test.go and dashboard/tests/unit/monitoringSeamI18n.test.ts already use for #2125) plus the dashboard decision-9 parity guard, go test ./internal/monitor/, and vue-tsc/eslint.

Design contract is present (not needs-design): the catalogue area dashboard/src/i18n/monitor/{en,es,nl,fr,pt}.ts and all four target surfaces — FleetServicesStatusScreen.vue, ServiceDetailScreen.vue, DeviceGoneSilentScreen.vue, FleetSurface.vue — exist on main. Verified the surface is genuinely un-keyed: status.go carries no *Key/*Args twin today (its only Key matches are isGapKey/beatKey), while notify.go is already keyed from #2125 — so this is the distinct remaining surface, not redundant work.

Agent brief

  • Goal: emit a *Key/*Args twin beside every monitor-authored English sentence on the status + service-detail surfaces, and resolve it via useSeamText on the dashboard.
  • Go (keys): status.go — StatusView.Headline, DeviceRow.Status/Note, ServicePill.Label, AlertRow.Summary, silenceRow notes, BackupsPill.Label, the synthesised IDENTITY_UNPROTECTED summary, sinceLabel. detail.go/silence.go/recentevents.go — ServiceDetailView.Status/BackupLine, curated TimelineEvent.Label/TimeLabel, SilenceView.judgedAgainst/callout/status.
  • Keys: under monitor.* in dashboard/src/i18n/monitor/ (en byte-identical to the Go prose; es/nl/fr/pt machine drafts marked draft — native-reviewer accept owed, as in #2125).
  • Dashboard: FleetServicesStatusScreen, ServiceDetailScreen, DeviceGoneSilentScreen, and shell FleetSurface's a.summary resolve through useSeamText.
  • Compositional sentences (sinceLabel/shortSince/timeLabel): key the frame, ride the time/count glue as English params (the noted machine-draft limitation, DDR 0234 bucket 3). Relayed/machine-read values stay prose.
  • Lands by push. Independent of #2136 (rescue). Parent #2121.
> *This was generated by AI during triage.* **Ruled by agent under ADR 0174 — veto anytime.** **Category:** `enhancement`. **State:** `ready-for-agent`. **The ruling.** Keying the P5-S1 status surface (`internal/monitor/status.go`) and P5-S3 service detail (`detail.go` + `silence.go`/`recentevents.go`) for i18n, and resolving those keys on the four named dashboard surfaces, is ready for the swarm. **Why it is a two-way door.** The change is additive — a `*Key`/`*Args` twin beside the retained English prose, with the English prose as the fallback when a key is missing (ADR 0232 d.5, DDR 0234). Byte-identical `en` output is the acceptance guard, so the default locale is unchanged; any mis-key is revertible in a single commit. This is the same shape ruled a two-way door and landed for the sibling surfaces (#2125 notify/respond/reraise, #2128 update, #2124 break-glass). It is not on the one-way-door list. **What proves it.** A live `en→es` flip seam test per surface (the pattern `internal/monitor/i18nseam_test.go` and `dashboard/tests/unit/monitoringSeamI18n.test.ts` already use for #2125) plus the dashboard decision-9 parity guard, `go test ./internal/monitor/`, and `vue-tsc`/eslint. **Design contract is present** (not `needs-design`): the catalogue area `dashboard/src/i18n/monitor/{en,es,nl,fr,pt}.ts` and all four target surfaces — `FleetServicesStatusScreen.vue`, `ServiceDetailScreen.vue`, `DeviceGoneSilentScreen.vue`, `FleetSurface.vue` — exist on `main`. Verified the surface is genuinely un-keyed: `status.go` carries no `*Key`/`*Args` twin today (its only `Key` matches are `isGapKey`/`beatKey`), while `notify.go` is already keyed from #2125 — so this is the distinct remaining surface, not redundant work. ## Agent brief - **Goal:** emit a `*Key`/`*Args` twin beside every monitor-authored English sentence on the status + service-detail surfaces, and resolve it via `useSeamText` on the dashboard. - **Go (keys):** `status.go` — `StatusView.Headline`, `DeviceRow.Status`/`Note`, `ServicePill.Label`, `AlertRow.Summary`, `silenceRow` notes, `BackupsPill.Label`, the synthesised `IDENTITY_UNPROTECTED` summary, `sinceLabel`. `detail.go`/`silence.go`/`recentevents.go` — `ServiceDetailView.Status`/`BackupLine`, curated `TimelineEvent.Label`/`TimeLabel`, `SilenceView.judgedAgainst`/`callout`/`status`. - **Keys:** under `monitor.*` in `dashboard/src/i18n/monitor/` (en byte-identical to the Go prose; es/nl/fr/pt machine drafts marked draft — native-reviewer accept owed, as in #2125). - **Dashboard:** `FleetServicesStatusScreen`, `ServiceDetailScreen`, `DeviceGoneSilentScreen`, and shell `FleetSurface`'s `a.summary` resolve through `useSeamText`. - **Compositional sentences** (`sinceLabel`/`shortSince`/`timeLabel`): key the frame, ride the time/count glue as English params (the noted machine-draft limitation, DDR 0234 bucket 3). Relayed/machine-read values stay prose. - **Lands by push.** Independent of #2136 (rescue). Parent #2121.
Author
Member

swarm-claim host=matou-dev-server-01 run=59790
(automated multi-host claim — lowest live claim id works this ticket)

swarm-claim host=matou-dev-server-01 run=59790 (automated multi-host claim — lowest live claim id works this ticket)
Author
Member

⏩ independent reviewer for #2140 — verdict unauthenticated

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

close-report for #2140 — status success

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

envelope
{
  "issue": 2140,
  "status": "success",
  "commits": [
    "a93458c19f4642e4609fa376da67100faf175fd7"
  ],
  "changed_files": [
    "STATUS.md",
    "dashboard/src/components/monitoring/DeviceGoneSilentScreen.vue",
    "dashboard/src/components/monitoring/FleetServicesStatusScreen.vue",
    "dashboard/src/components/monitoring/ServiceDetailScreen.vue",
    "dashboard/src/components/shell/FleetSurface.vue",
    "dashboard/src/i18n/monitor/en.ts",
    "dashboard/src/i18n/monitor/es.ts",
    "dashboard/src/i18n/monitor/fr.ts",
    "dashboard/src/i18n/monitor/nl.ts",
    "dashboard/src/i18n/monitor/pt.ts",
    "dashboard/src/lib/monitoring.ts",
    "dashboard/tests/unit/monitoringSeamI18n.test.ts",
    "internal/monitor/detail.go",
    "internal/monitor/monitor.go",
    "internal/monitor/silence.go",
    "internal/monitor/status.go",
    "internal/monitor/statusi18nseam_test.go"
  ],
  "tests": [
    {
      "command": "go test ./internal/monitor/",
      "exit_code": 0
    },
    {
      "command": "go vet ./internal/monitor/",
      "exit_code": 0
    },
    {
      "command": "golangci-lint run ./internal/monitor/ (via nix develop .#go-ci)",
      "exit_code": 0
    },
    {
      "command": "gofmt -l internal/monitor/*.go",
      "exit_code": 0
    },
    {
      "command": "npx vitest run tests/unit/monitoringSeamI18n.test.ts",
      "exit_code": 0
    },
    {
      "command": "npx vitest run tests/unit/i18n.test.ts (decision-9 parity guard)",
      "exit_code": 0
    },
    {
      "command": "npx vitest run monitoringStatus/Silence/DrillIn/FixDidntHold/Respond/BackupFaultRouting/deviceDetailDrillIn",
      "exit_code": 0
    },
    {
      "command": "npx vue-tsc -p tsconfig.json --noEmit",
      "exit_code": 0
    },
    {
      "command": "npx eslint <changed dashboard files>",
      "exit_code": 0
    }
  ],
  "criteria": {
    "P5-S1 status surface prose crosses the seam keyed (StatusView.Headline, DeviceRow.Status/Note, BackupsPill.Label, AlertRow.Summary, sinceLabel)": "internal/monitor/status.go + statusi18nseam_test.go (TestStatus_AllHealthy_KeysHeadline, TestStatus_DeviceRow_KeysStatusAndNote, TestStatus_BackupsPill_KeysLabel, TestStatus_IdentityUnprotected_KeysSummary)",
    "P5-S3 detail + silence prose crosses the seam keyed (ServiceDetailView.Status/BackupLine, TimelineEvent.Label/TimeLabel, SilenceView.JudgedAgainst/Callout/Status)": "internal/monitor/detail.go + silence.go + statusi18nseam_test.go (TestServiceDetail_KeysStatusAndBackupLine, TestServiceDetail_KeysTimelineEvents, TestStatus_Silence_KeysStatusJudgedCalloutAndAlertSummary)",
    "the four dashboard surfaces resolve via useSeamText (FleetServicesStatusScreen, ServiceDetailScreen, DeviceGoneSilentScreen, FleetSurface a.summary)": "dashboard/src/components/monitoring/*.vue + shell/FleetSurface.vue + lib/monitoring.ts helpers; monitoringSeamI18n.test.ts one live en->es flip per surface",
    "keys land under monitor.* in all five locales, en byte-identical to the Go prose, drafts marked": "dashboard/src/i18n/monitor/{en,es,nl,fr,pt}.ts; decision-9 parity guard (i18n.test.ts) green",
    "relayed/machine-read values stay prose (DDR 0234 bucket 3)": "ServicePill.Label / {service} catalogue label, backups' last-good, clock times, {count}/{since}/{ago}/{windows} glue ride slots; service/gap/mail/cert summaries keep empty SummaryKey; recentevents.go reads the curated label verbatim"
  },
  "summary": "The monitor P5-S1 status surface and P5-S3 service detail emit a *Key/*Args twin beside the retained English, and the four status surfaces resolve it in the active locale.",
  "blockers": []
}
**close-report** for #2140 — status `success` :white_check_mark: **close-report gates passed** — every claim verified against the pushed worker branch `sandcastle/worker/20261104-122520-a6bc17` (pre-land — the host promotes it to `main` only after its post-run verify, #193/#283); issue closed. <details><summary>envelope</summary> ```json { "issue": 2140, "status": "success", "commits": [ "a93458c19f4642e4609fa376da67100faf175fd7" ], "changed_files": [ "STATUS.md", "dashboard/src/components/monitoring/DeviceGoneSilentScreen.vue", "dashboard/src/components/monitoring/FleetServicesStatusScreen.vue", "dashboard/src/components/monitoring/ServiceDetailScreen.vue", "dashboard/src/components/shell/FleetSurface.vue", "dashboard/src/i18n/monitor/en.ts", "dashboard/src/i18n/monitor/es.ts", "dashboard/src/i18n/monitor/fr.ts", "dashboard/src/i18n/monitor/nl.ts", "dashboard/src/i18n/monitor/pt.ts", "dashboard/src/lib/monitoring.ts", "dashboard/tests/unit/monitoringSeamI18n.test.ts", "internal/monitor/detail.go", "internal/monitor/monitor.go", "internal/monitor/silence.go", "internal/monitor/status.go", "internal/monitor/statusi18nseam_test.go" ], "tests": [ { "command": "go test ./internal/monitor/", "exit_code": 0 }, { "command": "go vet ./internal/monitor/", "exit_code": 0 }, { "command": "golangci-lint run ./internal/monitor/ (via nix develop .#go-ci)", "exit_code": 0 }, { "command": "gofmt -l internal/monitor/*.go", "exit_code": 0 }, { "command": "npx vitest run tests/unit/monitoringSeamI18n.test.ts", "exit_code": 0 }, { "command": "npx vitest run tests/unit/i18n.test.ts (decision-9 parity guard)", "exit_code": 0 }, { "command": "npx vitest run monitoringStatus/Silence/DrillIn/FixDidntHold/Respond/BackupFaultRouting/deviceDetailDrillIn", "exit_code": 0 }, { "command": "npx vue-tsc -p tsconfig.json --noEmit", "exit_code": 0 }, { "command": "npx eslint <changed dashboard files>", "exit_code": 0 } ], "criteria": { "P5-S1 status surface prose crosses the seam keyed (StatusView.Headline, DeviceRow.Status/Note, BackupsPill.Label, AlertRow.Summary, sinceLabel)": "internal/monitor/status.go + statusi18nseam_test.go (TestStatus_AllHealthy_KeysHeadline, TestStatus_DeviceRow_KeysStatusAndNote, TestStatus_BackupsPill_KeysLabel, TestStatus_IdentityUnprotected_KeysSummary)", "P5-S3 detail + silence prose crosses the seam keyed (ServiceDetailView.Status/BackupLine, TimelineEvent.Label/TimeLabel, SilenceView.JudgedAgainst/Callout/Status)": "internal/monitor/detail.go + silence.go + statusi18nseam_test.go (TestServiceDetail_KeysStatusAndBackupLine, TestServiceDetail_KeysTimelineEvents, TestStatus_Silence_KeysStatusJudgedCalloutAndAlertSummary)", "the four dashboard surfaces resolve via useSeamText (FleetServicesStatusScreen, ServiceDetailScreen, DeviceGoneSilentScreen, FleetSurface a.summary)": "dashboard/src/components/monitoring/*.vue + shell/FleetSurface.vue + lib/monitoring.ts helpers; monitoringSeamI18n.test.ts one live en->es flip per surface", "keys land under monitor.* in all five locales, en byte-identical to the Go prose, drafts marked": "dashboard/src/i18n/monitor/{en,es,nl,fr,pt}.ts; decision-9 parity guard (i18n.test.ts) green", "relayed/machine-read values stay prose (DDR 0234 bucket 3)": "ServicePill.Label / {service} catalogue label, backups' last-good, clock times, {count}/{since}/{ago}/{windows} glue ride slots; service/gap/mail/cert summaries keep empty SummaryKey; recentevents.go reads the curated label verbatim" }, "summary": "The monitor P5-S1 status surface and P5-S3 service detail emit a *Key/*Args twin beside the retained English, and the four status surfaces resolve it in the active locale.", "blockers": [] } ``` </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#2140
No description provided.