Reference and concept hygiene

From MinBZK/regelrecht · View interactive version

Reference and concept hygiene is an AI agent skill from the GitHub repository MinBZK/regelrecht. Builds and audits a concept-ontology for a regelrecht corpus to decide and verify reference types — cross-law source-binding vs intra-law source-binding vs open-norm leaf vs external-fact leaf — and to catch concept conflation across laws. Core principle: a value's reference type is fixed by WHO der

How to use this skill

Skill file

Cross-law Concept & Binding Ontology

Two recurring questions in a cross-law model: (1) what reference type should a value be —

a cross-law source-binding, an intra-law source-binding, an open-norm leaf, or an external-fact

leaf — and (2) is a given binding sound, given that the same term can denote a *different

concept* in a different law. This skill answers both by building a concept-ontology and auditing

references against it.

Core principle — type follows derivation, soundness follows concept identity

The reference type of a modeled value is fixed by who derives it. A source-binding is sound

only when the producer and the consumer denote the same concept. The lexical surface — the

word in the text: — is not the concept: two laws can use one word for different concepts

(false friends), or different words for one concept (synonyms). The engine runs a conflated

binding without complaint; only concept analysis catches it.

Reference-type decision procedure

For each modeled value, ask in order:

  1. Does another regulation derive it (an endpoint computes it)? → cross-law source-binding.
  2. Does the same regulation derive it in another article? → intra-law source-binding.
  3. Does the law delegate the determination to a factual or discretionary judgment ("naar de

omstandigheden te beoordelen", "naar het oordeel van", "zo nodig geschat" — an open norm)? →

open-norm leaf (an injected judgment; the legislator opened the slot).

  1. Brute fact that no regulation derives and the law does not delegate as an open norm? →

external-fact leaf.

Anti-patterns to flag:

input. Smell: a leaf whose name matches an existing endpoint, or a value the text grounds in

"vastgesteld op grond van [andere regeling]".

determination (¬X) modeled as an independent leaf, so the model permits X ∧ ¬X. Derive it from

the single determination instead.

The ontology — cluster by concept, not by word

The discriminator is the determination-mode, not the lexeme. For each term the corpus reckons

with, tag its mode:

legality predicate);

Then cluster surface forms into canonical concepts by mode + legal referent, not by spelling:

register-based in statute A but a factual "naar de omstandigheden"-weging in statute B is a

different concept. Binding A's predicate to B's endpoint is a conflation even though the words

match and the engine runs.

decompose into the part-bindings.

Binding-soundness audit

For each existing source-binding P (law A) ← E (law B):

PART/WHOLE mismatch; decompose.

Across the corpus:

single-source-of-truth and lost mutual-exclusion invariant. Derive the rest from one determination.

Classification of each finding

| Bucket | Meaning | Action |

|---|---|---|

| structural-fix | the reference type or binding is mechanically wrong vs the derivation/concept facts | rebind / derive from one source / decompose |

| concept-question (jurist) | whether two concepts are legally equivalent is a normative call (e.g. "do we accept a register as proxy for a factual open norm?") | jurist decides; document the proxy-with-rationale or reject |

| accept-with-rationale | a deliberate proxy (e.g. a register as best machine-readable indicator of a factual norm) | keep — but model the register as an indicator that feeds the open-norm weging, never as its silent replacement; annotate |

Cardinal rule: a register may inform a factual open-norm determination but must not silently

replace it — that substitution is the canonical conflation (mirrors the standard "naar de

omstandigheden te beoordelen" + "een enkele inschrijving is niet voldoende"-doctrine). Keep the model

symmetric: if one side of a stelsel models a concept factually, the mirror side must too, unless a

documented decision says otherwise.

Output

endpoint/leaf id`.

list of false-friend edges (lexical match, concept mismatch), orphan plain-params, complement

re-entries, and duplications.

accept-with-rationale), with a jurist-question per concept-equivalence call.

Verification (no hunches)

Confirm a "derived" claim by locating the producing endpoint; confirm a conflation by showing the

determination-modes differ, not by the wording. After a rebind/derive/decompose: schema-validation

and cross-law-integriteit stay green, and end-to-end outcomes are unchanged where the concept was

already equivalent (anti-masking: flip a source fact, see the outcome move). A rebinding that changes

outcomes means the concepts were genuinely different — that is a finding, not a regression.

Relation to other skills

outcome)? Orthogonal to this skill, which asks whether the references are the right type and

whether bindings respect concept identity. Run fidelity first (terms letter-true), then this

(terms wired and clustered right).

skill decides which binding type and whether a binding is conceptually sound.

layer; this skill adds the conceptual layer on top (same-concept binding, false-friend

detection).

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.