Skip to content

Lesson 37 of 40AI at work

AI Governance, Privacy and Regulation at Work

What engineers must know before shipping AI: provider data terms, GDPR in practice, the EU AI Act and its 2026 delays, frameworks, IP, and a pre-launch checklist.

19 min read0/4 questions

Your team built a feature that summarises customer support calls. It works, the demo went well, and launch is Friday. Then the privacy team asks five questions nobody can answer: which provider sees the transcripts, how long they keep them, whether customers were told, what happens when someone asks for their data to be deleted, and whether this counts as "high-risk" under the EU AI Act. Launch slips three weeks. None of those questions are hard. They are just asked too late. This lesson gives you the vocabulary and the questions so you can answer them in the design doc, not the week of launch.

How companies govern AI

The AI on a Real Team lesson started with the AI usage policy, the rules for engineers using AI tools. Governance is the company-wide system around that policy, and around the AI features you ship. In a mature company it usually has four parts:

  • An approved-tools list. Which assistants, APIs and plans are allowed, and for which classes of data. Approval normally means legal and security reviewed the contract.
  • An AI use inventory. A register of every model-backed feature and internal use: what it does, which model and provider, what data it touches, who owns it. Regulators, auditors and enterprise customers increasingly ask for this, and you cannot answer without one.
  • A review process for new AI features. Usually privacy, security and legal look at the design before launch. The earlier you bring them in, the cheaper their findings are.
  • A named owner per feature. Someone who is accountable for its behaviour, its evals and its incidents. "The AI did it" is never an acceptable answer.

Shadow AI is staff using unapproved AI tools, often personal accounts, for work. Blanket bans rarely stop it; they push it out of sight, where nobody can see what data is leaving. Companies that handle it well make the approved option easier than the shadow one: a company plan with good tools, a clear list of allowed data, and a fast way to request a new tool.

Where your data goes: provider terms

Every prompt you send to a hosted model is data you are giving a third party. The questions to ask about any provider and plan:

QuestionWhy it matters
Are inputs and outputs used to train models?Business and API terms usually say no by default; consumer plans often differ. Check the exact plan.
How long are inputs and outputs retained?Providers keep data for abuse monitoring and debugging for a period. That copy is in scope for your privacy obligations.
Is zero data retention (ZDR) available?Some providers offer agreements where inputs are not stored after the response, usually for eligible customers and endpoints only. Some features (stored conversations, files, batch jobs) may not be covered.
Is there a DPA?A data processing agreement makes the provider a processor acting on your instructions, as GDPR requires.
Who are the sub-processors?The provider's own vendors who may touch the data. Customers' security questionnaires ask for this list.
Where is data processed?Data residency rules may require a specific region. Global routing features can move requests across regions.

One pattern solves many of these at once: use models through your existing cloud. If your company already has contracts, a DPA and region controls with AWS, Google Cloud or Azure, calling models through Amazon Bedrock, Vertex AI or Azure keeps the traffic inside agreements legal has already approved. It is often the fastest route to "yes" in a large company, even if the same model is available directly.

Quick check
A teammate prototypes a feature by sending real customer emails to a model through their personal account on a consumer chat app. What is the main problem?
Need a nudge? A hint rules out a wrong answer.

Privacy law in practice

You do not need to be a lawyer, but you need to recognise the moments when privacy law changes your design. Under the EU and UK GDPR, the ideas that matter most for AI features:

  • Lawful basis. Every use of personal data needs one (contract, legitimate interest, consent and others). Reusing support tickets collected to resolve issues for a new purpose, such as fine-tuning a model, is a new use that legal has to assess.
  • Data minimisation. Send the model only what the task needs. A summariser needs the conversation, not the customer's full account record. Redacting identifiers before the call (see AI Security) is minimisation in code.
  • DPIA. A data protection impact assessment is required for processing likely to be high-risk to people, and new technology plus profiling or large scale often triggers one. Your privacy team runs it; you supply the data flows.
  • Right to erasure. When a person asks for their data to be deleted, the request reaches every copy, not just the main database. In AI systems the copies hide in new places.

That last point is where engineers get caught. Map every store a person's text can reach, and check each one has a retention limit and a deletion path:

