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

A self-contained, bounded repair request derived from confirmed evidence.

The handoff contains only canonical evidence and a fixed output contract. It
grants no execution or repository authority and accepts no caller-authored
instructions or causal claims. A valid handoff proves that the bound defect
was reproduced twice; it says nothing about any future candidate repair.

# `t`

```elixir
@type t() :: %Insider.Sentinel.CodingAgent.Handoff{
  controls: term(),
  evidence: term(),
  id: term(),
  integrity: term(),
  kind: term(),
  request: term(),
  schema: term()
}
```

# `canonical_binary`

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

# `decode`

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

# `decode_map`

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

# `new`

```elixir
@spec new(term(), term(), term(), 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()}
```

# `validate_with_evidence`

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

Recomputes the handoff from the exact evidence graph before accepting it.

---

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