Expand description
§klieo-pii-patterns
Shared catalogue of regex source strings + their labels, consumed by
klieo-ops::redactor::DefaultRedactor and
klieo-ops-evidence-verify::checks::check_redactions. Single source of
truth — patterns added here are picked up by both consumers
automatically.
Consumers compile each entry with regex::RegexBuilder::case_insensitive(true).
§Ordering invariant
PATTERNS is iterated in declaration order by DefaultRedactor so the
[REDACTED:<LABEL>] token produced by one pass cannot collide with a
subsequent pattern. Specifically: BIC must precede IBAN because the
IBAN replacement token contains characters that the BIC pattern would
otherwise re-match. Do not reorder without verifying redactor tests.
Modules§
- labels
- Pattern labels exported for downstream verifier code that wants to
reference a subset of labels by name (e.g. evidence-verifier bit-4
emits
"unredacted <label>"messages).
Constants§
- PATTERNS
- PII pattern catalogue. Iteration order is load-bearing — see the module-level “Ordering invariant” section.
Type Aliases§
- Pattern
Entry - Catalogue entry:
(label, regex_source).