Not by making the model stop hallucinating — by building a structure a hallucination can't get through.
spec → [ WORKER (cheap model) ] → answer (+ any self-report, DISCARDED)
▲ │
specific │ ▼
feedback └──── [ CHECKER (deterministic code, run by the coordinator) ]
ok? → ship
no → feedback, retry
cap → HONEST FAILURE, escalate
The expensive model is the boss: it writes the spec and settles disputes and never does the grunt work. The grunt work goes to the cheapest model that fits — its mistakes don't survive the checker. That's the 10× cost gap.
python hallucination_firewall.py → 6/6 proofs pass
in ~2 seconds, zero tokens:
A known fake goes RED; self-report ignored.
Clean work passes.
A hallucinating worker is driven to correct.
Won't-fix hits the cap → failure, not fake done.
Garbage input = failed check, never a crash.
Swap the checker for any task.
# install as a Claude skill
git clone https://github.com/scottconverse/hallucination-firewall
cp -r hallucination-firewall ~/.claude/skills/hallucination-firewall
# run the self-proof
python hallucination_firewall.py
# grade a real worker's output against ground truth
python hallucination_firewall.py --check answer.json --source source_of_truth.md
Best fit: bulk work fanned out to cheap models, where one quiet fabrication would hide among the right answers. Skip it for small one-off tasks you can eyeball.