Host-owned registry mapping inert ChangeSet operation types to reviewed code.
Registration accepts modules, never runtime data. This keeps the vocabulary
extensible without a central dispatch case and without permitting a
ChangeSet to choose an arbitrary handler.
Summary
Functions
Applies operations in order through their registered handlers.
Returns the reviewed built-in governance vocabulary.
Builds a registry from compiled handler modules.
Builds a registry or raises with the stable validation reason.
Registers one loaded reviewed handler.
Types
Functions
@spec apply( t(), [Spectre.Governance.ChangeSet.Operation.t()], Spectre.Governance.Composition.t(), map() ) :: {:ok, Spectre.Governance.Composition.t()} | {:error, term()}
Applies operations in order through their registered handlers.
@spec default() :: t()
Returns the reviewed built-in governance vocabulary.
Builds a registry from compiled handler modules.
Builds a registry or raises with the stable validation reason.
Registers one loaded reviewed handler.