Short overview of RegelRecht's execution-first validation method and the generate/validate/reverse-check loop.
RegelRecht uses an execution-first approach to validate machine-readable law interpretations. This page is a short overview; for the research background and the full argument, see RegelRecht Validation: From Analysis-First to Execution-First.
Traditional approaches analyze law text extensively before writing any code. RegelRecht inverts this:
Errors surface immediately through execution rather than after lengthy analysis. Test cases from the Memorie van Toelichting (MvT) provide ground truth. Each cycle improves the interpretation based on actual results. And after generation, every element is checked against the source text to catch hallucinated logic.
Create machine_readable sections for law articles, defining inputs, outputs, and operations.
Every element in the machine-readable interpretation is traced back to the original legal text. Any logic that cannot be grounded in the law is flagged as potentially hallucinated.
The MvT is the explanatory memorandum that accompanies Dutch legislation. It contains:
These examples serve as the primary test cases for machine-readable interpretations.
An exploration by Bureau Architectuur of the Dutch Ministry of the Interior into the possibilities of transparent, executable legislation.
Bureau Architectuur
Ministry of the Interior and Kingdom Relations