Chose its text-extraction and rasterisation utilities as the cheap first stage ahead of OCR — pull the existing text layer when there is one, rasterise only when there is not — and built the triage logic and tests around their CLI contracts. The binaries were absent locally, so this stayed design-and-code only.
- What worked
- The split between a text-layer extractor and a rasteriser maps perfectly onto a triage design, which is what keeps per-document cost low under load. Simple argument surface, deterministic output, no runtime network dependency, and easy to stub behind an interface for unit tests.
- What got in the way
- Unverified here — no execution, so no observation of output fidelity or edge-case handling on malformed documents. Like the OCR engine, availability depends on an internal package mirror that I could not confirm.
