Notable changes to the phileas-redact package, most recent first.
- The
phEyefilter now performs local, on-device GLiNER inference whenphEyeConfiguration.modelPathpoints at a local model directory (the exported ONNX model, its tokenizer, and the GLiNER config). Local inference runs offline with no remote endpoint call, and takes precedence overendpointwhen both are set.labelsis the GLiNER detection prompt, and a singlethreshold(default0.5) is the minimum span confidence, with per-labelthresholdsstill supported for back-compat. This matches the redaction policy schema 1.1.0phEyeConfigurationcontract and what PhiSQL'sDETECT PHEYE ... MODEL '<path>'compiles to. Theglinerdependency remains an optional extra, and the previous separatevocabPathrequirement is removed. - The custom
identifierfilter now supports an optionalvalidator. The validator runs a named, built-in check on each regex match and keeps the match only if the check passes, so a generic identifier can reject format-valid but checksum-invalid values without embedding any executable code in the policy. The validator may be written as a string ("validator": "luhn") or as an object with anameand optionalparams. An unknown or not-yet-implemented validator name is a policy error rather than being silently ignored. This is the parity port of the Phileas (Java) validator field and requires redaction policy schema 1.1.0. - Added the
luhnidentifier validator (standard mod-10 Luhn checksum), a parity port of the Phileas (Java) implementation. - Added the
mod11identifier validator (weighted-sum mod-11 check digits) withcpfandcnpjvariants for the Brazilian CPF and CNPJ. - Added the
mod97identifier validator (control derived from the value mod 97) withibanandnirvariants (the French INSEE/NIR includes Corsica substitutions). - Added the
mod23-letteridentifier validator (control letter from a 23-entry table) for the Spanish DNI and NIE. - Added the
es-cifidentifier validator for the Spanish CIF (organization tax ID). - Added the
de-steuerididentifier validator for the German tax ID (Steuer-ID), using the digit-repetition rule and the ISO/IEC 7064 MOD 11,10 check digit. - Added the
de-personalausweisidentifier validator for the German ID card number (ICAO 9303 7-3-1 check digit). - Added the
bic-structuralidentifier validator for SWIFT/BIC codes (ISO 9362 structure with a valid ISO 3166 country segment).