RFC-045: Submissions and Decisions in the Law Format

ProposedPartially implemented
Depends onRequired by

Context

Leerplichtwet 1969 art. 13a lid 1 lets the head of a school grant leave “op aanvraag”, on application. The article says nothing more about that application. The rules for it are in the Algemene wet bestuursrecht (Awb):

  • Awb 4:2 says what an application must contain.
  • Awb 4:13 says when the decision on it is due.
  • Awb 7:11 says how the authority decides on an objection against the decision.

Art. 13a names none of these articles.

The law format could not express this:

  • Hooks (RFC-007) select the decisions they apply to by legal character. An application is not a decision, so no hook could apply to it.
  • RFC-008 has an AANVRAAG stage. A hook in that stage fires only when a caller runs the decision from that stage, not when someone submits an application.
  • No article could take the decision of another article a second time, as an objection requires.

Decision

The law format records two things: what someone submits, and what the authority decides on it. How a cell records the submission and the decision is in RFC-046. A cell is where one organization records its submissions and decisions. Applications, Decisions and Objections shows all the pieces together.

  1. produces can be a list. An article that yields more than one thing gets one item per type. The type is either a kind of submission (AANVRAAG for an application, BEZWAAR for an objection) or a legal character, such as BESCHIKKING.

    • A submission lists its parameters: what the applicant supplies. Its requests names the decision it asks for.
    • A decision lists its outputs and its derived data.

    Every output belongs to at most one item. An output may belong to no item, but only when a decision in the same article lists its own outputs; such an output is then not part of that decision. The engine computes an output only when something reads it (RFC-043).

  2. A hook can apply to a submission (applies_to.submission). established_by narrows it to the submission one article establishes. Such a hook takes no stage and no decision_type. A hook names either a legal character or a submission, never both.

  3. produces.moment names the date the law counts from. It points at the parameter that holds that date, for example the day the application was received, with its legal_basis. The engine does not read it. A runtime that records submissions does: it fills that parameter with the day it records the submission.

  4. Each item has its own stage. The stage named after the submission kind, such as AANVRAAG, fires the hooks on the submission and computes no decision output. The other stages compute the decision. When a caller runs an article outside any procedure, every hook fires, as before.

  5. A decision gets its inputs from three places, in this order:

    1. the submission;
    2. policy that fills an open term (implements). An open term is a term the law leaves to someone else to fill in;
    3. the authority’s findings (decided_per_case_by). A finding is what the authority itself decides on such a term in a single case. The caller passes findings separately from the parameters.

    When a policy fills an open term, the term gets the policy’s value, and the engine does not ask the authority for a finding. The engine refuses a finding that no article uses. A policy may use the answer of a cell. When the policy wants the authority to judge a case itself, the policy has to say so (RFC-048 §2).

  6. A decision can be taken again. The type decision holds the value of a decision. source.article calls the decision of an article, either by reference or by value. The call reuses the fields and findings of that decision, plus any findings given anew.

  7. An objection is a second submission. Awb 7:11 establishes the objection. It decides on it by calling the contested decision again.

    • The objection is admissible when it is on time and is not against a decision on an earlier objection (taken_on).
    • The objection is founded when an output of the new decision differs from the contested one. A difference in derived data does not count.
# Leerplichtwet 1969, art. 13a produces: - type: AANVRAAG requests: leerplichtwet_1969#13a parameters: [bsn_jongere, eerste_verlofdag, laatste_verlofdag] - type: BESCHIKKING outputs: [verlofdagen, verlof_raakt_eerste_twee_lesweken, verlof_verleend]

Why

Benefits

  • The application exists on its own, as it does in the Awb. A change to Awb 4:2 reaches every application through one new version of the Awb rulework.
  • One article holds both the application and the decision, as the text of art. 13a does.
  • The runtime does not decide whether an objection is founded. Awb 7:11 calls the contested article again, on the facts of the day on which it decides the objection.
  • A runtime that keeps no chronicle can execute the same law.

Tradeoffs

  • Every run of art. 13a also runs Awb 4:2 and 4:13.
  • A hook parameter that the caller does not pass must be required: false.
  • A runtime must run stages to keep the application and the decision apart.

Open questions are listed in Applications, Decisions and Objections.

Alternatives Considered

  • The application as the first stage of the decision, as RFC-008 had it. Its hooks then do not fire when the application comes in, only when the decision runs.
  • The specific law names the Awb (includes: algemene_wet_bestuursrecht#4:2). The legal text does not say this. An author who forgets the line loses the Awb fields without any warning.
  • legal_character: AANVRAAG. An application is not a decision (Awb 1:3).
  • One object with both submission and legal_character. The engine then needed a rule of its own to skip the outputs in the AANVRAAG stage.
  • An id per item, and decides_on on the decision (PR #1689). The law has no such names. The link also points the wrong way: the application asks for a decision, not the other way round. For the objection, a key on Awb 6:4 with a link from 7:11 would add a second key for what requests already says.
  • A separate article for the decision. The text of art. 13a does not split application and decision.
  • Decision inputs as parameters. They would become fields that the applicant fills in.
  • A field per parameter saying who supplies it (origin). Who supplies a value is a matter of process, not of law.

Amended by RFC-055. An amount in a finding (point 5) may have decimals, where the engine accepted only a whole number. It follows the precision the open term declares.

Deviations from earlier RFCs

This RFC departs from three earlier RFCs. Their text stays as it is.

  • RFC-007: a hook on a legal character also matches a produces item with that type.
  • RFC-008: the application is an item of its own, not the first stage of the decision. AANVRAAG remains the stage in which its hooks fire.
  • RFC-022: a decretogram, the recorded decision, is also an item with type: BESCHIKKING.

Implementation

SchemaAdds
v0.8.0produces.submission, produces.moment, applies_to.submission, established_by
v0.8.1produces as a list
v0.8.3BEZWAAR
v0.8.4the type decision, source.article, source.parameters_from, derived

The engine adds hooks on a submission to the hooks index, and has LawExecutionService::execute_stage_at, resolve_article_call, load_check::reject_ambiguous_produces. The corpus has Leerplichtwet 1969 art. 13a, the Awb articles above and BABW art. 49, with scenarios.

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