# `Spectre.GAM.Execution.Router`
[🔗](https://github.com/elchemista/spectre/blob/0.4.0/lib/spectre/gam/execution/router.ex#L1)

Resolves host execution wiring before a Candidate enters the kernel.

A route proves only that this running application knows how to reach the
declared executor contract and has a compatible broker profile. It does not
authorize the Candidate, choose its route, or become a governed fact. The
kernel still decides Admission from ledger-derived authority; execution can
begin only after the resulting Act receives and consumes a Grant.

# `route`

```elixir
@type route() :: Spectre.GAM.Execution.Boundary.runtime_route()
```

# `broker`

```elixir
@spec broker(Spectre.GAM.Execution.Boundary.t()) :: {:ok, map()} | {:error, term()}
```

Returns the configured capability broker without invoking it.

# `broker_supports_act`

```elixir
@spec broker_supports_act(
  Spectre.GAM.GovernedAct.State.t(),
  Spectre.GAM.Act.t(),
  map()
) ::
  :ok | {:error, term()}
```

Checks that a broker profile covers the HostProfile frozen by an Act.

# `fetch`

```elixir
@spec fetch(Spectre.GAM.Execution.Boundary.t(), String.t(), String.t()) ::
  {:ok, route()} | {:error, term()}
```

Returns the exact executor/broker pair configured for a declared contract.

# `profile_supports_act`

```elixir
@spec profile_supports_act(
  Spectre.GAM.GovernedAct.State.t(),
  Spectre.GAM.Act.t(),
  map()
) ::
  :ok | {:error, term()}
```

Checks an Act against an explicit broker descriptor.

# `validate_candidate`

```elixir
@spec validate_candidate(
  Spectre.GAM.Execution.Boundary.t(),
  Spectre.GAM.GovernedAct.State.t(),
  Spectre.GAM.Candidate.t()
) :: :ok | {:error, term()}
```

Checks that host wiring can support an executor-mediated Candidate.

---

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