AI agents availableView
← All articles

How Zero-Data Retention Stops Your AI Leaking Data

4 min readmono

The security review reaches one question and the room goes quiet: "Does OpenAI train on our data?" If the honest answer is a shrug, the AI project dies in procurement — and it should. A model that has seen your customer records is a data processor you have not audited.

This is not a reason to avoid AI. It is a reason to demand an architecture where the answer is written down, enforced in code, and provable.

The three places data actually leaks

Most "AI data leaks" are not dramatic breaches. They are default settings.

  1. The provider layer. API and consumer products are not the same product. Consumer apps may use your content to improve models. API endpoints usually offer different terms, and abuse-monitoring retention can still keep prompts for a limited window unless zero retention is contracted. If your vendor cannot tell you which path your prompts take, assume the least private one.
  2. The application layer. An agent with a database connection can be talked into using it. Prompt injection turns a support ticket into instructions, and a broad tool turns instructions into an export.
  3. The storage layer. Chat transcripts, vector stores and "memory" features accumulate personal data faster than anyone deletes it.

What zero-data retention should mean

Zero-data retention is not a checkbox on a pricing page. It is a set of obligations you can point to in a contract:

  • No training on your prompts, documents or outputs.
  • No long-term storage of request and response content by the model provider.
  • A defined retention window for abuse monitoring — and a path to zero for regulated workloads.
  • A sub-processor list naming every model and infrastructure vendor that can see the data.
  • Deletion on request, with evidence.
  • Provider routing under your control, so a sensitive workflow cannot silently fall back to a provider you did not approve.

Our model calls go through a routing layer with a per-workload allowlist. Workloads that carry personal data are pinned to endpoints covered by zero-retention terms; if a provider cannot meet the bar, it is not on the list.

The architecture: isolation by default

Contract terms are the last line. The first line is that the model never gets more access than the task requires.

Row Level Security in Supabase. Every tenant-scoped table carries a tenant identifier, and RLS decides what a request can see. The agent reaches data through scoped views and RPC functions, not through a master credential. The service role key stays on the server and is never handed to a model.

alter table leads enable row level security;

create policy "tenant_read" on leads
  for select using (tenant_id = (auth.jwt() ->> 'tenant_id')::uuid);

Scoped permissions per agent. A support agent gets read access to tickets and a narrow write tool for status changes. It does not get the billing tables. There is no generic SQL tool in the registry, because a language model choosing table names is not access control.

Minimisation before the model call. Send the fields the task needs, redact identifiers that are not required, and keep raw records in your database rather than in a prompt. Less context means a smaller blast radius for a prompt injection.

Append-only audit. Tool calls, approvals and decisions are logged with metadata: which agent, which tool, which tenant, which human approved. Logs are evidence for a SOC 2 review, and they let you reconstruct an incident without storing the sensitive payload.

What to ask before you sign

  • Is training on our data disabled in writing?
  • What is the retention window for prompts and completions, and can it be zero?
  • Which sub-processors see the data, in which jurisdiction?
  • How is tenant isolation enforced — policy, or the model's good behaviour?
  • Can you show an audit log of one action end to end?
  • What happens on a prompt injection: which tools can it reach?

A vendor that answers these in one page is ready for enterprise. One that answers with "we use the best models" is not.

The business value

Privacy architecture is usually sold as risk reduction, which is true but incomplete. It is also a speed feature: teams that can answer a security questionnaire in a day close enterprise deals weeks earlier, and avoid the most expensive incident class in AI — a permission model retrofitted after the first scare.

If you are weighing zero retention against capability, start with Enterprise for the deployment model, then see how Agent OS enforces scoped tools and approval gates. For a security review of your specific data flow, message @mono_supporty on Telegram.

The right question is not whether your AI can be trusted. It is whether your architecture makes trust verifiable.

Check whether AI can see your site

A free AEO scan takes 10 seconds: 24 parameters and the three biggest problems. Then the AEO agent fixes the page and watches visibility for you.

Related articles