Authenticated ingress context supplied separately from a candidate.
Only the ingress adapter declared by the running Domain may produce a trusted
context. The Sequencer authenticates through that adapter and adds a
generation-bound, process-local seal. Scope opening, resumption and Candidate
submission verify the seal as well as the fixed ingress_ref; merely building
this public data structure does not cross the ingress boundary.
The seal is deliberately excluded from the canonical representation. It is a live fencing mechanism, not durable Evidence or part of the Domain history. The context identifies the authenticated principal and host generation without carrying reusable source credentials. Authentication narrows mandate eligibility; it never creates authority.
Summary
Functions
Returns the plain, string-keyed representation suitable for a decision record.
Returns the content-derived reference, independent of an assigned ref.
Returns the trusted ingress fields frozen into a durable Decision.
Returns the stable digest of the complete context.
Returns the exact trusted context fields embedded in scoped Evidence.
Returns the complete scoped context in Evidence bindings, or nil when unscoped.
Restores a context from its canonical map.
Restores the trusted ingress context frozen in a durable Decision.
Restores and verifies a context from the trusted portion of Evidence bindings.
Adds application bindings without permitting trusted context fields to be supplied.
Builds and validates an authenticated submission context.
Checks that scoped Evidence carries exactly this trusted context.
Types
@type t() :: %Spectre.GAM.SubmissionContext{ authenticated_principal_ref: String.t(), authentication_ref: String.t(), channel_ref: String.t() | nil, domain_ref: String.t(), host_generation: non_neg_integer(), ingress_ref: String.t(), ref: String.t(), schema_version: 1, scope_ref: String.t(), seal: String.t() | nil, session_ref: String.t() | nil }
Functions
Returns the plain, string-keyed representation suitable for a decision record.
Returns the content-derived reference, independent of an assigned ref.
Returns the trusted ingress fields frozen into a durable Decision.
Returns the stable digest of the complete context.
Returns the exact trusted context fields embedded in scoped Evidence.
Returns the complete scoped context in Evidence bindings, or nil when unscoped.
Restores a context from its canonical map.
@spec from_decision(Spectre.GAM.Decision.t()) :: {:ok, t()} | {:error, term()}
Restores the trusted ingress context frozen in a durable Decision.
Restores and verifies a context from the trusted portion of Evidence bindings.
Adds application bindings without permitting trusted context fields to be supplied.
Builds and validates an authenticated submission context.
Checks that scoped Evidence carries exactly this trusted context.