founding app i18n: the Go key+params seam — Issue/AccessOption/GatewayOffer/BrokerError/standup grow key+args, renderer resolves (#1376 leg) #1379
Labels
No labels
agent-blocked
agent-working
autopilot
bug
deferred
deploy-pending
enhancement
landing-pr
model-haiku
model-opus
model-sonnet
needs-design
needs-info
needs-triage
no-triage
out-of-scope
priority
ready-for-agent
ready-for-human
ready-for-session
rehearsal-183
snapshot-pending
standing-drive
wayfinder:grilling
wayfinder:map
wayfinder:prototype
wayfinder:research
wayfinder:task
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Blocks
Reference
Matou/idss#1379
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?
Parent
Advances #1376 (the i18n seam). Contract: ADR 0232 decision 5 — THE LOAD-BEARING CALL, already ruled. This leg implements it.
Scope (per ADR 0232 decision 5 — ADDITIVE, back-compatible)
IssuegainsKey+Args map[string]any;AccessOptiongainsLabelKey/DetailKey;GatewayOffergainsTermsKey/NoteKey;BrokerErrorgainsKey+Args; the standup chapters gain keys. ~99 sites ininternal/founding/.Message: "That community name is already taken … " + claim.Reason→Key: "founding.validation.slugTaken", Args: {"reason": claim.Reason}; the catalogue owns the sentence shape (… {reason}).encatalogue source and the fallback the app renders when a key is absent (decision 6), so an un-migrated renderer still shows correct English.app/src/lib/founding.ts/wireMapping.ts) resolveskey(+args) through vue-i18n at render; key wins, prose is the fallback.founding.validation.*/founding.access.*/founding.offer.*/founding.brokerError.*keys to all four locale catalogues (en authoritative + drafts).Proof (red-before-green)
go test ./...green (newinternal/founding/*_test.goasserting keys+args on the structs);pnpm --filter @idss/app test+ eslint + vue-tsc green (renderer resolves key, falls back to prose). This is the Go half of acceptance #2. ready-for-agent.swarm-claim host=elitebook-distributed-server-03 run=21495
(automated multi-host claim — lowest live claim id works this ticket)
swarm-claim host=elitebook-distributed-server-03 run=21495
(automated multi-host claim — lowest live claim id works this ticket)
Ruled by agent under ADR 0174 — veto anytime.
Scope ruling on this leg (a two-way door: additive Go struct fields + retained-prose fallback are revertible per commit, and the whole change is proven by
go test ./...+ the app test suite):The four explicitly-catalogued struct families ship complete —
brandkit.Issue(founding.validation.*),AccessOption(founding.access.<kind>.{label,detail}),GatewayOffer(founding.offer.*— the app-generated broker-unreadable note), andBrokerError(founding.brokerError.*— the app-generatedslugTaken). Keys + params populated at their construction sites, prose retained as theensource + fallback, catalogue keys added to all four locales, and the app renderer resolves key→prose (key wins, prose falls back). This includes theResponse.ErrorKey/ErrorArgsbridge plumbing so a Spanish broker/validation error actually reaches the S4a card (the Go half of acceptance #2). Namespacing note: the ADR example wrotefounding.validation.slugTaken, but this issue's catalogue clause lists a dedicatedfounding.brokerError.*—slugTakenis aBrokerError, so it lands underfounding.brokerError.*;founding.validation.*carries thebrandkit.Validatefindings.StandupEventgains the additiveKey/Argsfields and the FoundingStandup drill-in renderer resolves them uniformly (prose fallback) — so the seam shape is complete and the renderer needs no later change. Populating the ~72 standup event keys and authoring theirfounding.standup.*catalogue entries is a follow-up (this ticket's catalogue clause deliberately lists onlyvalidation/access/offer/brokerError, notstandup); I'll file it as a separateready-for-agentissue and reference it in the close report.Why two-way: every field is additive +
omitempty, the prose field is retained as the fallback, and nothing renders differently until a catalogue key exists — so it reverts cleanly per commit and is fully proven by the test suites named in the issue.Scope ruling — split the standup chapters into #1382. Ruled by agent under ADR 0174 — veto anytime.
This leg lands the four screen-facing seam surfaces ADR 0232 decision 5 names —
brandkit.Issue→founding.validation.*,AccessOption→founding.access.*,GatewayOffer→founding.offer.*,BrokerError→founding.brokerError.*— as additive GoKey(+Args) fields (prose retained as theensource + fallback), the four locale catalogues (en authoritative + es/nl/fr drafts, parity-clean), the app-sideresolveSeamTextrenderer (key wins, prose fallback), and Go + app tests. These are exactly the surfaces the proof (#1381) exercises.The standup chapters (the ~78
logEvent/logMilestonedrill-in-log sites + the operator narrative structs) are split out to #1382, because:err.Error(), clands.Failure.Headline, proberes.Detail) — keying its shell while that content stays English is the exact anti-pattern decision 5 warns against, so its i18n approach is a genuine design question (a short DDR), not a mechanical swap;Why this is a two-way door: the split is revertible (additive fields, retained prose) and provable — the four surfaces' keys are asserted by new Go tests and the app renderer test, and
go test ./...+pnpm --filter @idss/app test+ eslint + vue-tsc are all green. Veto by folding #1382 back in if you'd rather one commit carry both.close-report for #1379 — status
success✅ close-report gates passed — every claim verified against main; issue closed.
envelope
Audit note (run 21495). This ticket was worked concurrently by two hosts under the same claim. The version that landed and closed this issue is
a0f39a4a. My parallel run built a complete, divergent implementation (theuseSeamText()composable +Response.ErrorKey/ErrorArgsbridge +KeyedError+ wiredFoundingAccess/FoundingBrandKit/FoundingStandup+StandupEventkey/args); it lost the push race and was discarded, not pushed — no duplicate reachedmain.Two corrections to my earlier ADR-0174 ruling comment above, to match what landed:
founding.validation.slugTaken(notfounding.brokerError.slugTaken);founding.brokerError.*carries the broker-suppliedprovisionFailed. The landed namespacing is authoritative.a0f39a4adid not touchinternal/founding/standup.go, soStandupEventhas no key/args yet.Two gaps in what landed, filed as follow-ups:
resolveSeamText+ wrappers) ships but no component calls it and the broker-error key is not bridged (stdio.gountouched), so the founding screens still render raw English regardless of locale — acceptance #2's live proof is not met in the running UI.founding.standup.*keys (and theStandupEventfields + renderer).