Skip to content

feat(ocr): take sillybos 3, which refuses rare codings and the PDF features a scan never has - #91

Merged
stephen-masters merged 1 commit into
mainfrom
fix/sillybos-3
Nov 1, 2026
Merged

stephen-masters merged 1 commit into
mainfrom
fix/sillybos-3

Conversation

@stephen-masters

Copy link
Copy Markdown
Contributor

Summary

  • Raise the sillybos pin from >=0.1,<1 to >=3,<4. Tetrak OCR has been on 0.1.0 since the switch (feat(ocr): decide with sillybos before any decoder opens a scan #88), so it had none of the checks sillybos gained since: JPEG frame codings, TIFF compression, layout and colour names, PNG colour types and depth, the metadata ceiling, and now the PDF features (JavaScript, forms, attached files, launch actions; sillybos 3.0.0).
  • The limits set here (pixels, pages, render dpi) are unchanged. A new test proves a PDF carrying JavaScript is refused through check_pdf with sillybos's reason.
  • One sentence in the installation guide says what the check now covers.

Brief 022, Tetrak OCR as sillybos's first user.

Test plan

  • tests/ocr/test_input_limits.py against sillybos 3.0.0: 12 pass (one new)
  • Whole non-slow suite: 502 pass; the only failures are the three Vision tests, which need the ocrmac package this venv lacks and are unrelated
  • CI

🤖 Generated with Claude Code

…atures a scan never has

The pin was `>=0.1,<1` since the switch, so Tetrak OCR had none of the
checks sillybos gained after 0.1: the JPEG frame codings, TIFF
compression, layout and colour names, PNG colour types and depth, the
metadata ceiling, and now the PDF features (JavaScript, forms, attached
files, launch actions). `>=3,<4` brings them all; the limits this module
sets (pixels, pages, render dpi) are unchanged, and sillybos's reasons
reach triage as before. A test proves a PDF carrying JavaScript is now
refused through check_pdf.

Co-authored-by: Yvette Mankerian <yvettekm@gmail.com>
Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
@cloudflare-workers-and-pages

cloudflare-workers-and-pages Bot commented Nov 1, 2026 •

Copy link
Copy Markdown

Deploying tetrak with  Cloudflare Pages  Cloudflare Pages

Latest commit: 66575ed
Status: ✅  Deploy successful!
Preview URL: https://0db9382a.tetrak.pages.dev
Branch Preview URL: https://fix-sillybos-3.tetrak.pages.dev

View logs

@stephen-masters
stephen-masters merged commit 71f6fed into main Nov 1, 2026
11 of 13 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