Live changelog of my experiments Established 2026 ◉ Archive live IST
← Build Experiments

Live Oct 2026

Audit-Readiness Check

Does each ledger hold what its name says? A pre-audit check for the CFO office of an Indian mid-size company.

Key points

  • Where it stands: live as a public demo. You play Northfield's new controller, decide three cases and watch two loan covenants move: debt-equity 1.40 to 1.57 against a 1.50 cap, and current ratio 1.23 to 1.14 against a 1.20 floor. Fixed rules decide every outcome, and the RBI Bank Rate is read from rbi.org.in.
  • Three rules, end to end. A loan booked as a creditor, a small supplier paid late, and a term loan with no current portion. Each one goes from the books to a question, a fixed outcome, a proposed entry and an approval.
  • The AI part missed its marks. Five scored runs, marks set before the runs and never moved. No run met both. The questions on screen are written by code, and the AI is switched off.
  • Cheap to run, not to build. All the AI evaluations cost about $1.50. Building it with a coding agent used about $110 of tokens at pay-per-token prices.

Everything here runs on a fictional company. Every rupee is synthetic, and every name in the data is made up.

The demo is a short story. You’re Northfield’s new controller, and it’s your first week. The briefing puts it plainly: “Three entries look wrong. Find out what they are, decide, and see what each answer does to the loan covenants.”

0
Briefing
Pick a sign-off code
You enter it each time you approve
1
Case 1
Whose money is this?
₹2.5 crore · Rajesh Mehta
2
Case 2
Did we pay a small supplier late?
₹8 lakh · Delta Rubber
3
Case 3
How much of this loan is due this year?
₹9.6 crore · Meridian Co-operative Bank
✓
Debrief
Case closed.
Each decision and what it did to the covenants
↻
Ending
Back to this post
"Read how it was built"
Side screenCompany dashboard: Northfield's books, FY2025-26Linked from the briefing and the case board.
Play the live demo
Each decided case ends with a button to the next one. The debrief ends with "Case closed." and three buttons: "Read how it was built" (this post), "Play again" and "See the code".

The rest of this post is how I built it in eight days, and why the AI part is switched off.

1. Where it started, and the first idea I dropped

My first idea was a tool that flags odd journal entries. I dropped it on day one. Journal-entry testing is audit work across many assertions, and it isn’t a product by itself.

What I actually struggled with as an auditor was classification. A ledger called “Rajesh Mehta” sitting in trade creditors. Is that a supplier, or a director who lent the company money? The answer moves the balance sheet, and sometimes a loan covenant. So the user became the CFO office of an Indian mid-size manufacturer on Tally, preparing for its audit, and the job became one sentence: before the audit, every balance the auditor will question should be answered and evidenced.

2. Eight days, from the commit log

Up to the afternoon of 21 Oct, the repository had 17 commits. 15 of them carry a Claude co-author line. I made the decisions and ran every commit, deploy and paid test myself.

  • 13 Oct Plan, rules and the first five checks written down. Every rule cited to its source.
  • 14 Oct, 1:22 am First commit: the fictional company. 1:42 am Its independent review: pass.
  • 14 Oct The riskiest-guess test, before writing any AI code (section 7).
  • 16 Oct The build moved from Codex to Claude Code. I’d spent two days relaying prompts between the two tools, and one Codex run had gone ahead with its approval checks switched off, against my own rules. The first scored AI runs the same evening.
  • 20 Oct, 2:20 pm The AI milestone closed as “marks not met”.
  • 20 Oct, 8:25 pm The ranked list of gaps.
  • 20 Oct, 10:52 pm The first rule, end to end: question, outcome, entry, ratio, approval.
  • 20 Oct, 11:34 pm The other two rules.
  • 21 Oct, 1:21 am Their independent review: pass.
  • 21 Oct, afternoon Audit fixes, documentation, and the public repository.
  • 21 Oct, evening Story mode, the next-case buttons, the ending and the company dashboard, released as the public demo.

The AI evaluation took most of the week. The three working screens took one evening. That ratio is the main lesson of this build, and I come back to it in section 11.

3. A company that doesn’t exist

I couldn’t use real books, so I built a company: Northfield Auto Components, a fictional auto-parts maker on Tally with ₹150 crore of revenue and ₹9 crore of profit before tax. The books have 94 ledgers, 2,624 entry lines and 36 suppliers, with the gaps planted on purpose and decoys that look similar but are fine.

The first version of the data was wrong in a way an auditor would spot in a minute. One year-end journal of ₹135.68 crore made up 96% of all costs, there were no fixed assets, stock or debtors, and no covenant could ever break. The fault was in my spec. I rewrote it with a real cost mix from ACMA’s analysis of 68 listed auto-component makers and a balance sheet shaped like two unlisted makers in CRISIL rating reports. I also designed the covenant story into the data: fixing one gap should break debt-equity, and fixing another should break the current ratio.

4. Picking the stack

LayerChoiceWhy
BuilderClaude Code (Codex until 16 Oct)I directed and checked. A separate reviewer agent checked each milestone.
Data and backendConvexTables, queries and server functions in one TypeScript project. Each write runs as one transaction. The public demo runs on its own production deployment, with no AI keys.
ScreensReact with ViteA briefing, a case board, three case screens, a debrief and a company dashboard. Nothing fancy.
RulesPlain TypeScript functionsMoney in whole paise. Every rule runs in a test without a database.
Interest rateThe RBI websiteThe Bank Rate is read from rbi.org.in and stored with its date, never typed in.
AIClaude Haiku (parked)Words one question per gap. Switched off in the demo.
TestsNode’s test runner and Playwright517 unit tests, plus browser tests at phone and laptop widths.

5. Audit habits I turned into code

Five years of audit left me with habits. Each one is now a rule in the code.

  1. OutcomesRules decide, never the AIEach answer maps to a fixed outcome from a table. "Not sure" goes to the owner, not to a confident guess.
  2. MaterialityMateriality firstThe lower of 1% of revenue and 5% of profit before tax, from the trial balance. Half of it flags a gap. Under 5% of it, the gap is hidden.
  3. QuestionsAsk, don't leadThe question says "the money received", not "the loan". The options sit on the answer buttons.
  4. EvidenceA fixed list of documentsCode lists what to ask for, rule by rule. The AI never chooses.
  5. BooksNothing is written to the booksApproving records a decision. A person still posts the entry.
  6. ControlsA code on every saveOn the dev build, a passcode, and ten wrong tries in an hour lock edits. In the public demo, the sign-off code you pick. The server works out every figure again at approval.

6. What the demo finds

Every gap takes the same path:

Tally books94 ledgers, 2,624 lines Rules raise flagsR1, R2, R3 in code Ranked by sizeagainst materiality A plain questionanswers on buttons Fixed outcomeentry and ratio effect A person decidesapprove or send back The AI may word the question. It never picksthe outcome, and it is switched off in the demo.
How a gap moves through the tool. Every step except the answer is code.

The rules flag seven gaps and hide one that’s too small to matter.

₹1 L ₹10 L ₹1 cr ₹10 cr Meridian term loan₹9.6 cr Rajesh Mehta₹2.5 cr Anita Mehta₹60 L Mehta Family Trust₹50 L Sharma Traders₹10 L Delta Rubber₹8 L Bharat Fasteners₹5.6 L Kumar Packaging₹1.9 L flag line ₹22.5 L hide line ₹2.25 L Log scale. Coral: above the flag line. Grey: below it. Pale: hidden.
Tap, point at or tab to a bar to see where it sits.
The gaps the rules found, sized against materiality. Overall materiality is ₹45 lakh, the lower of 1% of revenue and 5% of profit before tax.

The demo turns one gap per rule into a case:

  • Case 1, “Whose money is this?” Rajesh Mehta, ₹2.5 crore. Three round bank receipts labelled “temporary funds from MD”, sitting in trade creditors. Answer “a loan from a director, repayable within a year” and the outcome moves it to short-term related-party borrowings.
  • Case 2, “Did we pay a small supplier late?” Delta Rubber, ₹8 lakh. A small supplier with no written credit terms, paid on day 30. With nothing in writing, the law allows 15 days. That’s ₹5,671.23 of interest at three times the RBI Bank Rate, if the stored rate is 5.75%, the rate on the day I fetched it.
  • Case 3, “How much of this loan is due this year?” Meridian Co-operative Bank, ₹9.6 crore. A term loan with no current portion. Code works out ₹2.4 crore due within a year from the instalments in the books.

Case 2 has a button: “Check today’s RBI rate”. If the stored rate is fresh, it says so and doesn’t call RBI. Each visitor gets three checks a day, because the rate can only change at an RBI decision. If RBI’s site can’t be read, it shows the stored rate and its date. Nothing is guessed. (It worked from the dev build on 21 Oct. Nobody has pressed it on the public site yet.)

Two of those fixes break a loan covenant on their own. Try them:

Debt-equity1.40Within the 1.50 limit
Current ratio1.23Above the 1.20 floor
These are the demo server's figures, for a synthetic company. Moving Rajesh Mehta's ₹2.5 crore to borrowings breaks debt-equity either way. As a long-term loan it also lifts the current ratio, because it leaves current liabilities. Splitting out Meridian's ₹2.4 crore due within a year breaks the current ratio. The hatched side of each meter breaks the covenant.

None of these numbers are hard to compute. What matters is when the CFO office sees them: before the audit, from its own books, with the covenant effect on screen.

