Pattern catalog
Pattern · pii-redaction
PII & data redaction
Keywords: pii, redact, ssn, credit card, personal data, gdpr, phone number
Jev questions
has_pii · noul
Does this text contain personal identifying information?
pii_type · choice
What kind of personal data is in this text?
sensitivity_level · score
How sensitive is the exposed data?
Who owns what
Code
- You redact SSN and card numbers with a regex pre-scan before the text reaches AI
- You write the audit log in code
Jev
- has_pii as Noul
- pii_type as Choice
- sensitivity_level as Score
LLM
- Summarize the redacted document for reviewers
Guard: if (has_pii || sensitivity_level >= 2) redact(); auditLog();