Python
# A data map for one AI feature: every place a customer's text can end up.# "erase" is how (or whether) you can delete one person's data from that store.DATA_MAP = [ {"store": "tickets table", "has_personal_data": True, "retention_days": 730, "erase": "delete by customer_id"}, {"store": "trace store (content)", "has_personal_data": True, "retention_days": 30, "erase": "expires only"}, {"store": "vector index (chunks)", "has_personal_data": True, "retention_days": None, "erase": None}, {"store": "agent memory rows", "has_personal_data": True, "retention_days": None, "erase": "delete by customer_id"}, {"store": "provider (API) logs", "has_personal_data": True, "retention_days": 30, "erase": "provider policy"}, {"store": "eval dataset (git)", "has_personal_data": True, "retention_days": None, "erase": None}, {"store": "metrics (token counts)", "has_personal_data": False, "retention_days": 395, "erase": None},] ERASURE_DEADLINE_DAYS = 30 # GDPR: respond without undue delay, normally within a month problems = []for row in DATA_MAP: if not row["has_personal_data"]: continue days = row["retention_days"] if row["erase"] is None: problems.append(f"{row['store']}: holds personal data and has NO erasure path") elif row["erase"] in ("expires only", "provider policy") and (days is None or days > ERASURE_DEADLINE_DAYS): problems.append(f"{row['store']}: only expires after {days} days") if days is None: problems.append(f"{row['store']}: no retention limit set") print(f"{len(DATA_MAP)} stores mapped, {len(problems)} problems:")for p in problems: print(" -", p)
Output
Press Run (⌘ Enter) to see what happens.

The findings are typical. Vector indexes store chunks of customer text, but nobody tagged the chunks with a customer id, so you cannot find them to delete. Eval sets copied from production traffic live in git forever. Fix both at design time: store an owner id with every chunk and memory, and build eval sets from redacted or synthetic data. Try changing the trace store's retention to 90 and run it again.

Outside the EU, CCPA/CPRA in California gives similar rights (access, deletion, opting out of sale or sharing) and California has adopted rules on automated decision-making; many other US states have their own privacy laws. Some data comes with sector rules that should make you stop and ask legal before any AI work: health data in the US (HIPAA, which requires a business associate agreement with any vendor that handles it), payment card data (PCI DSS), children's data, and financial or employment decisions.

Match the pairs0/5 matched

Match each situation to the concept it raises.

Choose an item, then its match on the other side.

The EU AI Act for engineers

The EU AI Act (Regulation (EU) 2024/1689) regulates AI systems placed on the EU market or whose output is used in the EU, so it reaches non-EU companies with EU users. It sorts uses by risk:

TierExamplesWhat it means
ProhibitedSocial scoring, manipulative techniques that cause harm, emotion recognition at work or school (with narrow exceptions), certain biometric usesBanned outright
High-riskAI in hiring and worker management, credit scoring, education and exams, access to essential services, critical infrastructure, and AI that is a safety part of regulated products such as medical devicesHeavy duties: risk management, data governance, logging, human oversight, accuracy, documentation, registration
Limited risk (transparency)Chatbots, AI-generated or manipulated content, deepfakesPeople must be told they are dealing with AI; synthetic content must be marked
MinimalSpam filters, most internal tooling, code assistantsNo specific duties beyond the general ones

The Act also distinguishes roles. A provider develops an AI system (or has it developed) and puts it on the market under its own name. A deployer uses an AI system in its own activities. General-purpose AI (GPAI) model providers, the labs that train foundation models, have their own duties. Most product engineers work for deployers, or for providers of a system built on someone else's GPAI model. Be careful though: if you build a high-risk system yourself, or substantially change one, you can become its provider.

For a typical product team the practical consequences are:

  • A customer-facing chatbot must make clear that people are talking to an AI, unless it is obvious.
  • Generated images, audio and video need machine-readable marking as AI-generated, and deepfakes must be disclosed.
  • Anything touching hiring, credit, education or access to services is a stop-and-ask-legal moment, because it may be high-risk.

The timeline has moved, which is where many articles and older lessons are now wrong:

