llm.guideChapter 27Privacy, Compliance & Enterprise Readiness

Privacy, Compliance & Enterprise Readiness

SOC 2, GDPR-style rights, the EU AI Act timeline and security questionnaires.

Part 6: Production disciplines. 9 sections, about 15 minutes.

Usera messageYour applicationregion: EUModel providerprocessor, under a DPATraces and logs30 days, full textRetrieval indexuntil the source is deletedAnswer cache24 hoursTest sets, labelsby provenanceBackups35 days, then goneEvery store needs:a regiona retention periodan ownera way for deletionto reach itIllustrative retention periods. The map is the first thing a security questionnaire asks for.
Usera messageYour applicationregion: EUModel providerprocessor, under a DPACopiestraces, index, cache, test sets, backupsDeletemust reach every copy
Where one message goes in an AI feature. Each copy needs a region, a retention period and an owner, and deletion fails wherever one of them was never recorded.

An AI feature that works can still fail to sell. Enterprise buyers send a questionnaire, a lawyer asks where their data goes, and a regulator’s timetable decides what has to be documented. This chapter covers the obligations that most often decide whether an AI product can be bought by a large organization, and the engineering each one needs.

It is orientation for engineers, not legal advice. Laws differ by country and change often, and several dates below were set or moved during 2026; check the current text and talk to counsel before relying on any of them. Status is as of November 2026. There is no experiment in this chapter; the material is rules and the systems that satisfy them.

27.1Why enterprise deals stall

The buyer’s questions are about data, control and proof.

A large customer evaluating an AI feature asks roughly the same questions every time. Do you train on our data? Which companies process it, and where? How long is it kept, and can you delete it? Who can see it? How do you stop one customer’s data reaching another? What happens when the model is wrong? And can you prove any of this, with an audit report or a certification?

Every one of those questions has an engineering answer elsewhere in this guide: tenant filters (section 15.4), redacted and access-controlled traces (section 24.9), provenance (section 25.9), least privilege (section 26.6), evaluation (Chapter 23). This chapter connects those mechanisms to the legal and commercial frameworks that ask for them. Teams that build the mechanisms early answer the questionnaire in a day; teams that build them on request lose the quarter.

Common take“Compliance is the legal team’s problem.”

Sharper take“Legal writes the answers, but the answers are claims about our system: where data flows, how long it stays, who can read it, how it’s deleted. Engineering builds what makes those claims true.”

27.2Where personal data goes

An AI feature copies user data into more places than a typical service.

A request in an ordinary web service touches a database and some logs. A request to an AI feature can leave copies in a dozen places, and every obligation in this chapter applies to all of them.

WhereWhat it holdsHow deletion reaches it
The model providerPrompts and outputs, for a retention period; stored conversations, files and batch jobs if used (section 11.9)Provider’s retention terms; delete stored objects through the API
Traces and logsFull prompts, retrieved text, outputs (Chapter 24)Retention windows; deletion by user or tenant ID
Retrieval indexesChunks of documents and their embeddings (Chapter 15)Each chunk linked to its source record (section 15.8)
CachesCached answers and prompt prefixes (Chapter 28)Short lifetimes; keys that include the tenant
Agent memory and notesFacts remembered about a user (section 18.5)User-visible, user-deletable memory
Test sets and labelsReal cases drawn from traces (Chapter 25)Provenance on every case (section 25.9)
Fine-tuned modelsWhatever the training data contained, inside the weightsRetraining without the data (section 27.3)
BackupsCopies of all of the aboveBackup expiry, documented
A user’s requestA deletion requestmust reach every boxModel providerits retention terms; API deletesTraces and logsretention window; by user IDRetrieval indexeseach chunk linked to its sourceCachesshort lifetimes; tenant in the keyAgent memoryvisible to the user, deletableTest sets and labelsprovenance on every caseFine-tuned modelsretrain without the dataBackupsa documented expiryorange: how a deletionreaches each store
Figure 27.1 The table above as a map. A request fans out into eight stores, and a deletion is only done when it has reached all of them.

Keep this map as a living document. It is the first thing a privacy review, an auditor and a customer’s lawyer will ask for, and building it usually turns up a store nobody remembered.

Common take“Customer data lives in our database, and we can delete it from there.”

