Quire
An AI accounts-payable desk that can't be talked into paying the wrong person.
Overview
Quire reads messy invoices on your device, stages payment batches with a narrowly scoped agent key, and pays each vendor only at the wallet registered for its on-chain identity. The model proposes; the registry, an on-chain mandate and a human signature dispose.
The problem
Invoice-redirection fraud ("we changed banks, pay this account instead") is the everyday leak in accounts payable. An AI assistant makes clerks faster but opens a new door: the document can talk to the model.
What I built
- In-browser ingestion of PDFs, scans, photos, emails, spreadsheets and Word files with pdf.js, tesseract.js, postal-mime, SheetJS and mammoth. Nothing is uploaded
- Extraction by rules, an on-device WebLLM model with JSON-schema output, or any OpenAI-compatible endpoint, with every value grounded to where it came from
- Checks for prompt injection, hidden text, look-alike payees, duplicates, credit notes and caps, plus a "what if the AI obeyed?" panel
- A treasury Diamond with batch, mandate, ledger, pause and post-quantum approval facets; owner approval via EIP-712; WOTS co-signature above a threshold
- Settlement timelines with explorer links, PDF remittance advice and ERP reconciliation exports for Xero and QuickBooks
Decisions
Separate who decides what
The model only proposes structured fields. Who gets paid comes from the ERC-8004 identity registry, how much and how often from an on-chain mandate, and whether it happens at all from a human signature.
Keep the model on the device
Invoices are sensitive. Running Qwen2.5-1.5B through WebGPU means no document ever leaves the browser, and no API key is needed.
Under the hood
How it flows
On-chain
| QDay Aevum | Treasury factory0x05CCDE845230a0e749138452E9460929033eCCC3 |
| QDay Aevum | Demo treasury (Diamond)0x207041a9C025492C2A107343Cf24ED7cba3a0115 |
| QDay Aevum | ERC-8004 identity registry0x4Aa5cb072f836ed0Bc7fb69E2861F13862B7Ba6b |
| QDay Aevum | ERC-8004 reputation registry0x8a2Ecd2FE22d289e58b3fC636a9776A79982cc67 |
