# Trace player (/docs/resolve/trace-player)

The step-by-step player on the Resolve page — the seven steps it walks through a real attestation, that every body is a verbatim field, and that the whole section fails open and hides itself when there is no trace.

The [Resolve page](https://kodwen.com/resolve) plays **one real attestation** step by step, under a "Live trace" heading. It is the same public proof you can fetch yourself, rendered as a small player. Source: `apps/web/components/resolve/resolve-trace.tsx` (the server section), `apps/web/components/resolve/trace-player-view.tsx` (the player) and `apps/web/components/resolve/trace-steps.ts` (the shaping).

## What it shows [#what-it-shows]

The player walks the seven steps of a verified fix, in the order a fix happens. Each step's body is the attestation field named below, shown verbatim:

| Step | Label | Attestation field(s) |
| --- | --- | --- |
| `repo` | Repository | `repo_url`, `base_commit` |
| `repro` | Reproduction test | `repro_test.path`, `repro_test.content` |
| `before` | Test before the fix | `test_command`, `test_output_before` |
| `patch` | Patch | `patch` |
| `after` | Test after the fix | `test_command`, `test_output_after` |
| `regression` | Regression suite | `regression_command`, `regression_output` |
| `attested` | Attestation | `verified_at`, `runner_image_digest` |

Nothing is invented: every body is a field of the payload. **A field the attestation does not carry produces no step** — never a placeholder — so a run that omitted something simply shows fewer steps. Each body is clamped to 1200 characters (the whole trace ships at most about 8 kB of text); when a body is cut, the player says the field was truncated for display.

The player also says whether the attestation is **signed**: a payload carrying a DSSE envelope is shown as signed, and can be verified against the public key at `/v1/resolve/keys`.

## It fails open [#it-fails-open]

The section fetches the attestation from the public Resolve API (no API key — the attestation's UUID is the capability) and caches it for about five minutes. Both the fetch and the section **fail open**:

- the fetch has a **5 s** timeout and returns nothing on any error or non-OK response;
- if the API is unreachable, the section renders **nothing** — it does not break the page or the build.

It also **hides itself when there is no trace**: if the shaped attestation yields no steps, the component returns `null` and nothing is shown. On a Resolve outage, or for an attestation missing every field the player reads, the "Live trace" section is simply absent.

## Using it [#using-it]

Buttons only — the step list, **Previous** and **Next**. It is reachable by keyboard, touch, TV D-pad and a screen reader, and the active step is marked `aria-current="step"`. No gesture is the only route to any step.

<Cards>
  <Card title="How it works" href="./how-it-works.mdx" description="The job lifecycle and what the attestation proves." />
  <Card title="Resolve API" href="../api/resolve.mdx" description="The attestation endpoint, field by field." />
</Cards>
