Birbal AI

Insight · Government and AI

When machines read the law: life inside an AI-native government

For about 4,000 years, laws have been written for people to read. In November 2026, Abu Dhabi began preparing its rules for a different first reader: a machine. Speed is the smallest part of that change. The larger part is what happens to the citizen, the official and the lawmaker when the reader of the law never tires, never forgets and never looks up from the page.

By Monu Kumar, CEO of Birbal AI · · 20 min read · اقرأ بالعربية

In brief

  • The law has always had a human reader, and each change of reader moved power. AI is the fifth reader, and the first that is not a person.
  • The law outgrew its human readers long ago. The US federal rule book is nineteen times longer than it was in 1950.
  • Hand-coding law for machines was tried for decades and never scaled. Language models changed that, but they still fail in ways that matter in law.
  • Abu Dhabi’s Machine-Readable Government is the boldest attempt so far to run this across a whole government. Its design keeps a person in charge of the decision.
  • The scarce skill in an AI-native government is deciding what must never be automated.

The stone and the shipment

About 3,800 years ago, King Hammurabi of Babylon had his laws cut into a black stone pillar more than two metres tall and, most likely, set up in a temple. Most people who passed it could not read its wedge-shaped script, and the king allowed for that. Near the end of the inscription he tells any man with a grievance to come to the stone and have the words read aloud to him.

That instruction holds a whole theory of government. The law is public, and it stands where people can find it. But between the person and the law there is always a reader: a scribe, a priest, a clerk, a judge, an official behind a counter. Every legal system since has depended on that human reader.

In November 2026, Abu Dhabi put a different reader to work. At the emirate’s Agriculture and Food Safety Authority, thousands of food-import policy documents were made readable by AI. When an importer applies, software now does the first reading. It checks the paperwork against the rules and ties each finding to the clause it rests on. An official then reviews the findings and decides. On some complex cases, a check that took from a few days to a week now takes minutes.

The programme is called Machine-Readable Government. Abu Dhabi’s Department of Government Enablement leads it, OpenAI’s models power it, and construction permits, business licences and procurement are next in line. It is part of the emirate’s plan to become the world’s first AI-native government by the end of 2027.

Most of the coverage has been about speed. Speed matters, but it is the smallest part of this story. The larger part is that the law has a new first reader, and a change of reader has always been a change of power. This essay follows that change through four lives: the citizen who used to queue at the counter, the company that files the forms, the official who sat behind the counter, and the lawmaker who wrote the rule. It ends with the oldest question in government: what to do about the person the rule did not foresee.

A short history of who reads the law

The history of law is usually told as a history of rules. It can also be told as a history of readers, and each change of reader has moved power from one group of people to another.

Memory. Before writing, the law lived in the heads of elders and nobles. Whoever remembered the custom controlled it. In early Rome, court judgments followed unwritten custom kept within a small circle of patricians, and ordinary citizens had no way to check what the law said.

Script. The oldest law code that survives, the Code of Ur-Nammu, was pressed into clay tablets in Sumer around 2100 BCE. Writing fixed the law in place. It could now be copied, checked and quoted back at the powerful. That is why Rome’s plebeians pushed the city to write its law down in the Twelve Tables of 451⁠–⁠450 BCE. But writing also created a new gatekeeper: the person who could read.

Print and the code. More than twenty-two centuries later, revolutionary France wanted one law for the whole nation, in words every citizen could follow. An early draft of its civil code was rejected as too technical to be easily understood by all citizens. The code enacted in 1804 went on to shape the civil law of most of continental Europe and Latin America. The dream was a law the citizen could read without a priest or a patron.

The database. In our own lifetimes the statute book moved online. Any citizen with a phone can now open the law. Few can use it, for a reason the next section explains: there is far too much of it.

The machine. The fifth reader is the subject of this essay. It reads everything, at any hour, in seconds. It has no memory of favours and no bad days. It has also never met a human being.

Each earlier shift took power from one kind of reader and handed it to another: from the elder to the scribe, then from the scribe to the citizen in theory and to the professional in practice. The useful question about the fifth shift is the same one. Who gains power when the machine reads first, and who loses it?

Figure 1

For 98% of its written history, the law had only human readers