EU AI Act key dates (check EUR-Lex for the current text)
  1. 1 Aug 2024

    Entry into force

    The Act becomes law. Most duties apply later, in stages.

  2. 2 Feb 2025

    Prohibitions apply

    Banned practices are illegal. The AI literacy duty also starts here (later reworded by the Digital Omnibus).

  3. 2 Aug 2025

    GPAI model duties

    Obligations for general-purpose AI model providers apply, alongside governance and penalty rules.

  4. Jul 2026

    Digital Omnibus on AI adopted

    Regulation (EU) 2026/1744 amends the Act and delays the high-risk deadlines below. Reported as published in the Official Journal in July 2026 and in force since late July.

  5. 2 Aug 2026

    General application

    Most remaining provisions, including transparency duties, apply. Commentators report a short grace period for marking content from systems already on the market; confirm the exact rule.

  6. 2 Dec 2027

    High-risk (Annex III)

    Stand-alone high-risk systems, such as hiring or credit scoring tools, moved here from August 2026.

  7. 2 Aug 2028

    High-risk (Annex I)

    AI in regulated products, such as medical devices and machinery, moved here from August 2027.

The delay is not a reprieve for planning. High-risk requirements (logging, human oversight, documentation, data governance) are architecture decisions, and retrofitting them is far harder than designing them in.

Quick check
Your company adds an AI chat assistant to its EU customer help site, built on a third-party model through an API. Which EU AI Act duty applies most directly?
Need a nudge? A hint rules out a wrong answer.

Frameworks companies cite

When enterprise customers or auditors ask how you manage AI risk, these are the names you will hear:

  • NIST AI RMF: the US National Institute of Standards and Technology's voluntary AI Risk Management Framework, organised around four functions: Govern, Map, Measure, Manage. NIST also published a generative AI profile for it.
  • ISO/IEC 42001: an international standard for an AI management system, which companies can be certified against, much like ISO 27001 for information security.
  • SOC 2: not AI-specific, but security questionnaires now include AI vendor questions: which models, which providers, training on customer data, retention, sub-processors. Your answers come straight from the inventory and the provider terms above.
  • Model cards and system documentation: short documents describing what a model or AI feature is for, what it was evaluated on, its known limits and who owns it. Providers publish model cards for their models; writing a one-page system card for your own feature is a cheap habit that answers most review questions.

Intellectual property

Three IP questions come up on engineering teams:

  • Who owns generated code? Provider terms generally assign output to the customer, but whether AI-generated work is protected by copyright varies by country and is still being settled. Treat it as your code to maintain, review and license.
  • Indemnities. Several providers offer business customers indemnity against third-party copyright claims over outputs, with conditions (approved plans, filters left on, no deliberate infringement). Legal reads these; you should know whether your plan has one.
  • Licence contamination. A model can reproduce code that closely matches an open-source project under a copyleft licence. Code assistants often have a setting to block or flag suggestions matching public code. And never paste confidential third-party code (a client's, a previous employer's) into any AI tool: that is a contract problem before it is an AI problem.

The pre-launch checklist

Put this in the design doc of every AI feature, and answer it before the review meeting:

Put it in order6 steps

Order these steps for getting an AI feature through review, from first to last.

  1. Tap the steps below in the right order.
Need a nudge? A hint shows where it starts.
  • Data classes: personal data? special categories (health, biometrics)? children? payment data? confidential customer data?
  • Provider and terms: approved provider, training off, retention known, ZDR if needed, region.
  • Data map: every store, with retention limits and an erasure path.
  • User-facing: disclosure that AI is involved, an opt-out where required, a way to reach a human.
  • Risk tier: does it touch hiring, credit, education, essential services or safety? Ask legal.
  • Human review for high-stakes outputs, and logging that lets you explain any decision later.
  • Incident plan: who is paged, how to switch the feature off, how to notify affected users.
Key terms
AI use inventory
A register of every AI feature and internal use: purpose, model, provider, data involved and owner.
shadow AI
Staff using unapproved AI tools or personal accounts for work, outside the company's contracts and visibility.
zero data retention
An agreement where a provider does not store inputs and outputs after returning a response, for eligible endpoints.
DPA
Data processing agreement: the contract that makes a vendor a processor of personal data on your instructions.
DPIA
Data protection impact assessment: a GDPR review required before processing likely to be high-risk to people.
deployer
Under the EU AI Act, an organisation that uses an AI system in its own activities, as opposed to the provider that builds it.
Digital Omnibus on AI
The 2026 EU regulation amending the AI Act, which moved high-risk deadlines to December 2027 and August 2028.