Value: high, and it directly de-risks B-02. caption already has a pre-flight that validates the Ollama model
before a 300-item bulk run fails identically 300 times. optimize --encoder jsquash has no equivalent: a codec that
can't load throws per-item, mid-run.
Add a one-time encoder pre-flight that actually attempts a tiny encode for the requested format, and on failure either
fall back to sharp with a loud warning or fail fast before touching anything — chosen by --strict. Surface the result
in doctor (N-04).
Extracted from a repo audit performed 2026-07 (the audit doc it came from was proposed via an unmerged docs PR).
Value: high, and it directly de-risks B-02.
captionalready has a pre-flight that validates the Ollama modelbefore a 300-item bulk run fails identically 300 times.
optimize --encoder jsquashhas no equivalent: a codec thatcan't load throws per-item, mid-run.
Add a one-time encoder pre-flight that actually attempts a tiny encode for the requested format, and on failure either
fall back to sharp with a loud warning or fail fast before touching anything — chosen by
--strict. Surface the resultin
doctor(N-04).Extracted from a repo audit performed 2026-07 (the audit doc it came from was proposed via an unmerged docs PR).