The extractor is emitting confidences as percentages some of the
time (87.0 instead of 0.87) and occasionally as nonsense
(-0.2). The range check is supposed to quarantine both. But AI
wrote the condition with or, and every float on Earth satisfies
"at least 0 or at most 1" — so all three records sail into
clean.
Fix the condition on line 11 so only confidences genuinely inside 0.0-1.0 pass.
Expected output:
clean=1 quarantine=2
The break is on line 11 — but read the whole snippet first.