# Trace dashboard

The trace dashboard is the contributor inventory view for uploaded traces.

## Ledger

The trace ledger is available at:

```text
/dashboard/traces
```

It supports:

- lifecycle filters: `all`, `excluded`, `pending`, `listed`, `sold`, `paid`
- search by trace text and metadata
- sort by recency or length
- table and card views
- pagination
- lifecycle funnel totals

## Lifecycle status

| Status | Meaning |
| --- | --- |
| `excluded` | Contributor excluded the trace from future sales |
| `pending` | Trace is in manual review and has not sold |
| `listed` | Trace has not sold and is not excluded |
| `sold` | Trace was included in a sale but payout is not paid yet |
| `paid` | Trace was included in a sale with a paid payout record |

## Trace detail

```text
/dashboard/traces/{id}
```

The detail page shows trace metadata, highlights, conversation preview, sale state, and a download action for the derived scrubbed JSON.

The full JSON inspection route is:

```text
/dashboard/traces/{id}/full
```

## Include or exclude from sale

Unsold traces can be toggled through:

```http
PATCH /api/traces/{id}
```

Bulk include/exclude uses:

```http
POST /api/traces/bulk
```

Once a trace has a `sale_traces` row, include/exclude mutations are rejected so a sold trace remains attached to its sale record.

## Download

```http
GET /api/traces/{id}/download
```

Downloads stream the owner-scoped derived scrubbed JSON blob with a private no-store cache policy.
