2026-11-26 15:40 UTC

AI agents draft and red-team proposed rewrites of 30,317 French legal articles

state: seedheat: mediumuncertainty: mediumrelevance: highai-and-law legal-text agent-red-teamingAlexandre MasmejeanNathalie GouailhardouKevin Primicerio

What is this?

A working paper by Alexandre Masmejean, Nathalie Gouailhardou and Kevin Primicerio, dated 10 November 2026, describes AI agents drafting, checking and adversarially reviewing proposed rewrites of 30,317 articles from five French legal codes. Its site reports blind AI audits of the same 1,264 randomly sampled articles found gross coherence defects in 3.5% of rewrites versus 7.5% of existing text, a reported 54% reduction (95% CI: 40–64%). This measures coherence, not compliance with constitutional or EU law; the authors say no lawyer has validated the results. The project says it was inspired by David Lisnard’s 2027 programme, but was neither commissioned nor endorsed by him or his movement. The supplied evidence is the project’s own paper website and a Hacker News listing; independent validation is not provided.

Why it matters

The work demonstrates a potentially scalable workflow for generating and stress-testing large volumes of legal text, with an initial comparative audit suggesting fewer gross coherence defects than in sampled existing text. If validated, such tools could make drafting and review faster or broaden who can prepare reform proposals. But coherence is not legal correctness, and the reported audit does not establish that the proposals are lawful, usable, or ready for adoption.

Current assessment

New: a working paper dated 10 November 2026 reports an AI-agent pipeline applied to 30,317 articles across five French legal codes: agents drafted proposed rewrites, checked coherence and conducted adversarial review. The project website reports a blind AI audit on the same 1,264 randomly sampled articles from the rewrites and existing law: gross coherence defects were 3.5% versus 7.5%, respectively, with a reported 95% confidence interval of 40–64% for the reduction. These are project-reported findings, not independent confirmation in the supplied evidence. The audit does not assess constitutional or EU-law compliance, and the site says no lawyer has validated the results. The work is described as independent and inspired by David Lisnard’s 2027 programme, not commissioned or endorsed by him or his movement. Significance is the demonstrated scope of agent-assisted drafting and adversarial review, not proof that AI can safely write law. Key follow-up questions: how defects were defined and adjudicated, whether the audit protocol is independent and reliable, and whether legal experts find the proposed text compliant and practically usable.

Measured heat

now 0 pts/hpeak 4 pts/hcomments 0/hpeers p10momentum: steady2 platformsage 410h
points/hour across evidence · reading as of 2026-11-27 02:23:58.509736+11:00 · deterministic, not a model opinion

How the heat travelled

11-09 13:00⭐ origin echo-reconstructedThe page identifies itself as the working paper “The Source Code of Law: AI agents rewrite and red-team 30,000 articles of French law,” date
Alexandre Masmejean, Nathalie Gouailhardou, and Kevin Primicerio on blog (echo) · attributed from hn.story.50530249
—
11-17 11:56first on hacker news · published · +190.9hThe Source Code of Law: Agents rewrite and red-team 30k articles of French law
nnx
—
11-17 11:56amplified on hacker news 👑hn.story.50530249
nnx
peak 4 · 0 comments · 99% of case engagement
11-17 12:25our radar first saw it · +191.4hdiscovery anchor: hn.story.50530249—
pace: p26 vs 1845 stories at the 336h mark (now 410h old) — ahead of adap-delegated-authority-protocol-draft (2.0x), behind abmaze-protein-fitness-agent-benchmark (0.7x)

Evidence (2) — ⭐ canonical anchor

sourceobjectauthorscorecomments
🟧 hnThe Source Code of Law: Agents rewrite and red-team 30k articles of French law
Retrieved article excerpt

Open article · Retrieved 2026-11-17T12:26:26.430770+00:00

# The Source Code of Law

AI agents rewrite and red-team 30,000 articles of French law.

Alexandre Masmejean · Nathalie Gouailhardou · Kevin Primicerio

Working paper · 10 November 2026

[Read in English ↗](https://thesourcecodeoflaw.com/papers/source-code-of-law-en.pdf)[Lire en français ↗](https://thesourcecodeoflaw.com/papers/code-source-du-droit-fr.pdf)[Bilingual PDF ↗](https://thesourcecodeoflaw.com/papers/source-code-of-law-bilingual.pdf)

## 54% fewer gross defects

Blind AI audits compared rewritten texts with existing law on the same 1,264 randomly sampled articles, using the same protocol.

Existing law**7.5%**

Rewritten texts**3.5%**

This measures coherence, not compliance with constitutional or EU law. No lawyer has validated the results. 95% CI for the reduction: 40–64%.

About the study

Starting with 30,317 articles from the official LEGI database, AI agents drafted proposals across five major French codes, checked their coherence and conducted an adversarial review.

This independent study uses reforms inspired by David Lisnard’s 2027 programme. It was neither commissioned nor endorsed by him or his movement. The method is intended to be adapted to other programmes.

## Endorse alexmasmej on arXiv

Eligible to endorse in cs.CY (Computers and Society)? Help Alexandre Masmejean submit this paper to arXiv.

[Endorse on arXiv ↗](https://arxiv.org/auth/endorse?x=O4ML3D)

Code `O4ML3D`Copy

Endorsement is not peer review. [How it works ↗](https://info.arxiv.org/help/endorsement.html)
nnx40
🟧 echo.blog ⭐The page identifies itself as the working paper “The Source Code of Law: AI agents rewrite and red-team 30,000 articles of French law,” dateAlexandre Masmejean, Nathalie Gouailhardou, and Kevin Primicerio——

Interpretation history

Decision trace