RedHub AIRedHub AI
Tool Gate · How it works

How the roll-up gate works

How the Document Field Validator 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 — then a gate that can only make it worse.

The 5 records

01INV-00001 · Northwind Supply Co100% · every rule passesPASS
022002 · Acme Parts LLC67% · invoice number, email, and date format soft-failREVIEW
03INV-00003 · Globex Materialsfix first92% · subtotal + tax doesn't tie to totalREJECT
04INV-00004 · Initech Services83% · total is missingREJECT
05INV-00005 · Umbrella Logistics100% · every rule passesPASS
BATCH CLEAN
every record PASS
BATCH NEEDS WORK
worst record is REVIEW - soft-only misses, no critical fail
BATCH BLOCKED
any record REJECT - a critical rule failed
Critical-field gate · worsen-only

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.

BATCH BLOCKED

Why: 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%. 2 of 5 records REJECT · worst-not-average · avg validity 88%.

Fix firstINV-00003 - correct the total so subtotal + tax ties out ($2,160, not $2,400); a 92% score doesn't save a record from REJECT.

No single record is the crisis — the clustering is. The roll-up takes the worst, the gate escalates when trouble compounds, and it names the one thing to fix first. Grades a document's fields against fixed rules; connects to nothing, moves no money, and approves no payment. Not accounting or legal advice.