# `Insider.Incident.RestartCapture`
[🔗](https://github.com/hiivemarkets/insider/blob/v0.1.0/tools/insider_lab/lib/insider/incident/restart_capture.ex#L1)

Bounded orchestration for normalized restart-recurrence evidence.

The caller supplies already-normalized, trusted events paired with trusted
receipt times. This module fans each event to the recorder and detector in
one causal step, freezes on the first recurrence finding, assembles one
redacted capsule, validates its canonical bytes offline, and tears down its
recorder before returning.

Signal collection and authorization stay outside this boundary. In
particular, this module does not turn fixture observations or caller claims
into trusted Logger events.

# `accounting`

```elixir
@type accounting() :: %{
  cleanup: %{status: :complete | :uncertain | :not_required},
  consumption: map(),
  loss: map(),
  observer_effect: String.t(),
  truncation: map()
}
```

# `observation`

```elixir
@type observation() :: {Insider.Event.t(), integer()}
```

# `result`

```elixir
@type result() ::
  {:ok, [Insider.Incident.Capsule.t()], accounting()}
  | {:error, Insider.Protocol.Error.t(), accounting()}
  | {:timeout, accounting()}
  | {:cancelled, accounting()}
```

# `capture`

```elixir
@spec capture([observation()], keyword()) :: result()
```

---

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