# `ExGAM.GovernedAct.Admission.Binding`
[🔗](https://github.com/elchemista/ex_gam/blob/0.1.0/lib/ex_gam/governed_act/admission/binding.ex#L1)

Pure structural boundary between Candidate, admitted Decision and Act.

Admission, replay and execution recovery all cross the same immutable
boundary. Keeping its field correspondence here prevents those drivers from
gradually constructing or accepting different representations of the same
governed act. The Decision/Act matrix names the semantic field exposed in an
error, followed by the fields which must be equal. The construction matrices
keep the two intentional sources visible: Candidate material and the
admission facts frozen by Decision.

# `mismatch`

```elixir
@type mismatch() :: {atom(), term(), term()}
```

# `act`

```elixir
@spec act(ExGAM.Candidate.t(), ExGAM.Decision.t()) ::
  {:ok, ExGAM.Act.t()} | {:error, term()}
```

Builds the immutable Act from Candidate material and its admitted Decision.

# `candidate`

```elixir
@spec candidate(ExGAM.Act.t()) :: {:ok, ExGAM.Candidate.t()} | {:error, term()}
```

Rebuilds the exact Candidate material frozen in an Act.

# `mismatch`

```elixir
@spec mismatch(ExGAM.Decision.t(), ExGAM.Act.t()) :: mismatch() | nil
```

Returns the first canonical field mismatch, or `nil` when the records are linked.

---

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