ExGAM.Domain.Command.Execution (ExGAM v0.1.0)

Copy Markdown View Source

Orchestrates Grant issuance and the durable start of executor-mediated Acts.

Host routes are resolved without becoming authority. A consumed Grant is recorded as an Attempt before any capability receipt is returned, and the recovered projection is rechecked before checkout. The module executes no external capability itself; Zone X remains in ExGAM.Attempt.Runner.

Summary

Functions

Consumes a Grant into one durable Attempt and returns its checkout receipt.

Mints an executor Grant when an admitted Act still has a dispatch path.

Functions

consume(state, grant)

Consumes a Grant into one durable Attempt and returns its checkout receipt.

mint_grant(state, act)

@spec mint_grant(ExGAM.Domain.Sequencer.State.t(), ExGAM.Act.t() | nil) ::
  {:ok, ExGAM.Kernel.Grant.t() | nil} | {:error, term()}

Mints an executor Grant when an admitted Act still has a dispatch path.