i18n (Go seam): control-API errors — remaining controlapi surfaces + per-view error fields + control-plane/cmd (#2129 remainder) #2152

Closed
opened 2026-11-04 07:41:17 +00:00 by matou-build-agent · 6 comments

What

The #2129 remainder. #2129 keyed the control-API error carrier (Problem.Key/Args, the OpenAPI schema + regenerated client, the useAsyncGuard key-capture, and the dashboard/src/i18n/controlapi/* catalogue area) and wired the updates surface (10 authored error sentences) end to end. The reusable infrastructure is now in place; this ticket carries the rest of the area's acceptance (ADR 0232 d.5, DDR 0234), reusing that infra — do not reinvent the carrier.

Remaining operator-/member-facing sentences (~80+), in three groups:

  1. The rest of internal/controlapi's Problem/writeProblem surfaces — e.g. idip_* (directory, identity, roster, credentials, service-access, stewards, standing), enroll*, catalogue*, destroy, mail, me*, signin, spaces, backups, device_telemetry, install_doorway, logstream, reports, communityapp*, stackexport, credentialimages. Swap each AUTHORED fixed message to writeProblemKeyed with a controlapi.* key; leave err.Error()-relayed bodies and machine-to-machine faults (bearer-token mismatches, sealed-bridge reads, the sign-out-everywhere back-channel) as prose (DDR 0234 bucket 3). Resolve each at its panel surface — many flow through useAsyncGuard (now key-aware), the rest through the inline err.message sites (CatalogueSurface, ServiceAccessSurface, SetupSurface, ReportIssueDialog, …); one en→es test per surface.

  2. The per-view render-model error/detail fields (a distinct, #2126-style mechanism — view-struct keys, not the Problem carrier): DeployRunView.Error/.Detail (deployrunstore), the rent-option Detail lines (enroll_rent), the destroyed-community banner (destroy), provision.Recovery.Detail, the spaces already-recorded message. Add *Key/*Args to the hand-written lib view types + the Go structs, resolve via useSeamText.

  3. control-plane/cmd operator-facing text (~40 sentences) — its own package/binary. Most of it is boot/wiring/log-only (bucket 3) and stays English; key only what an operator reads on a screen, if any (the fail-loud resting messages that bubble up through controlapi's JSON are already covered by group 1 at the controlapi boundary).

Acceptance

Same as #2129, 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. Split from #2129 (ADR 0174 ruling on that issue — carrier infra + the updates surface shipped there). Independent of the other #2121 children.

## What The #2129 remainder. #2129 keyed the **control-API error carrier** (`Problem.Key`/`Args`, the OpenAPI schema + regenerated client, the `useAsyncGuard` key-capture, and the `dashboard/src/i18n/controlapi/*` catalogue area) and wired the **`updates` surface** (10 authored error sentences) end to end. The reusable infrastructure is now in place; this ticket carries the rest of the area's acceptance (ADR 0232 d.5, DDR 0234), reusing that infra — do **not** reinvent the carrier. Remaining operator-/member-facing sentences (~80+), in three groups: 1. **The rest of `internal/controlapi`'s `Problem`/`writeProblem` surfaces** — e.g. `idip_*` (directory, identity, roster, credentials, service-access, stewards, standing), `enroll*`, `catalogue*`, `destroy`, `mail`, `me*`, `signin`, `spaces`, `backups`, `device_telemetry`, `install_doorway`, `logstream`, `reports`, `communityapp*`, `stackexport`, `credentialimages`. Swap each AUTHORED fixed message to `writeProblemKeyed` with a `controlapi.*` key; leave `err.Error()`-relayed bodies and machine-to-machine faults (bearer-token mismatches, sealed-bridge reads, the sign-out-everywhere back-channel) as prose (DDR 0234 bucket 3). Resolve each at its panel surface — many flow through `useAsyncGuard` (now key-aware), the rest through the inline `err.message` sites (`CatalogueSurface`, `ServiceAccessSurface`, `SetupSurface`, `ReportIssueDialog`, …); one en→es test per surface. 2. **The per-view render-model error/detail fields** (a distinct, #2126-style mechanism — view-struct keys, not the `Problem` carrier): `DeployRunView.Error`/`.Detail` (deployrunstore), the rent-option `Detail` lines (enroll_rent), the destroyed-community banner (destroy), `provision.Recovery.Detail`, the spaces already-recorded message. Add `*Key`/`*Args` to the hand-written lib view types + the Go structs, resolve via `useSeamText`. 3. **`control-plane/cmd` operator-facing text** (~40 sentences) — its own package/binary. Most of it is boot/wiring/log-only (bucket 3) and stays English; key only what an operator reads on a screen, if any (the fail-loud resting messages that bubble up through controlapi's JSON are already covered by group 1 at the controlapi boundary). ## Acceptance Same as #2129, 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. Split from #2129 (ADR 0174 ruling on that issue — carrier infra + the `updates` surface shipped there). Independent of the other #2121 children.
Author
Member

Provisional (from run 59482). This follow-up was filed while splitting #2129, but run 59482 then lost its claim on #2129 mid-iteration and landed nothing. If #2129 is completed as a whole by its current owner, close this as redundant. See the correction note on #2129.

**Provisional (from run 59482).** This follow-up was filed while splitting #2129, but run 59482 then lost its claim on #2129 mid-iteration and landed nothing. If #2129 is completed as a whole by its current owner, close this as redundant. See the correction note on #2129.
Author
Member

This was generated by AI during triage.

Ruled by agent under ADR 0174 — veto anytime. → ready-for-agent.

Redundancy check (the provisional note above): not redundant — keep and work it. #2129 closed scoped, not whole: its close-report (status: success) keyed only the updates surface + shipped the reusable carrier (Problem.Key/Args + writeProblemKeyed, the OpenAPI schema/regenerated client, the useAsyncGuard errorKey/errorArgs lift, the dashboard/src/i18n/controlapi/* area), and its own acceptance states "The remaining controlapi surfaces, the per-view Error/Detail fields, and all of control-plane/cmd are OWED BY the open follow-up #2152." So the three groups in this body are genuine, un-shipped work.

Why ready-for-agent: this is a mechanical, additive pattern-extension that reuses the landed carrier — do not reinvent it. For each authored operator-/member-facing sentence: swap to writeProblemKeyed with a controlapi.* key (group 1) or add *Key/*Args to the view struct (group 2, the #2126-style mechanism); add keys to all five catalogues (en authoritative, es/nl/fr/pt drafts) passing the parity guard; resolve at each panel via useAsyncGuard (now key-aware) or useSeamText, with one live en→es flip test per surface. err.Error()-relayed bodies, machine-to-machine faults, and control-plane/cmd boot/wiring/log text stay English (DDR 0234 bucket 3). No one-way door, no missing flow/wireframe/seam contract (the carrier is landed) — every change is additive with the English prose as fallback, so it's revertible per commit and provable by the per-surface tests. Two-way door.

> *This was generated by AI during triage.* **Ruled by agent under ADR 0174 — veto anytime.** → `ready-for-agent`. **Redundancy check (the provisional note above):** **not redundant — keep and work it.** #2129 closed **scoped**, not whole: its close-report (`status: success`) keyed only the `updates` surface + shipped the reusable carrier (`Problem.Key`/`Args` + `writeProblemKeyed`, the OpenAPI schema/regenerated client, the `useAsyncGuard` `errorKey`/`errorArgs` lift, the `dashboard/src/i18n/controlapi/*` area), and its own acceptance states "The remaining controlapi surfaces, the per-view Error/Detail fields, and all of control-plane/cmd are OWED BY the open follow-up #2152." So the three groups in this body are genuine, un-shipped work. **Why `ready-for-agent`:** this is a mechanical, additive pattern-extension that **reuses the landed carrier — do not reinvent it**. For each authored operator-/member-facing sentence: swap to `writeProblemKeyed` with a `controlapi.*` key (group 1) or add `*Key`/`*Args` to the view struct (group 2, the #2126-style mechanism); add keys to all five catalogues (en authoritative, es/nl/fr/pt drafts) passing the parity guard; resolve at each panel via `useAsyncGuard` (now key-aware) or `useSeamText`, with one live en→es flip test per surface. `err.Error()`-relayed bodies, machine-to-machine faults, and `control-plane/cmd` boot/wiring/log text stay English (DDR 0234 bucket 3). No one-way door, no missing flow/wireframe/seam contract (the carrier is landed) — every change is additive with the English prose as fallback, so it's revertible per commit and provable by the per-surface tests. Two-way door.
Author
Member

swarm-claim host=bens-mac-04 run=59909
(automated multi-host claim — lowest live claim id works this ticket)

swarm-claim host=bens-mac-04 run=59909 (automated multi-host claim — lowest live claim id works this ticket)
Author
Member

Ruled by agent under ADR 0174 — veto anytime. Scoped this slice to the IDIP access-matrix doors (DDR 0273); the remainder is filed as #2159.

The ruling. #2152's authored surface is ~80+ sentences across ~40 controlapi Go files rendered on ~20 distinct panel surfaces, plus a second mechanism (group 2's per-view Error/Detail fields) and a second package (group 3, control-plane/cmd). That is the exact "more than one slice" condition #2129 split on (its commit: "~90+ sentences across two packages and two mechanisms on ~15 panel surfaces — more than one slice"). Keying the Go is mechanical, but each surface's panel wiring + its live en→es flip test is per-surface work, and the bucket-1/2-vs-3 call is per-sentence judgement (the fan-out surfaced genuine ambiguities: the "sign in at the front door" 401 family, resting-vs-operational 503s, defensive validations, machine-bridge reads).

So this iteration ships one coherent, complete vertical slice — the DDR 0273 twin access-matrix doors (idip_service_access.go + idip_service_side_access.go): keyed end to end (incl. the composable lastOpeningCredential carrying its {service} slot in Args), catalogued in all five locales (parity-clean), ServiceAccessSurface.vue wired through useSeamText, with a Go seam test proving key+args emission and a live en→es flip test on the surface. The remainder — the rest of group 1, group 2, group 3, plus a harmonisation decision owed on the 401 family — is #2159, carrying the full machine-drafted keying inventory from this run's fan-out so it is fast to pick up and split per-surface-cluster.

Why a two-way door. Every change is additive over the landed carrier with the English prose as the decision-6 fallback, so nothing regresses for an un-wired surface; the scoping is revertible per commit; and the split is tracked by an open issue (#2159), exactly mirroring #2129 → #2152. No one-way door (no credential, no security widening, no trust-surface accept, no data destruction, no spend).

What proves it. go test ./internal/controlapi/ (full package) green incl. the new idip_service_access_i18n_seam_test.go; dashboard full unit suite (2281) + the decision-9 parity guard green incl. the new serviceAccessSurfaceI18n.test.ts; vue-tsc + eslint + gofmt + go vet clean.

**Ruled by agent under ADR 0174 — veto anytime.** Scoped this slice to the **IDIP access-matrix doors** (DDR 0273); the remainder is filed as **#2159**. **The ruling.** #2152's authored surface is ~80+ sentences across ~40 `controlapi` Go files rendered on ~20 distinct panel surfaces, plus a second mechanism (group 2's per-view `Error`/`Detail` fields) and a second package (group 3, `control-plane/cmd`). That is the exact "**more than one slice**" condition #2129 split on (its commit: "~90+ sentences across two packages and two mechanisms on ~15 panel surfaces — more than one slice"). Keying the Go is mechanical, but each surface's panel wiring + its live en→es flip test is per-surface work, and the bucket-1/2-vs-3 call is per-sentence judgement (the fan-out surfaced genuine ambiguities: the "sign in at the front door" 401 family, resting-vs-operational 503s, defensive validations, machine-bridge reads). So this iteration ships **one coherent, complete vertical slice** — the DDR 0273 twin access-matrix doors (`idip_service_access.go` + `idip_service_side_access.go`): keyed end to end (incl. the composable `lastOpeningCredential` carrying its `{service}` slot in `Args`), catalogued in all five locales (parity-clean), `ServiceAccessSurface.vue` wired through `useSeamText`, with a Go seam test proving key+args emission and a live en→es flip test on the surface. The **remainder** — the rest of group 1, group 2, group 3, plus a harmonisation decision owed on the 401 family — is **#2159**, carrying the full machine-drafted keying inventory from this run's fan-out so it is fast to pick up and split per-surface-cluster. **Why a two-way door.** Every change is additive over the landed carrier with the English prose as the decision-6 fallback, so nothing regresses for an un-wired surface; the scoping is revertible per commit; and the split is tracked by an open issue (#2159), exactly mirroring #2129 → #2152. No one-way door (no credential, no security widening, no trust-surface accept, no data destruction, no spend). **What proves it.** `go test ./internal/controlapi/` (full package) green incl. the new `idip_service_access_i18n_seam_test.go`; dashboard full unit suite (2281) + the decision-9 parity guard green incl. the new `serviceAccessSurfaceI18n.test.ts`; `vue-tsc` + `eslint` + `gofmt` + `go vet` clean.
Author
Member

⏩ independent reviewer for #2152 — verdict unauthenticated

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

close-report for #2152 — status success

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

envelope
{
  "issue": 2152,
  "status": "success",
  "commits": [
    "8ed1901d7018ac2afe1cac71d822ed9bef850dd5"
  ],
  "changed_files": [
    "STATUS.md",
    "dashboard/src/components/members/ServiceAccessSurface.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/serviceAccessSurfaceI18n.test.ts",
    "internal/controlapi/idip_service_access.go",
    "internal/controlapi/idip_service_access_i18n_seam_test.go",
    "internal/controlapi/idip_service_side_access.go"
  ],
  "tests": [
    {
      "command": "go test ./internal/controlapi/",
      "exit_code": 0
    },
    {
      "command": "go vet ./internal/controlapi/",
      "exit_code": 0
    },
    {
      "command": "cd dashboard && npx vitest run",
      "exit_code": 0
    },
    {
      "command": "cd dashboard && npx vue-tsc -p tsconfig.json --noEmit",
      "exit_code": 0
    },
    {
      "command": "cd dashboard && npx eslint src/components/members/ServiceAccessSurface.vue src/i18n/controlapi/*.ts tests/unit/serviceAccessSurfaceI18n.test.ts",
      "exit_code": 0
    },
    {
      "command": "nix develop .#go-ci (pre-push gate: gofmt + go build/vet/test ./... + golangci-lint + broker)",
      "exit_code": 0
    }
  ],
  "criteria": {
    "keys + params for every authored operator-/member-facing sentence (scoped to the DDR 0273 access-matrix doors this slice ships; remainder tracked by #2159)": "idip_service_access.go + idip_service_side_access.go swap their 4 authored sentences to writeProblemKeyed — controlapi.serviceAccess.{serviceRequired,lastOpeningCredential} + controlapi.serviceSideAccess.{jsonBodyRequired,atLeastOneCredential}; the composable lastOpeningCredential carries its {service} slot in Args (commit 8ed1901d)",
    "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 each grew serviceAccess.* + serviceSideAccess.* (es/nl/fr/pt keep draft=true); dashboard/tests/unit/i18n.test.ts decision-9 parity guard green in the full vitest run",
    "each surface renders through the seam translator with a live en->es test": "ServiceAccessSurface.vue resolves the control-API error via useSeamText; dashboard/tests/unit/serviceAccessSurfaceI18n.test.ts flips the keyed open error en->es and holds a keyless (bucket-3) relay in English prose (decision 6)",
    "logs/audit/machine-read strings stay English": "the err.Error()-relayed access_unavailable matrix faults keep an empty Key (writeProblem, unchanged); verified by idip_service_access_i18n_seam_test.go asserting only the authored branches carry a Key",
    "remainder (rest of group 1, group 2 per-view fields, group 3 control-plane/cmd + the 401-family harmonisation) moved to a tracked follow-up": "filed as open issue #2159 with the full machine-drafted keying inventory; ADR 0174 split ruling posted on #2152"
  },
  "summary": "Keyed the DDR 0273 IDIP access-matrix doors (service_access + service_side_access) end to end and wired ServiceAccessSurface through the seam; the ~80-sentence remainder split to #2159 under ADR 0174.",
  "blockers": []
}
**close-report** for #2152 — status `success` :white_check_mark: **close-report gates passed** — every claim verified against the pushed worker branch `sandcastle/worker/20261104-092143-c3cb1e` (pre-land — the host promotes it to `main` only after its post-run verify, #193/#283); issue closed. <details><summary>envelope</summary> ```json { "issue": 2152, "status": "success", "commits": [ "8ed1901d7018ac2afe1cac71d822ed9bef850dd5" ], "changed_files": [ "STATUS.md", "dashboard/src/components/members/ServiceAccessSurface.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/serviceAccessSurfaceI18n.test.ts", "internal/controlapi/idip_service_access.go", "internal/controlapi/idip_service_access_i18n_seam_test.go", "internal/controlapi/idip_service_side_access.go" ], "tests": [ { "command": "go test ./internal/controlapi/", "exit_code": 0 }, { "command": "go vet ./internal/controlapi/", "exit_code": 0 }, { "command": "cd dashboard && npx vitest run", "exit_code": 0 }, { "command": "cd dashboard && npx vue-tsc -p tsconfig.json --noEmit", "exit_code": 0 }, { "command": "cd dashboard && npx eslint src/components/members/ServiceAccessSurface.vue src/i18n/controlapi/*.ts tests/unit/serviceAccessSurfaceI18n.test.ts", "exit_code": 0 }, { "command": "nix develop .#go-ci (pre-push gate: gofmt + go build/vet/test ./... + golangci-lint + broker)", "exit_code": 0 } ], "criteria": { "keys + params for every authored operator-/member-facing sentence (scoped to the DDR 0273 access-matrix doors this slice ships; remainder tracked by #2159)": "idip_service_access.go + idip_service_side_access.go swap their 4 authored sentences to writeProblemKeyed — controlapi.serviceAccess.{serviceRequired,lastOpeningCredential} + controlapi.serviceSideAccess.{jsonBodyRequired,atLeastOneCredential}; the composable lastOpeningCredential carries its {service} slot in Args (commit 8ed1901d)", "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 each grew serviceAccess.* + serviceSideAccess.* (es/nl/fr/pt keep draft=true); dashboard/tests/unit/i18n.test.ts decision-9 parity guard green in the full vitest run", "each surface renders through the seam translator with a live en->es test": "ServiceAccessSurface.vue resolves the control-API error via useSeamText; dashboard/tests/unit/serviceAccessSurfaceI18n.test.ts flips the keyed open error en->es and holds a keyless (bucket-3) relay in English prose (decision 6)", "logs/audit/machine-read strings stay English": "the err.Error()-relayed access_unavailable matrix faults keep an empty Key (writeProblem, unchanged); verified by idip_service_access_i18n_seam_test.go asserting only the authored branches carry a Key", "remainder (rest of group 1, group 2 per-view fields, group 3 control-plane/cmd + the 401-family harmonisation) moved to a tracked follow-up": "filed as open issue #2159 with the full machine-drafted keying inventory; ADR 0174 split ruling posted on #2152" }, "summary": "Keyed the DDR 0273 IDIP access-matrix doors (service_access + service_side_access) end to end and wired ServiceAccessSurface through the seam; the ~80-sentence remainder split to #2159 under ADR 0174.", "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#2152
No description provided.