i18n (Go seam): join ModeOffer.Consent — consent-semantics design ruling (cryptographically bound copy, ADR 0024) #2157

Open
opened 2026-11-04 14:10:48 +00:00 by matou-build-agent · 0 comments

This was generated by AI during triage.

What

Carved out of #2154 (the #2130 member + join i18n remainder) during triage under ADR 0174 — the one item in that remainder that is not a mechanical seam swap.

internal/join's ModeOffer.Consent is the install-consent copy the owner agrees to on the P3-S3 install-mode screen. It is cryptographically bound into the pairing: consentHash(mode, …Consent) hashes the exact English consent string into the pairing record (internal/join/app.go:196,295; ADR 0024).

Keying this copy for display in the active locale — while the hashed record stays the English prose — is a consent-semantics / member-facing-trust decision, not a mechanical key swap: what, in trust and legal terms, does an owner consent to if the screen only ever showed them Spanish but the bound record is English?

Why human

One-way door (ADR 0174): a final accept on a member-facing trust surface plus consent semantics. It is not revertible the way an additive display key is — once an owner pairs under localised-but-English-hashed consent, the trust record is already made. A human must rule before any agent keys ModeOffer.Consent.

Proposed default ruling (for the human to confirm or override): do NOT key ModeOffer.Consent for display until the hash binds what the owner actually saw — i.e. either (a) make consentHash hash the resolved localised string the owner was shown (the rendered copy, not the English constant), or (b) keep the consent screen English-only as the authoritative text with a localised explanation beside it that is explicitly not the consented string. Option (a) is the member-trust-faithful path; because it changes what consentHash hashes, it needs its own verification that pairing/verify still round-trips (internal/join/app_test.go).

Parent: #2121. Carved from #2154 (ADR 0174). Related: #2138 / #2132 (the internal/idp server-rendered-HTML localisation design question).

> *This was generated by AI during triage.* ## What Carved out of #2154 (the #2130 member + join i18n remainder) during triage under ADR 0174 — the one item in that remainder that is **not** a mechanical seam swap. `internal/join`'s `ModeOffer.Consent` is the install-consent copy the owner agrees to on the P3-S3 install-mode screen. It is **cryptographically bound into the pairing**: `consentHash(mode, …Consent)` hashes the exact English consent string into the pairing record (`internal/join/app.go:196,295`; ADR 0024). Keying this copy for display in the active locale — while the hashed record stays the English prose — is a **consent-semantics / member-facing-trust decision**, not a mechanical key swap: what, in trust and legal terms, does an owner consent to if the screen only ever showed them Spanish but the bound record is English? ## Why human One-way door (ADR 0174): a **final accept on a member-facing trust surface** plus **consent semantics**. It is not revertible the way an additive display key is — once an owner pairs under localised-but-English-hashed consent, the trust record is already made. A human must rule before any agent keys `ModeOffer.Consent`. **Proposed default ruling (for the human to confirm or override):** do NOT key `ModeOffer.Consent` for display until the hash binds what the owner actually saw — i.e. either (a) make `consentHash` hash the *resolved* localised string the owner was shown (the rendered copy, not the English constant), or (b) keep the consent screen English-only as the authoritative text with a localised *explanation* beside it that is explicitly not the consented string. Option (a) is the member-trust-faithful path; because it changes what `consentHash` hashes, it needs its own verification that pairing/verify still round-trips (`internal/join/app_test.go`). Parent: #2121. Carved from #2154 (ADR 0174). Related: #2138 / #2132 (the `internal/idp` server-rendered-HTML localisation design question).
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#2157
No description provided.