Sharper take“It also lives in traces, indexes, caches, test sets and maybe a fine-tune, plus the provider’s retention. I keep a map of every store and how a deletion reaches each one.”

27.3Rights over personal data

Access, deletion, correction and residency, carried through every store.

The European Union’s General Data Protection Regulation (GDPR) set the pattern that many laws now follow, including California’s privacy law and India’s Digital Personal Data Protection Act, whose rules are being phased in through May 2027. The rights that cause AI teams the most work are these.

  • Access. A person can ask for the data held about them. With the map of section 27.2 and IDs on every record, this is a query; without them, it is a search through traces and indexes by hand.
  • Deletion. Remove the data from every store. Indexes and test sets need provenance to find derived copies. Fine-tuned weights cannot have one person’s data removed reliably, so the dependable options are to keep personal data out of training sets, to train per-customer adapters that can be deleted (section 17.9), or to retrain from a dataset version without the data.
  • Correction. An index that keeps serving an outdated fact about someone needs the same update path as any document (section 15.8).
  • Residency. Some customers and some laws require data to stay in a region. That covers the provider’s processing, not just your storage: use regional endpoints where providers offer them, and keep traces and indexes in the same region.

Two more provisions matter for AI specifically. Processing that is likely to be high-risk for people needs a data protection impact assessment before it starts. And the GDPR gives people the right not to be subject to decisions with legal or similarly significant effects that are based solely on automated processing; a system that approves loans or screens job applicants without a person in the loop needs safeguards such as human review on request.

Deletion requestuser 1234App databasedelete rowsTracesby keyed hashSearch indexesby source linkCachesexpire or purgeTest sets, labelsvia provenanceBackupsage out on scheduleProvider logstheir retention termsFine-tuned weightsone person’s data cannot beremoved: retrain without it,or document why notthe dead end: data used for training
Figure 27.2 One request, every store. Green copies can be found and removed directly; yellow ones leave on a schedule you must be able to state; the weights are why training data needs its own consent basis.

Common take“If someone asks for deletion, we delete their account.”

Sharper take“Deletion has to reach every trace, chunk, test case and memory derived from their data. And since it can’t be removed from model weights, we don’t put personal data into fine-tuning unless we can retrain without it.”

27.4Model providers as processors

Your provider is a subprocessor, and its terms become yours.

When you send customer data to a model provider, the provider processes it on your behalf. Your customers will want to know who that is and on what terms. Five things to establish for every provider:

  • A data processing agreement. The contract that governs how the provider handles personal data. Large providers publish standard ones.
  • Training. Whether inputs and outputs are used to train models. For business API use, the major providers’ default is not to, but consumer products and some settings differ; confirm in writing.
  • Retention. How long prompts and outputs are kept, usually for a limited period for abuse monitoring, and whether zero-data-retention arrangements are available for eligible customers. Features that store state on the provider’s side, such as conversation threads, files and batch jobs, are often kept longer (section 11.9).
  • Location. Which regions process the data, and whether regional processing can be required.
  • Sector agreements. For health data in the United States, a business associate agreement under HIPAA, which some providers sign for some of their products and not others.

List every provider, and every other service that sees customer data, as a subprocessor, and tell customers when the list changes; enterprise contracts often require notice. The model gateway of section 21.7 helps here too: one place where every call goes, so the list of providers is a configuration file rather than a search through the code.

Common take“The provider doesn’t train on API data, so privacy is covered.”

Sharper take“Training is one question of five. I also need the processing agreement, the retention period and whether zero retention applies, the processing regions, and any sector agreement. And the provider goes on our published subprocessor list.”

27.5SOC 2 and what auditors ask

The controls are familiar; AI adds new things to control.

SOC 2 is the audit report most enterprise buyers in the United States ask for: an independent auditor’s opinion that a company’s controls over security, and optionally availability, confidentiality, processing integrity and privacy, are designed well and, in a Type II report, worked over a period of months. ISO/IEC 27001 plays a similar role internationally. Neither was written for AI, but auditors now ask how existing controls cover AI features.

