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

A bounded, redacted, content-addressed incident artifact that validates offline.

Assembly accepts only a sealed recorder snapshot, a supported normalized
finding, validated provenance, trusted export policy, audit identifiers, and
digest-only artifact references. It invokes redaction itself for every root
and rejects preexisting Event redaction claims.

# `t`

```elixir
@type t() :: %Insider.Incident.Capsule{
  artifacts: [map()],
  authority: map(),
  finding: map(),
  id: String.t(),
  integrity: map(),
  provenance: map(),
  redaction: map(),
  schema: String.t(),
  snapshot: map()
}
```

# `assemble`

```elixir
@spec assemble(term(), term(), term(), keyword()) ::
  {:ok, t()} | {:error, Insider.Protocol.Error.t()}
```

# `canonical_binary`

```elixir
@spec canonical_binary(term()) ::
  {:ok, binary()} | {:error, Insider.Protocol.Error.t()}
```

# `decode`

```elixir
@spec decode(binary()) :: {:ok, t()} | {:error, Insider.Protocol.Error.t()}
```

# `decode_map`

```elixir
@spec decode_map(term()) :: {:ok, t()} | {:error, Insider.Protocol.Error.t()}
```

# `to_wire_map`

```elixir
@spec to_wire_map(t()) :: map()
```

# `validate`

```elixir
@spec validate(term()) :: {:ok, t()} | {:error, Insider.Protocol.Error.t()}
```

---

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