Skip to content

armgit / bento

Public Imported from GitHub
0

Bento, the office suite that fits in a file

CORRECTION: I named the wrong casualty, and the real one is still short (#415)

nyblnetbde4dce1bdd8
diff --git a/AGENTS.md b/AGENTS.md
index b80974ca..ab2083a6 100644
--- a/AGENTS.md
+++ b/AGENTS.md
@@ -54,12 +54,18 @@ are in `docs/DECISIONS.md` — don't reopen them.
call `t()` in module-level consts. **Never take the locale list from prose —
including this file.** It is `LOCALES` in that app's `scripts/build-*-i18n.mjs`,
and `ls <app>/src/i18n/` is the check. This rule said seven for a month after
- Portuguese made it eight, and #394 shipped an app one language short because
- it believed the sentence you are reading.
+ Portuguese made it eight, and **bento/dash ships without Portuguese today**
+ because a fourth copy of the list still says seven.
- **Adding a locale touches three places**, not one: the catalogue file, the
app's `LOCALES`, and any rig with its own copy of the list. Only
`build-i18n.mjs` (slides) errors on a catalogue missing from `LOCALES`;
the others exit 0 and silently never pack it.
+ - **`dash` is the app that is short, and its rig cannot see it.** Its rig IS
+ its generator — `dash/src/i18n/packed.ts` says "GENERATED by
+ scripts/test-dash-i18n.ts" — and that file's own `LOCALES` (line 48) has no
+ `pt`. It reports "every core catalog is complete", truthfully, about seven
+ locales. A generator that grades its own output cannot report a gap in the
+ set it was given.
- **A rig must derive the list, never restate it.**
`scripts/test-i18n-coverage.mjs` reads `PACKED_LOCALES` out of the
generated `packed.ts` — copy that, and a fourth copy can never go stale.
diff --git a/docs/DECISIONS.md b/docs/DECISIONS.md
index ac0cc76a..7ad59bd7 100644
--- a/docs/DECISIONS.md
+++ b/docs/DECISIONS.md
@@ -6281,3 +6281,57 @@ useful part.** It was filed as "`sanitizeSvg` has no rig coverage", which is
false — the coverage exists and it works. "Your green local run may have
skipped it" is both true and actionable; "there is no coverage" would have sent
someone to write a rig that already exists.
+
+## 2026-09-04 — CORRECTION: #394 was the fix, not the casualty; dash is short
+
+**Supersedes one factual claim in the 2026-08-29 entry "the locale list leaves
+the prose; docs point at LOCALES".** That entry stands in every other respect —
+the rule, the three copies, the guard table, the framing test. This corrects who
+was hurt, because the entry named the wrong app and the true one is worse.
+
+**What the earlier entry said.** That PR #394 "added `type/src/i18n/` with seven
+catalogues and no `pt.ts`", and `AGENTS.md` rule 6 said #394 "shipped an app one
+language short because it believed" the stale rule.
+
+**What is true.** #394 was OPENED carrying seven; it was flagged while open; its
+session added the eighth; and it MERGED with `pt.ts` present. `git log
+--diff-filter=A -- type/src/i18n/pt.ts` returns exactly one commit — `4f073a3`,
+which is #394 itself, titled "bento/type: autosave, thumbnails, eight languages,
+and two panel bugs". **#394 is the case where the process worked.** Citing it as
+the casualty inverted it.
+
+**The real casualty is `dash`, and it is still short today.** Measured on
+`origin/main` = `3f2c734`:
+
+| app | `PACKED_LOCALES` | `pt.ts` |
+|---|---|---|
+| slides | 8, incl. `pt` | present |
+| spaces | 8, incl. `pt` | present |
+| type | 8, incl. `pt` | present |
+| **dash** | **7, no `pt`** | **absent** |
+
+**And the cause is a fourth copy of the list, in a file doing double duty.**
+`scripts/test-dash-i18n.ts:48` is `['ja','zh-Hans','zh-Hant','es','fr','de','it']`
+— and `dash/src/i18n/packed.ts` declares itself "GENERATED by
+scripts/test-dash-i18n.ts". So dash's i18n RIG is dash's i18n GENERATOR. It
+prints "every core catalog is complete" and that is *true* — about seven
+locales. **A generator that grades its own output cannot report a gap in the set
+it was handed**, which is why nothing caught this for six weeks. Same shape as
+the rigs recorded on 2026-08-29: a check reporting confidently on the wrong
+subject.
+
+**Why this correction exists at all, which is the part worth keeping.** The
+original claim was not measured. It came from a report that was accurate when
+written — #394 *was* short when it was opened — and I carried it into an
+append-only log without re-checking it against the merged tree, on the same day I
+wrote in that same log that a number is safe only when its framing is frozen. A
+claim about a PR has the same property: **"#394 ships seven" was a measurement of
+a moving branch, recorded as a permanent fact.** Check a PR-shaped claim against
+what MERGED, not against what was reported while it was open. Found by
+bento-team-lead, who checked it rather than repeating it.
+
+Follow-up filed for `dash` + `scripts/` (two zones): add `dash/src/i18n/pt.ts`,
+add `pt` to `test-dash-i18n.ts`, regenerate `packed.ts`. Not done here — this
+zone writes no code.
+
+Claude-Session: https://claude.ai/code/session_01Jcfdy8A69nonyATtm8vRy8