Control areaWhat it means for an AI feature
Change managementPrompt and model changes are reviewed, tested and released like code (section 13.8), with evaluation gates as evidence (section 23.8)
Access controlWho can read traces, test sets and labeled data, and the log of who did (section 24.9)
Vendor managementModel providers assessed and listed as subprocessors (section 27.4)
Logging and monitoringTraces, alerts and audit records of tool calls (Chapter 24)
Incident responseRunbooks covering harmful outputs and injection, not only outages (sections 24.8 and 26.7)
Data retention and disposalThe map and retention windows of section 27.2

Evidence is what an audit consumes, and evidence is cheap only if it is produced as a side effect of normal work. Pull requests that show a prompt change was reviewed and passed its evaluation, access logs on trace storage, a dated subprocessor list: each exists already if the earlier chapters were followed.

Common take“We’ll get SOC 2 when a big customer asks for it.”

Sharper take“A Type II report covers months of operation, so the controls have to run before the customer asks. Prompt changes through review and evaluation gates, access logs on traces, a vendor list: we produce the evidence as we work.”

27.6Sector rules

Health, finance, hiring and children each add their own requirements.

SectorExamples of rulesWhat they ask of an AI feature
Health, in the United StatesHIPAAA business associate agreement with every processor of health information, including the model provider; minimum necessary use; audit trails
Financial servicesModel risk management guidance for banks, such as the Federal Reserve’s SR 11-7; fair lending lawDocumented models, independent validation, ongoing monitoring; explainable reasons for adverse decisions
HiringNew York City’s Local Law 144 on automated employment decision toolsIndependent bias audits and notice to candidates before such tools are used
ChildrenCOPPA in the United States; parental consent under India’s DPDP rules and in several other countriesAge assurance, consent, and limits on what is collected and how it is used

In the United States, state laws on AI and automated decisions are moving quickly. Colorado’s 2024 AI Act, the first broad one, was rewritten in May 2026 into a narrower law on automated decision-making, scheduled for January 2027, and federal efforts to override state AI laws are being contested. Treat any list of state rules as a snapshot, and track the ones where your customers are.

Common take“We’re a general tool; sector rules are our customers’ problem.”

Sharper take“If a hospital puts patient data through our feature, we’re a business associate and need the agreements and controls to match. I know which sectors we sell into and what each one requires of us.”

27.7The EU AI Act

Obligations by risk tier and by role, on a timetable that moved in 2026.

The EU AI Act regulates AI systems by the risk of their use, and assigns duties according to role: the provider who builds a system or model and puts it on the market, and the deployer who uses it. A company that builds a product on a rented model is usually the provider of its own AI system and a downstream user of someone else’s general-purpose model.

TierExamplesMain obligationsApplies from
ProhibitedSocial scoring, manipulative techniques, some biometric uses; from December 2026 also systems that generate non-consensual intimate imagery or child sexual abuse materialBannedFebruary 2025; the new bans 2 December 2026
High-risk, stand-alone (Annex III)Hiring, credit scoring, education, access to essential servicesRisk management, data governance, documentation, logging, human oversight, accuracy, registration2 December 2027
High-risk, inside regulated products (Annex I)AI as a safety component of machinery, medical devices and similarThe same, through product conformity assessment2 August 2028
Transparency (Article 50)Chatbots, generated content, deepfakes, emotion recognitionTell people they are dealing with AI; mark generated content in machine-readable form; label deepfakes2 August 2026; marking for generative systems already on the market by 2 August 2026 has until 2 December 2026
General-purpose AI modelsThe large models themselvesTechnical documentation, a copyright policy, a public summary of training content; more for models with systemic risk2 August 2025; models already on the market have until 2 August 2027
20252026202720282029ProhibitionsFeb 2025General-purpose modelsAug 2025Transparency, Article 502 Aug 2026New bans; marking deadline2 Dec 2026Models already on the market2 Aug 2027High-risk, stand-alone (Annex III)was Aug 20262 Dec 2027High-risk in regulated products (Annex I)was Aug 20272 Aug 2028
Figure 27.3 The timetable from the table. Top: dates that did not move, most of them already in force by late 2026. Bottom: the two high-risk dates the 2026 Digital Omnibus pushed back.

The high-risk dates are the ones that moved. The Act originally applied its high-risk rules from 2 August 2026. The Digital Omnibus on AI, proposed by the Commission in November 2025 and adopted in July 2026, entered into force on 27 July 2026 and moved them to 2 December 2027 for stand-alone systems and 2 August 2028 for systems inside regulated products. It left the transparency rules of Article 50 almost untouched, so for most products built on language models the obligations already in force are these: tell users they are talking to an AI, mark generated content, and label deepfakes.

