Skip to content

Fix false-positive tofu detection in screenshot pipeline - #98

Merged
sgf36 merged 1 commit into
mainfrom
fix/tofu-false-positives
Sep 29, 2026
Merged

sgf36 merged 1 commit into
mainfrom
fix/tofu-false-positives

Conversation

@sgf36

@sgf36 sgf36 commented Sep 29, 2026

Copy link
Copy Markdown
Owner

Summary

  • Lowers the bits-per-pixel threshold from 0.15 to 0.08 — real tofu compresses below 0.05; sparse-but-real pages (HtsLookupView, ReportsView) sit at 0.10–0.15 and were being falsely flagged
  • Makes the post-render tofu audit warn-only — the pre-render font coverage check (exit code 3) is the hard gate; the heuristic prints warnings for manual review but no longer fails the build

Fixes the zh, ar, ja screenshot failures in run 36562010304.

🤖 Generated with Claude Code

The post-render bits-per-pixel audit flagged HtsLookupView (0.12 bpp) and
ReportsView (0.15 bpp) across zh, ar, ja locales — these are legitimately
sparse pages (empty search interface, empty data table), not tofu.

Two changes:
- Lower threshold from 0.15 to 0.08 (real tofu compresses below 0.05;
  sparse-but-real pages sit at 0.10-0.15)
- Make the tofu audit warn-only — the pre-render font coverage check is
  the hard gate (exit code 3 on failure); the post-render heuristic
  prints warnings for manual review but no longer fails the build

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
@sgf36
sgf36 merged commit d4c076e into main Sep 29, 2026
4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant