LodgeiT .ORG

← Blog

Logic Engine 2026-11-12 ~5 min read

The research says write the rules first — we already have

A run of studies over sixteen months have tested whether AI can calculate tax. They point the same way. This note sets them beside what is on sale, and beside what we have built, as at 12 November 2026.

What the research found

A language model alone gets most returns wrong. TaxCalcBench (Column Tax, July 2025) gave frontier models 51 US federal returns with every input supplied. The best model got fewer than a third strictly right. It misread tax tables, misjudged eligibility and made arithmetic errors. Models have improved since: by September 2026 the best on the benchmark’s own leaderboard scored 64% with web search. That is still one return in three wrong.

Letting the model write the rules at question time does not fix it. DeonticBench (April 2026) let models translate statute and facts into Prolog on the spot, across 6,232 tasks. On the hard tax subset the best result was 44.4%, even after fine-tuning and reinforcement learning.

Rules written beforehand do. Jurayj, Holzenberger and Van Durme (February 2026) gave models statutes already written as logic, and asked them only to turn the facts of a case into inputs. Ordinary chat models then beat reasoning models. When the solver was allowed to refuse instead of guess, the expected cost of errors fell to less than 20% of the average cost of filing.

But what you write the rules from matters. Stanford’s Law&Order (2026) turned US tax forms and their instructions into code and lifted accuracy on the same 51 returns from 66% to 100%. The source was the forms, not the statute. A form is the tax office’s summary of the law. Where the form and the law differ, the code inherits the form. CORAL (October 2026) takes a similar path with an older engine as the reference: it repairs a new engine field by field until the two agree, and sends the unclear cases to a person.

And the answer key can be wrong too. When Kyoto reported a full score on the newer version of TaxCalcBench in September 2026, it noted one case where the benchmark’s official answer followed a formula the tax code does not support, and scored that case on the code instead.

We have met both points in practice. Our Division 36 work began with an edge case where the worksheet and the Act part ways, a gap we have raised with the ATO. The lesson is the same in both countries: write from the Act, and use forms and other calculators only to compare.

What is on sale

We name no products. The kinds are what matter.

Kind of productHow it gets a figureCan a practitioner read the rule?What it does with a missing fact
Research assistant with citationsThe model writes prose and cites sourcesThere is no rule to readOften assumes a typical taxpayer
Agent that writes code for each jobThe model writes a calculation at question timeOnly if they read codeDepends on the prompt
Engine built from formsCode written from forms and instructionsOnly if they read codeAsks for every form field
Rules written in a programming languageRules written by a programmer with a lawyerNot without the programmerRequires each input
Closed expert systemRules reviewed in privateNo; they are not publishedFixed questionnaire
Open rules in controlled English (ours)Rules written from the Act, run by a reasonerYes; the rule file is EnglishNames the missing fact, or refuses

The research supports the last four rows over the first two. It does not yet say which of the four is best. That is what open challenges are for.

Where we are

Measured, not promised:

  • Division 36, tax losses, revision 3. 61 rules, 48 worked scenarios, 321 tests, all passing. Written from the Act. Draft, under review. Fingerprint ace4a352…a5dc7.
  • CGT event A1, v1.2. 114 rules, 62 scenarios, 163 tests, all passing. Draft, under review.
  • Three answers, never a guess. A figure with its proof, a named missing fact, or a refusal.
  • Practitioners read the rules and found the faults. In round one on Division 36, five of five reviewers returned "fix". We pay the same fee for any verdict. Sixteen bounties are published.
  • Revision 3 is live in Tax Genii, marked "under review". In our own tests on 2 and 5 November, the same question returned the same figure when the language model behind it was swapped for one from a different provider. The figure comes from the rules, not the model.
  • We are part of the language, not only a user of it. LodgeiT is a named copyright holder in LogicalEnglish2, the open reasoner (Apache 2.0) that runs these files.
  • The files and tests are public, with terms for using them, and an open challenge to anyone who claims a deterministic tax engine.

This fits the Tax Practitioners Board’s AI guidance, TPB(GS) 55/2026. It asks practitioners to take reasonable care in finding the client’s facts and in applying the law, and to keep records that can be checked. A named missing fact, a refusal and a proof tied to a fingerprinted file are built for those duties. Whether they satisfy them in a given case is the practitioner’s judgment, not ours.

What we have not done

  • No file has a signature. Review has found faults and we have fixed them. No practitioner has yet signed a file as correct, and until two have, every file stays "under review".
  • Two rule files is not tax law. Coverage grows one file at a time.
  • Turning a question into facts is still done by a model. The research says that is where errors now gather, and we agree. The rules are exact only once the facts are right.
  • A fault of our own. On 12 November we found that when the rules refuse a question, Tax Genii’s written answer does not always say that the rules were not used. It is being fixed.
  • We have not sat a public benchmark. The published ones test US law.

What comes next

We will run the research’s own test on Australian law: give frontier models the text of Division 36 and our 48 scenarios, let them answer alone and by writing rules on the spot, and publish the scores beside ours, with the cases where the right answer is to refuse.

If you build tax AI, the challenge is open. If you are a practitioner, the rules are there to be read.

References

  1. Bock, Molisee, Ozer and Shah (2025). TaxCalcBench: Evaluating Frontier Models on the Tax Calculation Task.
  2. Dou, Brena, Deo, Jurayj, Zhang, Holzenberger and Van Durme (2026). DeonticBench: A Benchmark for Reasoning over Rules.
  3. Jurayj, Holzenberger and Van Durme (2026). Language Models and Logic Programs for Trustworthy Tax Reasoning.
  4. Han, Takashima, Wei, Li and Genesereth (2026). Law and Order: Tax Law Autoformalization.
  5. De Raedt, Abdullah and Agrawal (2026). CORAL: Closed-loop Oracle Alignment for Agentic Tax Engine Modernization. FinNLP at EMNLP.
  6. Kyoto (24 September 2026). Solving TaxCalcBench.
  7. Tax Practitioners Board (22 July 2026). TPB(GS) 55/2026, The use of Artificial Intelligence and the Code of Professional Conduct.
  8. Sergot, Sadri, Kowalski and others (1986). The British Nationality Act as a Logic Program. The start of this line of work.