Add typecheck + CI checks, light theme with self-hosted Inter, fix real-model test

- Typecheck: typescript 7 devDependency, `bun run typecheck`; CI gains a
  `check` stage (install, typecheck, fast tests) gating image builds (D-038).
- Light theme: every colour is a token; prefers-color-scheme: light
  overrides them. Inter Variable self-hosted from @fontsource-variable/inter,
  kept out of Bun's CSS inlining and precached (scripts/fonts.ts, D-037).
  Backend select no longer overflows on narrow phones.
- tests/live-real-model.test.ts: time budget scales with clip length and
  en_alien gets a measured WER bar; it had failed since July (D-039).
- Delete the temporary isolate_wer2.ts; fix icon "not checked in" comments
  and the README's model-weights location.
- Agent docs: branch naming, typecheck, CI, Bun CSS gotcha, permissions.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
Lucas WintherandClaude Opus 5.5 committed 2026-10-29 20:52:13 +01:00
1 parent 0ece4b3a2a
commit 4942461f79
21 files changed
+477 -113

No files matched your search

+18 -12
View File
@@ -349,22 +349,28 @@ Promote to a milestone via a new entry in `Decisions.md` first.
---
## Noticed, not fixed
Found while bootstrapping agent docs (D-036); docs-only pass, so no code changed.
- [ ] `bun test tests/live-real-model.test.ts` fails: the `en_alien (en)` case
Found while bootstrapping agent docs (D-036); all fixed on 2026-10-29.
- [x] `bun test tests/live-real-model.test.ts` fails: the `en_alien (en)` case
times out at its 900 s limit (2026-10-29, Linux CPU/WASM, reproduced in
isolation; `da_festuge` and `en_aiproblem` pass).
- [ ] `isolate_wer2.ts` (repo root) is marked "TEMP (delete after use)" and
writes to a stale `/tmp/claude-1000/...` scratchpad path.
- [ ] `docs/Architecture.md` §3 and `scripts/build.ts` say `src/pwa/icons/`
isolation; `da_festuge` and `en_aiproblem` pass). — Not a hang; budget
and WER bar were calibrated for short clips. Fixed (D-039).
- [x] `isolate_wer2.ts` (repo root) is marked "TEMP (delete after use)" and
writes to a stale `/tmp/claude-1000/...` scratchpad path. — Deleted.
- [x] `docs/Architecture.md` §3 and `scripts/build.ts` say `src/pwa/icons/`
is "not checked in", but `icon-192.png`/`icon-512.png` are tracked.
- [ ] No typecheck or lint: `tsconfig.json` is strict but `typescript` is not
installed, so nothing checks types (`bun` strips them).
- [ ] `.gitlab-ci.yml` only builds Docker images; `bun test` never runs in CI.
- [ ] README "Graceful degradation" says server-engine weights download into
— Kept tracked (`ensureIcons()` is idempotent); comments + docs fixed.
- [x] No typecheck or lint: `tsconfig.json` is strict but `typescript` is not
installed, so nothing checks types (`bun` strips them). — `bun run
typecheck` (D-038). Still no linter.
- [x] `.gitlab-ci.yml` only builds Docker images; `bun test` never runs in CI.
— `check` stage: typecheck + fast suite gate the build (D-038).
- [x] README "Graceful degradation" says server-engine weights download into
the data volume; the env table, Dockerfile and D-031 say they are baked
into the image at `/opt/faster-whisper/models`.
- [ ] `src/index.css` declares `color-scheme: light dark` but only has a dark
into the image at `/opt/faster-whisper/models`. — README fixed.
- [x] `src/index.css` declares `color-scheme: light dark` but only has a dark
palette; `Inter` is listed first in the font stack but never loaded.
— Light theme via tokens + self-hosted Inter (D-037). Also fixed: the
Backend select overflowed its panel on 390 px-wide phones.
## Recurring
- [ ] Maintain `AGENTS.md`: