/scrape returns four different line counts (169 / 171 / 172 / 174) for the same PDF bytes over twelve days
Reporting a reproducible-by-waiting non-determinism rather than a blocker — the system this was found in handled it correctly and shipped.
URL: https://www.cms.gov/cciio/resources/forms-reports-and-other-resources/downloads/english-sample-completed-sbc-accessible-format-012825.pdf
(CMS's completed sample Summary of Benefits and Coverage, 440,883 bytes.)
Seven reads, four distinct parses, one unchanged file. All with maxAge: 0, so none was a cache hit.
| date | read | lines returned |
|---|---|---|
| 2026-09-08 | 11:17 cron sweep | 171 |
| 2026-09-08 | 17:49 round trip | 174 |
| 2026-09-08 | 18:31 forward | 174 |
| 2026-09-08 | 18:46 forward | 171 |
| 2026-09-16 | 11:18 cron sweep | 172 |
| 2026-09-17 | 11:17 cron sweep | 169 |
| 2026-09-20 | 11:17 cron sweep | 169 (unchanged) |
The source file did not move, and three independent measurements say so.
- Downloaded by hand on 2026-09-08 at 17:49 and again at 18:47:
sha256 863bf56f…both times,cmpclean. - Our pipeline now hashes the source bytes before every scrape and stores it. The row for this URL carries
863bf56fdf99f7f9493d6c9a8a988685348f5f2200b8655bcc92484a111f079c, written automatically at2026-09-19T11:17:34Z. - Downloaded again on 2026-09-19: 440,883 bytes, same sha256.
So the bytes are constant from 09-08 to 09-20 and the parse returned 171, then 174, then 172, then 169. Our own parser version is a single constant that has not changed across that window, so the variance is not ours.
A possible mechanism, from your own tracker. Issue #4050 (open, 2026-07-16) lists pdf-parse pinned at ^1.1.1 against a current ~2.4.x, described there as "PDF parsing of untrusted input on an old major." This may simply be that.
Why it matters downstream. We hash the parsed text to decide whether a document changed. Every flip moves the hash, which misses our early exit and spends two model calls re-deriving answers that did not change. It also surfaces publicly: our refusal sentence quotes the line count, so the same untouched document reads "Searched all 171 lines" one hour and "all 174 lines" the next.
What it is not. Nothing incorrect was ever published. The differences appear to be line-breaking in the markdown rather than lost or invented content — every clause we had quoted was still present in every parse. So this is a stability report, not a correctness one.
What would help, in order of usefulness to us: a documented guarantee that one (url, bytes) yields one parse; failing that, a parse version or fingerprint in the response so a consumer can tell "the document changed" from "the parser did"; failing that, just knowing whether this is expected.
Happy to supply all three hashes, the raw responses, and timestamps.
Found while building still-true (Convex All Gas Hackathon). Firecrawl is in the shipped build and this did not block it. The full reasoning, including the two wrong turns we took first, is in that repo's build log; the flag is tracked publicly as M6 in docs/READINESS.md.
Source: firecrawl/firecrawl