Minimal immutable input consumed by authority resolution.
The container is derived from Spectre.GAM.GovernedAct.State and deliberately
omits Evidence, Meter balances and executor handles. It is therefore possible
to inspect lineage, revocation, restriction and containment without allowing
facts about the world to manufacture or select authority.
All values are already-restored structs or exact read-model indexes. The resolver never performs atom/string fallback or decodes ledger records.
Summary
Functions
Returns consequence digests held by unresolved containment Duties.
Returns Mandates blocked by unresolved Meter recontainment deficits.
Builds the current full authority view without scanning terminal Duty history.
Selects the exact admitted branch for dispatch, including current blockers.
Selects complete authority facts for one Candidate, without choosing its Mandate.
Builds the exhaustive authority-only view, independent of operational indexes.
Types
@type t() :: %Spectre.GAM.Kernel.Authority.Facts{ blocked_effect_digests: MapSet.t(String.t()), blocked_mandate_refs: MapSet.t(String.t()), disposition_duties: %{optional(binary()) => map()}, mandate_successors: %{optional(String.t()) => String.t()}, mandates: %{optional(String.t()) => Spectre.GAM.Mandate.t()}, revocations: %{optional(String.t()) => Spectre.GAM.Mandate.Revocation.t()} }
Functions
@spec blocked_effect_digests(Spectre.GAM.GovernedAct.State.t()) :: MapSet.t(String.t())
Returns consequence digests held by unresolved containment Duties.
@spec blocked_mandate_refs(Spectre.GAM.GovernedAct.State.t()) :: MapSet.t(String.t())
Returns Mandates blocked by unresolved Meter recontainment deficits.
@spec current(Spectre.GAM.GovernedAct.State.t()) :: t()
Builds the current full authority view without scanning terminal Duty history.
@spec for_act(Spectre.GAM.GovernedAct.State.t(), Spectre.GAM.Act.t()) :: t()
Selects the exact admitted branch for dispatch, including current blockers.
@spec for_candidate(Spectre.GAM.GovernedAct.State.t(), Spectre.GAM.Candidate.t()) :: t()
Selects complete authority facts for one Candidate, without choosing its Mandate.
An explicit request includes that Mandate and every ancestor. Otherwise every Mandate held by the proposer is retained, so ambiguity cannot be hidden by selecting a first match. Ancestors belonging to other principals remain in the view for revocation, restriction, debt and disclosure-owner checks.
This is a pure read of a fold-owned prefix, not a last-N history window or permission supplied by a host callback. Missing operational indexes use the exhaustive path. Persisted indexes must be verified/rebuilt before use.
@spec from_state(Spectre.GAM.GovernedAct.State.t()) :: t()
Builds the exhaustive authority-only view, independent of operational indexes.