What it writes,
and what stops it.
The definitions below are what the extraction runs against on every document, on the page you just used. Change a client’s stack, not the product: they live in one file.
Field definitions · per document type
A wrong quantity ships the wrong pallet count and the customer short-pays.
An invoice with no PO cannot be three-way matched. That is how duplicates get paid.
A missed dock slot means a truck waiting and a detention charge.
A quote sent on a misread volume is a margin loss you find out about at invoicing.
Book an invoice without the receipt and you can pay for goods that never came through the door.
* required — a document missing it is held, not completed
The gates · a document must clear every one
Confidence is floored, never rounded up: a reading of 0.799 is held rather than written. The two numbers are 85% on a required field and 80% on the document type — the same thresholds the sample corpus is scored on, insrc/lib/types.ts.
The body it prepares · NetSuite, from the sample purchase order
{
"object": "Purchase order",
"external_id": "88241",
"idempotency_key": "88241:df340bb8fade2f38",
"received_at": "2026-09-18T08:12:00.000Z",
"from": "ops@northwind.example",
"fields": {
"customer": "NORTHGATE INDUSTRIAL SUPPLIES LTD",
"po_number": "88241",
"sku": "BS-1140",
"quantity": "4000",
"unit_price": "0.18",
"required_by": "2026-09-28",
"ship_to": "Unit 7, Greenfield Park, Coventry CV3 4LP",
"contact": "R Adeyemi, orders@northgate.example"
},
"confidence": {
"customer": 0.9,
"po_number": 0.96,
"sku": 0.96,
"quantity": 0.95,
"unit_price": 0.94,
"required_by": 0.97,
"ship_to": 0.95,
"contact": 0.95
},
"provenance": {
"committed_by": "conduit",
"fields_corrected_by_human": [],
"engine": "rules"
},
"downstream": [
"write:ERP — Orders",
"email:R Adeyemi, orders@northgate.example",
"notify:Warehouse — pick queue"
]
}The reference the supplier wrote on the paper is the external_id, and the idempotency_key is that reference plus a digest of the document’s own text — so the same paperwork arriving twice, under two file names, is one order in the ledger rather than two. This deployment holds no credentials for anything, so the body is printed and never posted; in a pilot it goes behind the client’s own approval.
What this deployment is not
No account system, no storage, no inbox connector. In production documents arrive at ops@northwind.example by mailbox rule, not by a form; a pilot build writes to one named system behind the client’s own approval, and that is a scoped build, quoted as one.
← back to the machine