Silent success: Why exit code zero can still mean your AI got nothing
A developer discovered that Claude Code incorrectly reported a PDF as empty, but the real fault lay in the preprocessing tool markitdown, which returned a zero exit code despite producing no output from a raster-image-only PDF. The incident revealed a broader integration flaw: exit codes confirm process completion, not whether meaningful data was actually extracted. Testing across four real documents showed a clear density gap, leading the developer to propose measuring extraction quality in characters per page rather than raw byte count or exit status. A threshold of 100 characters per page was found to sit safely between failed and successful extractions, with an order-of-magnitude margin between the two populations. The author argues that false negatives — where empty conversions are silently treated as valid — carry far greater downstream costs than false positives that prompt a re-check.
This is an AI-generated summary. ShortSingh links to the original source for the complete article.


Discussion (0)
Log in to join the discussion and vote.
Log in