Authenticates and validates host-supplied SubmissionContexts.
The ingress input is intentionally opaque: an application adapter may accept text, decoded audio, telephony metadata or any other transport-specific value. ExGAM requires only that the adapter return a context bound to the configured Domain, Scope, ingress identity and host generation; the sealed result is then safe to present at the governed Admission boundary.
Summary
Functions
Normalizes and verifies a context against the current host generation.
Checks that a context names the ingress fixed for the running Domain.
Verifies a current context against its durable Scope opening.
Verifies a current context against an explicit provisional projection.
Functions
@spec validate_current(ExGAM.Domain.Sequencer.State.t(), term()) :: {:ok, ExGAM.SubmissionContext.t()} | {:error, term()}
Normalizes and verifies a context against the current host generation.
@spec validate_ingress(ExGAM.Domain.Sequencer.State.t(), ExGAM.SubmissionContext.t()) :: :ok | {:error, term()}
Checks that a context names the ingress fixed for the running Domain.
@spec validate_scope(ExGAM.Domain.Sequencer.State.t(), term()) :: {:ok, ExGAM.SubmissionContext.t(), ExGAM.Scope.Opening.t()} | {:error, term()}
Verifies a current context against its durable Scope opening.
@spec validate_scope( ExGAM.Domain.Sequencer.State.t(), ExGAM.GovernedAct.State.t(), term() ) :: {:ok, ExGAM.SubmissionContext.t(), ExGAM.Scope.Opening.t()} | {:error, term()}
Verifies a current context against an explicit provisional projection.