Written law is about 4,100 years old. Machines have been reading it for 69 of those years.

Human readers only

About 4,050 years

  1. c. 2100 BCEThe Code of Ur-Nammu, the oldest law code that survives, is pressed into clay.
  2. c. 1750 BCEHammurabi has his laws cut in stone, to be read aloud to anyone with a grievance.
  3. 451–450 BCERome writes its law down in the Twelve Tables.
  4. 1804The Napoleonic Code sets out one law in words citizens can follow.

Machine experiments

69 years, from 1957 to 2026

  1. 1957A legal scholar, Layman Allen, proposes symbolic logic for drafting law.
  2. 1986Part of the British Nationality Act is run as a logic program.
  3. 2011France begins OpenFisca, a model of its tax and benefit rules.
  4. 2018A New Zealand government team rewrites two laws as software.
  5. 2020New South Wales publishes its first machine-readable regulation.
  6. 2025The UAE Cabinet creates a Regulatory Intelligence Office.
  7. 2026Abu Dhabi puts Machine-Readable Government to work.

Both bars are drawn to scale, and each numbered mark is a milestone named in this essay. Dates before the common era are approximate.

The law outgrew its readers

The human reader has a problem that no reform has solved. The law is now far longer than any person can read.

The best-measured example is the United States. In 1950 the Code of Federal Regulations, the standing rule book of the national government, ran to 9,745 pages. By 2021 it ran to 188,321. That is nineteen times longer within one lifetime.

Figure 2

The US federal rule book is 19 times longer than it was in 1950

Total pages in the Code of Federal Regulations, 1950 to 2021

050k100k150k200k19501970199020101950: 9,745 pages1960: 22,877 pages1970: 54,834 pages1975: 71,224 pages1980: 102,195 pages1990: 126,893 pages2000: 138,049 pages2010: 165,491 pages2015: 178,352 pages2020: 186,069 pages2021: 188,321 pages9,745188,321
Show the numbers
YearPages
19509,745
196022,877
197054,834
197571,224
1980102,195
1990126,893
2000138,049
2010165,491
2015178,352
2020186,069
2021188,321

Source: Office of the Federal Register, total pages of the Code of Federal Regulations by year.

It is not only regulation, and not only America. A study in Scientific Reports measured federal statute law in the United States and Germany from 1994 to 2018, and both grew by more than half. American federal statutes went from 14 million words to 21.2 million, and German ones from 4.5 million to 7.4 million. The authors traced most of the growth to the welfare state and the tax system that pays for it. The law grows because we keep asking it to do more.

Now do the arithmetic on a human reader. American federal regulations had passed 84 million words by 2019. Someone reading 250 words a minute, eight hours a day, every working day, would need nearly three years to get through them once. By then the text would have changed.

So the modern citizen lives under rules nobody can read, and pays for it in time. Americans spent about 10 billion hours on federal paperwork in the 2021 fiscal year, roughly 30 hours for every person in the country. The cost falls hardest on people with the least time and help. The US tax authority estimates that about one in five eligible workers never claims the Earned Income Tax Credit, which was worth up to $7,830 to a family with three or more children in the 2024 tax year. The right exists on the page. The reader never arrives.

Governments know this. The UAE launched its Zero Government Bureaucracy programme in 2023 with orders to cancel at least 2,000 government procedures and halve the time the rest take. Deleting rules helps. But a modern state cannot delete its way back to a law one person can read. It needs a reader that can keep up.

The seventy-year dream of law as code

The idea of a machine that reads law is older than the personal computer.

In 1957 Layman Allen, an American legal scholar, argued in the Yale Law Journal that symbolic logic could remove the accidental ambiguity from legal drafting. In 1986 a team at Imperial College London translated part of the British Nationality Act into a logic program, so that a computer could work out the Act’s consequences mechanically.

The practical movement arrived in the 2010s under the name rules as code. France began building OpenFisca, an open-source model of its tax and benefit rules, in 2011, and in 2016 it published the source code of the calculator its tax office uses. In 2018 a New Zealand government team spent three weeks rewriting two pieces of legislation as software. That same year every party in Denmark’s parliament agreed that new legislation must be digital-ready. In 2020 the Australian state of New South Wales published its first machine-readable regulation beside the human one, and the OECD gave the movement its handbook, Cracking the Code.

