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

A canonical, disclosure-approved request for one provider-created draft.

The request binds a verified draft proposal and inert candidate submission to
one exact coding-agent handoff and one configured provider destination. Its
idempotency key deliberately excludes the renewable disclosure decision, so
reauthorization cannot select a second draft. This artifact grants no merge,
deployment, credential, or unrestricted repository authority.

# `t`

```elixir
@type t() :: %Insider.Sentinel.DraftCreation.Request{
  controls: term(),
  disclosure_decision: term(),
  handoff: term(),
  id: term(),
  idempotency_key: term(),
  integrity: term(),
  intent_id: term(),
  kind: term(),
  proposal: term(),
  provider: term(),
  schema: term(),
  submission: 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(), term()) ::
  {:ok, t()} | {:error, Insider.Protocol.Error.t()}
```

Builds a request after an authority has approved its exact provider-visible payload.

# `payload_reference`

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

Returns the exact payload reference a trusted authority must approve.

# `to_wire_map`

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

# `validate`

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

Validates canonical structure and content identity, not authority authenticity.

# `validate_with`

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

Recomputes the provider-visible payload from the exact source artifacts.

---

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