ExGAM.Governance (ExGAM v0.1.0)

Copy Markdown View Source

Constructors for administrative Candidates.

These helpers only make proposals. They bind proposer and Scope to the authenticated handle, force the exact governance Row and construct a canonical consequence; they never append, select a Mandate or mint a Grant. The returned Candidate must cross normal ExGAM.propose/3 admission. Ordinary application classes do not need a helper here and remain declared through their Surface contracts.

Summary

Functions

Builds a governed proposal that binds removed labels and their owners as exact targets.

Builds a subtractive child-Mandate issuance proposal.

Builds a proposal to return all declared free child Meter balances.

Builds an independently authorized Duty disposition proposal.

Stable executor contract used for consequences completed inside the ledger.

Stable executor identity used for consequences completed inside the ledger.

Builds a Work/Vigil opening proposal in an already-open parent Scope.

Builds a governed proposal that registers an immutable Principal without granting power.

Builds an executor-mediated erasure request proposal.

Builds a proposal for an immutable, strictly narrower Mandate successor.

Stable, closed purpose used by a retained controller to revoke its exact Mandate.

Builds a governed declarative Definition revision proposal.

Builds a governed host-profile revision proposal.

Builds a governed Surface revision proposal.

Builds an immediate, forward-only Mandate revocation proposal.

Stable governed class used to open Work and Vigil scopes.

Exact Row dimensions required by a governed Scope opening.

Functions

declassify_evidence(scope, evidence, removed_labels, candidate_attrs)

@spec declassify_evidence(
  ExGAM.Scope.t(),
  ExGAM.Evidence.t() | map() | keyword(),
  [term()],
  map() | keyword()
) :: {:ok, ExGAM.Candidate.t()} | {:error, term()}

Builds a governed proposal that binds removed labels and their owners as exact targets.

delegate_mandate(scope, mandate, candidate_attrs)

@spec delegate_mandate(
  ExGAM.Scope.t(),
  map() | keyword() | ExGAM.Mandate.t(),
  map() | keyword()
) ::
  {:ok, ExGAM.Candidate.t()} | {:error, term()}

Builds a subtractive child-Mandate issuance proposal.

devolve_mandate(scope, child_mandate_ref, amounts, candidate_attrs)

@spec devolve_mandate(ExGAM.Scope.t(), String.t(), map(), map() | keyword()) ::
  {:ok, ExGAM.Candidate.t()} | {:error, term()}

Builds a proposal to return all declared free child Meter balances.

dispose_duty(scope, disposition, candidate_attrs)

@spec dispose_duty(
  ExGAM.Scope.t(),
  ExGAM.Duty.Disposition.t() | map() | keyword(),
  map() | keyword()
) ::
  {:ok, ExGAM.Candidate.t()} | {:error, term()}

Builds an independently authorized Duty disposition proposal.

kernel_contract_ref()

@spec kernel_contract_ref() :: String.t()

Stable executor contract used for consequences completed inside the ledger.

kernel_executor_ref()

@spec kernel_executor_ref() :: String.t()

Stable executor identity used for consequences completed inside the ledger.

open_scope(parent_scope, child_context, opening_attrs, candidate_attrs)

@spec open_scope(
  ExGAM.Scope.t(),
  ExGAM.SubmissionContext.t(),
  map() | keyword(),
  map() | keyword()
) :: {:ok, ExGAM.Candidate.t()} | {:error, term()}

Builds a Work/Vigil opening proposal in an already-open parent Scope.

register_principal(scope, principal, candidate_attrs)

@spec register_principal(
  ExGAM.Scope.t(),
  ExGAM.Principal.t() | map() | keyword(),
  map() | keyword()
) ::
  {:ok, ExGAM.Candidate.t()} | {:error, term()}

Builds a governed proposal that registers an immutable Principal without granting power.

request_erasure(scope, facts, request_attrs, candidate_attrs)

@spec request_erasure(ExGAM.Scope.t(), map(), map() | keyword(), map() | keyword()) ::
  {:ok, ExGAM.Candidate.t()} | {:error, term()}

Builds an executor-mediated erasure request proposal.

restrict_mandate(scope, predecessor_ref, successor, candidate_attrs)

@spec restrict_mandate(
  ExGAM.Scope.t(),
  String.t(),
  map() | keyword() | ExGAM.Mandate.t(),
  map() | keyword()
) :: {:ok, ExGAM.Candidate.t()} | {:error, term()}

Builds a proposal for an immutable, strictly narrower Mandate successor.

retained_revocation_purpose_ref()

@spec retained_revocation_purpose_ref() :: String.t()

Stable, closed purpose used by a retained controller to revoke its exact Mandate.

revise_definition(scope, definition, candidate_attrs)

@spec revise_definition(
  ExGAM.Scope.t(),
  ExGAM.Definition.t() | map() | keyword(),
  map() | keyword()
) ::
  {:ok, ExGAM.Candidate.t()} | {:error, term()}

Builds a governed declarative Definition revision proposal.

revise_host_profile(scope, previous_ref, profile, candidate_attrs)

@spec revise_host_profile(
  ExGAM.Scope.t(),
  String.t(),
  ExGAM.HostProfile.t() | map() | keyword(),
  map() | keyword()
) :: {:ok, ExGAM.Candidate.t()} | {:error, term()}

Builds a governed host-profile revision proposal.

revise_surface(scope, previous_ref, surface, candidate_attrs)

@spec revise_surface(
  ExGAM.Scope.t(),
  String.t(),
  ExGAM.Surface.t() | map() | keyword(),
  map() | keyword()
) :: {:ok, ExGAM.Candidate.t()} | {:error, term()}

Builds a governed Surface revision proposal.

revoke_mandate(scope, target, candidate_attrs)

@spec revoke_mandate(
  ExGAM.Scope.t(),
  ExGAM.Mandate.t() | String.t(),
  map() | keyword()
) ::
  {:ok, ExGAM.Candidate.t()} | {:error, term()}

Builds an immediate, forward-only Mandate revocation proposal.

scope_open_class()

@spec scope_open_class() :: String.t()

Stable governed class used to open Work and Vigil scopes.

scope_open_dimensions()

@spec scope_open_dimensions() :: [ExGAM.Row.dimension()]

Exact Row dimensions required by a governed Scope opening.