The story never rewards a wrong answer. The right classification breaks a covenant on purpose, and the debrief says why: the books are now right. A side screen, “Northfield’s books, FY2025-26”, shows the year-end trial balance as booked, before your three decisions: profit and loss, the balance sheet, the ratios against both covenants, and materiality. Tables only, and every figure comes from the server.

7. Adding AI, and why I parked it

The riskiest guess, tested first. Before writing any AI code, I gave a model 20 sample gaps and asked it to pick the question type and the outcome. It got the type right 12 times out of 20. My pass mark, set before the run, was 16. It got the outcome right 19 times, with nothing invented. So rules route each gap and decide the outcome, and the AI only words one question.

The marks, set before the scored runs. At least 15 of 17 development cases and 6 of 8 unseen cases had to pass on all three runs, with zero invented facts. A different agent wrote the unseen cases, and I retired each set once its results drove a fix.

Development cases (17) 0 17 - - pass mark 15 9 15 13 15 161 inv. Held-out cases (8), a fresh set each run 0 8 - - pass mark 6 33 inv. 5 32 inv. 63 inv. 4 16 Oct17:4216 Oct18:1916 Oct18:5020 Oct12:3820 Oct12:53
Tap, point at or tab to a dot for that run.
Cases verified on all three runs, first tries only. Teal dots met the mark with nothing invented. Coral dots missed it, and hollow ones had an invented fact ("inv."). No run met both marks, so the AI part closed as "marks not met".

What went wrong along the way:

  • The model asked two questions in one sentence. It had been shown four or five sub-questions per rule. Giving each rule one goal fixed it in a small pilot, 12 answers out of 12.
  • My checker kept springing leaks. I patched it phrase by phrase, and two independent reviews each found about 30 holes in 300 probes. I replaced the patches with general rules and a bank of 476 labelled questions that every change must keep right.
  • The last “invented fact” on the development set was the checker misreading a correct count. That still counts. I didn’t move the mark.

I stopped tuning on 20 October. Every fix used up a set of unseen cases, and eight cases is a noisy judge. About 93 to 95% of first-try answers passed the checker on the last two runs, about 96% after one retry, and no answer with a genuinely invented fact was seen getting through. That is not the bar I set, so the milestone closed as “marks not met”, and the questions in the demo are written by code.

An auditor’s review of the AI’s questions. I read 28 of them. 15 were good and 9 were leading: they suggested the answer, used treatment words or repeated the narration. That review changed the product more than any test. Questions became neutral and open, the answer options moved onto buttons, and the documents became a fixed list. A later check against the auditing standards found that neutral wording isn’t required by any standard. It’s good practice, and the repository’s documentation says so.

8. Where AI belongs in accounting, and where it doesn’t

Most of accounting is rules. Double entry, the Schedule III captions, the 45 days in the MSMED Act: the same facts give the same answer every time. A model that can answer differently on a second run doesn’t belong in those steps. What a controller actually spends hours on is reading: narrations, contracts, board minutes, emails from a supplier. That’s where AI earns its keep, and it’s how this tool is built.

Readnarrations, contracts, minutesAI helps Decidefixed tables, the lawRules Computeratios, interest, splitsCode Sign offapproves or sends backA person Only the first step reads. Every later step repeats the same answer for the same facts.
Where AI sits in this tool. It reads and words. It never decides or computes.

I wanted to know whether that split holds outside my own build, so I read what regulators, audit firms and researchers have published. The pattern is consistent.

  • Regulators describe AI that reads, with a person accountable. In 2024, PCAOB staff found firms using generative AI mostly for administrative and research work, under supervision [1]. The UK’s FRC picked two examples for its 2026 guidance: summarising board minutes, and reviewing contracts for revenue testing. Its line is that “the human auditor is always accountable” [2].
  • Audit firms build agents that gather evidence. KPMG’s agents vouch expenses and search for unrecorded liabilities, and KPMG says its auditors stay in control of the decisions [3]. In a Gartner survey of 121 finance leaders, the top uses were process automation and catching errors [4].
  • The measured time savings come from AI paired with people. A Stanford and MIT study of 277 accountants found firms using AI closed their books about 7.5 days faster. Senior accountants gained more, because they stepped in where the AI was unsure. Juniors often accepted outputs the AI itself had flagged [5].
  • When AI keeps the books alone, the errors compound. In Penrose’s AccountingBench, the best models matched an accountant’s balances within 1% in the first month, then drifted by more than 15% over several months. Some invented transactions so the reconciliation would tie [6]. On questions about company filings, a top model got 81% wrong or refused in 2023 [7]. In 2026 the best model scores about 64% on analyst tasks [8].
  • The companies tell the same story. Pilot’s “fully autonomous” bookkeeper still hands judgement calls to a person [9]. Botkeeper, an automated bookkeeping platform, announced in 2026 that it was closing. Its CEO pointed to consolidation among its clients and weak product fit, not to the AI [10]. In 2025 Deloitte Australia refunded part of a government fee after a report it drafted with AI carried made-up references [11].

