10 min read

C5
Operation · Governance & Compliance

Data Governance for Agents

One retrieval makes eight copies of the record, and the copy that outlives the others is the one the safety machinery made.

Delete the customer row, reindex the vector store, and you have reached two of the eight copies that a single retrieval created — the rest sit in a cache whose lifetime you chose on a pricing page, a trace store that exists because someone set an environment variable to debug a tool call, a memory write that no longer names its source, and a provider-side abuse-review pipeline your zero-data-retention agreement was never written to reach. Data governance for an agent is an enumeration problem before it is an access-control problem: write the copy list for one data class, put an owner and a clock against each copy, and the policy falls out of the list.

Step 1Classical governance keeps one row per record; an agent run creates one row per copy.

A data catalogue is organised around records and the paths between them, because the paths were declared by someone building a pipeline. An agent declares nothing. It retrieves at step 3, reasons at step 4, summarises at step 6, writes to a tool at step 9, and the record has by then been duplicated into artefacts owned by four different parties on four different clocks. The question a breach notification or a data-subject request forces is not "who could read this record" — that is the access-control question, and most teams can answer it. It is "where are the copies now", and the honest answer is usually a shrug.

So count them. One support ticket containing a name, an email address and an order history, retrieved once by one agent on one turn:

  • The source of record. Your database. Your retention policy. The one copy a deletion workflow reliably knows about.
  • The index copy. The chunk text and its vector. Derived from personal data and therefore personal data, with the same consent, retention and erasure obligations as the source — and usually deleted only when something rebuilds the index, which is a scheduled job, not a transaction (see reindexing and embedding migrations).
  • The provider request copy. The prompt you sent. On Anthropic's commercial API the documented default is 30 days of retention for inputs and outputs, which are not used for training; zero data retention is a separate arrangement, not the default.
  • The cache copy. If the record landed in a cached prefix it is stored for the cache lifetime you selected — five minutes by default, one hour if you paid the higher write multiplier (prompt caching, cache affinity).
  • The trace copy. Tool-call arguments, tool return values and message content, in your observability backend, for whatever that backend's retention happens to be.
  • The memory copy. The summary the agent wrote for next time — a new derived record, usually with no pointer back to the source id it came from (erasure against agent memory, memory scopes and tenancy).
  • The tool-side copy. The third-party API you called logs its own request. You are its customer, not its controller, and its retention is in its terms.
  • The safety copy. The provider's classifier output, and the content it flagged. Retained on a different schedule from everything above, for reasons that have nothing to do with your purpose.

Eight copies, one retrieval, four owners, and no two clocks the same. Nothing in that list is exotic; it is what a normal, well-built agent does on a normal turn.

Step 2Two of those copies exist because of a price and an environment variable.

The cache copy's lifetime is a retention decision that gets made in a latency review. Anthropic's cache has a five-minute default time-to-live and a one-hour option, and the one-hour option is visible to the person choosing it as a higher cache-write multiplier — a cost line, not a data line. Nobody writes "we extended the retention of customer records at a third party by 55 minutes" in the ticket, because that is not what the ticket is about. It is still what happened.

The trace copy is stranger, because by default it does not exist. OpenTelemetry's GenAI instrumentation ships with OTEL_INSTRUMENTATION_GENAI_CAPTURE_MESSAGE_CONTENT set to NO_CONTENT: spans carry model names, token counts and latencies, and no message bodies. Turning it on is a single value — SPAN_ONLY, EVENT_ONLY or SPAN_AND_EVENT — and what it enables, in the instrumentation's own words, is capture of prompts, completions, tool arguments and tool return values. Every team flips it, because a trace without the arguments cannot explain why a tool call went wrong. That flag is the moment your observability backend became a processor of personal data, and it lives in a deployment manifest that no data-governance review reads.

These are the two cheapest wins on the list, precisely because they are configuration rather than architecture. Set the cache TTL from the data class rather than from the hit rate, and redact at the instrumentation boundary rather than at query time, so the copy that lands in the trace store is already minimised (PII redaction in agent traces).

Step 3The copy a zero-data-retention agreement does not reach is the one from your worst run.

Zero data retention is the strongest contractual control available on the provider side: arranged per organisation, it means prompts and responses are not kept at rest once the response returns. It is also the control most often cited as though it settled the question, and it has documented edges worth knowing before you cite it.

Two of them matter operationally. First, coverage is per model, not per account: since 9 June 2026 Anthropic has designated certain models as Covered Models that require 30-day retention even under a zero-retention agreement, and a workspace configured for zero retention can be refused outright when it calls one. "We have ZDR" is therefore not a fact about a request until you also know which model served it. Second, safety classifier results and flagged content are retained on their own schedule, and that category is generally outside what a retention agreement reaches — see zero data retention and abuse monitoring for the shape of the carve-outs.

Now put that next to what an agent actually does. The runs most likely to trip a classifier are the ones where a retrieved document, a web page or a tool result carried something adversarial — an injection attempt, an exfiltration instruction, a jailbreak fragment. That is to say: the run containing both your customer's personal data and an attacker's payload is the run whose provider-side copy lives longest. The incident and the retention exposure are the same event. Any governance story that treats provider retention as a flat 30 days, or as zero, has the one case it most needs to describe exactly backwards.

Step 4A retention floor and an erasure duty meet in one trace store, and the law hands you the reconciliation.

