Four versions of an audit agent in one weekend | bluenotebook.io
The Audit Clue Final leaderboard. Million Tokens is first with 19 people found and 0 wrong.

On the Final of the Cortea challenge, our agents found 19 of the 20 people who committed fraud, with 0 wrong accusations. That put our team, Million Tokens, first of 13 teams 11Cortea. “Audit Clue” leaderboard, Final dataset. Teams rank by people found minus wrong accusations; ties go to fewer units. https://audit-clue.exe.xyz/leaderboard?dataset=final ↩. We got there in four versions of the product, over one weekend at Big Berlin Hack 22Big Berlin Hack, Berlin, 28–29 November 2026. Our team, Million Tokens, entered the Cortea track. ↩. Each version fixed a problem that the version before it could not see.

The Audit Clue Final leaderboard. Million Tokens is first with 19 found, 0 wrong and 410 units. team 1 and Paper Trails follow with 16 found each.
The Final leaderboard. The rank is people found minus wrong accusations.
Each version added one thing, and left one gap that the next version had to close.

The task: name a person and defend the name

Cortea gave each team the ledger of a fictional company, its HR and supplier records, and an API that sells the supporting documents 33Cortea. “Audit Clue” challenge brief, Big Berlin Hack 2026. https://audit-clue.exe.xyz/ ↩. Each new ledger entry that you ask about costs one unit. To score, you name the employees who committed fraud and cite the entries that their scheme created.

Two things cost you. A wrong accusation names an innocent person and subtracts one from your score. Units break ties: when two teams have the same score, the team that spent fewer units ranks higher. I made every design decision below to reduce one of these two costs.

Version 1: a graph of the free data

I started with the data that cost nothing. I loaded the ledger, the people, the bank accounts and the suppliers into a DuckDB graph 44DuckDB, an in-process analytical database. https://duckdb.org ↩. The build takes about one second, and SQL screens run over it for free.

One screen found the ghost employees of our first culprit. Two hourly workers started on the same day in May. Their pay never changed, and they never filed an expense claim or approved an entry. Three documents then showed who created their records, and whose household held the accounts that received their pay.

The graph also caused most of our early mistakes. Nine people looked guilty because they approved their own entries or went over a limit. All nine were innocent. A control gap shows that fraud was possible. It does not show that money left the company.

created created, 17 min later salary salary held by his own former payroll account lives at his home address HR business partner rights: create employee Ghost employee 1 pay never changes Ghost employee 2 no claims, no approvals His partner personnel file
The first culprit as a subgraph. Both ghost salaries ended in accounts tied to the household of the person who created the ghosts.

Version 2: read the documents

The proof was in the documents: home addresses, change logs and receipt totals. We ran OCR on every HTML, PDF and JPG document and turned the facts into graph edges. A fact became an edge only when the model quoted the source and the quote matched the text.

I chose the models with an eval: fixed documents, known facts and a score per model. The eval found one problem. With constrained JSON output 55Google. “Structured output.” Gemini API documentation. https://ai.google.dev/gemini-api/docs/structured-output ↩, Gemini 4 Carbon stopped after one fact on 25% of the documents. So we asked for JSON in the prompt and validated it in code.

This version caught an expense fraud. A manager claimed $57 to $124 more than the receipts he attached, and some receipts were only photos. But the pipeline could not decide which document to buy next.

Version 3: agents that ask the next question

A fixed pipeline reads the documents that you give it. An investigation needs the next question that a fact raises. So we moved the work to coding agents, first Claude Code 66Anthropic. Claude Code. https://www.anthropic.com/claude-code ↩ and then Antigravity 77Google. Antigravity. https://antigravity.google ↩. We gave them tools to query the graph and to buy documents.

The agents found a method that we then wrote down:

  • Follow the bank account, not the role.
  • Read the household in the personnel file.
  • Find who changed the record, not who keyed the payment.

