Skip to content
gurn3k

BuildsUnderstudy · Report

Understudy: Can an AI pass invoices straight to payment?

A test of where AI can take over a decision people make thousands of times: on a real company's invoices, can an AI pass them straight to payment, and how would you prove it first?

Open live ↗Code on GitHub ↗

Role
Product owner
When
Nov 2026
Built with
Python · JavaScript · Claude · Vercel · no dependencies
Status
Findings report
The Understudy findings report: can an AI pass invoices straight to payment? A simple rule paid nothing; Claude checking each invoice and Claude's rulebook were both not proven.

01 · Situation

Companies are deciding where AI should take on work people do today, often on the strength of a demo. I wanted a stricter test on real records. A public purchasing log from a large multinational holds 251,734 order lines, and each one has a known outcome: it went through cleanly, or someone had to correct it.

02 · The call

I set the bar before any approach ran: of the invoices an AI pays without a check, no more than 1 in 100 may later need a correction, judged by the worst likely case rather than the average, because a short test can be lucky. I also refused to use people's agreement with the AI as the measure, since reviewers tend to copy what an AI suggests.

03 · What I did

  • Tested three approaches on invoices held out from the learning months: a simple rule and Claude writing a rulebook that ordinary code then runs, on 54,874, and Claude checking each invoice, on a 10,000-invoice follow-up.
  • Followed up on Claude checking each invoice with 10,000 more invoices, with the scoring rules written down before any call.
  • Replayed the test months week by week, switching the AI on for one kind of invoice at a time only once its real outcomes proved the bar.
  • Simulated switching it on by reviewer agreement instead, to measure what automation bias costs.
  • Ran one more check, fixed in advance, on a later month (September 2018). It left the answer at not proven.
  • Built the findings as an interactive report, with a business case and calculator, a model request for a pilot proposal, and the internal case kept separate from it. Every figure is generated from the run files. A check fails if a fixed sentence is missing from the page, or if the request carries a return verdict.

04 · Results

of invoices paid without a check by Claude's rulebook, 99.07% of them fine. Not proven: its worst likely case was 98.95%, under the 99% bar
48.7%
paid by Claude checking each invoice, on 10,000 new invoices: 6 needed a correction, not enough to prove the 99% bar
5.8%
the lines that needed a correction, simulated, when the AI was switched on by reviewer agreement (reviewers copying 9 in 10) instead of real outcomes: about 150 against 15, while paying far more invoices
10×
to write a rulebook once, against $2.60 per 1,000 invoices for checking each one
$0.40
unit tests and 30 decision records, plus a check that every fixed sentence on the page matches the decision records
137

05 · Limits

One company's records from 2018, and one decision. The test months were held out, but some learning-month figures drew on outcomes that landed later (a look-ahead the page lists). The agreement result is a simulation, and the steps it suggests instead were not tested. A rulebook that passes on past invoices still needs watching on new ones.

06 · What it shows

AI ADOPTION · EXPERIMENT DESIGN · AUTOMATION BIAS · COST AT SCALE