The results were real. When researchers translated French family-benefit law into Catala, a programming language built for statutes, they found a bug in the government’s own software. Coding a law forces a precision that prose lets its authors avoid.

But the movement stayed small, and the OECD said so plainly: most projects were still experiments that had not scaled. The bottleneck was the translator. Every rule had to be turned into code by hand, by rare teams of lawyers and programmers working clause by clause, and then kept up to date each time the law changed. Australian researchers named this the problem of scaling up. A method that needs a programmer for every paragraph cannot keep pace with a rule book that grows by thousands of pages a year.

After sixty years of work, a machine could execute law that people had already digested for it. It still could not read.

Figure 3

The Gulf is the newest arrival in machine-readable law

Where the milestones named in this essay took place, from 1957 to 2026

  1. United States, 1957: a legal scholar proposes symbolic logic for drafting law.
  2. United Kingdom, 1986: part of the British Nationality Act is run as a logic program.
  3. France, 2011: work begins on OpenFisca, a model of tax and benefit rules.
  4. New Zealand, 2018: a government team rewrites two laws as software.
  5. Denmark, 2018: parliament agrees that new laws must be digital-ready.
  6. New South Wales, 2020: the first machine-readable regulation is published.
  7. United Arab Emirates, 2025 and 2026: AI enters lawmaking, then Abu Dhabi puts an AI reader to work.

Until 2025 every marker sat in North America, north-west Europe or Australasia. Map outline: Natural Earth.

What changed: a machine that can read

Large language models changed one thing, and it was the thing that mattered. They read ordinary text. A rule no longer has to be rebuilt by hand in a programming language before a machine can use it.

How well do they read law? Better every year, and not yet well enough to be left alone.

In 2023 researchers tested a leading model on a standard exam of statutory reasoning, which asks it to apply sections of the US tax code to simple facts. It scored 71%. By 2026 another team reported that leading models compute the correct tax liability on more than 90% of well-formed cases. That is fast progress on the easy part of the job.

The hard part is knowing when not to answer. The same 2026 study gave models cases whose facts contradicted each other. Between 63% and 76% of the time, the models returned a confident answer with no sign that anything was wrong. Other research finds the weaknesses that matter most in law. General-purpose chatbots asked specific questions about court cases invented answers at least 58% of the time. Specialist legal research tools built to prevent this were still wrong in more than one answer in six. And leading models asked the same hard legal question twenty times did not always pick the same winner.

So a serious design does not ask the model to be a judge. It asks the model to be a fast, tireless first reader, and it surrounds that reader with structure. This is what Abu Dhabi has built. Machine-Readable Government takes a defined set of rules, puts them into a common machine-readable form, and lets AI assess routine applications against them. Three design choices matter more than the model.

  • Every finding points to its clause. Each assessment is linked to the specific rule behind it, which leaves an audit trail a person can check.
  • A person decides. Officials set the standards, review complex applications and keep the final decision.
  • Some decisions are out of bounds. The framework is not meant for autonomous decisions in high-stakes areas, or in cases that affect a person’s rights, eligibility or access to essential services.

Ahmed Tamim Hisham Al Kuttab, who chairs the department leading the programme, put the ambition in one line: “The harder task was making policy itself intelligent.”

The UAE is working on the other end of the pipe as well. In April 2025 the federal Cabinet created a Regulatory Intelligence Office to bring AI into the drafting and review of legislation itself. One programme teaches machines to read the law. The other lets machines help write it.

Figure 4

A machine does the first reading and an official makes the decision

How Abu Dhabi’s Machine-Readable Government handles an application, as publicly described

An applicant submits a file

A food-import application, for example

Laws, policies and regulations

Put into one machine-readable form

AI does the first reading

It checks the file against the rules and ties each finding to the clause it rests on

Is the case routine and clear?

An official reviews the findings

An official examines the whole case

An official decides

The final decision stays with a person

Both paths end with an official. Whatever the machine finds, a person makes the decision. Drawn from public descriptions of the programme; see Sources.

Life inside: four people and one new reader

The citizen: from applicant to recipient

