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

Normalizes and validates the host execution boundary shared by Domain boot,
the executor Runner and Doctor.

Executor and broker callbacks expose stable identifiers only. Adapter options
remain host-local and are deliberately omitted from `describe/1`, because
they may contain credentials or other operational material that must never
enter a diagnostic report or the ledger.

# `broker`

```elixir
@type broker() :: %{
  broker: module(),
  broker_opts: keyword(),
  descriptor: %{ref: String.t(), profile: atom()}
}
```

# `route`

```elixir
@type route() :: %{executor: module(), executor_opts: keyword()}
```

# `route_key`

```elixir
@type route_key() :: {String.t(), String.t()}
```

# `runtime_route`

```elixir
@type runtime_route() :: %{
  executor: module(),
  executor_opts: keyword(),
  broker: module(),
  broker_opts: keyword(),
  broker_descriptor: map()
}
```

# `t`

```elixir
@type t() :: %{routes: %{optional(route_key()) =&gt; route()}, broker: broker() | nil}
```

# `describe`

```elixir
@spec describe(t()) :: map()
```

Returns a deterministic, credential-free description of a normalized boundary.

# `invoke`

```elixir
@spec invoke(module(), atom(), [term()]) ::
  {:ok, term()} | {:error, :exception | :exit | :throw}
```

Invokes a validated executor or broker callback without exposing its failure payload.

# `normalize`

```elixir
@spec normalize(term(), term()) :: {:ok, t()} | {:error, term()}
```

Normalizes the configured executor routes and credential broker.

# `profile_covers?`

```elixir
@spec profile_covers?(atom(), atom()) :: boolean()
```

Checks whether a broker profile is at least as strong as the declared profile.

# `validate_broker_descriptor`

```elixir
@spec validate_broker_descriptor(term()) :: :ok | {:error, :invalid_broker_descriptor}
```

Validates the stable descriptor passed from the Sequencer to an executor runner.

# `validate_runtime_route`

```elixir
@spec validate_runtime_route(term()) :: :ok | {:error, term()}
```

Validates the exact host-only route passed across the Sequencer boundary.

---

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