i18n (Go seam): device-removal plans — internal/provision, internal/clan #2127
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.
Dependencies
No dependencies set.
Reference
Matou/idss#2127
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
Device-removal plans (the removal-plan and device-facing prose in
internal/provisionandinternal/clan) cross the seam as English sentences. Key the operator-facing removal-plan text + params. Scope to the removal-plan / device-facing prose only — the rest ofinternal/clan(104 sentences total) belongs to its own follow-ups; key only what this area's surfaces render.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.
swarm-claim host=elitebook-distributed-server-03 run=58977
(automated multi-host claim — lowest live claim id works this ticket)
⏩ independent reviewer for #2127 — verdict
unauthenticatedreview JSON
close-report for #2127 — status
success✅ close-report gates passed — every claim verified against the pushed worker branch
sandcastle/worker/20261103-191635-2eea3a(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 (push-failed-nothing-to-land), soorigin/mainnever carried the commits (52bec85bc0521d6e633ada93ef7053e2d5b2cd74). 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), ADR 0174.Device-removal plans now cross the Go seam as a message key + params beside the retained English, and the catalogue UNINSTALL dialog resolves the key in the active locale, falling back to the prose when a key is missing (ADR 0232 decision 5/6, DDR 0234). Extends the live founding/monitor/backup/update pattern — not a second one.
What landed (commit
d6578ff7):provision.removal.*:internal/provision/removal.go—DeviceRemoval.Freed→FreedKey/FreedArgs(the GB figure on{gb});RemovalForpasses the keyed LOSES structure ontoDeviceRemoval.LosesKeys/LosesArgs.internal/provision/impact.go— the two ⚠ LOSES forms (last-live-copy, last-backup) keyed via a newImpact.loseKeyedhelper that keepsLoses/LosesKeys/LosesArgsindex-aligned (dataset + device names on slots). Byte-identical to the impact's own keyed rows the change journey shares (DDR 0155 §3 — one estimate).dashboard/src/i18n/provision/{en,es,nl,fr,pt}.ts, wired intodashboard/src/i18n/index.ts.enbyte-identical to the Go prose; es/nl/fr/pt machine drafts, markeddraft(native-reviewer accept owed). Passes the decision-9 parity guard.SelectDeviceDialog.vue(mode="uninstall") resolves the freed line + each LOSES row throughuseSeamText— the only surface that renders this prose (control-panel only; no operator-app render).Acceptance (scoped to this area):
en→esflip re-renders it (one test for the surface).provision:-prefixed error refusals are bucket 3 (machine-read), left prose. Nointernal/clanprose is rendered by this surface (the removal read imports onlyfleetstate/catalogue/enroll); the rest ofinternal/clanis its own follow-ups.Proof (red→green):
internal/provision/i18nseam_test.go(4 tests — freed keyed, both LOSES forms keyed with the right slots, byte-identity with ReviewImpact) +dashboard/tests/unit/provisionRemovalSeamI18n.test.ts(2 — a liveen→esflip re-renders the freed line and the LOSES row with the dataset/device names riding the slots verbatim; and the prose fallback on a missing key).go test ./internal/provision/ ./internal/controlapi/green;go vet+ golangci-lint (0 issues) + gofmt clean; dashboardvue-tsc+ eslint clean; dashboard parity guard + the existingcatalogueUninstall/removalcomponent suites green (58 pass).Known (pre-existing): the keyed
*_key/*_argsfields flow through the genericcamelizewire-mapping at runtime but are not yet declared in the OpenAPI spec /generated.ts(same as #2125/#2126) — a transport-type follow-up; the fields are additive/omitempty, so the untyped passthrough is harmless.Two-way door throughout: additive fields + prose fallback, revertible per commit, proven by the two suites. Ruled by agent under ADR 0174 — veto anytime. Advances #2121.
STATUS.md updated in the same commit.