Tool Gate · How it works
How the Document Field Validator gate works
How the Document Field Validator checks 5 sample invoices against 12 fixed field, format, and cross-field rules: a critical-field gate rejects any record whose math doesn't tie or whose required field is missing, no matter its score — which is how 2 of 5 records REJECT and the batch reads BATCH BLOCKED at an 88% average validity score.
How the gate works
This tool grades a batch of invoice records against fixed field, format, and cross-field rules. It reads 5 records and rolls them into one verdict — the worst, never the average — and then a gate that can only make it worse.
The 5 records
| Record | Verdict |
|---|---|
| INV-00001 · Northwind Supply Co | PASS100% · every rule passes |
| 2002 · Acme Parts LLC | REVIEW67% · invoice number, email, and date format soft-fail |
| INV-00003 · Globex Materialsfix first | REJECT92% · subtotal + tax doesn't tie to total |
| INV-00004 · Initech Services | REJECT83% · total is missing |
| INV-00005 · Umbrella Logistics | PASS100% · every rule passes |
The verdict bands
A record failing any critical rule - missing invoice number, vendor, or total, or math that doesn't tie - is REJECT regardless of its score, and one REJECT blocks the whole batch.
In the worked sample it reads BATCH BLOCKED — Five invoices, twelve rules each. Two pass clean and one has only soft formatting misses (REVIEW), but two fail a critical rule outright - INV-00003's subtotal + tax doesn't tie to its total, and INV-00004 is missing a total. Either alone rejects the record and blocks the batch, even though the average validity across all five is 88%. The one thing to fix first: INV-00003 - correct the total so subtotal + tax ties out ($2,160, not $2,400); a 92% score doesn't save a record from REJECT..
Common questions
Can every record look survivable on the How the Document Field Validator gate works and the company still read BATCH BLOCKED?
Yes. The roll-up takes the worst of 5 records — never the average — then a worsen-only gate, the Critical-field gate gate, escalates when trouble clusters. In the worked sample it reads BATCH BLOCKED because five invoices, twelve rules each. Two pass clean and one has only soft formatting misses (REVIEW), but two fail a critical rule outright - INV-00003's subtotal + tax doesn't tie to its total, and INV-00004 is missing a total. Either alone rejects the record and blocks the batch, even though the average validity across all five is 88%.
What is a worsen-only gate?
A dispositive rule that can only lower a verdict, never raise it. One fatal flaw overrides an otherwise-set of survivable lines, because a single disqualifying gap shouldn't hide behind an average of the healthy ones. The tool also names the one thing to fix first — here, "INV-00003 - correct the total so subtotal + tax ties out ($2,160, not $2,400); a 92% score doesn't save a record from REJECT.".
Grades a document's fields against fixed rules; connects to nothing, moves no money, and approves no payment. Not accounting or legal advice.
Embed this diagram
Free to share and embed with attribution (CC BY 4.0) — keep the link to redhub.ai.
Interactive — renders the live diagram
<iframe src="https://redhub.ai/visuals/tool/document-field-validator.html" title="How the Document Field Validator gate works — RedHub AI" width="760" height="1716" loading="lazy" style="border:0;width:100%;max-width:760px"></iframe>
<p style="font:14px/1.5 system-ui,sans-serif"><a href="https://redhub.ai/visuals/tool/document-field-validator">How the Document Field Validator gate works</a> — by <a href="https://redhub.ai">RedHub AI</a>, the AI that tells you when to doubt it.</p>Image + link — a static picture for any blog
<a href="https://redhub.ai/visuals/tool/document-field-validator"><img src="https://redhub.ai/visuals/tool/document-field-validator-share.png" alt="Diagram of the Document Field Validator: a 5-record batch rolled up to the worst, a critical-field gate rejecting INV-00003 and INV-00004, and the batch reading BATCH BLOCKED despite an 88% average validity score." width="760" loading="lazy" style="max-width:100%;height:auto;border-radius:16px"></a>
<p style="font:14px/1.5 system-ui,sans-serif"><a href="https://redhub.ai">RedHub AI</a> — the AI that tells you when to doubt it.</p>This is how Document Field Validator works. More diagrams in the Visual Field Guide.