# Trace package format

> The six files in a .llmtrace package, and what each one holds.

Part of the Exalto Capture docs. Page: https://capture.exalto.ai/docs/trace-packages. 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.

A sealed Trace is one `.llmtrace` file: a ZIP archive in a fixed, canonical layout, format `ecp/trace-package/v1`, media type `application/vnd.exalto.notary.trace-package+zip`. It holds everything needed to verify the Trace offline. The [open-source specification](https://github.com/exalto-ai/capture-oss/blob/main/docs/artifact-formats.md) has every field.

## Layout

```text

trc-example.llmtrace/
  
  archive-manifest.json
  
  evidence.tlsn  (or evidence.witness)
  
  manifest.json
  
  request.disclosed.http
  
  response.disclosed.http
  
  trace.otlp.json
```

| File | What it holds |
| --- | --- |
| `archive-manifest.json` | The size and SHA-256 of every other file, and the package's digest |
| `evidence.tlsn` | Notarized: the TLSNotary proof, signed by the notary |
| `evidence.witness` | Witnessed, in place of `evidence.tlsn`: the notary's signed receipt, naming the provider host, the connection time and the hashes of the disclosed request and response |
| `manifest.json` | The evidence format, the provider and host, the time, the notary's public key, and the hashes of the disclosed files and the trace |
| `request.disclosed.http` | The request line, including the path and query string, the header names, and the body |
| `response.disclosed.http` | The final status line, the header names, and the body, including streamed events |
| `trace.otlp.json` | An OpenTelemetry GenAI trace derived from the disclosed bytes: text, model-emitted tool calls, tool results sent back, model and usage |

`manifest.json` tells the two evidence kinds apart: `ecp/trace-evidence/v1` for a Notarized Trace's proof, `ecp/witness-evidence/v1` for a Witnessed Trace's receipt. The notary key it embeds is only a claim. Verifiers check it against their own trusted keys.

## What's hidden

Every header value is replaced with zero bytes, except the structural `Transfer-Encoding: chunked`, so API keys, cookies and other credentials never appear. Header names, the request path and query string, and both bodies are disclosed.

## Canonical archive

The files are stored uncompressed, in the order above, with fixed timestamps and permissions, and nothing else: no extra entries, symlinks or comments. A verifier rebuilds the archive from its contents and compares it byte for byte, so the same Trace always produces the same file. A package can be up to 128 MiB.

A `trace.otlp.json` on its own is useful for inspection, but it isn't evidence: only the whole package can be verified. [Seal and verify](https://capture.exalto.ai/docs/seal-and-verify#what-verification-checks) lists every check.
