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

A canonical record of one disclosure authority's draft-creation decision.

Standalone validation establishes only the record's content identity. Trusting
an approval requires exact recomputation from the payload, provider, authority,
and opaque decision reference supplied by the configured authority boundary.
SHA-256 provides identity, not authenticity.

# `t`

```elixir
@type t() :: %Insider.Sentinel.DraftCreation.DisclosureDecision{
  audience: term(),
  authority: term(),
  controls: term(),
  decision_reference: term(),
  id: term(),
  integrity: term(),
  payload: term(),
  provider: term(),
  purpose: term(),
  schema: term(),
  status: term(),
  trust: 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()}
```

Validates canonical structure and record identity, not trusted approval.

# `validate_with`

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

Recomputes the record from the exact authority-bound inputs.

---

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