# `ExGAM.GovernedAct.Execution`
[🔗](https://github.com/elchemista/ex_gam/blob/0.1.0/lib/ex_gam/governed_act/execution.ex#L1)

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

# `mode`

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

# `executor_mediated?`

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

Returns whether the record must cross an application executor boundary.

# `kernel_contract_ref`

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

Stable executor contract reserved for consequences completed inside the ledger.

# `kernel_executor_ref`

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

Stable executor identity reserved for consequences completed inside the ledger.

# `ledger_internal?`

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

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

# `mode`

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

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

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

---

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