Work / 03 · Decision support
Grounded extraction and a decision queue for an industrial distributor
Buyers get supplier quotes as messy emails and must decide what to buy. I built the part that reads those emails without inventing anything, and the queue where each decision remembers the numbers behind it.
What I refused to trust
A value the model "read"
Every extracted value is checked again against the raw email. If the email does not support it, the value is held, not used.
A decision without its inputs
Each decision is stored with the exact figures it was made on. When a figure changes, the decision goes stale.
Anything sent by itself
Nothing goes to a supplier or a customer automatically. A person sends it.
A decision that knows it is old
try itApprove the quote. Then let the supplier change the price and see what happens to your approval.
Quote from Mill Co
2" SCH 40 seamless pipeQuantity: 400 ft
Price: $12.40/ft
Total: $4,960.00
No decision yet
Fixture names only. No real supplier or price appears here.
A pointer, not the truth
The model is good at finding where a value is. It is bad at being trusted. So I only use it for the first job.
1. Model points
It proposes a value and where in the email it came from.
2. Code re-reads
Plain code checks that the email really says that, in that place.
3. Supported: used
The value moves on to the decision queue with its source attached.
3. Unsupported: held
A person sees the gap. The game on the home page is this exact case.
Evidence
≈488
Automated tests in the project.
Signed
Code reaches the customer as a signed release, so what runs is what was reviewed.
0
Messages the system sends without a person.
?
How often the model points at the right place first time. Not measured on real emails yet.
What this page can't claim
- The wider "decision runtime" idea belongs to my team. My part is the grounded extraction and the decision queue.
- There is no accuracy figure for extraction on real customer emails.
- The customer, their suppliers and their prices are not shown anywhere on this site.
Research questionQ3: when an email gives the agent an order, how often does it obey?