The €24M Tax Blunder That Gave Estonia's Parliament an AI Bill-Checker
A drafting error exempted online casinos from taxes for 2026 — and gave the government the excuse it needed to put AI inside the legislative process.
A drafting error exempted online casinos from taxes for 2026 — and gave the government the excuse it needed to put AI inside the legislative process.
A drafting error in Estonia's Gambling Tax Act cost the country about €24 million in gambling-tax revenue. It also gave the government a politically usable reason to put an AI bill-checker inside the legislative process.
The Riigikogu, Estonia's 101-seat unicameral parliament, passed amendments in December 2025 that referred only to "skill games" rather than games of chance or remote gambling. The narrower wording exempted online casinos from taxation for all of 2026. ERR News reported the legislative error first. The annual revenue loss has been estimated at about €24 million (~$27.4 million), against an Estonian gambling industry worth roughly €300 million a year.
The error had been flagged first by a legal counsel for a gambling operator when Luukas Ilves, a former undersecretary for digital transformation, ran the legislation through Claude and Gemini. Both models flagged the inconsistency. Within roughly 12 hours, according to a LinkedIn post from Ilves, he had a working prototype on Estonian national television. The tool, called Apsakaleidja ("Fuckup Finder"), scrapes draft Riigikogu bills, flags broken references, contradictory wording, arithmetic errors, and impossible dates, and rates each issue as high, medium, or low risk.
A live beta dashboard on Ilves's law lab lists 112 bills, of which 102 are rated high risk. That is the tool's own categorization, not an independent audit. No peer-reviewed evaluation of Apsakaleidja's detection accuracy has been published. Both Ilves and Prime Minister Kristen Michal, WIRED reports, framed the system as a useful drafting assistant rather than a replacement for human review.
In January 2026 the prime minister publicly recommended that parliament use AI to pre-check legislation, ERR reported. The same program, branded Eesti.ai, lists Markus Villig of Bolt and Ilves among its advisers and carries the stated goal of doubling Estonian productivity by 2035. The casino-tax mistake turned that recommendation into a policy ask.
Since then Estonia has moved from verbal endorsement to a formal bill. In April 2026 the government submitted legislation giving state and local authorities the explicit right to use digital solutions, including AI, in routine administrative decisions. Michal's government has separately advanced an effort to create digital identities for AI agents, framed by the prime minister as Estonia becoming "the first country" to do so. Both moves trace back to the mandate the December 2025 blunder opened.
The headline figure itself crosses currencies. WIRED rounds it as $28 million; ERR puts it at €24 million. They describe the same incident. Independent accuracy testing for Apsakaleidja is not on the record. The April 2026 administrative-AI bill is the next checkpoint, and committee clearance would convert a one-off demo into standing Estonian lawmaking infrastructure.