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.
Summary
Functions
Builds the immutable Act from Candidate material and its admitted Decision.
Rebuilds the exact Candidate material frozen in an Act.
Returns the first canonical field mismatch, or nil when the records are linked.
Types
Functions
@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.
@spec candidate(ExGAM.Act.t()) :: {:ok, ExGAM.Candidate.t()} | {:error, term()}
Rebuilds the exact Candidate material frozen in an Act.
@spec mismatch(ExGAM.Decision.t(), ExGAM.Act.t()) :: mismatch() | nil
Returns the first canonical field mismatch, or nil when the records are linked.