RFC-046: What a Cell Records

ProposedPartially implemented
Depends onRequired by

Context

RFC-022 takes its vocabulary from the Chronolexografie position paper. In that vocabulary a cell is an organization that keeps its own chronicle and answers questions from it. The chronicle is a list of dated recordings, each of which is a chronolexogram. A submission, a decision and a recorded fact are all chronolexograms.

An earlier proof of concept put a block of recording rules in each article that establishes a submission or a decision. Most of that block repeated what the law already said. This RFC decides where the recording code lives, and where a recording gets its shape from.

Decision

Chronolexography shows this at work.

  1. Recording is an optional layer. It lives in its own crate, packages/cel. That crate depends on the law and on the engine. Neither of them depends on it, so another runtime may record the same law in a different way.

  2. A cell is a directory that holds cel.yaml. The file says who the cell is, and which answers it gives through which reduction (answers, RFC-048 §1). A reduction is a rulework that reads the chronicle and gives named answers. The file is only a catalogue. It holds no logic. The reductions themselves sit beside it, under reductions/.

    The law names a role, but it cannot say which organization a given cell is. So cel.yaml is the only configuration a cell has. The engine compares the identity in it with the competent_authority of the law (RFC-051). A cell without cel.yaml does not open.

  3. The law gives each recording its shape. The cell refuses any field that is not in that shape, and any value of the wrong type.

    • A submission holds the parameters of its produces item and of the hooks that apply to it, minus the moment (RFC-045). It holds no outputs. What its article and those hooks give, such as the last day of the decision period (Awb 4:13), follows from its fields and the law in force on recorded_on, so the cell computes it when asked.
    • A decision holds its inputs, including the findings, and its outputs. A finding is what the authority itself decides on an open norm in a single case.
    • An executogram records a fact that an article requires, such as a completed medical examination. It holds the parameters of that fact (RFC-051).
  4. A chronolexogram does not repeat the law. Its keys follow RFC-022 §1.3 (recording_actor, fields, and basis for the article it is recorded under). It stores nothing the law already says: that comes from the version of the law in force on recorded_on (Chronolexography). Numbers are stored without loss of precision (regelrecht_law_model::stored).

  5. The cell guards the chronicle. The chronicle only grows, and its entries are in date order. One submission gets one decision. A decision can be replaced at most once; the Awb has no such rule, and this RFC adds it. Chronolexography lists every refusal.

  6. A decision is explained by taking it again. The cell does not store an explanation. It retakes the decision on the day it was taken, with the law and the chronicle as they were then (Chronolexography). This assumes that every source can say what it knew on a given day.

{ "id": "019a1b2c-…", "kind": "AANVRAAG", "basis": "leerplichtwet_1969#13a", "recording_actor": "obs_de_klimop", "recorded_on": "2026-10-13", "moment": { "parameter": "datum_ontvangst", "on": "2026-10-13", "declared_by": "algemene_wet_bestuursrecht#4:13" }, "fields": { "eerste_verlofdag": "2027-02-01", "adres_aanvrager": null } }

Why

Benefits

  • A rulework holds no recording vocabulary. A jurist can read it without knowing what a cell is.
  • When an Awb article starts asking for one more field, every recording follows through one new version of the Awb rulework.
  • One record_submission and one decide serve every procedure. A second case needs rulework and tests, but no new code.

Tradeoffs

  • The cell does not store which provision each field came from. To learn what a decision used, the cell has to take it again.
  • The cell computes what follows from a submission again for every question. After a correction of the model, the answer is the corrected one, not the one given at receipt.

Open questions are listed in Open Questions in Chronolexography.

Alternatives Considered

  • A chronolexography block in the law (RFC-022 §3.2 extensions). This puts recording vocabulary in a rulework, and most of the block repeats the law.
  • A list of fields in the cell configuration, or a stream of recordings in chronicles/ (RFC-022 §1.3). Both drift away from the law when it changes.
  • The legal basis per field (field_basis, output_basis). This repeats the law in every entry.
  • The cell runs the objection procedure (record_objection, decide_on_objection). That put Awb 7:11 in Rust code. The objection is now rulework (RFC-045).
  • A decision taken ex officio (Cell::decide_ex_officio), for the holidays a school sets itself. Dropped on 19 October 2026, because the holidays are policy, not a decision.
  • The place of establishment as part of the cell’s identity. A place can change over time, so it is recorded as an executogram instead (decided 18 October 2026). The paper defines an executogram as “de vastlegging van daadwerkelijke levering of afhandeling”, which fits a place of establishment only loosely. The paper does call its three types a first enumeration, so the list is not closed.

Amended by RFC-055. Numbers are exact fractions, so the stored form of point 4 gains a notation for a fraction beside the one for a decimal. An amount a cell records may have decimals and follows the precision its field declares.

Implementation

In packages/cel, shape derives the fields from the law. The cell offers Cell::record_submission, submission_outputs, decide, record_executogram, explain and findings. Chronicle holds the Grams, and identity::read reads cel.yaml. The cells are under corpus/cells/, the tests in packages/cel/tests/.

Notes

  • November 2026: a submission and a decision now list the rulework versions they were taken under (law_versions: per rulework its $id, the valid_from of the version and a hash of its content). A version is a reference to the law, so point 4 still holds. A replay still takes the decision under the law the corpus now holds in force on that day; the versions let it say that the corpus changed since, and which rulework did. See Chronolexography.

References

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