i18n (Go seam): control-API errors — internal/controlapi, control-plane/cmd #2129
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#2129
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
Control-API errors (
internal/controlapi, ~58 sentences;control-plane/cmd, ~40 sentences) surface to operators as English. Key the operator-facing error messages + params. Machine-read / log-only strings stay English (DDR 0234 bucket 3) — key only what an operator reads on a screen.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.
Ruled by agent under ADR 0174 — veto anytime.
Decision: split this ticket. Its estimate (~58 + ~40 sentences) undercounts the real keyable surface: ~90+ authored operator-/member-facing sentences across two packages (
internal/controlapi,control-plane/cmd) and two distinct mechanisms — the sharedProblem/writeProblemerror carrier AND the per-view render-modelError/Detailfields (DeployRunView, enroll-rent, destroy, provision recovery, spaces) — rendered on ~15 panel surfaces, each owing its own en→es test. That is more than one vertical slice (it mirrors #2124, which bundled two seams on two frontends and split, closing one half and moving the other to #2136).This slice ships the reusable carrier infrastructure + the
updatessurface end to end:Problem.Key/Args(Go, json omitempty) + awriteProblemKeyedhelper; the OpenAPIProblemschema grewkey/argsand the client was regenerated (check:clientclean — theProblem/ControlPlaneErrorpath bypasses the genericcamelizemapping the earlier siblings leaned on, so the spec is the only way the typed client carries the fields);useAsyncGuard(@idss/ui-kit) now lifts a rejection'sproblem.key/argsontoerrorKey/errorArgs(duck-typed), so any guard-backed surface resolves the keyed error through the seam translator;dashboard/src/i18n/controlapi/{en,es,nl,fr,pt}catalogue area (en authoritative; es/nl/fr/pt machine drafts, marked draft);updates.go's 10 authored error sentences keyed and resolved onUpdatePolicyScreen/ReviewUpdateScreen(and defensivelyUpdatesSurface).Moved to the #2129 remainder → #2152: the rest of
internal/controlapi's error surfaces, the per-view error-field mechanism, and all ofcontrol-plane/cmd, reusing this infra.Why this is a two-way door: the change is additive (every new field is
omitempty/optional with the English prose as the fallback, so nothing regresses if reverted) and revertible per commit; it is proven by the red→green suites (internal/controlapi/updates_i18n_seam_test.go,dashboard/tests/unit/controlapiErrorsI18n.test.ts, theasyncGuardkey-capture tests, and the catalogue parity guard). The remaining acceptance is not lost — it is carried, in full, by the open #2152.swarm-claim host=bens-mac-04 run=59538
(automated multi-host claim — lowest live claim id works this ticket)
Correction / status (from run 59482). This run's iteration lost its claim on #2129 mid-flight — the claim lease expired (~07:47Z) and run 59538 re-claimed the ticket. The commit-msg gate therefore (correctly) refuses any commit from run 59482 for #2129, and nothing from this run reached
origin(both pushes were blocked by the pre-push gate — one for an in-sandbox Go-gate setup, then one errcheck nit I fixed but could no longer commit once the claim was gone).So the preceding "Ruled by agent under ADR 0174" comment describes work that was prepared but did NOT land. Run 59538 (or whoever next holds the claim) owns #2129 afresh and should proceed as it sees fit — the proposed split is only a suggestion. The follow-up I filed, #2152, is likewise provisional: if #2129 is completed whole, close #2152 as redundant. I am not touching this ticket's claim or labels.
swarm-claim host=bens-mac-04 run=59542
(automated multi-host claim — lowest live claim id works this ticket)
swarm-claim host=elitebook-distributed-server-03 run=59276
(automated multi-host claim — lowest live claim id works this ticket)
swarm-claim host=matou-dev-server-01 run=59500
(automated multi-host claim — lowest live claim id works this ticket)
swarm-claim host=bens-mac-04 run=59556
(automated multi-host claim — lowest live claim id works this ticket)
swarm-claim host=matou-dev-server-01 run=59504
(automated multi-host claim — lowest live claim id works this ticket)
⏩ independent reviewer for #2129 — verdict
unauthenticatedreview JSON
close-report for #2129 — status
success✅ close-report gates passed — every claim verified against main; issue closed.
envelope