Why conversation history needs its own controls
A model call is stateless. The application rebuilds the prompt on every turn by appending earlier user messages, assistant replies, retrieved documents and tool outputs. A name or account number typed on turn one is resent on turn twenty unless something removes it. Each resend is a new exposure to the model, and each copy written to a session store, memory feature, log or trace is a new retention obligation.
Treating this history as a governed data store means asking the same questions you would ask of any store that holds personal data: what enters it, how long it stays, who can read it, and how deletion is demonstrated. The principles of data minimization and storage limitation, familiar from GDPR, translate directly to this problem.
Map where PII accumulates
Before applying any control, identify each place where session content is copied. In a multi-turn session, PII travels through the following locations.
| Location | What happens |
|---|---|
| Context assembly | Prior turns, retrieved documents and tool outputs are re-appended and resent each turn. |
| Session storage | Full transcripts are persisted so the session can resume. |
| Long-term memory | Summaries and extracted facts outlive the session. |
| Logs and traces | Prompts and responses are copied into observability systems. |
| Tool-call payloads | Arguments and results carry PII to downstream systems. |
Control options and their tradeoffs
Apply controls in layers, at each location identified above.
- Map. Record every place session content is copied.
- Detect and redact or tokenize. Handle PII before content is persisted or resent.
- Bound context size and retention. Limit how much history is carried forward and how long stored copies remain.
- Restrict access. Control who and what can read stored conversation content.
- Enforce at runtime. Apply these rules with logged policy decisions.
No single control is enough, because detection misses some PII and redaction reduces context fidelity.
Enforce the controls at runtime
Enforce these rules at runtime, and log each policy decision (allow, redact or block) for every model call, memory write and tool call. The evidence listed at the end of this guide depends on these logged decisions.
Limitations to design around
- Detection misses some PII. Measure detection recall and false-negative results on your own data, and define a process for handling misses.
- Redaction reduces context fidelity. Content that is removed or replaced is no longer available to the model, so weigh each redaction decision against the quality of later turns.
Evidence to retain and questions to ask
- Policy version and allow, redact or block decision for each model call, memory write and tool call
- Redaction and tokenization events recorded by entity type and action, not raw value
- Detokenization requests with requester identity, purpose and outcome
- Retention and deletion job results for session stores, memory, logs and traces
- Access records showing who and what read stored conversation content
- Detection recall and false-negative results measured on your own data, with a defined miss-handling process