In one case, the ledger showed two approvers on seven wire payments. The journal voucher showed an “override” approval that the preparer recorded himself. The payee setup showed that he keyed the bank account at his own home address.

Agents also made mistakes faster. On practice, one of our scripts sent 11 accusations in one minute, and all 11 were wrong. That minute set the design of the product.

Version 4: the product

Tessera runs on pi 88Mario Zechner. pi, a minimal coding agent (@mariozechner/pi-coding-agent). https://github.com/badlogic/pi-mono ↩, a small open-source coding agent. I extended it with audit tools. A main agent sorts the leads and gives each lead to an investigator agent. Investigators buy the documents that they need and report back. A challenger agent argues against each case before a person sees it.

Each case is an argument in five gates, and each gate carries its evidence:

  1. Loss: the company paid for something that it did not get.
  2. Benefit: the money reached the accused person or their household. A document that they did not write must show this.
  3. Act: their own logged action caused the loss.
  4. No innocent path: no policy, declaration or contract explains it.
  5. Right entries: the cited entries are the ones that the scheme created.

The console shows a run as a case file. It shows where the run stands, each finding with its five gates, and each lead that the agents ruled out, with the reason. Click an entry, an account or a person to see every place it appears in the run, and the documents that we hold for it. Teammates comment on one gate or one step, and each comment shows who wrote it.

The Tessera console on a practice run. The left rail lists findings, leads being tested, leads ruled out and scout flags. The centre shows the first finding with its Loss gate and evidence. The right panel holds comments, commentary and guidance.
The console on our best practice run: 6 accusations recorded, 48 leads ruled out, 212 entries opened. Each finding lists its five gates with evidence.

The agent cannot accuse anyone by itself. In the Guidance tab, a signed-in person ticks each person that the agent may accuse. The person then confirms with a code that Vonage Verify sends to their phone 99Vonage. Verify API. https://developer.vonage.com/en/verify/overview ↩. The console signs this permit, and the engine refuses any accusation without one.

Two shared services sit under the agents. A proxy buys each document once for the whole team and serves it free after that. Each run goes to Langfuse as a trace 1010Langfuse, open-source LLM observability. https://langfuse.com ↩, so we can read why an agent bought each document.

approves SMS code guidance + signed permit one lead each draft case, verdict buy documents 1 unit per new entry accuse, only with a signed permit Auditor a person Console case file · Guidance Main agent pi · triage, staging Investigators pi · up to 16 at once Challenger argues against each case Team PBC proxy buys each entry once Cortea API documents · accusations Langfuse a trace of every agent step and purchase
An accusation reaches Cortea only on the red path, and only with a permit that a person signed in the console.

How I measured it

We did 20 blind runs overnight on the practice data. Some runs used hold-out prompts that hid our predefined screens from the agents. The best setup used 16 agents and found 6 of 6 culprits with 0 wrong.

The runs also showed the main weakness. The same prompts found 4 culprits in one run and 6 in another. For an auditor, this variance is as important as the best score.

On the Final, we found 19 of 20 people with 0 wrong. Cost was our weak point. We spent 410 units, or 21.6 units per person found. RRR, in fourth place, spent 7.1 units per person found.

What I will build next

  • A unit budget for each lead, visible in the console. A person then sees the cost of a lead before they approve more spend.
  • Deterministic screens at the core. The same ledger then always gives the same leads, and the agents only work the leads.

The agents found the culprits. The console and the permit let a person put their name under an accusation.

Citation

BibTeX citation:

@online{kasukurthi2026,
  author = {Nikhil Kasukurthi},
  title = {Four versions of an audit agent in one weekend},
  date = {2026-12-01},
  url = {https://bluenotebook.io/blog/tessera-audit-agents/},
  langid = {en}
}

For attribution, please cite this work as:

Nikhil Kasukurthi. 2026. "Four versions of an audit agent in one weekend" December 1, 2026. https://bluenotebook.io/blog/tessera-audit-agents/.