# Traces

> A Trace's two states, its two evidence kinds, and what it records.

Part of the Exalto Capture docs. Page: https://capture.exalto.ai/docs/traces. Every page is listed in https://capture.exalto.ai/llms.txt; the whole site in one file is https://capture.exalto.ai/llms-full.txt.

Every request Capture records becomes a Trace. A Trace has a **state**, Captured or Sealed, and an **evidence kind**, Notarized or Witnessed. The kind comes from the capture mode when the request was made and never changes. Always read the two together: a Trace is "Sealed · Notarized" or "Sealed · Witnessed", never just "Sealed".

**Figure.** A Notarized Trace waits as an encrypted capture until you seal it. A Witnessed Trace is sealed by the notary's receipt the moment the call completes.

Provider call (through Capture) → Captured (.llmcapture, encrypted, private) → Sealed (.llmtrace, portable evidence) → Verified or shared (by anyone,, offline or by link)

- Notarized: sealed later, when you ask, by computing a TLSNotary proof.
- Witnessed: sealed by the notary's signed receipt the moment the call completes.

## States

| State | What exists | Who can check it |
| --- | --- | --- |
| Captured | An encrypted checkpoint, `<trace-id>.llmcapture` | Nobody. It isn't evidence yet. |
| Sealed | A `.llmtrace` package: the evidence, the disclosed exchange, and an OpenTelemetry trace | Anyone, offline, with the [SDK or the hosted verifier](https://capture.exalto.ai/docs/seal-and-verify#verify-a-trace) |

Only Notarized Traces are ever Captured. Sealing one computes its proof; see [Seal and verify](https://capture.exalto.ai/docs/seal-and-verify).

## Evidence kinds

| | Notarized | Witnessed |
| --- | --- | --- |
| Evidence in the package | TLSNotary proof (`evidence.tlsn`) | The notary's signed receipt (`evidence.witness`) |
| What it rests on | Cryptography, and a notary key that is neither compromised nor colluding with whoever captured | Trust in the notary operator |
| What the notary saw | Ciphertext, sizes and timing | The full request and response, credential included |
| When it's sealed | Later, when you choose | At capture |
| Encrypted checkpoint kept | Yes | No |
| Timestamp, signed by the notary | When the TLS connection opened, to the second | When the notary connected, to the millisecond |

A Witnessed Trace is never a proof, and nothing should present it as one. The [trust model](https://capture.exalto.ai/docs/trust-model) sets out the difference.

## What a Trace records

- **The artifact.** The SDK hands your code one artifact per call, a `.llmtrace` or a `.llmcapture`, and keeps nothing else: no metadata, previews or index. What you store beside it is up to you.
- **The checkpoint** of a Notarized Trace: the `.llmcapture`, encrypted, and enough to rebuild the original request, **credential included**. The SDK encrypts it under your capture key; hosted capture, under a key Exalto holds for your organization. It's the most sensitive file Capture produces, and it is never part of a package or a share.
- **For hosted capture**, Exalto also keeps metadata (provider, requested and response model, HTTP status, sizes, duration, state and evidence kind) and the first 1,000 characters of the prompt and of the output, so captures can be searched. [Hosted capture](https://capture.exalto.ai/docs/hosted-capture#what-exalto-handles-and-stores) lists what it stores.

Header values, cookies and credentials never appear in packages, metadata or previews.

## Which calls can be sealed

- **One call per Trace.** A Trace holds one request and its final response. A long agent session is many independent Traces.
- **Successful responses only.** A non-2xx response still reaches your client, but it produces no Trace you can seal.
- **Within the size limit.** A Notarized exchange can be up to 15 MiB and a Witnessed one up to 64 MiB, and your [plan](https://capture.exalto.ai/docs/billing) can set a lower limit.
- **Not with capture off.** Requests made with capture off leave no Trace at all.
