Privacy, Data Governance, and Retention
About 53 min
Goal
By the end of this lesson, you can design reviewable governance rules for data use and retention, then connect external obligations and artifact provenance to release evidence.
Collect only what the task needs
Imagine a school club collecting information for a field trip. It may need each student's name and emergency contact, but it probably does not need every old message the student has ever sent. After the trip, some records may no longer have a reason to remain.
Privacy engineering begins with that simple discipline: Why do we need this field, who needs it, and how long should it exist? Data minimization means collecting or keeping no more than the declared purpose requires. Retention is the rule for how long data remains. Governance is the larger set of ownership and review rules that makes those decisions enforceable instead of merely written down.
AI systems can accumulate data quickly. Prompts, retrieved documents, tool results, conversation history, traces, human ratings, and incident records may all be useful for debugging or evaluation. “Useful” does not mean “keep forever.”
Start from purpose and minimization
Start with purpose. For each data field, ask why the product needs it. A support assistant may need an order ID to answer a request, but it may not need a user's full payment history. An evaluation pipeline may need an error category but not the original sensitive message.
Applying data minimization also reduces privacy exposure, security impact, storage cost, and the number of places that require deletion later.
{"field":"order_id","purpose":"answer support request","classification":"internal","retention_days":30}
Classify data and control access
Classification makes rules explicit. A simple scheme might label data public, internal, confidential, or restricted. The exact labels vary by organization, but each label should connect to access, logging, retention, and sharing rules. A label without behavior is only decoration.
Access control should follow purpose and role. A production service may need to use a record to answer a user, while an offline evaluator may only need a de-identified summary. Copying production data into an evaluation folder can create a new data flow with different risks even when the original access was legitimate.
Define retention and deletion propagation
Retention defines how long data remains available. Some evidence may need a short debugging window; other records may be required longer for security, legal, or audit reasons. The important engineering property is that the retention rule is explicit and enforceable rather than “we usually delete old logs.”
Deletion also needs propagation. If a record exists in a primary store, analytics export, vector index, cache, and evaluation fixture, deleting only the primary copy may not satisfy the intended policy. Map derived stores and document which ones are covered by each deletion workflow.
Make privacy claims precise
Privacy claims should be specific. “We do not train on your data” answers only one question. It does not say whether prompts are logged, used for abuse monitoring, reviewed by people, retained for debugging, copied into evaluations, or shared with a service provider. Good governance separates those uses.
NIST AI RMF and the Generative AI Profile treat governance as an ongoing organizational function and include data privacy among important generative-AI risk areas. In engineering practice, governance becomes concrete through owners, approved purposes, access policies, retention rules, incident processes, and reviewable evidence.
Map engineering controls to external obligations
Governance also has an external boundary: laws, regulations, contracts, and sector rules can create requirements that the product team does not invent for itself. Treat those requirements as dated inputs to the engineering process rather than as timeless facts baked into model code.
For one concrete example, EU AI Act obligations for providers of general-purpose AI models entered into application on 2 August 2025. European Commission guidance lists technical documentation, information for downstream providers, a policy for compliance with Union copyright law, and a public summary of training content among the obligations for those providers. Providers of general-purpose AI models with systemic risk have additional risk-management, incident-reporting, and cybersecurity duties.
The timeline has separate milestones. Providers placing covered GPAI models on the market from 2 August 2025 must meet the applicable obligations; from 2 August 2026, the Commission's enforcement powers apply, including enforcement through fines; and providers of GPAI models that were already on the market before 2 August 2025 have until 2 August 2027 to comply with the relevant obligations. Dates like these belong in the evidence record because "the rule" and "when this actor must satisfy it" are separate facts.
That example does not mean every AI application has the same obligations. Your role can be model provider, downstream provider, deployer, or another actor, and the applicable requirements depend on jurisdiction, system purpose, risk classification, sector, contracts, and the date. The engineering habit is to record which requirement applies, why it applies, who owns it, and what evidence demonstrates compliance, then get qualified legal or compliance review where needed.