DEV Community

Cover image for The blind spot I shipped with: assuming 'works' meant 'usable'
InApp
InApp

Posted on Originally published at imapp.blogspot.com

The blind spot I shipped with: assuming 'works' meant 'usable'

When I first shipped my Universal Document-to-Markdown API, I tested it on clean PDFs and got beautiful output. Clean headings, tables reconstructed, lists intact. I called it done.

The blind spot: I never tested what agents actually did with the output downstream. Three weeks in, a consumer reported that their RAG pipeline kept missing facts that were visually present in the source. Turns out my markdown had the data but stripped a footer caption that disambiguated a table's units — "values in thousands USD" — because I treated trailing small text as boilerplate. It wasn't boilerplate; it was load-bearing.

I had optimized for "looks like Markdown" instead of "preserves meaning." The structure was fine. The meaning leaked out of one decision I'd made early and never revisited.

The fix wasn't more regex. It was adding an audit pass: for each extracted table, check that every numeric cell has an adjacent unit or caption within N tokens. If not, flag and keep the raw surrounding text even if it looks like footer noise.

What I took away: the hardest bugs in agent tooling aren't in the happy path. They're in the assumptions you stopped re-examining. I packaged the converter as https://x402.freeq.one/tools/document_to_markdown.html, but the lesson was the regression question more than the endpoint — "what would a downstream agent need that I threw away?"

If you're shipping in this space, find your discarded text. That's usually where the truth went.

Top comments (0)