# `Spectre.GAM.Disclosure`
[🔗](https://github.com/elchemista/spectre/blob/0.4.0/lib/spectre/gam/disclosure.ex#L1)

Closed description of information crossing a Domain boundary.

The descriptor names destinations and the durable Evidence that may have
influenced the output. Labels are derived from those Evidence records by the
kernel; callers cannot use this value to assert weaker labels.

# `t`

```elixir
@type t() :: %Spectre.GAM.Disclosure{
  destination_refs: [String.t()],
  labels: [Spectre.GAM.Label.t()],
  schema_version: 1,
  source_evidence_refs: [String.t()]
}
```

# `canonical`

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

Returns the plain ledger representation.

# `from_canonical`

```elixir
@spec from_canonical(map()) :: {:ok, t()} | {:error, term()}
```

Restores a descriptor from its canonical representation.

# `labels_covered?`

```elixir
@spec labels_covered?(t(), [Spectre.GAM.Label.t()]) :: boolean()
```

Returns true when every disclosed label is explicitly covered by a Mandate.

# `new`

```elixir
@spec new(t() | map() | keyword()) :: {:ok, t()} | {:error, term()}
```

Builds the canonical disclosure descriptor.

# `validate_boundary`

```elixir
@spec validate_boundary(Spectre.GAM.Row.t(), t() | nil, [String.t()], [String.t()]) ::
  :ok | {:error, term()}
```

Validates how the descriptor relates to one Candidate or Act.

# `verify_sources`

```elixir
@spec verify_sources(t(), %{optional(String.t()) =&gt; Spectre.GAM.Evidence.t()}) ::
  :ok | {:error, term()}
```

Checks that every source exists and that its conservative label union is exact.

---

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