# Data privacy and retention (/security/data-privacy-and-retention)



Zumik collects the minimum needed to operate. Tracing defaults to metadata only, no raw prompt text is logged, and any richer mode is something you opt into explicitly.

## Metadata-only by default [#metadata-only-by-default]

By default, traces store lengths, timing, fingerprints, lineage, and usage, never the prompt text. That is enough to run a [workload diagnostic](/guides/workload-diagnostics) and report [reuse](/concepts/reuse-metrics), and it keeps the most sensitive data out of the platform entirely.

## Trace privacy modes [#trace-privacy-modes]

Choose the mode per request on `/v2`, or with the `Agent-Trace-Mode` header on [`/v1`](/openai-compatibility). Higher fidelity is opt-in and tied to your retention policy.

| Mode                      | Stored data                                                | Use case                                      |
| ------------------------- | ---------------------------------------------------------- | --------------------------------------------- |
| `metadata`                | Lengths, timing, fingerprints, lineage, usage              | Low-risk diagnostics (default)                |
| `tokenized`               | Token IDs plus redacted metadata                           | Faithful performance replay without plaintext |
| `encrypted_full_fidelity` | Encrypted source payloads under customer-controlled policy | Output-quality evaluation                     |

A fourth mode, `synthetic`, generates a structurally similar workload with no real content, for public benchmarking and stress tests. Raw prompt text is never retained by default in any mode you do not explicitly select.

<Note>
  Tokenized and full-fidelity modes exist so [replay](/guides/replay) can faithfully reproduce a workload. They are deliberate choices recorded against your project, not a default.
</Note>

## Retention profiles [#retention-profiles]

A project carries a retention profile that governs how long retained representations live and the [purge guarantee class](/concepts/retention-and-purge) deletion can achieve for each processor. Retention, routing, and purge behavior are disclosed to you rather than left vague, because a purge claim can only be as strong as the underlying profile supports.

Provider-managed caches are a real limit here: some providers do not support active manual cache clearing, so a managed-provider profile exposes an expiry-bound guarantee instead of falsely claiming an immediate physical purge. See [retention and purge](/concepts/retention-and-purge) for the guarantee classes and what each one means.

## Encryption [#encryption]

* **In transit.** TLS 1.2 minimum, TLS 1.3 preferred, everywhere. Deprecated algorithms (MD5, SHA-1, RC4, DES) are not used.
* **At rest.** Data at rest is encrypted with AES-256-GCM or equivalent. BYOK provider keys are sealed with AES-256-GCM and decrypted only at execution time; the sealed nonce-and-ciphertext form is all that is ever persisted, and plaintext never touches the store or a log.
* **Internal fingerprints** use HMAC-SHA256 with tenant-scoped keys. See [tenant isolation](/security/tenant-isolation).

## Regional policy [#regional-policy]

Data residency defaults to US regions. Enterprise customers can configure residency to the EU or other supported regions through project policy, and Zumik does not process or store customer data outside the configured region without explicit consent. See [GDPR and CCPA](/security/gdpr-ccpa) for residency and subject rights, and [regional policy](/guides/regional-policy) for the routing controls.

## Consent and audit [#consent-and-audit]

Non-essential processing is off until you opt in. Analytics consent defaults to off, Do-Not-Sell is always honored, and Global Privacy Control browser signals are honored at the edge. Consent changes are written to the audit log so the choice is provable.

<CardGroup cols="2">
  <Card title="Retention and purge" icon="trash" href="/concepts/retention-and-purge">
    Guarantee classes, signed receipts, and resurrection prevention.
  </Card>

  <Card title="GDPR and CCPA" icon="scale-balanced" href="/security/gdpr-ccpa">
    Residency, subject-rights flows, the DPA, and sub-processors.
  </Card>
</CardGroup>
