AI
How a €24 Million Tax Mistake Sparked Estonia's Quest for AI-Powered Governance
A legislative blunder that cost the government millions inspired Estonia to build tools and frameworks for using AI across the public sector.
WIRED — AI
In December, Estonia's parliament inadvertently opened a massive loophole in the country's gambling tax code. A single drafting error—language that referred only to "skill games" rather than all remote gambling—meant online casinos went untaxed for an entire year. The mistake cost the government approximately €24 million in lost revenue, a significant blow to a national gambling industry worth around €300 million.
The legislative slip-up might have lingered unnoticed, but it became a catalyst for something much larger. When a government official ran the problematic bill through two large language models, both Claude and Gemini immediately flagged the inconsistency. That discovery sparked an ambitious government-wide initiative to harness AI for better lawmaking and administration.
From Crisis to Innovation#
Luukas Ilves, then undersecretary for digital transformation, seized the moment. Within hours of discovering that AI could catch the error, he built a prototype system he named Apsakaleidja—"Fuckup Finder"—designed to scan draft legislation before passage. The tool examines bills pulled directly from parliament's website and identifies issues such as broken cross-references, contradictory clauses, mathematical errors, and impossible dates, then ranks them by risk level.
When Ilves demonstrated the tool on national television, the host's amazement captured the moment's significance. Of the 112 bills currently in the system, 102 are flagged as high-risk, showing just how vulnerable the legislative process had been to undetected errors.
A National AI Ambition#
Prime Minister Kristen Michal saw the incident differently than mere embarrassment. "The situation demonstrated that AI can be an incredibly useful assistant," he told WIRED, noting that the Fuckup Finder exemplified how agentic AI tools could strengthen public engagement with government.
Rather than treating the scandal as a cautionary tale, Estonia doubled down on AI integration. In January, Michal called for parliament to use tools like the Fuckup Finder as a preventive measure during legislation drafting. The government launched Eesti.ai, a program aimed at building AI literacy across the population with the stated goal of doubling national productivity by 2035. Advisers include Bolt founder Markus Villig and Ilves himself.
By April, parliament received a bill authorizing state and local governments to deploy digital solutions and AI for automating administrative processes. In June, Michal announced an even more ambitious goal: making Estonia the first country to issue official digital identities for AI agents operating within government systems.

