Policies
One policy per purpose. Each entity type gets an action: redact, mask, pseudonymise, format-preserving tokenise or keep.
Policy and simulation
LLM prompt policy
Text sent to an external model. Identifiers are removed, people get stable tokens so answers can be restored.
policies/llm_prompt.yaml
purpose: llm_prompt
description: "Text sent to an external model. Identifiers are removed, people get stable tokens so answers can be restored."
verifier_threshold: 0.85
vault_ttl_days: 30
reidentify_roles:
- support_agent_l2
- kyc_officer
entities:
aadhaar: redact
pan: redact
gstin: format_preserving_tokenise
ifsc: keep
upi: pseudonymise
voter_id: redact
passport: redact
phone: pseudonymise
email: pseudonymise
person: pseudonymise
address: pseudonymise
org: keepSimulate on a sample
Swaps in the precomputed output for this policy.
Input
SyntheticKYC review for applicant Farhan Siddiqui. PAN LRRPS2991Y matches the name on the application. Passport M9120379 seen and returned. Current address B-404, Lakeview Residency, Powai, Mumbai 400076. Contact farhan.s@example.com, +91 90011 62752. Employer letter from Orbit Logistics Pvt Ltd attached.
Output
Pick a sample and press Simulate.