Key Terms
| Term | In one line |
|---|---|
| Zero Trust | Never trust, always verify; assume breach; least privilege; verify explicitly |
| PHI | Protected Health Information — 18 HIPAA identifiers |
| BAA | Business Associate Agreement — required with every vendor handling PHI |
| Minimum necessary | Access only the PHI the task requires — an architectural constraint, not a policy line |
| Safe Harbor | De-identification by removing all 18 identifiers |
| Expert determination | De-identification justified by statistical re-identification risk analysis |
| DPIA | Data Protection Impact Assessment — required for high-risk GDPR processing |
| Right to erasure | Delete on request — genuinely hard once data is in embeddings and model weights |
| SOC2 Type II | Controls tested over a period, not at a point in time |
| NIST AI RMF | Govern, Map, Measure, Manage |
| mTLS | Both sides present certificates — service-to-service identity |
Numbers That Matter
| Figure | Value | Where it bites |
|---|---|---|
| HIPAA identifiers | 18 | Names, dates, MRNs, device IDs, biometrics, full-face photos… |
| Breach notification | Within 60 days | Any unauthorized access/use/disclosure that compromises PHI |
| GDPR principles | 8 | Lawful basis · purpose limitation · minimization · accuracy · storage limitation · erasure · explanation · privacy by design |
| SOC2 criteria | 5 | Security · availability · processing integrity · confidentiality · privacy |
| Tenant isolation | Silo (highest) → bridge (schema) → pool with RLS (logical) | Vector DB: namespace or collection per tenant |
Decision Rules
- Right to erasure is the hard GDPR problem for AI, and the honest answer names all four surfaces: the source record, the derived embeddings in the vector store, any cached responses, and — the expensive one — model weights if the data was used for fine-tuning. Design for deletion by keeping a deletion-capable index and avoiding fine-tuning on erasable personal data.
- Pre-filter on entitlements, never post-filter. By the time you’re filtering results, the model has already consumed the content.
- Choose the isolation pattern by regulatory posture and tenant size: silo when a regulator or contract demands physical separation; pool with row-level security for cost efficiency at many small tenants; bridge as the middle ground.
- De-identification method follows the risk: Safe Harbor is mechanical and defensible; expert determination retains more analytic value but needs a statistician’s sign-off; pseudonymization is not de-identification if you hold the mapping.
- PHI should never traverse the public internet. Private endpoints, service endpoints, VNet/VPC peering — and a BAA with every vendor in the path, including the model provider.
- Explainability by stakeholder: a regulator wants an auditable decision record, a clinician wants feature attribution they can sanity-check, a customer wants a plain-language reason. One SHAP plot does not serve all three.
- Aggregation bias is the one that hides: the model looks good overall and performs poorly for a subgroup. Always evaluate sliced by protected attribute, never only pooled.
Say This Out Loud
“The right to erasure is where GDPR gets genuinely hard for AI, and I’d rather name the difficulty than pretend the delete button covers it. There are four places the data lives: the source record, the embeddings derived from it in the vector store, any cached responses that quoted it, and — the expensive one — the model weights if it was used for fine-tuning. You can’t unlearn a fine-tune, so I design for erasure up front: keep the vector index deletion-capable with a stable document key, and don’t fine-tune on personal data that’s subject to erasure in the first place.”
“Minimum necessary isn’t a policy footnote, it’s a design constraint that changes the architecture. It means ACL filtering happens pre-retrieval rather than as a post-filter on results, because post-filtering means the model already saw the chunk. It means audit logging every query and every chunk returned. And it means the retrieval scope is bounded by the requesting user’s entitlements at query time, not checked afterwards.”
“For multi-tenant isolation I’d pick the pattern from the regulatory posture rather than from the engineering preference. If a contract or regulator requires physical separation, that’s a silo — separate database per tenant, highest isolation, highest cost. If I have hundreds of small tenants and the compliance bar allows it, pooled with row-level security is far more economical, and in the vector store that’s a namespace or collection per tenant with the tenant ID enforced in the pre-filter.”