liveBook · Manning

Privacy

As explained in Context Engineering

Privacy is the protection of people or their information from unauthorized collection, access, use, or disclosure.

Privacy governs what data a system collects, how it processes and stores it, and how long it retains it. In LLM systems, risks include training-data memorization and runtime exposure of personally identifiable information (PII); runtime protections focus on controlling what enters context and where data persists. section 9.1.1

Apply privacy controls during context assembly and across data handling:

  • Minimize data and limit context sources to their authorized purpose; verify access before selecting retrieval chunks, memory records, or tool outputs. section 9.1.1
  • Redact sensitive entities before they enter the context window, and use synthetic data for testing when customer records are not needed. section 9.1.1
  • Set retention limits for prompt caches, session traces, and episodic memory. Mask sensitive fields in observability traces and keep trace retention short. section 9.1.1

Customer support context

Before constructing a prompt, filter account identifiers, email addresses, payment details, past tickets, and free-text messages according to purpose and authorization. section 9.1.1

Tools such as Microsoft Presidio and OpenDP can detect, redact, anonymize, or transform PII before data is sent to an external LLM or persisted in long-term memory. For API-based systems, zero data retention agreements address provider persistence and use of incoming context. section 9.1.1

How Context Engineering covers it

How deep it goes
Details six runtime controls and applies them to context assembly, logging, testing, and provider data retention.
Examples
Filters identifiers, payment details, tickets, and messages in a customer support assistant, and names Presidio and OpenDP as privacy tools.
What you can do after
Operate privacy controls by filtering context for purpose and authorization, redacting sensitive data, and limiting trace and memory retention.
How it connects
Connects privacy with PII, data minimization, scoped access control, redaction, retention limits, trace masking, and context assembly.

Also explained in

Compare how 26 books explain privacy →

Related concepts

This explainer was generated by Manning's knowledge graph from the text of Context Engineering. The section links point to the parts of the book it draws on.