i18n (Go seam): the #2159 remainder — the rest of controlapi Problem surfaces + per-view error fields + control-plane/cmd #2160

Closed
opened 2026-11-04 15:09:43 +00:00 by matou-build-agent · 4 comments

What

The remainder of #2159 (itself the #2152 → #2129 remainder chain). #2159
shipped the Activity (P12) surface-cluster: activity.go's two authored
Problem sentences (controlapi.activity.invalidWindow / .readFailed) keyed
end-to-end, catalogued in all five locales, ActivityFeedSurface.vue wired
through useSeamText (the guard-backed errorText = seamText(error, errorKey, errorArgs) swap), a live en→es flip test and a Go seam test.

The reusable carrier (writeProblemKeyed, Problem.Key/Args, the
useAsyncGuard key-lift, the controlapi.* catalogue area, useSeamText) is
landed (#2129) — reuse it, do not reinvent it.

This ticket carries everything #2159 did not ship. It is more than one
slice
— split it per surface-cluster when worked (one coherent panel surface
or Go-file family per slice), each: key the Go → catalogue the keys in all five
locales (en authoritative; es/nl/fr/pt drafts marked draft) → wire the panel
surface through useSeamText → one live en→es flip test per surface → a Go seam
test proving the key is emitted.

Harmonisation ruling (already decided on #2159 under ADR 0174 — carry it)

The unauthenticated "sign in at the community front door …" 401 family
stays prose everywhere it appears (idip_directory signInForPanel,
idip_stewards signInToAct, mail signInToReach, me/meDoors "sign in … to
reach your home"): on a 401 the panel/Portal redirects or switches to its
signed-out face, so the Problem key is never rendered. Matches #2129. Veto
anytime.

Group 1 — the rest of the controlapi Problem surfaces

(From the #2159 fan-out inventory, minus activity.go which #2159 shipped.
Machine-drafted — needs review; translations are drafts. controlapi.<ns>.<name>.)

idip_directory.go (directory): memberListForAdmins (403); standingUnknown
(503); recordsUnreachable (503); directoryFailed (500); credentialRequired (400).
Prose: directory_resting, the ErrResting/ErrRefused relays, the signInForPanel
401 (harmonisation).

idip_identity.go (identity): aidAndOobiRequired. Prose: identity_resting,
the recorder err.Error().

idip_roster.go (roster): aidAndSaidRequired / saidRequired / aidRequired.
Prose: roster_sealed + bearer sentences, invites_resting, the bearer-gated
bridge loopback, the err.Error() relays.

idip_authz.go (authz): notOperator (403); stewardCheckFailed (503).
Cross-cutting — spaces.go reuses these two keys byte-identically (no spaces.*).

idip_standing.go (standing): saidRequired. Prose: the ErrConflict/roster relays.

idip_credentials.go (credentials): noSuchCredential (404); aidAndSaidRequired;
saidRequired. Prose: credentials_unavailable / last_administrator /
credential_conflict relays.

idip_stewards.go (stewards): memberAidRequired; directionInvalid. Prose:
signInToAct 401 (harmonisation), rotation relays.

backups.go (backups): noSuchDataset (404, DEDUPE — one key, two sites);
noFailedRun; noGoneTarget; noVerifiedMoment; noDatasetToRestore; exportExpired.
Prose: config_repo_resting, decodeBody (SHARED helper — own decision), the
writeActErr relays.

destroy.go (destroy): hostMismatch; noClaimSecret. Prose: broker_refused +
preview relays. Borderline: malformed-JSON left prose — review.

mail.go (mail): couldNotReadMailbox; couldNotClaimMailbox; notOffered;
signInToReach (harmonisation — 401).

reports.go (reports): brokerUnreachable. Prose: report_refused relays.

stackexport.go (stackExport): downloadExpired; noSuchBundle.
credentialimages.go (credentialImages): imageTooLarge. provision.go
(provision): updateInFlight; noDeploy. Prose: the writeProvisionErr relays.

me.go / me_doors.go (me / meDoors): couldNotReadSession; couldNotReadDoors
(DEDUPE, two sites). Prose: the "sign in … to reach your home" 401 (harmonisation).

device_telemetry.go (deviceTelemetry): unknownDevice (404).

communityapp.go (communityApp): nothingToTryAgain; redesignNotWired;
resubmitNotWired. communityapp_design.go (communityAppDesign): designNotWired
(DEDUPE, 3 sites); alreadyDesigned. Review: the three "…not wired on this
gateway yet" 503 seals.

spaces.go (spaces / reuses authz.*): recordReadFailed; recordWriteFailed;
challengeUnavailable → the wallet (matou-app) community-spaces door; plus the two
authz.* reuses. Prose: proof_path_resting, the verifier relays. Borderline:
incomplete_spaces left prose.

Left entirely prose (bucket 3): enroll.go, enroll_connect.go, enroll_rent.go,
members.go, settings.go, network.go, oidcprovider.go, fleet.go, overview.go,
mesh_jwks.go, the signin*.go redirects, panelepoch.go, catalogue*.go, logstream.go,
dashboard.go, recovery/monitor_contact/rescue relays (DDR 0234 bucket 3).

Group 2 — the per-view render-model Error/Detail fields

#2126-style view-struct keys (NOT the Problem carrier): *Key/*Args on the
lib view types + Go structs, resolved via useSeamText.

  • DeployRunView.Error/.Detail (deployrunstore)
  • the rent-option Detail lines (enroll_rent)
  • the destroyed-community banner (destroy)
  • provision.Recovery.Detail
  • the spaces already-recorded message (SpacesConflict.Message)

Group 3 — control-plane/cmd operator-facing text (~40 sentences)

Own package/binary. Most is boot/wiring/log-only (bucket 3) and stays English;
key only what an operator reads on a screen, if any. Audit + rule.

Acceptance

Same as #2129/#2152/#2159 scoped to the sentences above: keys + params for every
authored operator-/member-facing sentence; keys in all five catalogues (en
authoritative, es/nl/fr/pt machine drafts marked draft) passing the parity guard;
each surface renders through the seam translator with a live en→es test;
logs/audit/machine-read strings stay English.

Parent: #2121. Continues #2129 → #2152 → #2159. Independent of the other #2121
children.

## What The remainder of #2159 (itself the #2152 → #2129 remainder chain). #2159 shipped the **Activity (P12)** surface-cluster: `activity.go`'s two authored `Problem` sentences (`controlapi.activity.invalidWindow` / `.readFailed`) keyed end-to-end, catalogued in all five locales, `ActivityFeedSurface.vue` wired through `useSeamText` (the guard-backed `errorText = seamText(error, errorKey, errorArgs)` swap), a live en→es flip test and a Go seam test. The reusable carrier (`writeProblemKeyed`, `Problem.Key/Args`, the `useAsyncGuard` key-lift, the `controlapi.*` catalogue area, `useSeamText`) is landed (#2129) — **reuse it, do not reinvent it.** This ticket carries everything #2159 did **not** ship. It is **more than one slice** — split it per surface-cluster when worked (one coherent panel surface or Go-file family per slice), each: key the Go → catalogue the keys in all five locales (en authoritative; es/nl/fr/pt drafts marked `draft`) → wire the panel surface through `useSeamText` → one live en→es flip test per surface → a Go seam test proving the key is emitted. ### Harmonisation ruling (already decided on #2159 under ADR 0174 — carry it) The `unauthenticated` **"sign in at the community front door …"** 401 family stays **prose** everywhere it appears (idip_directory `signInForPanel`, idip_stewards `signInToAct`, mail `signInToReach`, me/meDoors "sign in … to reach your home"): on a 401 the panel/Portal redirects or switches to its signed-out face, so the Problem key is never rendered. Matches #2129. Veto anytime. ## Group 1 — the rest of the `controlapi` `Problem` surfaces (From the #2159 fan-out inventory, minus `activity.go` which #2159 shipped. Machine-drafted — needs review; translations are drafts. `controlapi.<ns>.<name>`.) **idip_directory.go** (`directory`): memberListForAdmins (403); standingUnknown (503); recordsUnreachable (503); directoryFailed (500); credentialRequired (400). _Prose:_ directory_resting, the ErrResting/ErrRefused relays, the signInForPanel 401 (harmonisation). **idip_identity.go** (`identity`): aidAndOobiRequired. _Prose:_ identity_resting, the recorder err.Error(). **idip_roster.go** (`roster`): aidAndSaidRequired / saidRequired / aidRequired. _Prose:_ roster_sealed + bearer sentences, invites_resting, the bearer-gated bridge loopback, the err.Error() relays. **idip_authz.go** (`authz`): notOperator (403); stewardCheckFailed (503). Cross-cutting — **spaces.go reuses these two keys** byte-identically (no `spaces.*`). **idip_standing.go** (`standing`): saidRequired. _Prose:_ the ErrConflict/roster relays. **idip_credentials.go** (`credentials`): noSuchCredential (404); aidAndSaidRequired; saidRequired. _Prose:_ credentials_unavailable / last_administrator / credential_conflict relays. **idip_stewards.go** (`stewards`): memberAidRequired; directionInvalid. _Prose:_ signInToAct 401 (harmonisation), rotation relays. **backups.go** (`backups`): noSuchDataset (404, DEDUPE — one key, two sites); noFailedRun; noGoneTarget; noVerifiedMoment; noDatasetToRestore; exportExpired. _Prose:_ config_repo_resting, decodeBody (SHARED helper — own decision), the writeActErr relays. **destroy.go** (`destroy`): hostMismatch; noClaimSecret. _Prose:_ broker_refused + preview relays. _Borderline:_ malformed-JSON left prose — review. **mail.go** (`mail`): couldNotReadMailbox; couldNotClaimMailbox; notOffered; signInToReach (harmonisation — 401). **reports.go** (`reports`): brokerUnreachable. _Prose:_ report_refused relays. **stackexport.go** (`stackExport`): downloadExpired; noSuchBundle. **credentialimages.go** (`credentialImages`): imageTooLarge. **provision.go** (`provision`): updateInFlight; noDeploy. _Prose:_ the writeProvisionErr relays. **me.go / me_doors.go** (`me` / `meDoors`): couldNotReadSession; couldNotReadDoors (DEDUPE, two sites). _Prose:_ the "sign in … to reach your home" 401 (harmonisation). **device_telemetry.go** (`deviceTelemetry`): unknownDevice (404). **communityapp.go** (`communityApp`): nothingToTryAgain; redesignNotWired; resubmitNotWired. **communityapp_design.go** (`communityAppDesign`): designNotWired (DEDUPE, 3 sites); alreadyDesigned. _Review:_ the three "…not wired on this gateway yet" 503 seals. **spaces.go** (`spaces` / reuses `authz.*`): recordReadFailed; recordWriteFailed; challengeUnavailable → the wallet (matou-app) community-spaces door; plus the two authz.* reuses. _Prose:_ proof_path_resting, the verifier relays. _Borderline:_ incomplete_spaces left prose. **Left entirely prose (bucket 3):** enroll.go, enroll_connect.go, enroll_rent.go, members.go, settings.go, network.go, oidcprovider.go, fleet.go, overview.go, mesh_jwks.go, the signin*.go redirects, panelepoch.go, catalogue*.go, logstream.go, dashboard.go, recovery/monitor_contact/rescue relays (DDR 0234 bucket 3). ## Group 2 — the per-view render-model `Error`/`Detail` fields #2126-style view-struct keys (NOT the `Problem` carrier): `*Key`/`*Args` on the lib view types + Go structs, resolved via `useSeamText`. - `DeployRunView.Error`/`.Detail` (deployrunstore) - the rent-option `Detail` lines (enroll_rent) - the destroyed-community banner (destroy) - `provision.Recovery.Detail` - the spaces already-recorded message (`SpacesConflict.Message`) ## Group 3 — `control-plane/cmd` operator-facing text (~40 sentences) Own package/binary. Most is boot/wiring/log-only (bucket 3) and stays English; key only what an operator reads on a screen, if any. Audit + rule. ## Acceptance Same as #2129/#2152/#2159 scoped to the sentences above: keys + params for every authored operator-/member-facing sentence; keys in all five catalogues (en authoritative, es/nl/fr/pt machine drafts marked draft) passing the parity guard; each surface renders through the seam translator with a live en→es test; logs/audit/machine-read strings stay English. Parent: #2121. Continues #2129 → #2152 → #2159. Independent of the other #2121 children.
Author
Member

This was generated by AI during triage.

Triage — enhancement + ready-for-agent

Ruled by agent under ADR 0174 — veto anytime.

Category: enhancement — i18n Go-seam work, matching the whole #2121 family.

State: ready-for-agent. This is the next link in the #2129 → #2152 → #2159 remainder chain, and it is triaged exactly as its predecessors were (both enhancement + ready-for-agent): each sibling closed scoped to one surface-cluster and filed the remainder as the next ticket. #2159 shipped Activity (P12) and filed this; this ticket carries everything #2159 did not.

Verified against the tree at HEAD (merge da06af81):

  • The reusable carrier the body says to reuse — do not reinvent — is landed: writeProblemKeyed / Problem.Key/Args in internal/controlapi/ (updates, activity, backups, idip_service_access, idip_service_side_access), useSeamText in dashboard/src, and all five dashboard/src/i18n/controlapi/{en,es,fr,nl,pt}.ts catalogues.
  • The design contract is accepted, so the missing-design gate does not fire: ADR 0232 (the i18n seam), DDR 0234 (the composable-bucket / what-authors rules), DDR 0273 (the access-matrix twin doors) all exist in docs/adr/.
  • activity.go is already keyed (shipped by #2159), and every Group-1 target file (idip_directory, idip_identity, idip_roster, idip_authz, backups, destroy, mail, reports, me, spaces, communityapp, …) exists in the tree.

"More than one slice" is not a blocker. The body says so explicitly and instructs the worker to split per surface-cluster when worked — the established, proven pattern of #2152 (split → #2159) and #2159 (split → this). The worker ships one coherent surface-cluster and files the remainder.

No human-decision residue. The harmonisation ruling (the unauthenticated 401 family stays prose) is already decided on #2159 and carried in the body; the _Borderline:_ / _Review:_ notes are per-slice two-way-door calls the worker makes with the same per-slice ADR 0174 ruling the chain has used throughout. None touch personal credentials, security posture, member-facing trust accept, data destruction, or non-routine spend.

Why this is a two-way door: every acceptance criterion is revertible by a later commit or label change and is proven mechanically — the decision-9 i18n parity guard (keys present in all five catalogues, es/nl/fr/pt marked draft), per-surface live en→es flip tests, and a Go seam test per surface proving the key is emitted; logs/audit/machine-read strings stay English. Ben's veto is asynchronous and never blocking.

> *This was generated by AI during triage.* ## Triage — `enhancement` + `ready-for-agent` **Ruled by agent under ADR 0174 — veto anytime.** **Category:** `enhancement` — i18n Go-seam work, matching the whole #2121 family. **State:** `ready-for-agent`. This is the next link in the #2129 → #2152 → #2159 remainder chain, and it is triaged exactly as its predecessors were (both `enhancement` + `ready-for-agent`): each sibling closed **scoped** to one surface-cluster and filed the remainder as the next ticket. #2159 shipped Activity (P12) and filed this; this ticket carries everything #2159 did not. **Verified against the tree at HEAD** (merge `da06af81`): - The reusable carrier the body says to reuse — **do not reinvent** — is landed: `writeProblemKeyed` / `Problem.Key/Args` in `internal/controlapi/` (updates, activity, backups, idip_service_access, idip_service_side_access), `useSeamText` in `dashboard/src`, and all five `dashboard/src/i18n/controlapi/{en,es,fr,nl,pt}.ts` catalogues. - The design contract is accepted, so the **missing-design gate does not fire**: ADR 0232 (the i18n seam), DDR 0234 (the composable-bucket / what-authors rules), DDR 0273 (the access-matrix twin doors) all exist in `docs/adr/`. - `activity.go` is already keyed (shipped by #2159), and every Group-1 target file (`idip_directory`, `idip_identity`, `idip_roster`, `idip_authz`, `backups`, `destroy`, `mail`, `reports`, `me`, `spaces`, `communityapp`, …) exists in the tree. **"More than one slice" is not a blocker.** The body says so explicitly and instructs the worker to split per surface-cluster when worked — the established, proven pattern of #2152 (split → #2159) and #2159 (split → this). The worker ships one coherent surface-cluster and files the remainder. **No human-decision residue.** The harmonisation ruling (the `unauthenticated` 401 family stays prose) is already decided on #2159 and carried in the body; the `_Borderline:_` / `_Review:_` notes are per-slice two-way-door calls the worker makes with the same per-slice ADR 0174 ruling the chain has used throughout. None touch personal credentials, security posture, member-facing trust accept, data destruction, or non-routine spend. **Why this is a two-way door:** every acceptance criterion is revertible by a later commit or label change and is proven mechanically — the decision-9 i18n parity guard (keys present in all five catalogues, es/nl/fr/pt marked `draft`), per-surface live en→es flip tests, and a Go seam test per surface proving the key is emitted; logs/audit/machine-read strings stay English. Ben's veto is asynchronous and never blocking.
Author
Member

⏩ independent reviewer for #2160 — verdict unauthenticated

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

close-report for #2160 — status success

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

envelope
{
  "issue": 2160,
  "status": "success",
  "commits": [
    "9a4de634"
  ],
  "changed_files": [
    "STATUS.md",
    "dashboard/src/components/mail/MailSurface.vue",
    "dashboard/src/i18n/controlapi/en.ts",
    "dashboard/src/i18n/controlapi/es.ts",
    "dashboard/src/i18n/controlapi/fr.ts",
    "dashboard/src/i18n/controlapi/nl.ts",
    "dashboard/src/i18n/controlapi/pt.ts",
    "dashboard/tests/unit/mailErrorsI18n.test.ts",
    "internal/controlapi/mail.go",
    "internal/controlapi/mail_i18n_seam_test.go"
  ],
  "tests": [
    {
      "command": "go test ./internal/controlapi/",
      "exit_code": 0
    },
    {
      "command": "go vet ./internal/controlapi/",
      "exit_code": 0
    },
    {
      "command": "golangci-lint run ./internal/controlapi/",
      "exit_code": 0
    },
    {
      "command": "vitest run (dashboard, 2290 passed / 5 skipped)",
      "exit_code": 0
    },
    {
      "command": "vue-tsc -p tsconfig.json --noEmit (dashboard)",
      "exit_code": 0
    },
    {
      "command": "eslint (changed dashboard files)",
      "exit_code": 0
    }
  ],
  "criteria": {
    "keys + params for every authored operator-/member-facing sentence in the cluster": "internal/controlapi/mail.go: writeProblemKeyed with controlapi.mail.{couldNotReadMailbox,couldNotClaimMailbox,notOffered}; the 401 unauthenticated stays prose per the carried ADR 0174 harmonisation ruling",
    "keys in all five catalogues (en authoritative, es/nl/fr/pt machine drafts marked draft) passing the parity guard": "dashboard/src/i18n/controlapi/{en,es,nl,fr,pt}.ts controlapi.mail.* sub-tree; dashboard/tests/unit/i18n.test.ts parity guard green",
    "each surface renders through the seam translator with a live en→es test": "dashboard/src/components/mail/MailSurface.vue wired via useSeamText (errorText); dashboard/tests/unit/mailErrorsI18n.test.ts flips the keyed read-failed en→es and leaves a keyless relay in English",
    "a Go seam test proving the key is emitted": "internal/controlapi/mail_i18n_seam_test.go: 3 tests asserting couldNotReadMailbox/couldNotClaimMailbox/notOffered are emitted beside the retained English fallback",
    "logs/audit/machine-read strings stay English": "the unauthenticated 401 prose is retained (never rendered on a 401); Problem.Code (mail_error/mail_not_offered) is unchanged; only authored member-facing sentences gained keys"
  },
  "summary": "i18n Go seam: the member mail portal's status/claim/not-offered sentences carry controlapi.mail.* keys and MailSurface renders them in the active locale.",
  "blockers": []
}
**close-report** for #2160 — status `success` :white_check_mark: **close-report gates passed** — every claim verified against the pushed worker branch `sandcastle/worker/20261104-161631-9f0c10` (pre-land — the host promotes it to `main` only after its post-run verify, #193/#283); issue closed. <details><summary>envelope</summary> ```json { "issue": 2160, "status": "success", "commits": [ "9a4de634" ], "changed_files": [ "STATUS.md", "dashboard/src/components/mail/MailSurface.vue", "dashboard/src/i18n/controlapi/en.ts", "dashboard/src/i18n/controlapi/es.ts", "dashboard/src/i18n/controlapi/fr.ts", "dashboard/src/i18n/controlapi/nl.ts", "dashboard/src/i18n/controlapi/pt.ts", "dashboard/tests/unit/mailErrorsI18n.test.ts", "internal/controlapi/mail.go", "internal/controlapi/mail_i18n_seam_test.go" ], "tests": [ { "command": "go test ./internal/controlapi/", "exit_code": 0 }, { "command": "go vet ./internal/controlapi/", "exit_code": 0 }, { "command": "golangci-lint run ./internal/controlapi/", "exit_code": 0 }, { "command": "vitest run (dashboard, 2290 passed / 5 skipped)", "exit_code": 0 }, { "command": "vue-tsc -p tsconfig.json --noEmit (dashboard)", "exit_code": 0 }, { "command": "eslint (changed dashboard files)", "exit_code": 0 } ], "criteria": { "keys + params for every authored operator-/member-facing sentence in the cluster": "internal/controlapi/mail.go: writeProblemKeyed with controlapi.mail.{couldNotReadMailbox,couldNotClaimMailbox,notOffered}; the 401 unauthenticated stays prose per the carried ADR 0174 harmonisation ruling", "keys in all five catalogues (en authoritative, es/nl/fr/pt machine drafts marked draft) passing the parity guard": "dashboard/src/i18n/controlapi/{en,es,nl,fr,pt}.ts controlapi.mail.* sub-tree; dashboard/tests/unit/i18n.test.ts parity guard green", "each surface renders through the seam translator with a live en→es test": "dashboard/src/components/mail/MailSurface.vue wired via useSeamText (errorText); dashboard/tests/unit/mailErrorsI18n.test.ts flips the keyed read-failed en→es and leaves a keyless relay in English", "a Go seam test proving the key is emitted": "internal/controlapi/mail_i18n_seam_test.go: 3 tests asserting couldNotReadMailbox/couldNotClaimMailbox/notOffered are emitted beside the retained English fallback", "logs/audit/machine-read strings stay English": "the unauthenticated 401 prose is retained (never rendered on a 401); Problem.Code (mail_error/mail_not_offered) is unchanged; only authored member-facing sentences gained keys" }, "summary": "i18n Go seam: the member mail portal's status/claim/not-offered sentences carry controlapi.mail.* keys and MailSurface renders them in the active locale.", "blockers": [] } ``` </details>
Author
Member

Shipped scoped to the member mail portal cluster (ADR 0174 split, like #2152→#2159→#2160). Filed the remainder as #2164 — the rest of group-1 controlapi Problem surfaces (idip_*, backups, destroy, reports, spaces, communityapp, device_telemetry, me/meDoors, stackexport, credentialimages, provision), group-2 per-view Error/Detail fields, group-3 control-plane/cmd — carrying the 401-family harmonisation ruling forward. Continues #2129 → #2152 → #2159 → #2160 → #2164.

Shipped scoped to the **member mail portal** cluster (ADR 0174 split, like #2152→#2159→#2160). Filed the remainder as **#2164** — the rest of group-1 controlapi Problem surfaces (idip_*, backups, destroy, reports, spaces, communityapp, device_telemetry, me/meDoors, stackexport, credentialimages, provision), group-2 per-view Error/Detail fields, group-3 control-plane/cmd — carrying the 401-family harmonisation ruling forward. Continues #2129 → #2152 → #2159 → #2160 → #2164.
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#2160
No description provided.