founding S4a offer i18n: the live broker ships un-keyed English prose — decision 5 unmigrated for the GatewayOffer terms #1389
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.
Dependencies
No dependencies set.
Reference
Matou/idss#1389
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, ADR 0232). Surfaced by the acceptance-#2 proof drive in #1381 (the loop-closer) — a genuine end-to-end gap the unit tier missed.
The gap (found live, drive
founding-es, 2026-09-11 on elitebook-03)ADR 0232 decision 5 (the Go seam returns key+params, not finished prose) was applied to the founding-side structs —
AccessOptionlabels,brandkit.Issue,founding.GatewayOffer.TermsKey(internal/founding/access.go:155) — and the fake broker setsTermsKey(internal/founding/testing/fakes.go:107), sointernal/founding/i18nseam_test.gopasses. But the REMOTE broker seam was never migrated:broker/internal/broker/rentals.goOfferstruct (line 99) carries onlyTerms string(json:"terms") — noterms_key— and line 225 builds finished English prose with an interpolated TTL: "Free while IDSS is in alpha. Your gateway runs for 24h0m0s at a time … (ADR 0189)."internal/brokerclient/client.go:99Offer()unmarshals the broker wire straight intofounding.GatewayOffer; with noterms_keyon the wire,TermsKeystays empty.Second wrinkle: the catalogue's
founding.offer.freeWhileAlpha("Free while alpha — Matou hosts it and reaps it if left idle.") was authored to the fake's short terms, which does not match the broker's richer TTL-bearing prose. So this is not a one-line re-key — the broker's terms need their own key with a{ttl}param.What proves it now
founding-es.live.spec.ts(landed in #1381): the S4a step asserts the terms field is non-blank and carries no raw key (decision 6, live). Received string on the drive:"CONDICIONES Free while IDSS is in alpha. Your gateway runs for 24h0m0s at a time … (ADR 0189)."The fix (a Go-seam leg, not a proof)
broker/internal/broker/rentals.go:OffergrowsTermsKey(+ ttl arg) andNoteKey; setTermsKeyto a newfounding.offer.brokerAlphaTermswith a{ttl}param (keepTermsprose as the retained fallback, decision 5/6). Marshal on the wire (broker/internal/broker/http.go).internal/founding/access.goGatewayOffer: confirm it carriesArgsfor the offer (add if absent) so the app interpolates{ttl}.founding.offer.brokerAlphaTerms(with{ttl}) toapp/src/i18n/founding/g8.seam.{en,es,nl,fr}.ts— parity guard +enbyte-identical to the broker's retained prose.broker.idss.nz(live-infra, rollback-backed) — the live offer only carries the key once the deployed broker emits it.--drive founding-es, flip the S4a assertion to assert the Spanish terms, eyeball the screenshot. Closes the acceptance-#2 offer-half in #1381.ready-for-session (needs broker-deploy standing + a founding-es re-drive on a KVM host, e.g. elitebook-03).
Ruled by agent under ADR 0174 — veto anytime.
The Go-seam leg (steps 1–3 + the app wiring) is landed on main and proven at the unit tier. Commit
bb716e5b.What landed
broker/internal/broker/rentals.go— the remote broker'sOffergrowsTermsKey/NoteKey+Args{ttl}, set to a newfounding.offer.brokerAlphaTerms(a{ttl}param — distinct from the fake's shortfreeWhileAlpha) andfounding.offer.brokerAlphaNote. The retainedTerms/Noteprose stays theensource + fallback (decision 5/6).http.gooffer-doc updated (the struct marshals the new tags on the wire).internal/founding/access.go—GatewayOffergrowsArgsso the app can interpolate{ttl}.internal/brokerclient/client.goalready unmarshals the broker wire straight intofounding.GatewayOffer, soterms_key/note_key/argsnow cross unchanged.app/src/lib/founding.ts—gatewayOfferTermsnow passesoffer.args; theGatewayOfferTS twin growsargs.app/src/i18n/founding/g8.seam.{en,es,nl,fr}.ts—founding.offer.brokerAlphaTerms({ttl}) +brokerAlphaNote;enbyte-identical to the Go prose (modulo the{ttl}slot),es/nl/frmachine-drafts, parity-clean.Proof (red-before-green)
TestGateway_OfferCarriesTermsKeyAndTtlArg— raw-wire decode assertsterms_key/note_key/args{ttl}marshal, prose unchanged.brokerclient.TestClient_OfferCarriesTermsKeyAndArgs— the keys+args carry through the wire intofounding.GatewayOffer.foundingSeamI18n.test.ts—gatewayOfferTermsresolves the terms to Spanish and interpolates{ttl},enbyte-identical; the key-parity guard (i18nSeam.test.ts) stays green.go build/vet/gofmtclean; brokergo test ./...,go test ./internal/founding/ ./internal/brokerclient/, full app vitest (1526), eslint (incl.oc-i18n/no-bare-literal),vue-tsc— all green.Additive and backward-compatible — an older app ignores the keys and renders the retained prose.
Why not closed here — the residue is a deploy + a drive, no agent work left
broker/**deployed-service tree:broker.idss.nzmust install the new binary before the live offer emits the key. Relabellingdeploy-pending— the broker deploy rides the CIdeploy-brokerjob (elitebook-03; matou-workstation cannot reach the broker mesh), anddeploy-verified-close.shcloses this issue once the installed sha carriesbb716e5b.founding-esre-drive that flips the S4a assertion to the Spanish terms + eyeballs the screenshot — is a KVM drive-host proof owned by #1381 (the loop-closer that surfaced this).founding-es.live.spec.tsisn't onmain(it lives on the drive host), so the drainer cannot run or complete it. #1381's nextfounding-esdrive against the deployed broker proves the acceptance-#2 offer-half end-to-end.Dropping
ready-for-session/agent-working, addingdeploy-pending. Advances #1376 / #1381.Broker rail verified — closing. The broker deploy rail installed
bb716e5b9a99andgit merge-base --is-ancestor bb716e5b9a99 bb716e5b9a99holds, so the bits now in play carry this issue's fix (bb716e5b9a99). Closed by scripts/deploy-verified-close.sh (the served-bits-vs-main discipline, automated); any drive this blocked re-fires on its next tick.