# `Pixir.ReplayInspector`
[🔗](https://github.com/Ranvier-Technologies/pixir/blob/main/lib/pixir/replay_inspector.ex#L1)

Read-only replay inspection for local Pixir Logs.

This module reconstructs the Provider input that Pixir would build from a Session
History without calling auth, the network, or the model. It is an operator diagnostic
seam for replay/projection incidents: count function calls, paired outputs, and
synthetic orphan closures from canonical Log events. It also summarizes
audit-only evidence that must not be replayed as clean Provider context.

# `inspect_opts`

```elixir
@type inspect_opts() :: [
  workspace: String.t(),
  after_seq: non_neg_integer() | nil,
  model: term(),
  config_path: String.t(),
  raw_config: map(),
  request_snapshot_loader: (keyword() -&gt; term())
]
```

# `inspect`

```elixir
@spec inspect(String.t(), inspect_opts()) :: {:ok, map()} | {:error, map()}
```

Inspect Provider replay input for `session_id`.

`:after_seq` means "the replay state after this Event seq", so only Events with
`seq <= after_seq` are included. When omitted, the full Log is inspected.

---

*Consult [api-reference.md](api-reference.md) for complete listing*