Under the old reader, the citizen’s job was to apply. You found the right office, the right form and the right documents, and then you waited. The state acted only when asked.

A machine reader makes a different arrangement possible, in which the state acts first. Estonia showed the principle in 2019, when parents stopped having to apply for family benefits and the state began offering them unprompted. Abu Dhabi’s TAMM platform, which serves 3.8 million users across more than 1,150 services, now does this for everyday chores. With a resident’s consent, its AutoGov feature renews a car registration or a licence without being asked. The stated ambition is a passport that renews itself before it expires.

This is a real gain, and it goes to the people who need it most. The one in five who never claim what they are owed are mostly people who never reached the right reader. A state that comes to you does not depend on your stamina.

It also changes what a citizen is. An applicant knows a decision is being made, because they asked for it. A recipient may not know. The safeguards of the paper age, notice and the right to be heard, were built around the application. They now have to be rebuilt around the offer: tell people what was decided, on which clause, and how to say no. It is a good sign that AutoGov is optional.

The company: compliance at machine speed

For a business, the form is the main point of contact with the state, and time is the cost. A permit that takes minutes where it took a week matters most to the small firm with no compliance department.

The deeper change is that rules become testable. If a government publishes its rules in a form machines can read, a company can check itself before it applies, much as France let anyone inspect the code of its income-tax calculator. Compliance stops being a guess followed by a wait.

Procurement is on Abu Dhabi’s list of next areas, and it will be the sharpest test. Tenders are where the stakes for companies are highest and where an explanation tied to a clause is worth most. A supplier who loses should be able to see which requirement they failed. A machine reader can make that normal. It can also make things worse, if suppliers start writing bids for the machine and not for the buyer. Anyone who has watched websites being written for search engines knows how quickly that happens.

The official: from gatekeeper to judge of exceptions

In 1980 the political scientist Michael Lipsky pointed out that policy is not only what the statute says. It is what the clerk, the inspector and the caseworker do, because they hold discretion and no law foresees every case. He called them street-level bureaucrats.

In 2002 two Dutch scholars, Mark Bovens and Stavros Zouridis, described what computers were doing to that discretion. It was moving from the counter into the system. In what they called a system-level bureaucracy, the people who really decide are the analysts and software designers who turn legal rules into decision trees. The official at the desk operates the result.

Machine-read law completes that move, and it also offers a way back. If the machine handles the ninety routine cases, the official’s whole day can go to the ten that are not routine. The job changes from gatekeeper to judge of exceptions. An Abu Dhabi official has described the aim as “a workforce that is not purely human”, with people freed for work that needs judgement. That is the right aim. It works only if officials are trained, trusted and given the time to disagree with the machine.

The lawmaker: writing for two readers

The last person changed is the one who writes the rule. A law that a machine will read has to say what it means. The OECD’s review of rules as code found that a central promise is closing the gap between what a policy intends and what its implementation does. Denmark now screens every bill for whether it can be administered digitally. Abu Dhabi reports that putting policies into one machine-readable format lets officials see where rules overlap or conflict across departments.

Law, in other words, can now be debugged. Some scholars go further. Anthony Casey and Anthony Niblett predict a world of micro-directives, rules tailored by machine to each situation so precisely that the old choice between a simple rule and a flexible standard disappears. That future is a long way off. The next section explains why it should arrive slowly.

The case against: five warnings

None of this is new territory. Governments have been automating decisions for decades, and the record includes some of the worst administrative failures of this century. Anyone building a machine reader should know five warnings by heart.

1. Translation is never neutral. In 2008 the legal scholar Danielle Citron studied automated benefit systems in the United States and reached a conclusion that still holds. Programmers inevitably alter the rules when they embed them in code, in ways the public, elected officials and the courts cannot review. Whoever prepares the law for the machine is making law. The philosopher H.L.A. Hart showed why this cannot be engineered away. A rule that says no vehicles in the park is clear about cars and silent about bicycles, roller skates and toy cars. Every rule has a settled core and a blurred edge, and the edge is where judgement lives.

2. Errors scale. A tired clerk makes one mistake at a time. A system makes the same mistake for everyone. By the Australian government’s own count, the Robodebt scheme raised A$1.76 billion in unlawful debts against some 526,000 people, and a Royal Commission called it “a crude and cruel mechanism, neither fair nor legal”. The table shows two more cases of the same kind.

