Orchestrates the executor-mediated half of a governed Act.
The Runner consumes only the internal, acknowledged Sequencer submission response. Refused or undecidable Decisions and ledger-internal Acts return immediately. For an executor-mediated Act the ordering is strict:
consume Grant and durably acknowledge Attempt
-> check out an ephemeral capability
-> invoke the executor once
-> record Evidence
-> record OutcomeNo capability, raw Grant, nonce, exception reason or arbitrary provider reply
is copied into a durable record. Once an Attempt exists, a malformed reply or
a broker/executor exception is conservatively recorded as :ambiguous. The
Runner never retries an executor. Runner.Observation owns normalization at
the untrusted callback boundary; Spectre.GAM.Attempt.Binding owns only the
immutable Act-to-Attempt identity checked by recovery and replay.
Summary
Functions
Runs at most one external attempt from an acknowledged admission response.
Types
@type admission() :: {:ok, %{ decision: Spectre.GAM.Decision.t(), act: Spectre.GAM.Act.t() | nil, grant: Spectre.GAM.Kernel.Grant.t() | nil }} | {:error, term()}
@type run_result() :: {:ok, Spectre.GAM.Attempt.Runner.Result.t()} | {:error, term()}
Functions
@spec run(GenServer.server(), admission(), keyword()) :: run_result()
Runs at most one external attempt from an acknowledged admission response.
The executor, broker and their private options are resolved from immutable
Domain configuration by the exact executor/contract references frozen in the
Act. Callers may supply only :sequencer_opts.
The result never contains the Grant or capability.