Law as Code

Tracking our progress

We are industrialising Rules as Code: turning legislation into rules that a computer can run and a person can check. We use the term ‘industrialising’ in the sense of a pipeline or production line, which is how we think of Clausify, our automated formaliser, refined over tens of thousands of multi-hour runs. This page tracks our progress, law by law and over time.

Every rule set we publish is open source under the EUPL-1.2 and released as a preview: 181 rule sets so far, across 9 jurisdictions. The rules are written in Clausal Prolog and produced by Clausify, our proprietary formalisation engine.

Progress, law by law

The bars show the share of each law’s articles that at least one published rule set cites. This is not the share formalised: a cited article may be covered only in part, and only the first 8 rule sets have a provision-tracking ledger that accounts for every unit of the text they cover. Open a law to see which articles are cited, and by which rule sets. The dates show when each law’s first rule set was published, and when the latest was added.

A rule set can cite several laws, so it can count under more than one. Where we have not yet checked a law’s number of articles against its official text, we give the count only.

Progress over time

The running total of rule sets published in the public repository, by date.

Rule sets published, running total by date: from 8 on 20 October 2026 to 181 on 28 November 2026, including 66 published together on 16 November 2026.0501001502002 Jul20 Oct28 Nov66 published on 16 November,written from July on181
28 November 202630 added, 181 in allDORA 7 · United Kingdom 6 · Other 3 · AI Act 2 · Data Act 2 · Digital Services Act 2 · ePrivacy Directive 2 · NIS2 2 · Public procurement 2 · China PIPL 1 · GDPR 1Hover over or tap a step to see what it added.
Published on other daysPublished on 16 November, written from July on (the ramp is illustrative)
Show as a table
DateAddedIn allAdded, by law
88Public procurement 5, Anti-money laundering 2, EU state aid 1
6674GDPR 37, AI Act 8, NIS2 7, Working Time Directive 3, ePrivacy Directive 2, EU state aid 2, CBAM 1, Cyber Resilience Act 1, Data Act 1, Digital Markets Act 1, Digital Services Act 1, Other EU 1, Swiss FADP 1
1993GDPR 5, India DPDP Act 4, Swiss FADP 4, China PIPL 2, CBAM 1, ePrivacy Directive 1, United Kingdom 1, United States 1
699Singapore 6
25124DORA 9, GDPR 4, AI Act 2, Cyber Resilience Act 2, Digital Markets Act 2, United States 2, Digital Services Act 1, EU state aid 1, India DPDP Act 1, Working Time Directive 1
1125GDPR 1
24149DORA 21, AI Act 1, GDPR 1, NIS2 1
2151Other 2
30181DORA 7, United Kingdom 6, Other 3, AI Act 2, Data Act 2, Digital Services Act 2, ePrivacy Directive 2, NIS2 2, Public procurement 2, China PIPL 1, GDPR 1

Our first successful proof of concept, on immigration law, came in May 2026, and we demoed it live at two Python meetups that month.

On 16 November we published 66 rule sets at once. They had built up before the public release; the earliest was first written on 2 July. Their individual writing dates are not in the public history, so the slope leading up to 16 November is drawn as a straight ramp from 2 July. It shows that the work came before publication, not when each rule set was written.

The rules on GitHub

Provision tracking

Where a rule set has a provision-tracking ledger (so far the first 8), every unit of the statute it covers is accounted for: every article, paragraph and point.
A unit is formalised, because a rule cites it.
Or it is deferred, with a stated reason and the consequence for anyone relying on the rule set.
Or it is excluded from scope, by design.

Where a rule set enforces provision tracking, an unaccounted provision fails the check.

A report shows the provision’s own text on the left, and the claim made about it on the right: the rule’s quotation, or the deferral’s reason and consequence.
Each row is colour-coded: formalised, deferred, deferred as an expansion beyond scope, unaccounted, or contradicted.
The report is built from the ledger alone, so what you read is exactly what the check scored.

How traceability to the statute is checked

Lawyers in the loop

Legal software usually has to be built around lawyers or other legal professionals being in the loop.
They must review, override and decide.
Our systems are built for that way of working.

Reasoning traces and proof-trees make that possible.
Prolog is ideal for this.

Legal reviewers can check the rules once, using worked examples to validate that the system is making the same decisions they would.
For any single conclusion, they can inspect the chain of rules behind it.
Proof-trees can highlight decisions that require human review.

Any reasoning that needs human review is marked as such and the system is designed to ensure that a legal professional reviews and approves or overrides all such decisions.

Where the law turns on judgement, such as “likely to result in a risk”, the engine flags it for a lawyer instead of guessing.

We also apply our frontier techniques to deal with open-textured predicates: Proof-Route Decomposition (PRD) and Cross-Referencing Proof Resolution (CRPR).

Step 1, CRPR: for each open term search the act, then the decree, then administrative rules; each term ends resolved, partial or open. Step 2, PRD: split what remains open into proof routes, each with a category, ordered checks, a combining rule, a don't-know rule per check and an approval status; checks run on a user, document, lookup or decide channel; routes are model proposed, then lawyer approved or lawyer rejected; don't know never counts as no

Open-textured terms, in two steps. CRPR searches the legal instruments for an answer. PRD splits what remains into proof routes that a lawyer approves or rejects. The DECIDE channel is at design stage.

Open standards

We support open standards.
These are implemented and tested today:

Where an EU act has no Formex edition, we read its EUR-Lex XHTML rendering. That works for the acts we have pinned. It is not a general EUR-Lex parser.

We plan to support every legal markup format we need to read, including ELI, USLM and LegalRuleML.
We identify EU acts by CELEX.

See it applied: GDPR breach notification, our first product