# `Insider.Sentinel.Dedup`
[🔗](https://github.com/hiivemarkets/insider/blob/v0.1.0/tools/insider_lab/lib/insider/sentinel/dedup.ex#L1)

Offline, deterministic, bounded retention for canonical incidents and proposals.

Capsules enter first. Proposal admission requires the complete exact evidence
graph and its already-retained capsule. The caller-owned Lab state retains
bounded canonical evidence bytes so it can revalidate every bucket on every
use; receipts remain privacy-minimal references only.

# `t`

```elixir
@type t() :: %Insider.Sentinel.Dedup{
  groups: term(),
  limits: term(),
  receipt_count: term(),
  retained_bytes: term()
}
```

# `ingest_capsule`

```elixir
@spec ingest_capsule(term(), term()) ::
  {:ok, t(), Insider.Sentinel.Dedup.Receipt.t()}
  | {:error, Insider.Protocol.Error.t()}
```

# `ingest_proposal`

```elixir
@spec ingest_proposal(term(), term(), term(), term(), term(), term()) ::
  {:ok, t(), Insider.Sentinel.Dedup.Receipt.t()}
  | {:error, Insider.Protocol.Error.t()}
```

Admits a proposal only after exact graph recomputation and capsule binding.

# `new`

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

# `validate`

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

---

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