Gapless

Compliance and Legal

The compliance obligations an enterprise AI assistant typically faces, how engineering work maps to them, and how to prepare for customer security reviews and audits.

Enterprise customers and internal legal teams will ask hard questions before an AI assistant touches their data: where is it processed, who can see it, how long is it kept, which certifications do you hold, how do you meet AI regulation? This section explains what those obligations usually are and what engineering has to build to meet them.

This is engineering guidance, not legal advice. Obligations depend on your jurisdiction, industry, customers, and contracts. Work with legal counsel to confirm what applies to you.

Why AI makes compliance harder

FactorEffect
New data flowsPrompts go to model providers, often in other countries
Copies everywhereIndexes, embeddings, traces, caches, and eval sets all hold regulated data
New regulationAI-specific laws add obligations on top of privacy and security rules
Opaque processingExplaining how an answer was produced needs deliberate lineage
Fast changeModels and providers change every few months, and each change can affect compliance

The landscape

AreaExamplesWhat it asks for, broadly
Security certificationsSOC 2, ISO/IEC 27001Documented, audited security controls
AI managementISO/IEC 42001A management system for AI: risk assessment, lifecycle controls, oversight
Privacy lawGDPR, UK GDPR, CCPA/CPRA, and many national lawsLawful basis, minimization, rights of access and erasure, transfers, processor contracts
AI regulationEU AI Act, plus emerging national and state lawsRisk classification, transparency, human oversight, documentation, obligations that grow with risk
Sector rulesHIPAA (US health), financial services rules, public sector requirementsSpecific controls for regulated data and decisions
Employment law and works councilsVaries by countryConsultation before deploying tools that process employee data or could monitor employees
ContractsCustomer agreements, DPAs, provider termsSpecific commitments: regions, retention, notification times, subprocessors

See Frameworks for how each maps to engineering controls.

How engineering work maps to compliance

Most of what auditors and customers ask for is already described elsewhere in these docs. Compliance is largely about doing it consistently and being able to show evidence.

They askYou showBuilt in
Who can access customer data?Access control design, role definitions, access reviewsAccess control
Where is data processed and stored?Data flow diagram, region configuration per tenantData residency
How long is data kept, and can it be deleted?Retention schedule, deletion job recordsRetention and deletion
What happened, and who did it?Audit logsAudit logging
Which third parties process the data?Subprocessor list, DPAs, provider termsVendors and contracts
How do you manage AI risk?Risk tiers, impact assessments, evaluation reportsResponsible AI
How do you secure the system?Threat model, pen test reports, vulnerability managementSecurity
Is the data encrypted?Encryption design, key managementData protection

Customer security reviews

Every enterprise sale includes a security questionnaire, often hundreds of questions, with a growing AI section. Prepare a reusable package:

  • Trust documentation: an overview of architecture, data flows, security controls, and AI practices.
  • Certifications: SOC 2 report, ISO certificates.
  • Pen test summary: recent external test, with findings and remediation status.
  • Subprocessor list: including every model provider and the regions they process in.
  • DPA template: your data processing agreement.
  • AI-specific answers: does any model train on customer data, which providers and regions, retention at providers, how permissions are enforced in retrieval, how prompt injection is handled, what human oversight exists.

Keep answers in a maintained library, owned by a named person, and update them when the architecture changes. A wrong answer in a questionnaire can become a contractual commitment.

Evidence collection

Audits ask for proof over time, not descriptions. Automate evidence where you can:

ControlEvidence
Code changes are reviewedPull request history with approvals
Access is reviewedQuarterly access review records
Vulnerabilities are patchedScanner results and fix timelines
Backups are testedRestore test records with dates and results
AI changes are evaluatedCI eval reports attached to pull requests
Incidents are handledIncident records and post-incident reviews
Data is deleted on requestDeletion job records

Compliance automation platforms can pull much of this from your tools. Even without one, store evidence in a predictable place as you go. Reconstructing a year of evidence the week before an audit is painful.

Pages in this section

PageCovers
FrameworksSOC 2, ISO 27001, ISO 42001, GDPR, EU AI Act, HIPAA, and what each means for this system
Data residencyKeeping data and processing in required regions, including model calls
Audit loggingWhat to log, how to protect it, and how to make it useful
Vendors and contractsModel provider terms, DPAs, subprocessors, and customer commitments

On this page