For engineers, the high-risk requirements read like a summary of Part 6: documented data governance (Chapter 25), automatic logging (Chapter 24), measured accuracy and robustness (Chapter 23), security against manipulation (Chapter 26), and human oversight with the ability to intervene (section 19.8). Systems built that way are most of the way to compliance before the deadline arrives.

ProhibitedHigh-riskhiring, credit, education: full obligationsTransparencychatbots, generated content: disclose and markMinimalmost software: no new dutiesbanned: social scoring, manipulation,some biometric usesGeneral-purpose models have their own track: documentation, copyright policy, training summary.
Figure 27.4 The tiers from the table as a pyramid. Most products sit in the bottom two; a hiring or credit feature moves the whole system up a tier.

Common take“The EU AI Act was delayed, so nothing applies yet.”

Sharper take“The high-risk rules moved to December 2027. The transparency rules have applied since August 2026: users must know they’re talking to an AI, and generated content must be marked. And if we sell into hiring or credit, the high-risk work starts now.”

27.8Frameworks buyers cite

ISO/IEC 42001 and the NIST AI RMF give the questions a shared structure.

Two frameworks appear in procurement documents more than any others.

  • ISO/IEC 42001 (2023) specifies an AI management system: policies, roles, risk and impact assessment, lifecycle controls and continual improvement, in the same style as ISO 27001 for security. It can be certified, so some buyers ask for the certificate itself.
  • The NIST AI Risk Management Framework (2023), with its profile for generative AI (NIST AI 600-1, 2024), organizes the work into four functions: govern, map, measure and manage. It is voluntary and not certified, and it is widely used as a checklist by buyers and in US public-sector procurement.

Neither asks for anything this guide has not already described. Mapping is mostly a matter of pointing at existing practice: the data map and provenance for “map”, the evaluation suite and online monitoring for “measure”, incident runbooks, gates and least privilege for “manage”, and named owners for each for “govern”. Write that mapping once and reuse it in every questionnaire.

Governnamed owners for each practice; approval gatessections 19.4Mapdata map, provenance, risk tiersections 27.2, 25.9, 27.7Measureeval suite, judge calibration, online monitoringsections Chapter 23; 24.5Managerunbooks, least privilege, deletionsections 24.8, 26.6, 27.3
Figure 27.5 The mapping this section recommends, written once. Each function points at practice that already exists; the gaps it reveals are the work.

Common take“We need a separate AI governance program to satisfy these frameworks.”

Sharper take“Most of it exists already as engineering practice. I write the mapping from each framework’s requirements to our evals, traces, data map and runbooks, assign owners, and fill the gaps that mapping shows.”

27.9Answering the questionnaire

Good answers name mechanisms, not intentions.

Enterprise security questionnaires now carry a section on AI. The questions repeat, and so should the answers: keep a maintained set, with the evidence for each, and publish the common ones on a trust page.

QuestionA weak answerA strong answer
Do you train on our data?“No.”“No. Our providers’ agreements exclude training on our API traffic, and our own fine-tuning uses only data whose permitted uses include training (section 25.9).”
Who processes our data, and where?“Leading AI providers.”The named subprocessor list, regions, and how customers are notified of changes
How long is it kept?“As long as needed.”Retention per store from the data map, including the provider’s
How do you isolate customers?“The model is instructed to use only your data.”“Tenant filters are enforced in every query from the authenticated session (section 15.4); caches are keyed by tenant.”
How do you handle prompt injection?“We use a state-of-the-art guardrail.”Least-privilege credentials, gated actions, egress allow-lists, sanitized rendering, monitoring (Chapter 26)
How do you know it’s accurate?“We use the best model.”Evaluation suite with slices, release gates and production monitoring, with recent results (Chapters 23 and 24)
What happens when it’s wrong?“It’s rarely wrong.”Human review for consequential actions, user reporting, incident runbook, cases added to the test set

The strong answers share a pattern: each names a mechanism that would still work if the model misbehaved, and each can be backed by evidence on request. A weak answer relies on the model or on intentions, and an experienced reviewer will follow up until it gives way.

