Files
evig/scripts
GandClaude Fable 5 2b0699faba ci(compliance): five named gates had never run — wire four, state the fifth (#374)
package.json defined 'compliance' (ssot + i18n + i18n-hardcoded +
i18n-leaks + i18n-stale). grep across .github, .husky and package.json
found ZERO callers: the only one was scripts/ship.sh, which is manual.
npm run verify — the bundle CI actually calls — did not include it. Five
named gates buying confidence none of them had earned, while
docs/TRANSLATION.md said 'Pipe it into CI'.

Unrun, they had drifted far red: 1723 hardcoded-string violations, 175
missing translation keys, and locale leaks at ja 169 / ko 170 / ru 35
against a baseline of 9.

compliance:ci (ssot + i18n + hardcoded + leaks) now runs inside verify,
so it gates every PR AND the deploy. The three baselines are refreshed to
today's counts: that ACCEPTS the existing debt, deliberately. Ratcheted
debt that cannot grow beats invisible debt that has been growing for
months, and the numbers are stated here rather than buried.

compliance:i18n-stale is deliberately NOT in the bundle. Its --update
records that locale strings match the current German text — a claim only
a translator can make. A machine refreshing it to go green would be
writing down something false. It stays a manual command.

Mutation-tested rather than trusted, which surfaced a real blind spot:
the hardcoded scanner only reads QUOTED string literals, so a German
sentence written as JSX TEXT (<p>Keine Einträge…</p>) yields '0 new' and
a green gate. Attribute values and props ARE caught. Documented at the
top of the scanner so nobody reads green as 'no hardcoded German'.

Co-authored-by: Claude Fable 5 <noreply@anthropic.com>
2026-08-24 20:31:31 +00:00
..
…