i18n (Go seam): backup stages and failures — internal/backup #2126
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.
Blocks
Reference
Matou/idss#2126
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
Backup stage lines and failure messages (
internal/backup, ~34 sentences) render in English. Key them + params so the backup progress and any failure 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/*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.
⏩ independent reviewer for #2126 — verdict
unauthenticatedreview JSON
close-report for #2126 — status
success✅ close-report gates passed — every claim verified against the pushed worker branch
sandcastle/worker/20261103-191413-cdbc9e(pre-land — the host promotes it tomainonly after its post-run verify, #193/#283); issue closed.envelope
🚨 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 (the promote did not advance main (a no-op push to main)), soorigin/mainnever carried the commits (00fcb767df7bb034f872ea943f08dee3a07905c0). The gates-passed comment above is therefore NOT true ofmain. Reopening and relabellingready-for-sessionso the work is redone where it can land; the commits are parked on a rescue branch for triage (see this run's alarm).Close report — landed on
main(push mode), commita71cee68.The
backupGo seam (internal/backup) now emits a message key + params beside every operator-facing stage line and failure message it authors; the control panel resolves the key in the active locale and falls back to the retained English prose (ADR 0232 decision 5, DDR 0234 — extends the founding/monitor pattern, not a second one).What landed (~34 authored sentences keyed):
run.go—RunRow.Summary/Detailfor the four P7-S3 run outcomes (target names / kept-of-total counts on slots).restore.go—RestoreStage.Label/Detailfor the P7-S5 alternate-device stages.restore_inplace.go— the P7-S4xRestoreConfirmViewlines,RestoreHeadroom.Message(enough/tight), and the in-place P7-S5/S5x stages. Fail-stage labels keyed; their details relay a port/err%vverbatim and stay prose (DDR 0234 bucket 3). The tight-headroomneedclause rides its own relayed slot.dashboard/src/i18n/backup/{en,es,nl,fr,pt}.ts(en authoritative/byte-identical to the Go prose; es/nl/fr/pt machine drafts, marked draft — native-reviewer accept owed), wired intodashboard/src/i18n/index.ts.BackupRunsScreen/BackupRestoreScreen/BackupRestoreReplacesScreenresolve throughuseSeamText.Acceptance:
en→esflip re-renders it (one test per surface:dashboard/tests/unit/backupsSeamI18n.test.ts). Backups is a control-panel-only surface — no operator-app render, so no app test.runAuditDetail/restoreAuditDetail/inPlaceAuditDetail, oplog) stay English; relayed-from-another-seam text stays prose (bucket 3).Proof:
internal/backup/i18nseam_test.go(8 tests) +dashboard/tests/unit/backupsSeamI18n.test.ts(4, one en→es flip per surface).go test ./internal/backup/+go vet+ golangci-lint (0 issues) + gofmt clean;go build ./...clean; dashboardvue-tsc+ eslint clean; dashboard parity guard + existing backup component suites green. Push gate (gofmt + eslint) passed.Known (pre-existing, flagged): the keyed
*_key/*_argsfields flow through the genericcamelizewire-mapping at runtime but are not yet declared in the OpenAPI spec /generated.ts(same as the #2125 monitor seam) — additive/omitempty, so the untyped passthrough is harmless; a transport-type follow-up. OWED: native-reviewer accept for the four drafts.Advances #2121. Ruled by agent under ADR 0174 — veto anytime (additive fields + prose fallback, revertible per commit; proven by the suites).