Pure consent-response semantics for an immutable Presentation.
A Presentation describes material prepared for disclosure. This module owns the separate Evidence graph proving that the material was successfully shown and then supported or contradicted by an authenticated recipient. Keeping those responsibilities apart makes the causal order visible:
Presentation -> show Act -> successful Outcome -> response EvidenceNone of these checks grants authority. Admission remains responsible for requiring the returned Evidence basis under the selected Mandate.
Summary
Functions
Returns the closed proposition for a response to one successful show Act.
Recognizes only the exact canonical response proposition.
Builds an authenticated supporting or contradicting response Evidence record.
Validates one supporting approval and discards its computed Evidence basis.
Validates a supporting approval and returns its complete Evidence basis.
Validates either response stance and returns its complete Evidence basis.
Functions
Returns the closed proposition for a response to one successful show Act.
@spec refs(ExGAM.Evidence.t()) :: :not_approval | {:ok, String.t(), String.t()} | {:error, term()}
Recognizes only the exact canonical response proposition.
@spec response_evidence( ExGAM.SubmissionContext.t(), ExGAM.Presentation.t(), ExGAM.Act.t(), ExGAM.Evidence.stance(), integer(), map() | keyword() ) :: {:ok, ExGAM.Evidence.t()} | {:error, term()}
Builds an authenticated supporting or contradicting response Evidence record.
@spec validate_approval( ExGAM.Evidence.t(), ExGAM.Presentation.t(), ExGAM.Act.t(), [ExGAM.Outcome.t()], [ExGAM.Evidence.t()], integer() ) :: :ok | {:error, term()}
Validates one supporting approval and discards its computed Evidence basis.
@spec validate_approval_with_basis( ExGAM.Evidence.t(), ExGAM.Presentation.t(), ExGAM.Act.t(), [ExGAM.Outcome.t()], [ExGAM.Evidence.t()], integer() ) :: {:ok, [String.t()]} | {:error, term()}
Validates a supporting approval and returns its complete Evidence basis.
@spec validate_response_with_basis( ExGAM.Evidence.t(), ExGAM.Presentation.t(), ExGAM.Act.t(), [ExGAM.Outcome.t()], [ExGAM.Evidence.t()], integer() ) :: {:ok, [String.t()]} | {:error, term()}
Validates either response stance and returns its complete Evidence basis.