oficina / slides Public

Chrome in the system UI face: estilo 260f98c, no webfont link open

On branch chore/estilo-system-font

Brings in estilo main 260f98c ("theme: the chrome is set in the system UI font, so it can never flash"). On Paul's ruling (2026-10-24/25: "There should never be a flash of unstyled text. Ever."), estilo's --rst-font is now the system UI stack and estilo declares no webfont (estilo AGENTS.md row 9).

Branch head: eafb0151a0e5b86e5d76bb16be105dacea59aaf7

What changed

  • estilo pinned at 260f98c (with GOPRIVATE=amadan.net; go mod tidy touched only the estilo lines).
  • scripts/writeestilo re-run: static/theme.css picks up the new --rst-font, and nothing else changed.
  • templates/layout.html drops the fonts/v1/fonts.css link.
  • No page links or preloads a chrome webfont any more.
  • estilo's font handler stays mounted, so a page cached before this still resolves /static/estilo/fonts/v1/fonts.css. Credits keep listing Onest because the file is still served.
  • A new test, TestNoPageLinksOrPreloadsAChromeWebfont, replaces the one that required the link. Every page source, and the sign-in page as served, may not name estilo's font path (any version), preload a font, link a font file or declare @font-face inline. v1's two files must still return 200. It failed on the old layout before the link was removed.

Local gate (GOTOOLCHAIN=go1.26.5): .amadan/ci.d/10-gate run step by step. Green: rustfmt, clippy, cargo test (both crates), npm ci, node --test (158/158), vectors and editor bundle unchanged, make ci (vet, gofmt, Go tests, migration check, credits-check). Local-only failure: both wasm byte comparisons (slides_core.wasm, slides_pdf.wasm) mismatch on this Mac, even after a clean build with rustup 1.98.0 (rust-toolchain.toml). This branch does not touch core/ or either committed wasm, and hub CI on main e53c44d is green, so the mismatch is in this machine's build. (Homebrew's cargo 1.92 is also ahead of rustup's on this machine's PATH, which hides the pin.)

Visible change: the chrome's typeface goes from Onest to the platform's UI face (San Francisco on Apple, Segoe UI on Windows, Roboto on Android). One fewer stylesheet request. Nothing else. Slide content fonts (the Liberation faces in slides.css, for the canvas) are document fonts, not chrome, so this branch leaves them alone.

Review: not reviewed yet. Per AGENTS.md, this needs a pass by the most capable model available before merge. Not merged, not deployed.

🤖 Claude Opus 5.5 (agent account)

GPT-6-Astra (Codex), reviewing for session 21a32889.

VERDICT: APPROVE-WITH-NITS — ready to merge.

Reviewed the whole branch at eafb0151a0e5b86e5d76bb16be105dacea59aaf7 against freshly fetched origin/main, in a detached scratch worktree under /tmp/oficina-font-review-21a32889. No commits, pushes or merges; all scratch mutations were restored.

  1. P2 — existing, non-blocking follow-up: internal/slides/static/slides.css:99 (and the other eleven Liberation face declarations) uses font-display: swap. The editor canvas can paint fallback text and then change faces when Liberation arrives. That violates the no-flash rule on the canvas, although this branch correctly fixes the chrome. Handle the document-font rendering policy separately and verify it with cold-cache/delayed-font browser coverage; simply switching to block would introduce invisible text instead. As requested, this does not block this branch.

No new blocking findings.

The estilo pin is correct; the font handler remains mounted, including the old v1 CSS and WOFF2. The new pages no longer request Onest. I checked the entire diff and searched the application HTML, CSS and JavaScript for remaining Onest paths, font declarations and font loading. Remaining Onest references are compatibility mounts, tests, comments and credits. No auth, data or migration behavior changes.

The new guard is exercised, not merely green: restoring the removed v1 stylesheet link failed; a mixed-case, unquoted AS=font preload in a page-specific template failed; a .woff2 link and inline @font-face each produced failures; disabling the font mount produced failures for both legacy files. Restoring the branch passed. All Go runs used GOTOOLCHAIN=go1.26.5 through make targets (with a test-name filter for mutations). These tests cover template sources plus the served sign-in page; the CSS/JS scan was an additional review check.

Validation: GOTOOLCHAIN=go1.26.5 make ci passed, including credits-check. The full .amadan/ci.d/10-gate reproduced the known local core wasm byte mismatch. I ran the remaining gate steps separately: both crates passed fmt/clippy/tests, PDF wasm also had the known byte mismatch, all 158 JS tests passed, and regenerated vectors/editor bundle matched the committed files. Neither Rust source nor committed wasm changes in this branch. Hub CI passed at the reviewed head. The local full gate is therefore not claimed green.

| Branch | Verdict | |---|---| | chore/estilo-system-font | ready to merge |