RFC-051: Facts and Competence in the Law Format

ProposedImplemented
Depends onRequired by

Context

The law format could not express two things.

  • An article requires that a fact exists. “Een gehandicaptenparkeerkaart wordt niet afgegeven alvorens een geneeskundig onderzoek heeft plaatsgehad” (Regeling gehandicaptenparkeerkaart art. 2 lid 1): no parking card for disabled people is issued before a medical examination has taken place. The examination is not a decision, and nobody applies for it. So it fits no produces item (RFC-045).
  • An authority other than the one that decides is competent. An earlier card may have been issued by another municipality or by the CBR (art. 2 lid 2; BABW art. 49). The competent_authority of an article names one authority: the one that decides (RFC-002). It had no room for the others.

Decision

1. A fact an article requires

A requires entry may name a fact and list the parameters it holds. The law says what the fact holds, so every authority that establishes the fact records the same parameters. The entry does not say when the fact arises. The fact sits on the article that defines it. Here that is art. 3 lid 1, which says who carries out the examination.

# Regeling gehandicaptenparkeerkaart, art. 3 machine_readable: requires: - fact: geneeskundig_onderzoek_verricht parameters: [bsn_aanvrager, datum_onderzoek, verricht_door] competent_authority: - name: Gemeentelijke Gezondheidsdienst type: CATEGORY - name: vanwege het gemeentelijk gezag aangewezen deskundige type: CATEGORY

The loader refuses a rulework when:

  • a fact has no parameters;
  • a parameter of a fact is not a parameter of the article;
  • one requires entry holds a fact and another provision;
  • two facts have the same name.

2. Competence on an open term and on a fact

An open term and a fact may each carry their own competent_authority, in the shape of RFC-002: one named authority, or a list. An open term is a term the law leaves to someone else to fill in. Competent Authority uses the parking-card term as its example.

  • On a term, competent_authority says who may answer the term. On a fact, it says who establishes the fact. A cell is an organization that keeps its own chronicle and answers questions from it. It records a fact only when the fact names that organization. A fact without competent_authority may be recorded by any cell.
  • A term that reads a fact must name the fact’s competent authorities again, because the engine does not link the term to the fact. Whether it should is an open question.
  • On the article, competent_authority still says who decides, and it names one authority. A list there would mix deciding with answering. A # reference stays allowed on the article (Wlz art. 2.1.1).
  • The loader refuses a list on an article, an empty list, a # reference on a term or a fact, and competence on a requires entry that has no fact.

3. One value from several answers

In the first version, several competent authorities could each give an answer for the same term. combine on the term merged those answers into one value. It sat on the term because the law decides how those authorities weigh against each other. The values were OR, AND, ADD, MIN and MAX, and the one chosen had to fit the type of the term.

The loader refused combine in two cases:

  • on a term without competent authorities, because then only one authority is asked;
  • with the value ONLY, because two answers without a combine already made the execution fail.

Note (2026-10-27): #1828 removed combine on a term, and schema v0.8.13 no longer has it. The engine asks one cell for a question, and more than one competent cell in one call is an error (RFC-048 §4). How one question would reach several actors of a category is an open question.

4. Reading what another actor establishes

A law reads such a value as an output of the article that establishes it, with source.regulation (RFC-007). The law names a role. It never names a cell, a chronicle or a register.

When a cell answers the term, the policy of the deciding authority binds the term to that answer. Wherever that binding runs, the engine asks the cell that the term names (RFC-048 §2 and §4). How a cell records is in RFC-046.

Why

Benefits

  • The fact and the competence are written in the terms of the law. A jurist does not need to know what a cell is.
  • The law names a role. A municipality, the CBR or a GGD answers because the law makes it competent.

Tradeoffs

  • A fact and the term that reads it both name the same authorities.

Open questions are listed in Open Questions in Chronolexography.

Alternatives Considered

  • An EXECUTOGRAM item in produces. This was built and dropped. A fact is not a besluit, and the item put chronolexography vocabulary in the law format.
  • Fact streams declared with the cell (executogrammen/, schema v0.8.6) or in chronicles/ (RFC-022 §1.3). This was built and dropped, because the cell would then give the shape of a fact instead of the law.
  • answered_from on the term that reads the fact. That is a new word for what source.regulation already says.
  • A cell id in source.regulation (RFC-022 §4.2). The law would then name a cell instead of a role.
  • A list of authorities on the article. That mixes deciding with answering.

Implementation

Schema v0.8.7 adds fact, parameters and description on requires. Schema v0.8.8 adds competent_authority on a term and on a fact, and combine on a term, which v0.8.13 removes again. The law model has ArticleRequirement::fact, ArticleRequirement::competent_authority, OpenTerm::competent_authority, CompetentAuthority::List, with the checks in load_check::reject_malformed_facts and load_check::reject_misplaced_competence. The corpus has Regeling gehandicaptenparkeerkaart art. 2 and 3. fictief_beleid_vestiging_obs_de_klimop art. 1 requires the fact vestiging, because no other article in the corpus does.

References

  • Regeling gehandicaptenparkeerkaart (BWBR0012625) art. 2 and 3; BABW (BWBR0004826) art. 49
  • Competent Authority

RegelRecht

An exploration into transparent, executable legislation, and one of the three projects in the starting selection of the Nederlandse Digitale Dienst.

Links

GitHub repository
How it works
Demo walkthrough
Stay informed
Roadmap (Dutch)
Documentation
Research
Basiswerk recht (Dutch)

Contact

regelrecht@minbzk.nl

Part of

Nederlandse Digitale Dienst
Ministry of Economic Affairs and Climate Policy