founding app: every string becomes a translation string (en/es/nl/fr) and PRIMARY LANGUAGE becomes a selection — mints the i18n seam #1376
Labels
No labels
agent-blocked
agent-working
autopilot
bug
deferred
deploy-pending
enhancement
landing-pr
model-haiku
model-opus
model-sonnet
needs-design
needs-info
needs-triage
no-triage
out-of-scope
priority
ready-for-agent
ready-for-human
ready-for-session
rehearsal-183
snapshot-pending
standing-drive
wayfinder:grilling
wayfinder:map
wayfinder:prototype
wayfinder:research
wayfinder:task
wontfix
No milestone
No project
No assignees
2 participants
Notifications
Due date
No due date set.
Blocks
Depends on
Reference
Matou/idss#1376
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
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, nouseI18n, no$t(, no localefiles, 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()" — thefounding UI renders text from four different homes:
app/src/components/founding/plus 4 in
founding/v2/.app/src/lib/foundingStack.ts— the stack table's layer labels, sectionlabels and summaries: the copy the v2 list and the open card both read.
packages/ui-kit/src/components/— 13 shared components with their owncopy (
OcErrorState,LogoDialog,NavChrome…), shared with the controlpanel, so their strings must land in a place both surfaces load.
internal/founding/— ~99 sites producingMessage:/Detail:/Label:text that crosses the seam and is rendered verbatim: validationIssue.Message,AccessOption.Label/Detail, the gateway offer'sTermsandNote,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 istoday
<input v-model="primaryLanguage" type="text">. It becomes a select ofEnglish, 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
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
primaryLanguageis capturedon the draft (
Details.PrimaryLanguage,primary_languageon the wire,internal/founding/draft.go:83) and, verified, consumed by nothing.Two consequences to build against, not to re-open:
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.
'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:74andwireMapping.test.ts:71all carry'mi'and will need updating as part ofthis 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)
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 inapp/; catalogues as flatkey files, one per locale,
enauthoritative.it survives a restart.
packages/ui-kitstrings extracted to a catalogue both surfaces load —the shared components must not carry English literals.
The founding surface
app/src/components/founding/**(33 components) replacedby a key; keys namespaced by screen (
founding.communityInfo.*).app/src/lib/foundingStack.tslabels/summaries become keys.internal/founding/); if key+params wins,Issue,AccessOption,GatewayOfferandBrokerErrorgrow a key field and the renderer resolves it.es/nl/frcatalogues filled. Translation quality is a realquestion — 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-49PRIMARY LANGUAGE becomes the picker —four options, each labelled in its own language,
data-field="primary-language"kept so the founding drives keep working.
'mi'updated (boot.test.ts:145,founding.test.ts:74,wireMapping.test.ts:71).locale control, and that is the proof the whole ticket works.
Sweep
oc-theming/no-hex-color) that fails on a bareuser-facing literal in a founding template — otherwise the next component
re-introduces English by hand.
enexists ines/nl/frand vice versa.STATUS.mdin the same commit.Acceptance
enselected the founding walk reads exactly as it does today —this is a refactor, not a rewrite; no copy changes meaning.
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.
and never a raw key on screen.
pnpm --filter @idss/app test+ eslint + vue-tsc green; the founding e2edrives pass unchanged on
en.Out of scope
internal/idp/provider.go:64hardcodesSupportedUILocales: []language.Tag{language.English}, and the IdP / control-apipages 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.Triage:
enhancement+ready-for-sessionCategory —
enhancement: new capability (the i18n seam + four locales), not a defect.Redundancy check (clean): confirmed greenfield — no
vue-i18ninapp/,dashboard/, orpackages/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 acrossinternal/finds no reader — so repurposing that field is safe and reversible.State —
ready-for-session, notready-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 notready-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).
Issue,AccessOption,GatewayOffer,BrokerErrorand 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.2. The PRIMARY LANGUAGE field → option (a) (UI-locale chooser + a free-text community-language field beside it).
data-field="primary-language"so the founding drives keep working.Everything else in the ticket (catalogue home the ui-kit loads from both surfaces,
en-authoritative flat key files, the catalogue-parity unit test, theno-bare-literallint rule,es/nl/frshipped 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):
Grounding: the app renders
label/detail/terms/note/messagefrom 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. Commitc05896deonmain(ADR +STATUS.mdin 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,enauthoritative + byte-identical to today's copy, so acceptance #1 is anen-catalogue obligation the drives enforce); the one catalogue home (packages/ui-kitowns + exports itskit.*catalogue, stays vue-i18n-agnostic, each surface deep-mergeskit.*+ its ownfounding.*/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-literallint + en↔es/nl/fr key-parity unit); and translation quality (enauthoritative + es/nl/fr marked-draft, native-reviewer accept rides the digest).Honest scope — why the ticket stays
ready-for-session, not closedThe ADR is the contract. The implementation is genuinely swarm-scale and does not fit a single
ready-for-sessiondrainer's one-shot finish-and-prove budget without risking a broken sharedmain(rule 4): ~24founding/**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 onen). Half-migrating that on sharedmainin 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-ticketsinto 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)
vue-i18n@11toapp/; createpackages/ui-kit/src/i18n/<locale>.ts(kit.*) + export; build the app's i18n instance by deep-mergingkit.*+founding.*; the locale store (draft code +localStorage, boot precedence). Green: vue-tsc + a boot test.FoundingCommunityDetails.vue:46-49becomes a<select>(English/Español/Nederlands/Français,data-field="primary-language"kept) that setsi18n.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.founding/**→founding.<screen>.*keys;enbyte-identical (acceptance #1). Add theoc-i18n/no-bare-literallint so no component re-introduces English.Issue/AccessOption/GatewayOffer/BrokerError/standup with key+args additively; renderer prefers key, falls back to retained prose. Red-before-green ininternal/founding/*_test.go. This proves acceptance #2's Go half.es/nl/fr(marked-draft) + the key-parity unit test.pnpm --filter @idss/app test+ eslint + vue-tsc green; founding e2e green onen; a component test showing liveen→esre-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 onmain.Ruled by agent under ADR 0174 — veto anytime
Session on
matou-dev-server-01. The i18n seam is WIRED and onmain(commitbca385fc), and the swarm-scale, cross-surface remainder is decomposed into an ordered DAG of child tickets.#1376is 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) inapp/,app.use-d in the composition root (bootstrap.ts).packages/ui-kitowns + EXPORTS itskit.*catalogue (@idss/ui-kit/i18n, seeded empty) and the app builds its instance by deep-mergingkit.*+founding.*per locale — the exact composition#1377inherits (ADR 0232 decision 3), minted even while empty so nothing structural changes when the kit fills.app/src/lib/i18n.ts): four codesen/es/nl/fr, boot precedencelocalStorage['idss.locale']→draft→browser→en,fallbackLocale:'en', a missing key humanized loud-in-dev / never-blank-never-raw-key in prod (decision 6).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_languageon the wire is now a locale code.founding.communityInfo.*keys,enbyte-identical (acceptance #1),es/nl/frmachine-drafts markeddraft(decision 10). The three'mi'fixtures (boot/founding/wireMapping) moved to a supported code (decision 8).vue-i18nkey-PARITY unit (i18nSeam.test.ts) + the liveen→es/frre-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. Pushedc05896de..bca385fc, pre-push lint gate passed.Why NOT closed, and why not left
ready-for-sessionTwo-way door landed; the rest is genuinely swarm-scale AND holistically coupled — the
oc-i18n/no-bare-literallint 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 sharedmainin 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) —
#1376is now blocked_by all fourfounding/*.vue+foundingStack.tsto keys (all four locales per key,enbyte-identical) + theoc-i18n/no-bare-literallint.ready-for-agent.ready-for-agent.kit.*+ wire the dashboard'svue-i18ninstance (the shared leg#1377also depends on).ready-for-agent.endrives green).ready-for-session, host-affinityelitebook-03(KVM), blocked_by #1378/#1379/#1380.Corrected inventory (the ticket's opening claim was stale): 24
founding/*.vueexist, and there is nofounding/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;#1376stays open as the tracking parent, blocked by its children. Veto anytime.Ruled by agent under ADR 0174 — veto anytime
Ruling:
no-triage(tracking parent). Categoryenhancementretained.This ticket came into the run carrying only
enhancement— itsready-for-sessionlabel 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, onmainatbca385fc) is done; the swarm-scale, holistically-coupled remainder was decomposed into four children, and #1376 is natively blocked_by all four:foundingStack.ts(ready-for-agent)ready-for-agent)ready-for-agent)ready-for-session, host-affinityelitebook-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-sessionback 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 underno-triagefor 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_byedges are wired (verified viaGET /issues/1376/dependencies), all four children are open and labelled, anddocs/adr/0232-design-the-i18n-seam.mdis onmain. 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 toready-for-session.