PII and Sensitive Data Boundaries
In this article
- Sort the fields of a customer record into classes and decide which ones a model call needs.
- Explain why a stable token like tok_9f2 keeps matching working where a blank or a random value breaks it.
- Name which models, tools and logs may see a sensitive value, and which single tool may turn a token back into it.
- Plant a test value and check that no unapproved model, tool or log receives it.
- Terms defined here: PII, data classification, data minimization, redaction, data tokenization.
Overview
A made-up online shop runs a support agent that reads customer records: name, email, the last four digits of a card, the notes on an order. Much of that is personal data, such as an email address. Every prompt the agent sends, every tool it calls and every trace (the step-by-step record of a request) or log line it writes carries those fields somewhere. Most teams never decide where on purpose, so the email ends up everywhere.
By the end you can sort a record's fields by sensitivity, send the model only what the task needs, swap an email for a stable stand-in so lookups still work, name the one tool allowed to see the real address, and prove with a planted value that nothing else receives it.
Sign in to keep reading
The rest of this article opens with an account. An account also keeps your progress and quiz results on every device, and lets you follow news for up to five topics.
Still to read in this article
- Sorting the record at the door
- What the model gets
- A token that still matches
- Who may see the real email
- Proving no sink leaks
- The rule at work
- Common mistakes
- In production
- Sources
- Check yourself, 13 questions