ExGAM.GovernedAct.Execution (ExGAM v0.1.0)

Copy Markdown View Source

Classifies how an admitted governed Act reaches completion.

Intrinsic ledger classes complete atomically with their Act and event suffix. Application classes may also complete in-ledger only through the exact reserved executor identity and a non-empty Row limited to write/spend. Every other valid Act is executor-mediated. This module classifies durable intent; host route lookup remains outside the kernel in ExGAM.Execution.Boundary.

Summary

Functions

Returns whether the record must cross an application executor boundary.

Stable executor contract reserved for consequences completed inside the ledger.

Stable executor identity reserved for consequences completed inside the ledger.

Returns whether the record is an exact ledger-internal execution declaration.

Returns the execution mode while rejecting malformed use of the reserved route.

Validates only the execution classification, without resolving a host route.

Types

mode()

@type mode() :: :ledger_internal | :executor_mediated

Functions

executor_mediated?(record)

@spec executor_mediated?(ExGAM.Candidate.t() | ExGAM.Act.t()) :: boolean()

Returns whether the record must cross an application executor boundary.

kernel_contract_ref()

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

Stable executor contract reserved for consequences completed inside the ledger.

kernel_executor_ref()

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

Stable executor identity reserved for consequences completed inside the ledger.

ledger_internal?(record)

@spec ledger_internal?(ExGAM.Candidate.t() | ExGAM.Act.t()) :: boolean()

Returns whether the record is an exact ledger-internal execution declaration.

mode(record)

@spec mode(ExGAM.Candidate.t() | ExGAM.Act.t()) :: {:ok, mode()} | {:error, term()}

Returns the execution mode while rejecting malformed use of the reserved route.

validate(record)

@spec validate(ExGAM.Candidate.t() | ExGAM.Act.t()) :: :ok | {:error, term()}

Validates only the execution classification, without resolving a host route.