CaseYearsWhat the system didPeople affectedWhat happened
Robodebt, Australia2015⁠–⁠2019Raised welfare debts automatically from averaged income dataabout 526,000Ruled unlawful; Royal Commission reported in 2023
MiDAS, Michigan, United States2013⁠–⁠2015Flagged unemployment claims as fraudabout 40,00093% error rate; US$20 million settlement in 2024
Childcare benefits, Netherlands2013⁠–⁠2019Risk-scored benefit claims, with nationality as a factortens of thousands of parentsGovernment resigned in January 2021

3. The human in the loop can be a fiction. Every one of those systems had people around it. The scholar Ben Green reviewed 41 policies that rely on human oversight of government algorithms and found that the evidence does not support them. People tend to defer to the machine and are poor at catching its errors. Citron had seen the same thing in hearing officers, who presumed the computer was right. A human signature is not a human judgement. Oversight has to be designed, staffed and measured, or it becomes a rubber stamp.

4. Code freezes the future. The legal theorist Mireille Hildebrandt warns that code-driven law assumes we can foresee, at the moment of coding, every case the rule will meet. We cannot. Written law copes with surprise because a person can look at an unforeseen case and say that the rule was not meant for this. A system that executes the past at scale has no such moment.

5. A new reader invites new tricks. A language model can be misled by the documents it reads. Security researchers rank prompt injection, meaning instructions hidden inside submitted text, as the first risk for AI applications. An application file is exactly such a text. And once people learn what the machine rewards, they will write for the machine.

There is a sixth point, and it cuts the other way. The human reader was never a gold standard. A well-known study of US asylum courts found that Colombian applicants in Miami had a 5% chance with one judge and an 88% chance with another in the same building. Human discretion brings mercy. It also brings noise, favouritism and fatigue. The honest comparison is between a flawed machine and a flawed human, and the best design uses each to check the other.

The scarce skill: deciding what must never be automated

Put the promise and the warnings together and one conclusion follows. The most valuable skill in an AI-native government is no longer applying the rules, because machines will do most of that. It is deciding where the machine stops.

Two questions settle most cases. How clear is the rule? And how much does the decision matter to the person?

  • Clear rule, low stakes: the machine decides. Renewing a registration, checking a set of documents, confirming a fee. Speed is the whole value, and a wrong answer is cheap to put right.
  • Clear rule, high stakes: the machine prepares and a person signs. A licence a business depends on, or a large permit. The machine does the reading and shows its clauses. A named official owns the decision.
  • Vague standard, low stakes: the machine suggests and people sample. Where a rule says ‘reasonable’ or ‘appropriate’ but little rides on the answer, let the machine propose, and audit a sample of its work.
  • Vague standard, high stakes: a person decides. Hardship, safety, liberty, a family’s income. Here the machine is a research assistant and nothing more.

Figure 5

The higher the stakes and the vaguer the rule, the more a person decides

Two questions sort most cases: how clear is the rule, and how much is at stake for the person?

Clear rule · Low stakes

The machine decides

Speed is the value, and errors are cheap to put right.

For example: renewals, document checks, fees

Clear rule · High stakes

The machine prepares, a person signs

A named official owns the decision.

For example: licences, large permits

Vague standard · Low stakes

The machine suggests, people sample

Officials audit a sample of its work.

For example: tests of what is ‘reasonable’

Vague standard · High stakes

A person decides

The machine is a research assistant and nothing more.

For example: hardship, safety, liberty

The zone where the stakes are high and the standard is vague is where officials should spend the time the machine gives back.

