NormEngineer
Menu

AI agent for norm engineering

Reads the legal act.Writes its normsin the DSL you need.

The NormEngineer agent reads an EU legal act in full, plans the work, extracts each norm with its verbatim source quote, verifies every quote against the act and reviews the result in a legal-review step. It writes the norms in one of eleven DSLs, the formal languages of rules as code and contracts, checked with the DSL’s official toolchain wherever one exists.

The NormEngineer agent at work

Brief

New extraction

Legal act
GDPR · 32016R0679
Version
Original text, English
Target DSL
LOMO 1.1
Focus
Whole act

Cost estimate and spending limit shown before it starts.

Plan

The agent’s plan

  1. Read 99 articles
  2. 48 extraction tasks
  3. Verify every source quote against the act
  4. Check the LOMO expectations and the norm set
  5. Legal review of the result
  6. Check the file with LOMO’s official SHACL shapes

Work log

Completed in 46 minutesUTC

  1. Loaded 32016R0679: original text in English, 99 articles
  2. Read the whole act
  3. Planned the extraction of 99 articles in 48 tasks
  4. Extracted norms from Art. 5–11: found 34 norms; all source quotes verified
  5. Extracted norms from Art. 12–15: found 66 norms; all source quotes verified
  6. Repaired 1 issue in Art. 44–49 found by the checks
  7. Finished 48 tasks; no source quote rejected
  8. Checked the norm set: 1 conflict flagged
  9. Legal review: dropped 15, fixed 19, added 22
  10. Wrote LOMO 1.1: 852 norms; official SHACL shapes passed

10 of its steps · 73 model requests

Verified output

lomo.lomo.ttl

DSL
LOMO 1.1
Norms
852, each with its source quote
Graph
2,728 nodes · 3,474 edges
Check
official SHACL shapes · valid

AI-generated, not legal advice.

A stored extraction of the GDPR into LOMO 1.1: its brief, plan, work log and result, from the events it recorded.

One norm, eleven DSLs

The same obligation, written eleven times.

“Financial entities shall report major ICT-related incidents to the relevant competent authority as referred to in Article 46 in accordance with paragraph 4 of this Article.”
DORA Art. 19(1) · ELI
Modality
obligation
Bearer
Financial entity
Condition
a major ICT-related incident has occurred at the financial entity
Addressed to
Competent authority
catala.catala_enChecked by NormEngineer's structural validator · valid
# REGULATION (EU) 2022/2554 OF THE EUROPEAN PARLIAMENT AND OF THE COUNCIL of 14 December 2022 on digital operational resilience for the financial sector and amending Regulations (EC) No 1060/2009, (EU) No 648/2012, (EU) No 600/2014, (EU) No 909/2014 and (EU) 2016/1011

Norms extracted by NormEngineer from CELEX 32022R2554, awaiting legal review. The scope `Norms` decides which of them apply to a case; facts that are not given are taken as not established.

```catala-metadata
declaration scope Norms:
  # The party in the case is Financial entity
  context party_is_financial_entity content boolean
  # a major ICT-related incident has occurred at the financial entity
  context a_major_ict_related_incident_has_occurred_at_the_financial content boolean
  output art19_p1_n1_applies condition

scope Norms:
  definition party_is_financial_entity equals false
  definition a_major_ict_related_incident_has_occurred_at_the_financial equals false
```

## Article 19

### Art. 19(1): art19.p1.n1

