What each control does and does not do
ZDR is a data-handling mechanism, while a BAA is a legal accountability mechanism. The table below summarizes how the two differ.
| Aspect | Zero data retention (ZDR) | Business Associate Agreement (BAA) |
|---|---|---|
| Type of control | Data-handling mechanism | Legal accountability mechanism |
| What it describes | What a vendor will and will not keep after processing a request. | How a vendor may use PHI, which safeguards it must apply, how it must report incidents, and what happens to the data when the relationship ends. |
| Where its value lies | Reduces the amount of regulated data that exists outside your environment, which narrows exposure if the vendor is breached or compelled to disclose records. | Assigns HIPAA obligations to the vendor in writing. |
When a BAA is needed regardless of retention settings
Treating ZDR as a stand-in for a BAA confuses a retention setting with a statement of legal responsibility. A vendor can retain nothing and still have processed PHI on your behalf. A vendor can also sign a BAA and still retain data for defined purposes.
Each control answers a different question, so a compliance program needs both answers.
Gaps ZDR can leave open in LLM API data flows
A retention commitment covers only part of the path a request takes. The table below follows a request through each stage and shows where each control applies, and where scope should be confirmed in writing.
| Stage | What to know |
|---|---|
| Ingress | Prompt and payload content leaves your environment. Runtime inspection and endpoint allow-listing apply here. |
| Processing | The vendor handles data in transit and in memory. A BAA addresses this handling even if nothing is retained. |
| Logging | Abuse-monitoring and operational logs may fall outside a ZDR commitment. Confirm scope in writing. |
| Storage | Caches, fine-tuning data, and stored outputs need separate confirmation of coverage. |
| Downstream tool calls | Tools and agent integrations can send data to third parties that no vendor commitment covers. |
Runtime controls that work independently of vendor commitments
Vendor commitments describe what the vendor does after data arrives. They do not control what your applications and agents send. Enforcement at the gateway or runtime layer addresses that side of the boundary and produces evidence that your policy was followed.
Useful controls include:
- Inspection of prompts and payloads for PHI before they leave your environment.
- Allow-listing of approved endpoints, so regulated data cannot reach an unapproved model or an endpoint outside the agreed scope.
- Restrictions on which tools an agent may call.
- Audit logging of requests, policy decisions, and blocked attempts.
Logs should record the decision and metadata without creating a new unmanaged store of PHI.
Checklist before sending regulated data to an LLM API
- Contract: obtain a signed BAA that names the specific services and endpoints you will use, and confirm any exclusions.
- Retention: obtain written ZDR terms and confirm eligibility conditions, endpoint scope, and feature exclusions.
- Data flows: confirm treatment of abuse-monitoring logs, caching, fine-tuning data, and stored outputs.
- Configuration: verify that ZDR and related settings are active on the account and endpoint in production, and re-check after vendor changes.
- Runtime enforcement: inspect payloads for PHI, allow-list approved endpoints, and restrict agent tool calls.
- Evidence: retain audit logs of requests, policy decisions, and vendor documentation versions for review.