# `Spectre.GAM.Attempt.Runner`
[🔗](https://github.com/elchemista/spectre/blob/0.4.0/lib/spectre/gam/attempt/runner.ex#L1)

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 Outcome

No 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.

# `admission`

```elixir
@type admission() ::
  {:ok,
   %{
     decision: Spectre.GAM.Decision.t(),
     act: Spectre.GAM.Act.t() | nil,
     grant: Spectre.GAM.Kernel.Grant.t() | nil
   }}
  | {:error, term()}
```

# `run_result`

```elixir
@type run_result() :: {:ok, Spectre.GAM.Attempt.Runner.Result.t()} | {:error, term()}
```

# `run`

```elixir
@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.

---

*Consult [api-reference.md](api-reference.md) for complete listing*