Common take“We answer each security questionnaire as it comes in.”

Sharper take“We keep a maintained answer set with evidence and a public trust page. Each answer names a control that holds even if the model misbehaves, which is what reviewers are testing for.”

Key takeaways

  • Enterprise buyers ask about data, control and proof. Each question has an engineering answer elsewhere in this guide.
  • AI features copy personal data into providers, traces, indexes, caches, memory, test sets, fine-tunes and backups. Keep a map, with how deletion reaches each store.
  • Deletion cannot reach model weights reliably. Keep personal data out of training, use removable per-customer adapters, or be ready to retrain.
  • For each model provider, settle the processing agreement, training, retention, regions and any sector agreement, and list it as a subprocessor.
  • SOC 2 and ISO 27001 controls extend to AI: prompt and model changes are reviewed and gated, trace access is controlled and logged.
  • Health, finance, hiring and children carry extra rules, and US state laws are changing quickly.
  • Under the EU AI Act as amended in July 2026, high-risk rules apply from 2 December 2027 or 2 August 2028; transparency duties have applied since 2 August 2026.
  • ISO/IEC 42001 and the NIST AI RMF map onto practices this guide already describes. Write the mapping once.
  • Strong questionnaire answers name mechanisms that hold if the model misbehaves, with evidence.

Check your understanding

  1. A European customer’s employee asks for all data you hold about her to be deleted. Your product is a document assistant with retrieval, traces kept for 90 days, a semantic cache, agent memory, a test set built partly from production traces, and one fine-tuned model trained on six months of conversations. Walk through what you do.

    Answer outline

    Use the data map (section 27.2). Delete her records and memory entries by user ID; delete her traces, or redact them if they must be kept for another lawful reason; purge cache entries derived from her requests, which needs cache keys that identify the user or tenant; remove index chunks from documents she owns, via their source links; find test cases derived from her conversations through provenance and remove them, creating a new dataset version; check the provider’s retention and delete any stored objects. For the fine-tuned model, her data cannot be removed from the weights, so either retrain from a dataset version without her conversations or document why that is not required, with counsel. Record each step. Next time, keep personal data out of fine-tuning sets or train removable per-tenant adapters.

  2. Your company sells a hiring assistant that ranks applicants, to customers in the EU and New York City. A colleague says the EU AI Act no longer applies because it was delayed. What applies now, and what needs to start?

    Answer outline

    Ranking applicants is a high-risk use under Annex III, whose obligations now apply from 2 December 2027, so the work needs to start well before then: risk management, data governance, technical documentation, logging, human oversight, accuracy and robustness testing, and registration. Transparency duties under Article 50 already apply where the system interacts with people or generates content. The GDPR applies now, including limits on decisions based solely on automated processing and the need for an impact assessment. In New York City, Local Law 144 already requires an independent bias audit and notice to candidates. Much of the engineering is Part 6 itself: logs, evaluation by slice, documented data and human review.

  3. A bank’s questionnaire asks: “How do you ensure the AI does not disclose one customer’s information to another?” A teammate drafts: “Our system prompt instructs the model to only use the current customer’s data, and we use a leading model with strong safety features.” Rewrite the answer.

    Answer outline

    Replace the reliance on the model with mechanisms. Every retrieval and database query is filtered by the tenant taken from the authenticated session, enforced in the query, so the model never sees another customer’s data (section 15.4). Tool credentials are scoped per tenant (section 26.6). Caches are keyed by tenant. Traces are tenant-scoped with role-based, logged access. Cross-tenant access attempts are monitored and alerted on, and the test suite includes cross-tenant cases that run on every release. Offer evidence: the relevant SOC 2 controls, test results, and an architecture diagram.

Further reading

  • The EU AI Act (Regulation (EU) 2024/1689) as amended by the Digital Omnibus on AI (Regulation (EU) 2026/1744), with the Commission’s guidelines on general-purpose models and on transparency obligations.
  • NIST, AI Risk Management Framework 1.0 (2023) and its Generative AI Profile, NIST AI 600-1 (2024).
  • ISO/IEC 42001:2023, the AI management system standard.
  • Your providers’ trust and compliance pages: processing agreements, subprocessor lists, retention and regional processing options.

↑↓ to move↵ to openesc to close