Skip to content

feat(compliance): PCI/saude field patterns + learned anti-generic (#1318, #1327) - #1345

Merged
FabioLeitao merged 2 commits into
mainfrom
fix/1318-1327-compliance-patterns-field-generalization
Jul 27, 2026
Merged

FabioLeitao merged 2 commits into
mainfrom
fix/1318-1327-compliance-patterns-field-generalization

Conversation

@FabioLeitao

Copy link
Copy Markdown
Collaborator

Summary

Closes #1318
Closes #1327

Test plan

  • uv run pytest tests/test_compliance_field_patterns_1318_1327.py tests/test_learned_patterns.py tests/test_compliance_samples.py -q
  • ./scripts/check-all.sh --enforced green

…1327)

Enrich public compliance samples with synthetic column-header regex only:
PCI tokenized metadata (scope reduction), PAN/CVV/expiry/track; CID-10 and
health-plan columns for brazil_saude; LGPD address components; FELCA minor
prefixed columns. Bilingual terms and recommendation_overrides preserved.
…1327)

Expand _GENERIC_TERMS for migration/audit metadata; add separate *_log
suffix check (exact frozenset cannot express suffix). Synthetic tests for
PCI tokenized table, CID column, geoloc/minor detection, and learn noise.
Update compliance-samples README (EN + pt-BR).
@FabioLeitao
FabioLeitao merged commit 329adb7 into main Jul 27, 2026
18 checks passed
@FabioLeitao
FabioLeitao deleted the fix/1318-1327-compliance-patterns-field-generalization branch August 28, 2026 17:35
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

1 participant