founding app: every string becomes a translation string (en/es/nl/fr) and PRIMARY LANGUAGE becomes a selection — mints the i18n seam #1376

Open
opened 2026-09-10 19:54:53 +00:00 by ben · 4 comments
Owner

Ben's ruling 2026-09-10: every text string in the founding app becomes a
translation string, and the community-info form's PRIMARY LANGUAGE free-text
input becomes a language selection — Spanish, English, Dutch, French.

This is the first of a pair; #1377 does the same for the control panel and
is blocked on this one, because this ticket mints the seam both surfaces use.

Starting point: there is no i18n anywhere yet

Verified across the repo — no vue-i18n, no useI18n, no $t(, no locale
files, no locale in any package.json (app/, dashboard/, packages/ui-kit/).
Every user-facing string today is a literal in a template, a script, or a Go
struct. This ticket is therefore greenfield and load-bearing: the decisions it
makes are the ones the control panel and every later surface inherit, so it mints
an ADR before it mints strings.

The founding app's copy is NOT all in Vue

The thing that makes this bigger than "wrap the templates in $t()" — the
founding UI renders text from four different homes:

  1. Vue templates + scripts — 29 components in app/src/components/founding/
    plus 4 in founding/v2/.
  2. app/src/lib/foundingStack.ts — the stack table's layer labels, section
    labels and summaries: the copy the v2 list and the open card both read.
  3. packages/ui-kit/src/components/ — 13 shared components with their own
    copy (OcErrorState, LogoDialog, NavChrome…), shared with the control
    panel
    , so their strings must land in a place both surfaces load.
  4. Go — internal/founding/ — ~99 sites producing Message: / Detail: /
    Label: text that crosses the seam and is rendered verbatim: validation
    Issue.Message, AccessOption.Label/Detail, the gateway offer's Terms and
    Note, BrokerError.Message, the standup chapters.

The decision the ADR has to make is (4): does the Go seam keep returning
finished English prose, or does it return a key + params the renderer
translates? Recommendation: key + params, with the English text kept as the
fallback the key resolves to when a catalogue is missing — otherwise a Spanish
operator gets a Spanish screen with an English error on it, which is the worst of
both. That is the single biggest call in this ticket and it wants Ben's nod
before the string extraction starts.

The language selection

app/src/components/founding/FoundingCommunityDetails.vue:46-49 — the field is
today <input v-model="primaryLanguage" type="text">. It becomes a select of
English, Spanish, Dutch, French, styled like the region picker that landed in
e01c349a (accent-outlined, the same affordance).

RULED (Ben, 2026-09-10): one field, a picker

"primary language becomes a language picker"

One control, not two. The existing PRIMARY LANGUAGE field keeps its meaning and
its place in community info — it simply stops being free text. Options are the
four Ben named: English, Español, Nederlands, Français, each in its own
language (a picker of languages reads in the languages it offers, never four
English endonyms).

So the one field carries both facts at once: choosing the community's primary
language IS choosing the UI locale.
That is the ruling, and it is what makes
the field mean something for the first time — today primaryLanguage is captured
on the draft (Details.PrimaryLanguage, primary_language on the wire,
internal/founding/draft.go:83) and, verified, consumed by nothing.

Two consequences to build against, not to re-open:

  • The picker is now the app's only language control, so it has to be reachable
    after founding too — the community's language is a setting the control panel
    can change (#1377), not a one-shot answer buried in a wizard step.
  • The list is closed at four. The existing fixtures set this field to 'mi'
    (te reo Māori), and a closed list of four European languages cannot express it;
    app/tests/unit/boot.test.ts:145, founding.test.ts:74 and
    wireMapping.test.ts:71 all carry 'mi' and will need updating as part of
    this ticket. Flagging it once, here, so it is a known consequence and not a
    surprise on the day a community says their language is missing — widening the
    list later is a catalogue entry plus a translation, not a re-design.

Work

The seam (this ticket mints it — the control panel inherits it)

  • ADR: the i18n seam — library, catalogue format and location, how the locale
    is chosen and persisted, the Go key-vs-prose ruling, the fallback rule, and
    the "one catalogue home the ui-kit can load from both surfaces" rule.
  • vue-i18n (v11, Composition API) wired in app/; catalogues as flat
    key files, one per locale, en authoritative.
  • The locale store: where the choice lives (draft? app config? both), and
    it survives a restart.
  • packages/ui-kit strings extracted to a catalogue both surfaces load —
    the shared components must not carry English literals.

The founding surface

  • Every literal in app/src/components/founding/** (33 components) replaced
    by a key; keys namespaced by screen (founding.communityInfo.*).
  • app/src/lib/foundingStack.ts labels/summaries become keys.
  • The Go-authored strings handled per the ADR's ruling (~99 sites in
    internal/founding/); if key+params wins, Issue, AccessOption,
    GatewayOffer and BrokerError grow a key field and the renderer resolves it.
  • es / nl / fr catalogues filled. Translation quality is a real
    question
    — machine-drafted strings need a native reviewer before this is
    called done, or the ticket ships en + three drafts explicitly marked as such.

The field

  • FoundingCommunityDetails.vue:46-49 PRIMARY LANGUAGE becomes the picker —
    four options, each labelled in its own language, data-field="primary-language"
    kept so the founding drives keep working.
  • The three unit fixtures carrying 'mi' updated (boot.test.ts:145,
    founding.test.ts:74, wireMapping.test.ts:71).
  • Choosing a language switches the app's locale live — the picker is the
    locale control, and that is the proof the whole ticket works.
  • The v2 review list states the choice next to its row like every other answer.

Sweep

  • A lint rule (in the spirit of oc-theming/no-hex-color) that fails on a bare
    user-facing literal in a founding template — otherwise the next component
    re-introduces English by hand.
  • Unit tier: every key in en exists in es/nl/fr and vice versa.
  • STATUS.md in the same commit.

Acceptance

  1. With en selected the founding walk reads exactly as it does today —
    this is a refactor, not a rewrite; no copy changes meaning.
  2. Choosing Spanish in community info re-renders the walk in Spanish live,
    including a validation error and the S4a access/offer text (the Go-authored
    half) — that last one is the acceptance criterion that proves the ADR's ruling
    was actually implemented.
  3. A missing key falls back to the English string and is loud in dev, never blank
    and never a raw key on screen.
  4. pnpm --filter @idss/app test + eslint + vue-tsc green; the founding e2e
    drives pass unchanged on en.

Out of scope

  • The control panel — #1377, blocked on this.
  • Go-rendered HTML surfaces: internal/idp/provider.go:64 hardcodes
    SupportedUILocales: []language.Tag{language.English}, and the IdP / control-api
    pages hardcode <html lang="en"> (internal/idp/brand.go:84,
    internal/idp/deviceapprove.go:248, internal/controlapi/member_join_idip.go:166,
    internal/controlapi/refusal.go:167). Real, but a different tier — own ticket.
  • The Portal (member's home) and the marketing site.
  • RTL layout — none of the four languages needs it; do not build it speculatively.
Ben's ruling 2026-09-10: every text string in the founding app becomes a translation string, and the community-info form's **PRIMARY LANGUAGE** free-text input becomes a language **selection** — Spanish, English, Dutch, French. This is the first of a pair; **#1377** does the same for the control panel and is blocked on this one, because this ticket mints the seam both surfaces use. ## Starting point: there is no i18n anywhere yet Verified across the repo — no `vue-i18n`, no `useI18n`, no `$t(`, no locale files, no locale in any `package.json` (`app/`, `dashboard/`, `packages/ui-kit/`). Every user-facing string today is a literal in a template, a script, or a Go struct. This ticket is therefore **greenfield and load-bearing**: the decisions it makes are the ones the control panel and every later surface inherit, so it mints an **ADR** before it mints strings. ## The founding app's copy is NOT all in Vue The thing that makes this bigger than "wrap the templates in `$t()`" — the founding UI renders text from four different homes: 1. **Vue templates + scripts** — 29 components in `app/src/components/founding/` plus 4 in `founding/v2/`. 2. **`app/src/lib/foundingStack.ts`** — the stack table's layer labels, section labels and summaries: the copy the v2 list and the open card both read. 3. **`packages/ui-kit/src/components/`** — 13 shared components with their own copy (`OcErrorState`, `LogoDialog`, `NavChrome`…), **shared with the control panel**, so their strings must land in a place both surfaces load. 4. **Go — `internal/founding/`** — ~99 sites producing `Message:` / `Detail:` / `Label:` text that crosses the seam and is rendered verbatim: validation `Issue.Message`, `AccessOption.Label`/`Detail`, the gateway offer's `Terms` and `Note`, `BrokerError.Message`, the standup chapters. **The decision the ADR has to make** is (4): does the Go seam keep returning finished English prose, or does it return a **key + params** the renderer translates? Recommendation: **key + params**, with the English text kept as the fallback the key resolves to when a catalogue is missing — otherwise a Spanish operator gets a Spanish screen with an English error on it, which is the worst of both. That is the single biggest call in this ticket and it wants Ben's nod before the string extraction starts. ## The language selection `app/src/components/founding/FoundingCommunityDetails.vue:46-49` — the field is today `<input v-model="primaryLanguage" type="text">`. It becomes a select of **English, Spanish, Dutch, French**, styled like the region picker that landed in `e01c349a` (accent-outlined, the same affordance). ### RULED (Ben, 2026-09-10): one field, a picker > "primary language becomes a language picker" One control, not two. The existing PRIMARY LANGUAGE field keeps its meaning and its place in community info — it simply stops being free text. Options are the four Ben named: **English, Español, Nederlands, Français**, each in its own language (a picker of languages reads in the languages it offers, never four English endonyms). So the one field carries both facts at once: **choosing the community's primary language IS choosing the UI locale.** That is the ruling, and it is what makes the field mean something for the first time — today `primaryLanguage` is captured on the draft (`Details.PrimaryLanguage`, `primary_language` on the wire, `internal/founding/draft.go:83`) and, verified, **consumed by nothing**. Two consequences to build against, not to re-open: - The picker is now the app's only language control, so it has to be reachable after founding too — the community's language is a setting the control panel can change (#1377), not a one-shot answer buried in a wizard step. - The list is closed at four. The existing fixtures set this field to `'mi'` (te reo Māori), and a closed list of four European languages cannot express it; `app/tests/unit/boot.test.ts:145`, `founding.test.ts:74` and `wireMapping.test.ts:71` all carry `'mi'` and will need updating as part of this ticket. Flagging it once, here, so it is a known consequence and not a surprise on the day a community says their language is missing — widening the list later is a catalogue entry plus a translation, not a re-design. ## Work **The seam (this ticket mints it — the control panel inherits it)** - [ ] ADR: the i18n seam — library, catalogue format and location, how the locale is chosen and persisted, the Go key-vs-prose ruling, the fallback rule, and the "one catalogue home the ui-kit can load from both surfaces" rule. - [ ] `vue-i18n` (v11, Composition API) wired in `app/`; catalogues as flat key files, one per locale, `en` authoritative. - [ ] The **locale store**: where the choice lives (draft? app config? both), and it survives a restart. - [ ] `packages/ui-kit` strings extracted to a catalogue **both** surfaces load — the shared components must not carry English literals. **The founding surface** - [ ] Every literal in `app/src/components/founding/**` (33 components) replaced by a key; keys namespaced by screen (`founding.communityInfo.*`). - [ ] `app/src/lib/foundingStack.ts` labels/summaries become keys. - [ ] The Go-authored strings handled per the ADR's ruling (~99 sites in `internal/founding/`); if key+params wins, `Issue`, `AccessOption`, `GatewayOffer` and `BrokerError` grow a key field and the renderer resolves it. - [ ] `es` / `nl` / `fr` catalogues filled. **Translation quality is a real question** — machine-drafted strings need a native reviewer before this is called done, or the ticket ships `en` + three drafts explicitly marked as such. **The field** - [ ] `FoundingCommunityDetails.vue:46-49` PRIMARY LANGUAGE becomes the picker — four options, each labelled in its own language, `data-field="primary-language"` kept so the founding drives keep working. - [ ] The three unit fixtures carrying `'mi'` updated (`boot.test.ts:145`, `founding.test.ts:74`, `wireMapping.test.ts:71`). - [ ] Choosing a language **switches the app's locale live** — the picker is the locale control, and that is the proof the whole ticket works. - [ ] The v2 review list states the choice next to its row like every other answer. **Sweep** - [ ] A lint rule (in the spirit of `oc-theming/no-hex-color`) that fails on a bare user-facing literal in a founding template — otherwise the next component re-introduces English by hand. - [ ] Unit tier: every key in `en` exists in `es`/`nl`/`fr` and vice versa. - [ ] `STATUS.md` in the same commit. ## Acceptance 1. With `en` selected the founding walk reads **exactly** as it does today — this is a refactor, not a rewrite; no copy changes meaning. 2. Choosing Spanish in community info re-renders the walk in Spanish **live**, including a validation error and the S4a access/offer text (the Go-authored half) — that last one is the acceptance criterion that proves the ADR's ruling was actually implemented. 3. A missing key falls back to the English string and is loud in dev, never blank and never a raw key on screen. 4. `pnpm --filter @idss/app test` + eslint + vue-tsc green; the founding e2e drives pass unchanged on `en`. ## Out of scope - **The control panel** — #1377, blocked on this. - **Go-rendered HTML surfaces**: `internal/idp/provider.go:64` hardcodes `SupportedUILocales: []language.Tag{language.English}`, and the IdP / control-api pages hardcode `<html lang="en">` (`internal/idp/brand.go:84`, `internal/idp/deviceapprove.go:248`, `internal/controlapi/member_join_idip.go:166`, `internal/controlapi/refusal.go:167`). Real, but a different tier — own ticket. - The Portal (member's home) and the marketing site. - RTL layout — none of the four languages needs it; do not build it speculatively.

This was generated by AI during triage.

Triage: enhancement + ready-for-session

Category — enhancement: new capability (the i18n seam + four locales), not a defect.

Redundancy check (clean): confirmed greenfield — no vue-i18n in app/, dashboard/, or packages/ui-kit/package.json; no existing i18n ADR (docs/adr/ tops out at 0231; the only locale-adjacent one is 0122, unrelated). No prior rejection in .out-of-scope/. The filer's load-bearing claim also holds: PrimaryLanguage (internal/founding/draft.go:83) is captured but consumed by nothing downstream — grep across internal/ finds no reader — so repurposing that field is safe and reversible.

State — ready-for-session, not ready-for-agent: this ticket mints a load-bearing ADR — the i18n seam every later surface inherits. That is a design-tier run (ADR 0174 rule 5), which an interactive agent session owns, not a headless swarm worker. It is not ready-for-human: the two calls the filer staged for "Ben's nod" are both two-way doors, ruled below.


Ruled by agent under ADR 0174 — veto anytime

The filer staged two design calls for Ben. Both are revertible by a later commit and provable by the ticket's own acceptance drives, and neither is on the one-way-door list (no credentials, no security widening, no member-facing trust accept, no data destruction, no spend). Ruling them now so the design gate is pre-cleared for the executing session:

1. Go seam returns key + params, not finished prose (the ticket's recommendation).

  • Ruling: Issue, AccessOption, GatewayOffer, BrokerError and the standup chapters grow a key (+ params) field; the renderer resolves it. The English text stays as the fallback the key resolves to when a catalogue is missing — so a Spanish operator never gets a Spanish screen with an English error baked into it.
  • Two-way door: revertible in one commit (the Go structs and renderer are the only surface); proven by acceptance criterion 2 — Spanish must re-render the S4a access/offer text (the Go-authored half) live. If the drive can't turn that half Spanish, the ruling wasn't implemented.

2. The PRIMARY LANGUAGE field → option (a) (UI-locale chooser + a free-text community-language field beside it).

  • Ruling: the on-screen field becomes the UI language selector (en / es / nl / fr), renamed to say so; the community's own language keeps a free-text field beside it. This splits the two meanings the filer identified — the app's render locale vs. a fact about the community — and, critically, preserves a community's ability to state te reo Māori (or Sāmoan, or Cree). That is the sovereignty-safe reading: no community is told their language is off the list. Keep data-field="primary-language" so the founding drives keep working.
  • Two-way door: revertible (the field is consumed by nothing downstream — verified above), provable by the founding e2e drive. Option (b) remains a one-comment veto away if Ben prefers a single select with te reo + "other…".

Everything else in the ticket (catalogue home the ui-kit loads from both surfaces, en-authoritative flat key files, the catalogue-parity unit test, the no-bare-literal lint rule, es/nl/fr shipped as drafts explicitly marked as such pending native review) follows from these two and needs no separate ruling.

#1377 (control panel) is blocked on this ticket and carries the native dependency edge — it inherits this seam rather than minting a second one.

> *This was generated by AI during triage.* ## Triage: `enhancement` + `ready-for-session` **Category — `enhancement`:** new capability (the i18n seam + four locales), not a defect. **Redundancy check (clean):** confirmed greenfield — no `vue-i18n` in `app/`, `dashboard/`, or `packages/ui-kit/package.json`; no existing i18n ADR (`docs/adr/` tops out at 0231; the only locale-adjacent one is 0122, unrelated). No prior rejection in `.out-of-scope/`. The filer's load-bearing claim also holds: `PrimaryLanguage` (`internal/founding/draft.go:83`) is captured but **consumed by nothing downstream** — grep across `internal/` finds no reader — so repurposing that field is safe and reversible. **State — `ready-for-session`, not `ready-for-agent`:** this ticket *mints* a load-bearing ADR — the i18n seam every later surface inherits. That is a **design-tier run** (ADR 0174 rule 5), which an interactive agent session owns, not a headless swarm worker. It is not `ready-for-human`: the two calls the filer staged for "Ben's nod" are both two-way doors, ruled below. --- ## Ruled by agent under ADR 0174 — veto anytime The filer staged two design calls for Ben. Both are revertible by a later commit and provable by the ticket's own acceptance drives, and neither is on the one-way-door list (no credentials, no security widening, no member-facing trust accept, no data destruction, no spend). Ruling them now so the design gate is pre-cleared for the executing session: **1. Go seam returns key + params, not finished prose** (the ticket's recommendation). - **Ruling:** `Issue`, `AccessOption`, `GatewayOffer`, `BrokerError` and the standup chapters grow a key (+ params) field; the renderer resolves it. The English text stays as the fallback the key resolves to when a catalogue is missing — so a Spanish operator never gets a Spanish screen with an English error baked into it. - **Two-way door:** revertible in one commit (the Go structs and renderer are the only surface); **proven by acceptance criterion 2** — Spanish must re-render the S4a access/offer text (the Go-authored half) live. If the drive can't turn that half Spanish, the ruling wasn't implemented. **2. The PRIMARY LANGUAGE field → option (a)** (UI-locale chooser + a free-text community-language field beside it). - **Ruling:** the on-screen field becomes the **UI language** selector (en / es / nl / fr), renamed to say so; the community's **own** language keeps a free-text field beside it. This splits the two meanings the filer identified — the app's render locale vs. a fact about the community — and, critically, **preserves a community's ability to state te reo Māori** (or Sāmoan, or Cree). That is the sovereignty-safe reading: no community is told their language is off the list. Keep `data-field="primary-language"` so the founding drives keep working. - **Two-way door:** revertible (the field is consumed by nothing downstream — verified above), provable by the founding e2e drive. Option (b) remains a one-comment veto away if Ben prefers a single select with te reo + "other…". Everything else in the ticket (catalogue home the ui-kit loads from both surfaces, `en`-authoritative flat key files, the catalogue-parity unit test, the `no-bare-literal` lint rule, `es`/`nl`/`fr` shipped as drafts explicitly marked as such pending native review) follows from these two and needs no separate ruling. **#1377 (control panel) is blocked on this ticket** and carries the native dependency edge — it inherits this seam rather than minting a second one.

Ruled by agent under ADR 0174 — veto anytime

The load-bearing call is ruled. The ticket asked for Ben's nod on the single biggest decision — does the Go seam keep returning finished English prose, or a key + params the renderer translates? Adopting the ticket's own recommendation as the default ruling under ADR 0174 (a design-tier accept — revertible per commit, and the accept rides the digest, not a block):

The Go seam returns key + params, not finished prose. Issue/AccessOption/GatewayOffer/BrokerError/standup grow key + args fields additively (the existing prose is retained as the en source and the fallback), and runtime-composed strings ("…" + claim.Reason) become keyed slots ("…{reason}"). This is what makes a Spanish operator's screen fully Spanish — including the validation error and the S4a offer text (acceptance #2). It is a two-way door: additive fields + retained prose fallback are revertible, and the ruling is proven by acceptance #2. Veto anytime.

Grounding: the app renders label/detail/terms/note/message from the seam verbatim (FoundingAccess.vue:30, app/src/lib/founding.ts) — so prose-only would put an English error on a Spanish screen, the ticket's stated worst case.

What landed this attempt

docs/adr/0232-design-the-i18n-seam.md — the i18n seam, minted. Commit c05896de on main (ADR + STATUS.md in the same commit; pushed, rebased over the concurrent #1372-follow-up). This is the ticket's own first act ("it mints an ADR before it mints strings") and the contract #1377 is blocked on ("this ticket mints the seam both surfaces use") — so #1377 is now unblocked on the design.

The ADR decides all ten open questions the implementation inherits: library (vue-i18n@11, Composition-API); catalogue format (flat dot-namespaced keys, one file per locale, en authoritative + byte-identical to today's copy, so acceptance #1 is an en-catalogue obligation the drives enforce); the one catalogue home (packages/ui-kit owns + exports its kit.* catalogue, stays vue-i18n-agnostic, each surface deep-merges kit.* + its own founding.*/panel.*); the locale store (the picker is the one control; persisted on the draft as a locale code + localStorage['idss.locale']; boot precedence localStorage→draft→browser→en); the Go key-vs-prose ruling (above); the fallback rule (fallbackLocale:'en', missing-key loud in dev, never blank / never a raw key in prod); the field → native <select> switching locale live; list closed at four (the 'mi' fixtures move to a supported code); two guards (oc-i18n/no-bare-literal lint + en↔es/nl/fr key-parity unit); and translation quality (en authoritative + es/nl/fr marked-draft, native-reviewer accept rides the digest).

Honest scope — why the ticket stays ready-for-session, not closed

The ADR is the contract. The implementation is genuinely swarm-scale and does not fit a single ready-for-session drainer's one-shot finish-and-prove budget without risking a broken shared main (rule 4): ~24 founding/** components + the ui-kit + app/src/lib/founding.ts + ~99 Go string sites + three filled catalogues + the lint rule + parity tests, all held to holistic acceptance (en byte-identical, Spanish-live incl. the Go half, pnpm --filter @idss/app test + eslint + vue-tsc green, and the founding e2e drives green on en). Half-migrating that on shared main in one unattended pass is exactly the class of change that breaks the swarm.

So this attempt banks the load-bearing, zero-risk artifact and leaves the ticket honestly open. Recommendation: run the implementation as a Sandcastle swarm against ADR 0232 (the ADR is the contract a swarm needs), or decompose via to-tickets into the ordered legs below. This is a queue-shape/execution-model call — every code decision is already ruled in ADR 0232.

Ordered runbook for the implementation (against ADR 0232)

  1. Wire the seam (unblocks everything, and #1377): add vue-i18n@11 to app/; create packages/ui-kit/src/i18n/<locale>.ts (kit.*) + export; build the app's i18n instance by deep-merging kit.* + founding.*; the locale store (draft code + localStorage, boot precedence). Green: vue-tsc + a boot test.
  2. The field → picker + live switch: FoundingCommunityDetails.vue:46-49 becomes a <select> (English/Español/Nederlands/Français, data-field="primary-language" kept) that sets i18n.global.locale; update the three 'mi' fixtures (boot.test.ts:145, founding.test.ts:74, wireMapping.test.ts:71). This is acceptance #2's control.
  3. Extract the founding surface: every literal in founding/** → founding.<screen>.* keys; en byte-identical (acceptance #1). Add the oc-i18n/no-bare-literal lint so no component re-introduces English.
  4. The Go key+params seam (the ruling): grow Issue/AccessOption/GatewayOffer/BrokerError/standup with key+args additively; renderer prefers key, falls back to retained prose. Red-before-green in internal/founding/*_test.go. This proves acceptance #2's Go half.
  5. Fill es/nl/fr (marked-draft) + the key-parity unit test.
  6. Prove: pnpm --filter @idss/app test + eslint + vue-tsc green; founding e2e green on en; a component test showing live en→es re-render incl. a validation error (acceptance #2/#3).

Ruled by agent under ADR 0174 — veto anytime. #1376 stays ready-for-session; the seam it mints is on main.

## Ruled by agent under ADR 0174 — veto anytime **The load-bearing call is ruled.** The ticket asked for Ben's nod on the single biggest decision — *does the Go seam keep returning finished English prose, or a key + params the renderer translates?* Adopting the ticket's own recommendation as the default ruling under ADR 0174 (a design-tier accept — revertible per commit, and the accept rides the digest, not a block): > **The Go seam returns key + params, not finished prose.** `Issue`/`AccessOption`/`GatewayOffer`/`BrokerError`/standup grow key + args fields **additively** (the existing prose is retained as the `en` source and the fallback), and runtime-composed strings (`"…" + claim.Reason`) become keyed slots (`"…{reason}"`). This is what makes a Spanish operator's screen fully Spanish — including the validation error and the S4a offer text (acceptance #2). It is a two-way door: additive fields + retained prose fallback are revertible, and the ruling is proven by acceptance #2. **Veto anytime.** Grounding: the app renders `label`/`detail`/`terms`/`note`/`message` from the seam **verbatim** (`FoundingAccess.vue:30`, `app/src/lib/founding.ts`) — so prose-only would put an English error on a Spanish screen, the ticket's stated worst case. ## What landed this attempt **`docs/adr/0232-design-the-i18n-seam.md`** — the i18n seam, minted. Commit `c05896de` on `main` (ADR + `STATUS.md` in the same commit; pushed, rebased over the concurrent #1372-follow-up). This is the ticket's own first act ("it mints an ADR before it mints strings") and the contract **#1377 is blocked on** ("this ticket mints the seam both surfaces use") — so #1377 is now unblocked on the design. The ADR decides all ten open questions the implementation inherits: library (`vue-i18n@11`, Composition-API); catalogue format (flat dot-namespaced keys, one file per locale, `en` authoritative + **byte-identical** to today's copy, so acceptance #1 is an `en`-catalogue obligation the drives enforce); the one catalogue home (`packages/ui-kit` owns + **exports** its `kit.*` catalogue, stays vue-i18n-agnostic, each surface deep-merges `kit.*` + its own `founding.*`/`panel.*`); the locale store (the picker is the one control; persisted on the draft as a **locale code** + `localStorage['idss.locale']`; boot precedence localStorage→draft→browser→`en`); the Go key-vs-prose ruling (above); the fallback rule (`fallbackLocale:'en'`, missing-key loud in dev, **never blank / never a raw key** in prod); the field → native `<select>` switching locale live; list closed at four (the `'mi'` fixtures move to a supported code); two guards (`oc-i18n/no-bare-literal` lint + en↔es/nl/fr key-parity unit); and translation quality (`en` authoritative + es/nl/fr **marked-draft**, native-reviewer accept rides the digest). ## Honest scope — why the ticket stays `ready-for-session`, not closed The ADR is the **contract**. The **implementation** is genuinely swarm-scale and does not fit a single `ready-for-session` drainer's one-shot finish-**and-prove** budget without risking a broken shared `main` (rule 4): ~24 `founding/**` components + the ui-kit + `app/src/lib/founding.ts` + **~99 Go string sites** + three filled catalogues + the lint rule + parity tests, all held to **holistic** acceptance (en byte-identical, Spanish-live incl. the Go half, `pnpm --filter @idss/app test` + eslint + vue-tsc green, **and the founding e2e drives green on `en`**). Half-migrating that on shared `main` in one unattended pass is exactly the class of change that breaks the swarm. So this attempt banks the load-bearing, zero-risk artifact and leaves the ticket honestly open. **Recommendation: run the implementation as a Sandcastle swarm against ADR 0232** (the ADR is the contract a swarm needs), or decompose via `to-tickets` into the ordered legs below. This is a queue-shape/execution-model call — every *code* decision is already ruled in ADR 0232. ## Ordered runbook for the implementation (against ADR 0232) 1. **Wire the seam (unblocks everything, and #1377):** add `vue-i18n@11` to `app/`; create `packages/ui-kit/src/i18n/<locale>.ts` (`kit.*`) + export; build the app's i18n instance by deep-merging `kit.*` + `founding.*`; the locale store (draft code + `localStorage`, boot precedence). Green: vue-tsc + a boot test. 2. **The field → picker + live switch:** `FoundingCommunityDetails.vue:46-49` becomes a `<select>` (English/Español/Nederlands/Français, `data-field="primary-language"` kept) that sets `i18n.global.locale`; update the three `'mi'` fixtures (`boot.test.ts:145`, `founding.test.ts:74`, `wireMapping.test.ts:71`). This is acceptance #2's control. 3. **Extract the founding surface:** every literal in `founding/**` → `founding.<screen>.*` keys; `en` byte-identical (acceptance #1). Add the `oc-i18n/no-bare-literal` lint so no component re-introduces English. 4. **The Go key+params seam (the ruling):** grow `Issue`/`AccessOption`/`GatewayOffer`/`BrokerError`/standup with key+args additively; renderer prefers key, falls back to retained prose. Red-before-green in `internal/founding/*_test.go`. This proves acceptance #2's Go half. 5. **Fill `es`/`nl`/`fr`** (marked-draft) + the key-parity unit test. 6. **Prove:** `pnpm --filter @idss/app test` + eslint + vue-tsc green; founding e2e green on `en`; a component test showing live `en→es` re-render incl. a validation error (acceptance #2/#3). *Ruled by agent under ADR 0174 — veto anytime. #1376 stays `ready-for-session`; the seam it mints is on `main`.*

Ruled by agent under ADR 0174 — veto anytime

Session on matou-dev-server-01. The i18n seam is WIRED and on main (commit bca385fc), and the swarm-scale, cross-surface remainder is decomposed into an ordered DAG of child tickets. #1376 is re-routed to an open tracking parent (its acceptance is holistic; the direct, provable slice landed).

What landed this attempt (all hermetic tiers green, pushed)

  • vue-i18n@11 (Composition-API) in app/, app.use-d in the composition root (bootstrap.ts).
  • The shared catalogue home: packages/ui-kit owns + EXPORTS its kit.* catalogue (@idss/ui-kit/i18n, seeded empty) and the app builds its instance by deep-merging kit.* + founding.* per locale — the exact composition #1377 inherits (ADR 0232 decision 3), minted even while empty so nothing structural changes when the kit fills.
  • The locale store (app/src/lib/i18n.ts): four codes en/es/nl/fr, boot precedence localStorage['idss.locale']→draft→browser→en, fallbackLocale:'en', a missing key humanized loud-in-dev / never-blank-never-raw-key in prod (decision 6).
  • The PRIMARY LANGUAGE picker (FoundingCommunityDetails.vue): the free-text input is now the native <select> (four options each in its OWN language, data-field="primary-language" kept) — choosing a language switches the UI locale LIVE and persists it; primary_language on the wire is now a locale code.
  • The community-info screen migrated to founding.communityInfo.* keys, en byte-identical (acceptance #1), es/nl/fr machine-drafts marked draft (decision 10). The three 'mi' fixtures (boot/founding/wireMapping) moved to a supported code (decision 8).
  • Guards: a vue-i18n key-PARITY unit (i18nSeam.test.ts) + the live en→es/fr re-render proof on the picker screen (foundingCommunityDetailsI18n.test.ts); a global test-setup registers the instance so every mount has $t.

Proof: pnpm --filter @idss/app test (1504 + 3 build) · ui-kit test (178) · eslint (0) · vue-tsc (app + kit) · prettier — all green. Pushed c05896de..bca385fc, pre-push lint gate passed.

Why NOT closed, and why not left ready-for-session

Two-way door landed; the rest is genuinely swarm-scale AND holistically coupled — the oc-i18n/no-bare-literal lint can only land once every founding literal is a key; the ui-kit component swap can't land without the dashboard's instance (else the dashboard renders raw keys — it would break #1377's surface). And acceptance #2/#4's proof is a live KVM/droplet founding drive, which this drainer host (matou-dev-server-01) cannot run (local-guest KVM). Half-migrating that on shared main in one unattended pass is exactly the swarm-breaking class ADR 0174 rule 4 guards against. So this attempt banked the safe, green, self-contained scaffold and decomposed the rest — the design-to-agent pipeline's own answer for work this size (the prior attempt's recommendation).

The decomposition (against ADR 0232) — #1376 is now blocked_by all four

  • #1378 — extract the remaining 23 founding/*.vue + foundingStack.ts to keys (all four locales per key, en byte-identical) + the oc-i18n/no-bare-literal lint. ready-for-agent.
  • #1379 — the Go key+params seam (~99 sites, additive struct fields + retained-prose fallback, renderer resolves) — the Go half of acceptance #2. ready-for-agent.
  • #1380 — ui-kit's 13 shared-component literals → kit.* + wire the dashboard's vue-i18n instance (the shared leg #1377 also depends on). ready-for-agent.
  • #1381 — PROVE acceptance #2/#4 on a live founding drive (Spanish walk incl. the Go-authored validation error + S4a offer, and the en drives green). ready-for-session, host-affinity elitebook-03 (KVM), blocked_by #1378/#1379/#1380.

Corrected inventory (the ticket's opening claim was stale): 24 founding/*.vue exist, and there is no founding/v2/ directory — the "29 + 4 in v2 = 33" count and the "v2 review list" item do not match the tree.

Removing ready-for-session + agent-working; #1376 stays open as the tracking parent, blocked by its children. Veto anytime.

## Ruled by agent under ADR 0174 — veto anytime Session on `matou-dev-server-01`. **The i18n seam is WIRED and on `main`** (commit `bca385fc`), and the swarm-scale, cross-surface remainder is decomposed into an ordered DAG of child tickets. `#1376` is re-routed to an open **tracking parent** (its acceptance is holistic; the direct, provable slice landed). ### What landed this attempt (all hermetic tiers green, pushed) - **`vue-i18n@11`** (Composition-API) in `app/`, `app.use`-d in the composition root (`bootstrap.ts`). - **The shared catalogue home**: `packages/ui-kit` owns + EXPORTS its `kit.*` catalogue (`@idss/ui-kit/i18n`, seeded empty) and the app builds its instance by **deep-merging `kit.*` + `founding.*`** per locale — the exact composition `#1377` inherits (ADR 0232 decision 3), minted even while empty so nothing structural changes when the kit fills. - **The locale store** (`app/src/lib/i18n.ts`): four codes `en`/`es`/`nl`/`fr`, boot precedence `localStorage['idss.locale']`→draft→browser→`en`, `fallbackLocale:'en'`, a missing key humanized loud-in-dev / never-blank-never-raw-key in prod (decision 6). - **The PRIMARY LANGUAGE picker** (`FoundingCommunityDetails.vue`): the free-text input is now the native `<select>` (four options each in its OWN language, `data-field="primary-language"` kept) — choosing a language switches the UI locale **LIVE** and persists it; `primary_language` on the wire is now a locale code. - **The community-info screen migrated** to `founding.communityInfo.*` keys, `en` **byte-identical** (acceptance #1), `es`/`nl`/`fr` machine-drafts marked `draft` (decision 10). The three `'mi'` fixtures (`boot`/`founding`/`wireMapping`) moved to a supported code (decision 8). - **Guards**: a `vue-i18n` key-PARITY unit (`i18nSeam.test.ts`) + the live `en→es`/`fr` re-render proof on the picker screen (`foundingCommunityDetailsI18n.test.ts`); a global test-setup registers the instance so every mount has `$t`. **Proof:** `pnpm --filter @idss/app test` (1504 + 3 build) · ui-kit test (178) · eslint (0) · `vue-tsc` (app + kit) · prettier — all green. Pushed `c05896de..bca385fc`, pre-push lint gate passed. ### Why NOT closed, and why not left `ready-for-session` Two-way door landed; the rest is genuinely swarm-scale AND **holistically coupled** — the `oc-i18n/no-bare-literal` lint can only land once every founding literal is a key; the ui-kit component swap can't land without the dashboard's instance (else the dashboard renders raw keys — it would break `#1377`'s surface). And acceptance #2/#4's proof is a **live KVM/droplet founding drive**, which this drainer host (`matou-dev-server-01`) cannot run (local-guest KVM). Half-migrating that on shared `main` in one unattended pass is exactly the swarm-breaking class ADR 0174 rule 4 guards against. So this attempt banked the safe, green, self-contained scaffold and decomposed the rest — the design-to-agent pipeline's own answer for work this size (the prior attempt's recommendation). ### The decomposition (against ADR 0232) — `#1376` is now blocked_by all four - **#1378** — extract the remaining **23** `founding/*.vue` + `foundingStack.ts` to keys (all four locales per key, `en` byte-identical) + the `oc-i18n/no-bare-literal` lint. `ready-for-agent`. - **#1379** — the Go **key+params** seam (~99 sites, additive struct fields + retained-prose fallback, renderer resolves) — the Go half of acceptance #2. `ready-for-agent`. - **#1380** — ui-kit's 13 shared-component literals → `kit.*` **+ wire the dashboard's `vue-i18n` instance** (the shared leg `#1377` also depends on). `ready-for-agent`. - **#1381** — PROVE acceptance #2/#4 on a **live founding drive** (Spanish walk incl. the Go-authored validation error + S4a offer, and the `en` drives green). `ready-for-session`, **host-affinity `elitebook-03`** (KVM), blocked_by #1378/#1379/#1380. Corrected inventory (the ticket's opening claim was stale): **24** `founding/*.vue` exist, and there is **no `founding/v2/` directory** — the "29 + 4 in v2 = 33" count and the "v2 review list" item do not match the tree. Removing `ready-for-session` + `agent-working`; `#1376` stays open as the tracking parent, blocked by its children. Veto anytime.

This was generated by AI during triage.

Ruled by agent under ADR 0174 — veto anytime

Ruling: no-triage (tracking parent). Category enhancement retained.

This ticket came into the run carrying only enhancement — its ready-for-session label was deliberately removed by the executing session in the 2026-09-10T23:06 comment, which re-routed #1376 from a work item into an open tracking parent and delegated all remaining implementation to child tickets. So it re-surfaces as "untriaged" only because the state role is bare, not because triage is unsettled. Re-triaging it to its correct resting state:

Why not ready-for-session / ready-for-agent: there is no direct actionable work left on the parent. The seam it minted (ADR 0232, on main at bca385fc) is done; the swarm-scale, holistically-coupled remainder was decomposed into four children, and #1376 is natively blocked_by all four:

  • #1378 — extract the remaining 23 founding components + foundingStack.ts (ready-for-agent)
  • #1379 — the Go key+params seam, ~99 sites (ready-for-agent)
  • #1380 — ui-kit's 13 shared literals + wire the dashboard instance (ready-for-agent)
  • #1381 — PROVE acceptance #2/#4 on a live founding drive (ready-for-session, host-affinity elitebook-03)

Its acceptance is holistic — it can only be judged once the children land and #1381's live Spanish drive passes — so the parent holds no takeable slice of its own. Putting ready-for-session back would churn every session-sweep against a ticket with nothing to do; the actual session work lives in #1381.

Why no-triage: this is now a coordination artifact, not a work item — the same shape the repo already parks under no-triage for every spec/map/parent (#1361, #1336, #1116, #1039, #960, #767, #262). It tells triage automation to stop re-flagging a ticket whose progress is driven entirely by its children; the parent closes when they close and acceptance is proven.

Two-way door: revertible in a single label change, and provable now — the four blocked_by edges are wired (verified via GET /issues/1376/dependencies), all four children are open and labelled, and docs/adr/0232-design-the-i18n-seam.md is on main. Nothing here touches the one-way-door list (no credentials, no security-posture widening, no member-facing trust accept, no data destruction, no spend). Veto anytime — if you'd rather the parent ride the session-sweep as a visible tracker, one comment flips it back to ready-for-session.

> *This was generated by AI during triage.* ## Ruled by agent under ADR 0174 — veto anytime **Ruling: `no-triage` (tracking parent). Category `enhancement` retained.** This ticket came into the run carrying only `enhancement` — its `ready-for-session` label was deliberately removed by the executing session in the 2026-09-10T23:06 comment, which re-routed #1376 from a work item into an **open tracking parent** and delegated all remaining implementation to child tickets. So it re-surfaces as "untriaged" only because the state role is bare, not because triage is unsettled. Re-triaging it to its correct resting state: **Why not `ready-for-session` / `ready-for-agent`:** there is no direct actionable work left on the parent. The seam it minted (ADR 0232, on `main` at `bca385fc`) is done; the swarm-scale, holistically-coupled remainder was decomposed into four children, and #1376 is natively **blocked_by all four**: - #1378 — extract the remaining 23 founding components + `foundingStack.ts` (`ready-for-agent`) - #1379 — the Go key+params seam, ~99 sites (`ready-for-agent`) - #1380 — ui-kit's 13 shared literals + wire the dashboard instance (`ready-for-agent`) - #1381 — PROVE acceptance #2/#4 on a live founding drive (`ready-for-session`, host-affinity `elitebook-03`) Its acceptance is **holistic** — it can only be judged once the children land and #1381's live Spanish drive passes — so the parent holds no takeable slice of its own. Putting `ready-for-session` back would churn every session-sweep against a ticket with nothing to do; the actual session work lives in #1381. **Why `no-triage`:** this is now a coordination artifact, not a work item — the same shape the repo already parks under `no-triage` for every spec/map/parent (#1361, #1336, #1116, #1039, #960, #767, #262). It tells triage automation to stop re-flagging a ticket whose progress is driven entirely by its children; the parent closes when they close and acceptance is proven. **Two-way door:** revertible in a single label change, and provable now — the four `blocked_by` edges are wired (verified via `GET /issues/1376/dependencies`), all four children are open and labelled, and `docs/adr/0232-design-the-i18n-seam.md` is on `main`. Nothing here touches the one-way-door list (no credentials, no security-posture widening, no member-facing trust accept, no data destruction, no spend). **Veto anytime** — if you'd rather the parent ride the session-sweep as a visible tracker, one comment flips it back to `ready-for-session`.
Sign in to join this conversation.
No milestone
No project
No assignees
2 participants
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Reference
Matou/idss#1376
No description provided.