Reconcile GitHub

AI cash application · synthetic demo

Which invoices does this payment settle?

Mexican customers pay with short, messy SPEI references like PAGO FACT 1432 Y 33 MENOS NC-88. Reconcile proposes which invoices a payment settles, quotes the evidence, and records the allocation only after a person approves.

Models propose. Code decides. Humans approve.

The demo runs on free hosting and sleeps when idle; this page has asked it to wake up.

The rules could not read an abbreviated SPEI reference; GPT-6 Luna chose invoices F-1432 and F-1433 with credit note NC-88, quoting the customer's note, and balances wait for approval.
The rules can't parse "la 1432 y la 33", so GPT-6 Luna reads the note, picks one of the allocations the code prepared, and quotes its evidence. Nothing is recorded until a reviewer approves.

How it decides

  1. 1Rules take the clean onesAn exact invoice number is matched instantly, with no AI call.
  2. 2AI reads the messy onesOpenAI GPT-6 Luna chooses among allocations the code built and must quote the note, or abstain.
  3. 3Code checks the mathAmounts, credit notes and open balances are validated in integer centavos.
  4. 4A person approvesApplied in one PostgreSQL transaction with locks and idempotency. Reversals keep the history.

Same 178 cases · two models · each run once

GPT-6 Luna: 3 wrong proposals where DeepSeek made 13

With the rules alone, 2% of answerable payments were resolved automatically. With OpenAI GPT-6 Luna reading the customer's note, 39% were, and 50 of its 53 proposals were right. DeepSeek, measured first, resolved more (48%) but was wrong 13 times. Every payment GPT-6 Luna resolved, DeepSeek also resolved. Every proposal still waits for a person's approval.

94%of GPT-6 Luna's proposals were right (50 of 53), against DeepSeek's 82% (61 of 74)
48 of 64resolved when the right allocation was among the candidates; the other 16 went to review, none wrong
0 of 10hidden instructions in customer notes led to a wrong allocation
US$0.017for 107 GPT-6 Luna calls, less than half DeepSeek's cost
How often a proposal was right across all 178 cases: DeepSeek 82% with 13 wrong, GPT-6 Luna 94% with 3 wrong. Answerable payments resolved automatically across all 178 cases: rules only 2%, rules then DeepSeek 48%, rules then GPT-6 Luna 39%. Results by case type for rules then GPT-6 Luna.

Where it still fails

GPT-6 Luna's three wrong proposals should have gone to a person. Two trace to the gap that also caught DeepSeek: the candidate builder never pairs a single invoice with a credit note. It also declines notes that describe invoices without numbering them. Both are the next fixes, and they will be measured on a new blind set.

GPT-6 Luna's three wrong proposals by cause: two missed a credit note, one left out invoices.

Read the model comparison and the pre-registered DeepSeek evaluation, with every case, label and recorded model call.

What is real, and what is not

Real

  • CSV and remittance parsing, candidate retrieval and deterministic rules.
  • Live OpenAI GPT-6 Luna calls with strict JSON output, exact quotes, prompt-injection handling, and daily, monthly and per-session budgets.
  • A PostgreSQL ledger: row locks, version checks, idempotent application and audited reversal.
  • Tests: 1,114 offline, 71 PostgreSQL integration, 61 frontend and 34 Playwright checks on the hosted demo.

Not claimed

  • All data is synthetic. There is no bank connection and no money moves.
  • The evaluation cases are synthetic and AI-written, so the results are not real-world accuracy. They are now public, and the next fix needs a new held-out set.
  • A trained scikit-learn ranker lost to the rules because it could not abstain, so it only observes.
  • No accountant has reviewed the cases yet.