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.
GDPR59 of 99 articles (60%) · 54 rule setsFirst published Latest addition
Each square is one article of the GDPR. Filled: cited by at least one published rule set.
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899DORA38 of 64 articles (59%) · 38 rule setsFirst published Latest addition
Each square is one article of the DORA. Filled: cited by at least one published rule set.
12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364AI Act55 of 113 articles (49%) · 13 rule setsFirst published Latest addition
Each square is one article of the AI Act. Filled: cited by at least one published rule set.
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113NIS217 of 46 articles (37%) · 10 rule setsFirst published Latest addition
Each square is one article of the NIS2. Filled: cited by at least one published rule set.
12345678910111213141516171819202122232425262728293031323334353637383940414243444546Public procurement11 articles cited · 6 rule setsFirst published Latest addition
Swiss FADP17 articles cited · 5 rule setsFirst published Latest addition
ePrivacy Directive13 of 21 articles (62%) · 5 rule setsFirst published Latest addition
Each square is one article of the ePrivacy Directive. Filled: cited by at least one published rule set.
123456789101112131415161718192021India DPDP Act11 of 44 sections (25%) · 5 rule setsFirst published Latest addition
Each square is one section of the India DPDP Act. Filled: cited by at least one published rule set.
1234567891011121314151617181920212223242526272829303132333435363738394041424344Working Time Directive12 articles cited · 4 rule setsFirst published Latest addition
Digital Services Act8 of 93 articles (9%) · 4 rule setsFirst published Latest addition
Each square is one article of the Digital Services Act. Filled: cited by at least one published rule set.
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293China PIPL29 of 74 articles (39%) · 3 rule setsFirst published Latest addition
Each square is one article of the China PIPL. Filled: cited by at least one published rule set.
1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374Data Act17 of 50 articles (34%) · 3 rule setsFirst published Latest addition
Each square is one article of the Data Act. Filled: cited by at least one published rule set.
1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950Cyber Resilience Act10 of 71 articles (14%) · 3 rule setsFirst published Latest addition
Each square is one article of the Cyber Resilience Act. Filled: cited by at least one published rule set.
1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071Digital Markets Act4 of 54 articles (7%) · 3 rule setsFirst published Latest addition
Each square is one article of the Digital Markets Act. Filled: cited by at least one published rule set.
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354Anti-money laundering2 articles cited · 2 rule setsFirst published Latest addition
Article Rule sets that cite it 51 eu/aml/amlr_beneficial_ownership_threshold,eu/aml/amlr_bo_chain52 eu/aml/amlr_beneficial_ownership_threshold,eu/aml/amlr_bo_chainCBAM2 of 36 articles (6%) · 2 rule setsFirst published Latest addition
Each square is one article of the CBAM. Filled: cited by at least one published rule set.
123456789101112131415161718192021222324252627282930313233343536Article Rule sets that cite it 2 eu/cbam/de_minimis,eu/cbam/origin_exclusions3 eu/cbam/de_minimis,eu/cbam/origin_exclusions
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.
Show as a table
| Date | Added | In all | Added, by law |
|---|---|---|---|
| 8 | 8 | Public procurement 5, Anti-money laundering 2, EU state aid 1 | |
| 66 | 74 | GDPR 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 | |
| 19 | 93 | GDPR 5, India DPDP Act 4, Swiss FADP 4, China PIPL 2, CBAM 1, ePrivacy Directive 1, United Kingdom 1, United States 1 | |
| 6 | 99 | Singapore 6 | |
| 25 | 124 | DORA 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 | |
| 1 | 125 | GDPR 1 | |
| 24 | 149 | DORA 21, AI Act 1, GDPR 1, NIS2 1 | |
| 2 | 151 | Other 2 | |
| 30 | 181 | DORA 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.
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.
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).
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:
- ISO Prolog, ISO/IEC 13211-1. Clausal Prolog is measured against the public conformity tables on Ulrich Neumerkel's ISO Prolog pages, not claimed as conformant. On Conformity Testing I: Syntax, measured on 24 October 2026 (Clausal commit 51d0c64e), 358 of its 366 rows pass, 5 fail and 3 cannot be tested automatically.
- ISO Prolog output. Our generated ISO Prolog is tested on Scryer Prolog and Trealla Prolog.
- Akoma Ntoso 3.0 (OASIS LegalDocML). We read it: it is the format our provision units are read from.
- Formex 4 (EU Publications Office). We read it, as published for EU acts.
- CELEX numbers (EU document identifiers). We use them to fetch and pin EU acts.
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.