founding S4a offer i18n: the live broker ships un-keyed English prose — decision 5 unmigrated for the GatewayOffer terms #1389

Closed
opened 2026-09-11 17:24:32 +00:00 by matou-build-agent · 2 comments

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 — AccessOption labels, brandkit.Issue, founding.GatewayOffer.TermsKey (internal/founding/access.go:155) — and the fake broker sets TermsKey (internal/founding/testing/fakes.go:107), so internal/founding/i18nseam_test.go passes. But the REMOTE broker seam was never migrated:

  • broker/internal/broker/rentals.go Offer struct (line 99) carries only Terms string (json:"terms") — no terms_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:99 Offer() unmarshals the broker wire straight into founding.GatewayOffer; with no terms_key on the wire, TermsKey stays empty.
  • So on the live S4a card the offer TERMS render in English regardless of the community language. The app correctly falls back to the retained prose (decision 6 — never blank, never a raw key), but decision 5 does not reach the live offer terms.

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)

  1. broker/internal/broker/rentals.go: Offer grows TermsKey (+ ttl arg) and NoteKey; set TermsKey to a new founding.offer.brokerAlphaTerms with a {ttl} param (keep Terms prose as the retained fallback, decision 5/6). Marshal on the wire (broker/internal/broker/http.go).
  2. internal/founding/access.go GatewayOffer: confirm it carries Args for the offer (add if absent) so the app interpolates {ttl}.
  3. Catalogue: add founding.offer.brokerAlphaTerms (with {ttl}) to app/src/i18n/founding/g8.seam.{en,es,nl,fr}.ts — parity guard + en byte-identical to the broker's retained prose.
  4. Redeploy broker.idss.nz (live-infra, rollback-backed) — the live offer only carries the key once the deployed broker emits it.
  5. Re-drive --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).

## 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 — `AccessOption` labels, `brandkit.Issue`, `founding.GatewayOffer.TermsKey` (`internal/founding/access.go:155`) — and the fake broker sets `TermsKey` (`internal/founding/testing/fakes.go:107`), so `internal/founding/i18nseam_test.go` passes. **But the REMOTE broker seam was never migrated:** - `broker/internal/broker/rentals.go` `Offer` struct (line 99) carries **only** `Terms string` (`json:"terms"`) — **no `terms_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:99` `Offer()` unmarshals the broker wire straight into `founding.GatewayOffer`; with no `terms_key` on the wire, `TermsKey` stays empty. - So on the **live** S4a card the offer TERMS render in **English** regardless of the community language. The app correctly falls back to the retained prose (decision 6 — never blank, never a raw key), but decision 5 does **not** reach the live offer terms. 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) 1. `broker/internal/broker/rentals.go`: `Offer` grows `TermsKey` (+ ttl arg) and `NoteKey`; set `TermsKey` to a new `founding.offer.brokerAlphaTerms` with a `{ttl}` param (keep `Terms` prose as the retained fallback, decision 5/6). Marshal on the wire (`broker/internal/broker/http.go`). 2. `internal/founding/access.go` `GatewayOffer`: confirm it carries `Args` for the offer (add if absent) so the app interpolates `{ttl}`. 3. Catalogue: add `founding.offer.brokerAlphaTerms` (with `{ttl}`) to `app/src/i18n/founding/g8.seam.{en,es,nl,fr}.ts` — parity guard + `en` byte-identical to the broker's retained prose. 4. **Redeploy `broker.idss.nz`** (live-infra, rollback-backed) — the live offer only carries the key once the deployed broker emits it. 5. Re-drive `--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).
Author
Member

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's Offer grows TermsKey/NoteKey + Args{ttl}, set to a new founding.offer.brokerAlphaTerms (a {ttl} param — distinct from the fake's short freeWhileAlpha) and founding.offer.brokerAlphaNote. The retained Terms/Note prose stays the en source + fallback (decision 5/6). http.go offer-doc updated (the struct marshals the new tags on the wire).
  • internal/founding/access.go — GatewayOffer grows Args so the app can interpolate {ttl}.
  • internal/brokerclient/client.go already unmarshals the broker wire straight into founding.GatewayOffer, so terms_key/note_key/args now cross unchanged.
  • app/src/lib/founding.ts — gatewayOfferTerms now passes offer.args; the GatewayOffer TS twin grows args.
  • catalogue app/src/i18n/founding/g8.seam.{en,es,nl,fr}.ts — founding.offer.brokerAlphaTerms ({ttl}) + brokerAlphaNote; en byte-identical to the Go prose (modulo the {ttl} slot), es/nl/fr machine-drafts, parity-clean.

