Repository navigation
fix(batch): hold a refused file in the triage queue with its reason - #96
Merged
Merged
Conversation
A file sillybos refuses before any decoder reads it fell into the generic error handler: printed, counted as a failed run, and left in scans/ for the next run to refuse again. It now goes to the triage queue like a poor transcript does, with the refusal as its reason, a manifest and a record with no candidates, and the exit code stays 0. Brief 022's test of the arrangement is that a batch seeded with hostile files holds each with a readable reason and processes the rest. Co-authored-by: Yvette Mankerian <yvettekm@gmail.com> Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
Deploying tetrak with
|
| Latest commit: |
8ea27e0
|
| Status: | ✅ Deploy successful! |
| Preview URL: | https://54f0d636.tetrak.pages.dev |
| Branch Preview URL: | https://fix-refused-files-to-triage.tetrak.pages.dev |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
.png, a pixel bomb, a PDF with JavaScript) now goes to the triage queue with the refusal as its reason, a manifest and a record with no candidates. Before, it fell into the generic error handler: printed, counted as a failed run (exit 1), and left inscans/for the next run to refuse again._process_file. Telemetry records the file asrefused; the manifest row saystriagewith the reason as its note.tetrak-ocr triagelists a refused file with no score and the reason, unchanged.Test plan
tests/ocr/test_batch.py: a PostScript file named.pngbeside a legible page is held with "says PNG, is PostScript", the page is processed, the run printsTriaged (1)and exits 0; the queue lists itpytest -m "not slow": 495 passed (the threetest_vision.pyfailures are pre-existing on a Mac withoutocrmac)🤖 Generated with Claude Code