Audited Zero Data Retention and Canary Verification¶
Third-party serving-path audits check stored retention at a point in time, while canary URL probes detect out-of-band reads between audits.
Audited zero data retention (ZDR) and canary verification pair third-party serving-path audits with recurring canary URL probes at an inference gateway. Use this two-layer pattern only when you also plan for what stays outside it: passive write-only storage added between audits, provider-run tools and stateful endpoints, upstream safety or legal retention overrides, and a small initial audited pool.
Vercel announced Audited ZDR and canary ZDR audits for AI Gateway on 23 November 2026 (Vercel, 2026-11-23; Vercel Changelog, 2026-11-23). Three launch partners (Baseten, Modal, and Wafer) had started audits, with published reports expected by 8 December 2026. The gateway tier below reflects Vercel's design; upstream retention limits come from Anthropic and OpenAI documentation.
Why contractual ZDR falls short¶
Standard ZDR rests on contracts and self-attestation. "A provider agrees not to retain prompts or completions, and customers take that commitment on faith" (Vercel, 2026-11-23). Vercel's gateway docs state the baseline plainly: "Provider ZDR on AI Gateway is self-reported" (Vercel ZDR Docs).
Self-attestation leaves serving-path leaks unverified. Prompts can land in debug logs, crash dumps, or tracing pipelines. A rate limit can route a ZDR request to a non-ZDR endpoint, or support debugging tools can expose a customer prompt (Vercel, 2026-11-23).
What each verification layer checks¶
When enabled, the gateway's Audited ZDR toggle routes and fails over requests only across providers with published audits that meet the bar (Vercel, 2026-11-23).
| Layer | Access and cadence | What it checks | Blind spot |
|---|---|---|---|
| Third-party serving-path audit | Code, infra config, and live marked prompts; point in time | Logs, traces, metrics, crash dumps, caches, backups, support tools, failover paths, sub-processors | Production drift after the audit |
| Continuous canary URL probes | Black-box prompts over normal inference; recurring | Outbound HTTP requests to unique, unindexed URLs mapped to one provider, model, and run | Prompts written to disk and never read |
In the serving-path audit, an independent security firm reviews code and infrastructure configuration, then sends marked prompts through AI Gateway and searches provider systems for traces (Vercel, 2026-11-23). The audit confirms deletion after response return, RAM-only disclosed KV caches, zero failover to non-ZDR endpoints, tools, or features, sub-processor compliance, and no training. Passing providers publish the auditor's report covering scope, methodology, dates, findings, fix status, and disclosed exceptions.
Between audits, each canary run follows four steps (Vercel Changelog, 2026-11-23):
- Mint unique URLs that exist nowhere else, mapped privately to one provider, model, and run.
- Send prompts carrying those URLs through normal inference, requesting ZDR for covered providers and pairing non-ZDR endpoints as positive controls.
- Watch for inbound requests to any canary URL, because a ZDR provider should never retain, inspect, or crawl prompt content.
- Log any hit and trace it to the exact provider, model, and run for investigation.
Why it works¶
The two layers cover orthogonal axes: access depth and time. Casper et al. distinguish black-box input/output probing from outside-the-box access to code, documentation, and deployment details (Casper et al., 2024). They note that "the vast number of possible inputs to AI systems makes it intractable to develop a complete understanding from this alone" and conclude that "white- and outside-the-box access allow for substantially more scrutiny than black-box access alone" (Casper et al., 2024).
Outside-the-box inspection catches silent disk writes, crash dumps, and failover errors that external traffic cannot observe. Publishing the auditor's scope and methods follows the paper's first conclusion: "transparency regarding model access and evaluation methods is necessary to properly interpret the results of an AI audit" (Casper et al., 2024). Because production infrastructure changes after an audit date, canary probes calibrated with non-ZDR positive controls add recurring detection for active out-of-band reads (Vercel Changelog, 2026-11-23).
Standard gateway and upstream API boundaries¶
The following policies describe standard gateway ZDR and upstream APIs. They do not establish exceptions to the Audited ZDR tier's serving-path requirements:
- Provider-run tools sit outside gateway ZDR. Vercel does not block provider-run tools such as web search or grounding; separate services can retain tool inputs under their own terms (Vercel ZDR Docs).
- Stateful endpoints retain data under ZDR agreements. Under Anthropic's Legacy ZDR (outside workspaces with Anthropic Human Review turned off, where the Batch API refuses new batches), the API does not block ineligible features such as Batch processing (29-day retention), code execution and programmatic tool calling (container data retained up to 30 days), or the Files API (Anthropic API Data Retention Docs). OpenAI similarly documents that ZDR-ineligible endpoints can store application state when ZDR is enabled (OpenAI API Data Docs).
- Short-lived prompt caches can persist up to 24 hours. Vercel does not count provider prompt caching as data retention, so ZDR requests still route to caching models (Vercel ZDR Docs).
- Model exclusions and safety or legal holds override ZDR. Anthropic's Covered Models require 30-day retention and are unavailable under Legacy ZDR unless expressly authorized or run on Enterprise Frontier Safeguards; Anthropic may also retain data where required by law or retain flagged inputs and outputs for up to 2 years even under ZDR (Anthropic API Data Retention Docs). OpenAI reserves the right to mark models ZDR-ineligible and places moderation and legal-reporting duties on ZDR customers (OpenAI API Data Docs).
When this backfires¶
- Passive write-only logging lands between audits. "Canary checks cannot detect prompts written to disk and never read, so they complement independent code and infrastructure audits rather than replacing them" (Vercel, 2026-11-23).
- A thin audited pool degrades availability or drives exemptions. Three launch partners have begun audits. Standard ZDR routing returns
400no_zdr_providers_availablewhen no eligible provider remains, and team-wide ZDR permits--zdr-exemptkeys (Vercel, 2026-11-23; Vercel ZDR Docs). - BYOK keys revert to self-attestation. Marking a Bring Your Own Key credential as ZDR relies on your own contract check, because Vercel has no visibility into customer agreements (Vercel ZDR Docs).
- When external processing is outside your requirements, consider private inference. Vercel connects self-hosted or fine-tuned model endpoints through AI Gateway (Vercel, 2026-11-23), and Privacy-Preserving LLM Requests covers local routing when prompts cannot leave your environment.
- Team-wide ZDR adds a per-request fee. On Vercel AI Gateway it costs $0.10 per 1,000 billed requests; per-request ZDR adds no fee (Vercel ZDR Docs).
Example¶
Gateway ZDR enforces fail-closed routing per request or team-wide and reports excluded providers in response metadata (Vercel ZDR Docs):
import { generateText } from 'ai';
const { text } = await generateText({
model: 'anthropic/claude-sonnet-5',
prompt: 'Analyze this example business data: revenue grew by 5%.',
providerOptions: {
gateway: {
zeroDataRetention: true,
},
},
});
Successful responses include enforcement metadata and list each skipped provider with its machine-readable reason (zdr_not_supported, zdr_not_attested, or zdr_ineligible_model):
{
"gateway": {
"routing": {
"skippedProviderAttempts": [
{
"provider": "provider-c",
"credentialType": "system",
"reason": "zdr_not_supported"
}
]
},
"enabledZeroDataRetention": true
}
}
When no eligible provider can serve the model, AI Gateway fails the request with HTTP 400 and error type no_zdr_providers_available (Vercel ZDR Docs). Enabling the Audited ZDR team toggle restricts this same routing and failover set to providers with published passing audit reports (Vercel, 2026-11-23).
Key Takeaways¶
- Pair point-in-time serving-path audits with recurring canary URL probes: audits inspect passive storage and failover code, while canaries detect active post-audit reads.
- Read each published auditor report for scope, dates, findings, and disclosed exceptions before relying on an audited badge.
- Gate provider-run tools and stateful endpoints separately, because web search, Batch jobs, Files, and code execution containers can retain data outside ZDR.
- Audit BYOK contracts yourself and account for upstream safety-flag and legal-hold retention before sending regulated prompts through an external gateway.
- Use audited gateway routing for multi-provider cloud workloads, and use private-VPC or local inference where external processing itself is out of bounds.
Related¶
- Reading a Coding-Agent Vendor's Security Certificate — how to read scope, access depth, and cadence on any third-party vendor audit artifact
- Privacy-Preserving LLM Requests — client-side redaction and local routing when third-party inference exposure is unacceptable
- Enforced Versus Advisory Controls in LLM-Native IDEs — sorting runtime-enforced boundaries from self-attested or advisory promises
- Task-Scoped Model Aliases: Name the Job, Not the Model — gateway-level aliases that lock ZDR and fallback settings so callers cannot weaken them
- Client-Keyed Gateway Controls: Where a Spend Cap's Trust Comes From — why a gateway policy binds only when callers cannot override the attribute it keys on