hub v0.119.0 — English households get English words for their codes (R-597); R-596/R-598 closed
gates / gates (push) Successful in 24s

The setup code and the owner passphrase now follow the household's language,
one word longer in English so the entropy never drops (setup 3 hu / 4 en,
passphrase 5 hu / 6 en). List and count are chosen together so a caller cannot
pair an English list with a Hungarian count. Hungarian is byte-unchanged.

Three claims in the row were wrong and are recorded as such:
  - the RECOVERY CODE is minted by felhom-agent from the EFF list and has
    always been English; the hub does not own it and no row was added.
  - no claim mail states a word count; the only count wording was the bind
    page's passphrase hint, whose English half is now count-free.
  - the proposed phone-safe filter removes 68% of the list (5270 of 7772
    words) and was measured, then declined, with the reason in source.

Also: guide_quote_gate binds the English volunteer guide's three quoted
messages to the controller's English bundle — nothing did, so the guide would
have gone on quoting Hungarian after the fix. Seven decoys, all convicting,
including the name-for-fact one.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_0159rPz1ZhFKsS53msqPYxtS
This commit is contained in:
adminandClaude Opus 5 committed 2026-09-21 07:56:56 +02:00
1 parent a499327236
commit e02bc03819
18 files changed
+8859 -50

No files matched your search

+53
View File
@@ -1,3 +1,56 @@
## v0.119.0 — English households get English words for their codes (2026-09-21, R-597)
The 2026-09-20 English drill received a setup code of **three Hungarian words with accents**
(`képző-szkítia-ásatás`) inside an otherwise English e-mail. It can be pasted; it cannot be read to
anyone over the phone, and it cannot be retyped by someone whose keyboard has no accents.
- **A second embedded list, `internal/configgen/english.txt`** — the EFF "large" diceware list
(7776 words, CC BY 3.0 US, https://www.eff.org/dice). It is **the same file felhom-agent already
embeds** to mint the customer recovery code, copied rather than imported because the two binaries
share no module. Provenance and licence are recorded in the source.
- **`RandomPassphraseFor(lang, use)`** chooses the list **and** the word count together, so the two
cannot be picked apart and a caller cannot defeat the floor by passing an English list with a
Hungarian count. `Use` is `SetupCode` or `OwnerPassphrase`.
- **The rule: per use, the English code carries at least as many bits as the Hungarian one.** The
English list is smaller (7772 vs 29 609 words after filtering; 12.92 vs 14.85 bits/word), so
English takes one more word:
| use | hu | en |
|---|---|---|
| setup / reset code | 3 words, 44.56 bits | **4 words, 51.70 bits** |
| owner passphrase | 5 words, 74.27 bits | **6 words, 77.54 bits** |
`TestEnglishIsNeverWeakerThanHungarian` computes **both sides from the embedded lists' real
lengths** and the shipped table — not a constant against itself. Red-proofed by setting the
English setup code to 3 words; it named the 38.77-vs-44.56 gap.
- **All four callers pass a language**: the claim engine (`CustomerLanguage`), the regenerate-password
handler (`CustomerLanguage`), the create-customer form (**the form's own field** — there is no
stored customer yet, so `CustomerLanguage` would answer Hungarian for every English household
created), and the config-invented-from-a-report path (`i18n.Default`, matching the `Language` that
same struct sets two lines below).
- **The English bind-page hint is now count-free** ("The word phrase you received from your operator
during setup"). It said "five words", which stops being true for an English household the moment
their passphrase is six — and would also have been wrong for every English household whose
passphrase was issued before this release. Hungarian is unchanged, and „öt szó" stays correct.
- **Hungarian is untouched**: same list, same counts, same words. `TestHungarianCodesUnchanged` pins
the counts AND the list length, so a list swap cannot move the Hungarian floor quietly.
**Three claims in the task that were wrong, found at source:**
1. **The hub does not mint the recovery code.** `felhom-agent` does, in `internal/escrow`, and it has
drawn from this same EFF list since it was written — so the recovery code has **always been
English**, ten words, ≈129 bits. No work was needed and none was done: adding a row for it here
would have created a second definition of a secret this repo does not own.
2. **No claim mail states a word count.** They say `Setup code: %s`. The only count wording in the
product is on the bind page, and that is what changed.
3. **The proposed "read it over the phone" filter** — drop any word differing from another by one
letter within its first six — was **measured before adoption** and **not adopted**: it removes
**5270 of 7772 words**, 68% of the list, taking it from 12.92 to 11.29 bits/word. It would also
have made this list stricter than the one the product already uses for the code a household writes
on paper during a disaster. What it was reaching for is kept as an assertion rather than a filter:
`TestEnglishListIsTranscribable` pins that every word is 3-9 lower-case ASCII letters with no
digit and no separator. Recorded as a decision (CC, operator may reverse) in the source.
## v0.118.1 — the test mail follows the language too (2026-09-18, R-558)
Found during v0.118.0's own live proof, which is the only reason it was found: I went to press "send