Article 26(6) of the EU AI Act requires deployers of high-risk systems to keep the logs automatically generated by the system, to the extent those logs are under their control, for a period appropriate to the intended purpose and at least six months — unless Union or national law provides otherwise, in particular law on the protection of personal data. Providers carry a parallel duty under Article 19. For Annex III systems these obligations apply from 2 December 2027, which is close enough that the artefacts you design this quarter are the ones that will have to satisfy them (the EU AI Act for agents).

Read the carve-out carefully, because it is doing more work than the floor. The regulation does not create a contradiction with a shorter data-protection retention period; it resolves one, in favour of data-protection law, and leaves the resolution to you to perform per artefact. That is a harder ask than a conflict would be. A conflict you escalate to counsel once; a reconciliation you have to do for every copy, every quarter, and it requires something no agent stack produces: a list of which copies are "logs automatically generated by the system" and which are debug telemetry that merely looks like them.

Two phrases decide each case. Automatically generated excludes the span you added by hand to chase a bug, and includes the decision record the system emits on every run. Under their control is the one that moves: a trace held in your own backend is clearly yours, a vendor's internal log of the same call is clearly not, and a trace your vendor holds under contract on your behalf is exactly the ambiguous middle that your contract, not your architecture, has to settle. The practical consequence is a split most teams make far too late: the audit log and the debug trace are different artefacts, with different fields, different retention and different owners, even when they are produced by the same instrumentation. Write them separately from the start (audit trails, trace sampling and retention, retention and legal hold).

Step 5Work the erasure request, then notice which control shortens the list instead of tracking it.

A data subject asks for deletion. The workflow a normal company has — delete the row, trigger a reindex, confirm — runs correctly and completes:

erasure request: ticket #44812 (name, email, order history)

reached by the existing workflow
  source of record      deleted            owner: us
  index copy            gone at next rebuild (nightly)   owner: us

not reached, and not on anyone's list
  provider request copy 30d default clock, started at call time   owner: provider
  cache copy            5m or 60m, whichever TTL was selected     owner: provider
  trace copy            backend retention, content present        owner: us
  memory copy           summary, no source id, no expiry          owner: us
  tool-side copy        third-party log, terms-defined            owner: tool vendor
  safety copy           own schedule, outside ZDR scope           owner: provider

2 of 8 reached. Nothing failed. No alert fired.

Two of those six are recoverable by engineering you already know how to do: the trace copy needs retention and redaction you control, and the memory copy needs a source id written at the time of the write so that a deletion has something to join on. Three are governed by clocks you can read but not stop. One — the memory summary — is the quiet one, because it is the only copy that was authored rather than stored: it may restate the personal data in paraphrase, which no identifier-matching deletion job will find.

Which points at the only control on this page that makes the list shorter rather than longer. Minimisation at the boundary is not a defence-in-depth nicety; it is the one move that prevents copies 3 through 8 from existing. A field the task does not need never crosses into a prompt, never lands in a cache, never appears in a span, never reaches a classifier. Pass the order id and let the tool resolve it server-side and the agent has acted on the record without ever holding it. This was the right instinct in the original version of this page and it survives the rebuild intact — it is simply worth more than it looked, because the thing it prevents is a seven-way fan-out and not a single disclosure.

Embeddings are not anonymisation. A vector derived from personal data is personal data, and a vector store inherits the consent, retention and erasure obligations of its source. The same holds for a model's paraphrase of a record: summarisation changes the representation, not the status.

Step 6The deliverable is a copy register, and the check that enforces it has to run at point of use.

Write the register before the policy. One table per data class, one row per copy, five columns: owner, clock, legal basis, deletion mechanism, and — the column teams forget — is absence detectable. That last one is what separates a register from a wish: you can verify a deleted row, you cannot verify that a provider's classifier store no longer holds a flagged prompt, and a register that does not mark the difference will be read as though every row were checkable.

The register tells you where copies go; it does not stop one being made for the wrong reason. That is the job of a purpose check, and the reason it has to run at the point of use rather than at intake is the same reason the copy list is long: the agent recombines data in ways nobody declared, so consent cannot be assumed from how the data was collected.

# purpose binds the data; checked at point of use, not intake
rec = store.get(id)            # rec.purpose = "support"
if action.purpose not in rec.allowed_purposes:
    raise PurposeViolation(rec.id, action.purpose)
# support-consented data cannot flow into a marketing action

Tag purpose and consent basis at ingestion so the runtime check is a lookup rather than a guess, and default untagged data to the most restrictive purpose. Where the data class is also jurisdictionally constrained, the same check is where routing gets governed: an agent that picks a model endpoint or a tool at runtime will move regulated data across a border in one function call, with no log line and nobody aware (data residency and sovereignty, permission-aware retrieval).

The honest cost: minimisation removes context the model might have used, region pinning narrows which models you may call, and purpose metadata is engineering nobody is thanked for. The trade is still obviously worth taking, because the alternative is not "no governance" — it is doing this work retroactively, under a regulator's deadline, across a data flow that was never written down.

Start here, in this order. One: pick your highest-sensitivity data class and enumerate its copies on one turn — if the list is shorter than six you have missed some. Two: set the cache TTL and the trace content flag deliberately, per data class, and record who decided. Three: write a source id into every memory write, so erasure has a join key. Four: split the audit log from the debug trace now, while the retention duty is still a year out. Five: confirm per model, not per account, which of your calls are covered by your retention agreement.