Abu Dhabi’s framework already draws the last of these lines. It rules out autonomous decisions in high-stakes areas and in cases that touch rights, eligibility or essential services. The European Union’s AI Act draws a similar one, classing systems that judge a person’s eligibility for public benefits as high-risk. The principle is becoming common ground. The practice is harder, and five habits make the difference.

  1. Show the clause. Every decision names the rule it rests on, in words the person can read.
  2. Keep a door open. Anyone can ask for a human to look again, and asking is easy. TAMM already works this way for service requests: a department cannot close a case until the resident confirms that it is fixed.
  3. Stop when unsure. When the facts conflict or the rule is silent, the machine hands the case to a person. It does not guess. The research here is encouraging: one extra verification step that lets a model decline to answer recovers most of the contradictions it would otherwise miss.
  4. Count the exceptions. Every case a person overturns is information. A rule that needs constant exceptions is a badly written rule, and the lawmaker should hear about it.
  5. Publish what the machine reads. If companies and citizens can test themselves against the same machine-readable rules the government uses, errors surface before they do harm.

Behind these habits is a very old idea. Aristotle observed that every law speaks in general terms, and that life produces cases the lawmaker did not foresee. He called the remedy equity: “a correction of law where it is defective owing to its universality”. English law later built courts of equity on the same thought. Islamic jurisprudence has long debated istihsan, a jurist’s use of his own judgement where citing the texts does not settle the question. Mature legal traditions keep a place for the judgement that a rule cannot contain.

A machine that reads the law does not remove that place. It makes that place the main thing people in government are for.

2027 and after: what the experiment will teach

Abu Dhabi is not the first government to try to make law machine-readable. France, New Zealand, Denmark and Australia were there years earlier. What is new is the bet that AI can do the reading across a whole government, in production and on a deadline.

It starts with unusual advantages. One platform, TAMM, already carries more than 1,150 services. By the government’s own account, 95% of public employees have completed AI training and every government entity has a Chief Digital and AI Officer. The models run on infrastructure inside the UAE, so government and citizen data stay in the country. Public trust is high: in Edelman’s 2026 survey, 86% of UAE respondents trusted their government to do the right thing. And Abu Dhabi spent more than a decade building digital government before it let a model read a rule.

Those advantages are the reason the rest of the world should watch closely. What works here will be copied, and the easy part to copy is the software. The hard part is everything around it. Four things are worth watching in 2027.

  • Whether the error rates are published. A machine reader should be the most measurable official a government has ever had. How often is it overturned, and on which rules?
  • What happens to the exceptions. The test of the system is the unusual case, and whether a person with time and authority picks it up.
  • How licensing and procurement go. Food-import checks are a forgiving place to start. Business licences and tenders involve money, rivals and disputes.
  • Whether the rule book gets shorter. The best outcome is not faster reading of an ever longer rule book. It is a rule book that shrinks because the machine showed where it repeats or contradicts itself.

For other governments, in the Gulf and beyond, the lesson is about sequence. Identity, shared data, a single front door and a trained workforce come first. The model comes last. A government that starts with the model will repeat Australia’s mistake at a higher speed.

The oldest duty

Go back to the stone in the temple. Hammurabi could not teach his people to read. What he could do was promise that anyone with a grievance might come and have the law read to them. For thirty-eight centuries governments have been keeping or breaking that promise, and the measure has not changed: what happens to an ordinary person who needs the law to see them.

The machine keeps the first half of the promise better than any scribe. It reads everything, for everyone, at once. But the second half was never about reading. The man at the stone wanted someone to hear his case.

That part does not automate. A government that lets the machine do the reading has, for the first time, the chance to give its people their time back and to spend its officials on the cases that need a human being. A government that uses the machine to avoid those cases will have rebuilt the counter with nobody behind it.

The law has a new reader. The duty to hear the person the rule did not foresee stays with us.

About the author

Monu Kumar is CEO of Birbal AI, an Emirati national company. Birbal AI builds AI products and software for government entities and critical industries in the UAE.

Birbal AI is an independent company and an authorized vendor to Abu Dhabi’s Department of Government Enablement, which leads the programme discussed here. It is not part of DGE or TAMM. This essay draws only on public sources and describes no client work.

Leadership and teamShare: LinkedIn · X · Email

Sources

Every factual claim in this essay links to its source where it is made. The full list follows, by type.

Research papers and books

Official reports and data

Abu Dhabi and the UAE

Reference works

Talk to us

Preparing rules and services for AI? Talk to our Abu Dhabi team.

Tell us which service or policy area you are working on. A senior consultant replies within one business day.

Ask about AI for government

We only use your details to reply to you. Arabic or English, as you prefer.