Pure cross-record rules for admitting an Outcome into governed history.
The live observation planner and ledger replay call the same functions for class restrictions, correction ordering and Evidence attestation. They keep their own responsibilities—event construction on one side and state mutation on the other—without maintaining two versions of what an Outcome means.
Summary
Functions
Validates every Evidence reference attesting an Outcome.
Checks class-specific restrictions on an observed result.
Checks that an Outcome is a valid next observation for its Attempt.
Functions
@spec validate_evidence( %{optional(String.t()) => ExGAM.Evidence.t()}, ExGAM.Outcome.t(), ExGAM.Attempt.t(), ExGAM.Act.t() ) :: :ok | {:error, term()}
Validates every Evidence reference attesting an Outcome.
@spec validate_for_act(ExGAM.Act.t(), ExGAM.Outcome.t()) :: :ok | {:error, term()}
Checks class-specific restrictions on an observed result.
@spec validate_history( %{optional(String.t()) => ExGAM.Outcome.t()}, ExGAM.Outcome.t() ) :: :ok | {:error, term()}
Checks that an Outcome is a valid next observation for its Attempt.