Spectre.GAM.Execution.Router (Spectre v0.4.0)

Copy Markdown View Source

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.

Summary

Functions

Returns the configured capability broker without invoking it.

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

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

Checks an Act against an explicit broker descriptor.

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

Types

Functions

broker(arg1)

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

Returns the configured capability broker without invoking it.

broker_supports_act(projection, act, broker)

@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(boundary, executor_ref, contract_ref)

@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(projection, act, descriptor)

@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(boundary, projection, candidate)

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