ExGAM.GovernedAct.Emergency (ExGAM v0.1.0)

Copy Markdown View Source

Pure invariants for the exceptional root Mandate named by Genesis.

Emergency authority is still a Mandate and crosses normal Admission. This module only fixes the additional constraints that keep the exceptional path narrow: it cannot delegate, rewrite its own governing foundations, or live longer than the Constitution permits. Bootstrap recovery and offline audit share this validator so those rules cannot drift.

Summary

Functions

Validates the optional emergency Mandate selected by Genesis.

Functions

validate(genesis, mandates, rules)

@spec validate(ExGAM.Genesis.t(), %{optional(String.t()) => ExGAM.Mandate.t()}, map()) ::
  :ok | {:error, term()}

Validates the optional emergency Mandate selected by Genesis.