Proof (red-before-green)

  • broker TestGateway_OfferCarriesTermsKeyAndTtlArg — raw-wire decode asserts terms_key/note_key/args{ttl} marshal, prose unchanged.
  • brokerclient.TestClient_OfferCarriesTermsKeyAndArgs — the keys+args carry through the wire into founding.GatewayOffer.
  • app foundingSeamI18n.test.ts — gatewayOfferTerms resolves the terms to Spanish and interpolates {ttl}, en byte-identical; the key-parity guard (i18nSeam.test.ts) stays green.
  • Both Go modules go build/vet/gofmt clean; broker go 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

  1. The fix lives in the broker/** deployed-service tree: broker.idss.nz must install the new binary before the live offer emits the key. Relabelling deploy-pending — the broker deploy rides the CI deploy-broker job (elitebook-03; matou-workstation cannot reach the broker mesh), and deploy-verified-close.sh closes this issue once the installed sha carries bb716e5b.
  2. Step 5 — the founding-es re-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.ts isn't on main (it lives on the drive host), so the drainer cannot run or complete it. #1381's next founding-es drive against the deployed broker proves the acceptance-#2 offer-half end-to-end.

Dropping ready-for-session/agent-working, adding deploy-pending. Advances #1376 / #1381.

**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's `Offer` grows `TermsKey`/`NoteKey` + `Args{ttl}`, set to a new `founding.offer.brokerAlphaTerms` (a `{ttl}` param — distinct from the fake's short `freeWhileAlpha`) and `founding.offer.brokerAlphaNote`. The retained `Terms`/`Note` prose stays the `en` source + fallback (decision 5/6). `http.go` offer-doc updated (the struct marshals the new tags on the wire). - `internal/founding/access.go` — `GatewayOffer` grows `Args` so the app can interpolate `{ttl}`. - `internal/brokerclient/client.go` already unmarshals the broker wire straight into `founding.GatewayOffer`, so `terms_key`/`note_key`/`args` now cross unchanged. - `app/src/lib/founding.ts` — `gatewayOfferTerms` now passes `offer.args`; the `GatewayOffer` TS twin grows `args`. - catalogue `app/src/i18n/founding/g8.seam.{en,es,nl,fr}.ts` — `founding.offer.brokerAlphaTerms` (`{ttl}`) + `brokerAlphaNote`; `en` byte-identical to the Go prose (modulo the `{ttl}` slot), `es`/`nl`/`fr` machine-drafts, parity-clean. **Proof (red-before-green)** - broker `TestGateway_OfferCarriesTermsKeyAndTtlArg` — raw-wire decode asserts `terms_key`/`note_key`/`args{ttl}` marshal, prose unchanged. - `brokerclient.TestClient_OfferCarriesTermsKeyAndArgs` — the keys+args carry through the wire into `founding.GatewayOffer`. - app `foundingSeamI18n.test.ts` — `gatewayOfferTerms` resolves the terms to Spanish and interpolates `{ttl}`, `en` byte-identical; the key-parity guard (`i18nSeam.test.ts`) stays green. - Both Go modules `go build`/`vet`/`gofmt` clean; broker `go 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** 1. The fix lives in the **`broker/**` deployed-service tree**: `broker.idss.nz` must install the new binary before the live offer emits the key. Relabelling `deploy-pending` — the broker deploy rides the CI `deploy-broker` job (elitebook-03; matou-workstation cannot reach the broker mesh), and `deploy-verified-close.sh` closes this issue once the installed sha carries `bb716e5b`. 2. Step 5 — the `founding-es` re-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.ts` isn't on `main` (it lives on the drive host), so the drainer cannot run or complete it. #1381's next `founding-es` drive against the deployed broker proves the acceptance-#2 offer-half end-to-end. Dropping `ready-for-session`/`agent-working`, adding `deploy-pending`. Advances #1376 / #1381.
Author
Member

Broker rail verified — closing. The broker deploy rail installed bb716e5b9a99 and git merge-base --is-ancestor bb716e5b9a99 bb716e5b9a99 holds, 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.

**Broker rail verified — closing.** The broker deploy rail installed `bb716e5b9a99` and `git merge-base --is-ancestor bb716e5b9a99 bb716e5b9a99` holds, 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.
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#1389
No description provided.