“Financial entities shall report major ICT-related incidents to the relevant competent authority as referred to in Article 46 in accordance with paragraph 4 of this Article.” ([Art. 19(1)](http://data.europa.eu/eli/reg/2022/2554/art_19/par_1/oj))

Obligation of Financial entity: report major ICT-related incidents to the relevant competent authority referred to in Article 46 in accordance with Article 19(4) (to Competent authority).

Asset: major ICT-related incident.

```catala
scope Norms:
  label art19_p1_n1 rule art19_p1_n1_applies
    under condition party_is_financial_entity and a_major_ict_related_incident_has_occurred_at_the_financial
    consequence fulfilled
```

## Tests

```catala
#[test]
declaration scope TestArt19P1N1:
  output when_it_applies content Norms

scope TestArt19P1N1:
  definition when_it_applies equals
    output of Norms with {
      -- a_major_ict_related_incident_has_occurred_at_the_financial: true
      -- party_is_financial_entity: true
    }
  assertion when_it_applies.art19_p1_n1_applies
```

Real output: norm art19.p1.n1 from a stored DORA extraction, written in each of the eleven DSLs.

Why a specialist agent

One job, done in steps, each step checked.

The agent does not ask a model once for a whole act. It plans, extracts, checks and reviews, and keeps the record of each step with the extraction.

Every check named for what it is

Every file is checked, and you know by what.

On every extraction, the official toolchain checks LOMO 1.1 and RUML 1.0 output. The other 9 DSLs are checked with NormEngineer’s structural validator; for Catala, Logical English, L4, Blawx, Accord Project and Symboleo, NormEngineer’s tests also check sample output with the official toolchain. Each DSL’s page says which.

  • LegalRuleMLstructural validator
  • eFLINTstructural validator
  • ODRL 2.2structural validator
  • LOMO 1.1official LOMO 1.1 SHACL shapes
  • RUML 1.0official RUML 1.0 schema and catalogue rules
  • L4structural validator; in tests: l4 check and l4 verify
  • Catalastructural validator; in tests: catala typecheck and clerk test
  • Logical Englishstructural validator; in tests: LE2 verifier and its test runner
  • Blawxstructural validator; in tests: s(CASP) reasoner on the included tests
  • Accord Projectstructural validator; in tests: Concerto parse, validate and lint
  • Symboleostructural validator; in tests: SymboleoAC validator symboleo-cli

Traceable by construction

Every norm can be read back to the sentence it came from.

A source quote that is not in the article is rejected. Every norm keeps its quote and its provision, with the European Legislation Identifier where the DSL supports it.

“Financial entities shall report major ICT-related incidents to the relevant competent authority as referred to in Article 46 in accordance with paragraph 4 of this Article.”
Norm
art19.p1.n1
The financial entity must report major ICT-related incidents to the relevant competent authority,
when a major ICT-related incident has occurred at the financial entity.

DORA Art. 19(1), the provision it came from, by its European Legislation Identifier:

http://data.europa.eu/eli/reg/2022/2554/art_19/par_1/oj

Ask the agent

Answers computed from the norms, with their sources.

Ask about an extraction in plain language. The agent turns the question into a query over the extraction’s norms, evaluates it, and words the result. Every answer lists the norms it rests on with their source quotes and shows the query, so it can be checked. A question that cannot become a query gets no guess: the agent says it cannot answer it from the norms.

In development. Asking the agent is not open yet. The example query was evaluated over the norms of the stored GDPR extraction into LOMO 1.1; the wording of the answer is ours.

QuestionWhat must a controller do within 72 hours?

One obligation. After becoming aware of a personal data breach, the controller must notify it to the competent supervisory authority without undue delay and, where feasible, within 72 hours, unless the breach is unlikely to result in a risk to the rights and freedoms of natural persons.

Query

  • bearer: Controller
  • modality: obligation
  • deadline: within 72 hours

Rests on 1 norm

art33.p1.n1GDPR Art. 33(1) · Obligation · Controller

“the controller shall without undue delay and, where feasible, not later than 72 hours after having become aware of it, notify the personal data breach to the supervisory authority competent in accordance with Article 55”
Condition
“In the case of a personal data breach”
Deadline
“not later than 72 hours after having become aware of it”
Exception
“unless the personal data breach is unlikely to result in a risk to the rights and freedoms of natural persons”

AI-generated, not legal advice. Questions are charged from the workspace’s credits, like extractions.

Questions and answers

What it reads, what it writes, what it costs.

What is NormEngineer?

NormEngineer is an AI agent for norm engineering. It reads a legal act and writes its norms, the obligations, permissions and prohibitions with their bearers, conditions and exceptions, in the DSL you choose, each norm traced to its source article. It is made for compliance, legal and engineering teams in regulated organisations.

Which DSLs does it write?

11 DSLs: LegalRuleML, eFLINT, ODRL 2.2 and LOMO 1.1 for regulatory compliance; RUML 1.0, Catala, Logical English, L4 and Blawx for rules as code; and Accord Project and Symboleo for contracts.

Which legal texts can it read?

Any EU legal act by its CELEX number, as the original text from the Official Journal or as a consolidated version, loaded from the Publications Office. A workspace can also upload its own born-digital PDF documents, which stay private to that workspace; scanned documents are not supported.

How is each norm traced and checked?

Every norm carries its verbatim source quote and the article it comes from, or the page of an uploaded document, and a quote that is not in the source is rejected. On every extraction, the official toolchain checks LOMO 1.1 and RUML 1.0 output and NormEngineer’s structural validator checks the other DSLs. A legal-review step reviews the norms against the act, and a fidelity report says how fully the DSL expresses each norm.

What does an extraction cost?

EU legal acts and all 11 DSLs are included, with no subscription. You pay per extraction with credits: the model cost plus a fixed margin. Before it starts you see a cost estimate and a spending limit of the estimate plus 20%, the most it can cost. Credit packs: 50 credits for €50 and 100 credits for €100, excl. VAT. How pricing works.

Is the output legal advice?

No. Every extraction is AI-generated and not legal advice. Review by a lawyer is available at extra cost, on request: request legal review.

See what the agent made of DORA.

Open the extractions: every norm as a graph in its DSL’s own vocabulary, the file the agent wrote, and the check it passed.

Or bring another legal act.

With a free account, brief the agent: enter the act’s CELEX number and pick one of the eleven DSLs. The agent extracts the whole legal act into it, each norm traced to its source article and the output checked as above. A whole act takes many model calls, so an extraction takes time and costs money: you pay with credits, and see a cost estimate and a spending limit before it starts. How pricing works

Get started

Rather have us extract a legal act, or need a DSL that is not among the eleven? Request a legal act or request a DSL. We review every request and take on the ones we approve.