The argument has a limit, and I should say it. Not every number in accounts comes from a rule. Provisions, impairment and expected credit losses are estimates, and there statistical models have done well: one study found machine learning estimated insurers’ loss reserves better than management did [12], and European banks already use it in credit-risk models [13]. So the honest version is narrower. Rules should decide where the law or the standard gives the answer. Estimates can use a model, with a person signing. And the Penrose result says something about the checks themselves: a check that only asks “do the totals tie?” can be gamed. This tool’s checker matches every quote, number and date to the books for that reason.

9. What broke

  1. Three paid runs refused before they started. 42 provider errors held their token reservations for the whole day, by design. The daily cap then refused the next three runs before any call. No money was lost, and I raised the cap.
  2. A loan counted twice. A checker found that one relative’s loan, already sitting in unsecured loans, would have been added to debt a second time, so debt-equity would have shown 1.44 instead of the true 1.40. The rule now skips a ledger that is already a loan, and a test covers it.
  3. The checker took Hindi. It only knew English letters, so a made-up sentence in another script passed as allowed context. The demo doesn’t use the AI, but I fixed it anyway.
  4. A loan with nothing left to pay. If the books showed every instalment paid but a balance still open, the term-loan screen crashed. It now says no split can be worked out and asks for the schedule.
  5. The lockout was tested by reading the code, not running it. I added a small fake database so the passcode lockout and the save steps actually run in the tests.

10. What it cost

Building it coding agent, estimated ≈ $110 Running its AI 619 calls, all evaluations ≈ $1.50
What the tokens cost, at pay-per-token prices. The building figure is an estimate from the agent's token count on a flat-rate plan, so it was not billed as shown.

The app’s own AI ran 619 calls across every evaluation, about 894,000 tokens in and 106,000 out. The coding agent that built it used far more, because one long session carried the whole project. I’m on a flat-rate plan, so the $110 is what those tokens would cost at list prices, not what I paid.

11. What I’d do differently

  • Build the screens sooner. The list and the three screens took one evening. The AI evaluation took most of the week, and the demo doesn’t use it.
  • Write general checker rules from the start. Patching phrase by phrase cost two review rounds.
  • Stop tuning earlier. Once each fix retires a test set, more rounds measure noise.
  • Add sign-in sooner. The public demo has a sign-off code per browser session and no sign-in.

12. Thinking forward

The next steps are on the repository’s limits page: the other two planned rules (capital spend booked as repairs, and other income booked as sales), the AI wording with a neutrality check on the question itself, sign-in, and reading only the ledgers a page needs instead of the whole day book. The question I can’t answer yet is the one that matters: would a real CFO office trust a rule’s question more than its own team’s? I don’t know yet. My next step is a test with a finance team, and the first thing I’ll count is how many questions they’d have asked anyway.

13. Was it worth it?

Yes. Eight days and about $110 of tokens turned an auditor’s habit into three working rules. The AI part missed its own marks, and I’d rather say that than move them.

Appendix: sources for section 8

  1. PCAOB, "PCAOB Staff Shares Observations From Outreach on Use of Generative AI in Audits and Financial Reporting" (July 2024)
  2. Financial Reporting Council, "Innovative new guidance supports audit firm adoption of emerging AI technologies" (30 March 2026)
  3. KPMG International, "KPMG advances AI integration in KPMG Clara smart audit platform" (22 April 2025, company announcement)
  4. Gartner, "Gartner Survey Shows 58% of Finance Functions Using AI in 2024" (11 September 2024)
  5. Stanford Graduate School of Business, "AI is reshaping accounting jobs by doing the boring stuff", on Choi and Xie's study of 277 accountants (26 June 2025)
  6. Penrose, "AccountingBench: Evaluating LLMs on Real Long-Horizon Business Tasks" (2025, a startup's benchmark)
  7. Islam et al., "FinanceBench: A New Benchmark for Financial Question Answering", arXiv (November 2023, older models)
  8. Vals AI, Finance Agent benchmark v1.1 (updated 4 June 2026)
  9. Accounting Today, "Pilot launches fully autonomous AI bookkeeper" (6 February 2026)
  10. CPA Practice Advisor, "Botkeeper is Closing Its Doors" (9 February 2026)
  11. Associated Press, "Deloitte to partially refund Australian government for report with apparent AI-generated errors" (7 October 2025)
  12. Ding, Lev, Peng, Sun and Vasarhelyi, "Machine learning improves accounting estimates: evidence from insurance payments", Review of Accounting Studies (2020)
  13. European Banking Authority, "The EBA publishes follow-up Report on the use of machine learning for internal ratings-based models" (4 August 2023)

Project sources

Built with Claude Code · Convex · React · TypeScript