ExGAM.Domain.Admission.Planner (ExGAM v0.1.0)

Copy Markdown View Source

Builds a provisional atomic Admission plan from queued submissions.

The planner validates sealed Scope bindings and host execution-route availability before calling the pure kernel. It does not append, mint Grants or reply to callers. Each accepted Candidate is applied to provisional state so later Candidates in the same group observe the exact preceding prefix.

Summary

Functions

Creates neutral error plans when Admission cannot start.

Plans a submission group in queue order.

Types

plan()

@type plan() :: %{
  from: GenServer.from(),
  candidate: ExGAM.Candidate.t() | nil,
  error: term() | nil
}

Functions

error_plans(requests)

@spec error_plans([map()]) :: [plan()]

Creates neutral error plans when Admission cannot start.

plan(state, requests, admitted_at)

@spec plan(ExGAM.Domain.Sequencer.State.t(), [map()], non_neg_integer()) ::
  {[plan()], [map()]}

Plans a submission group in queue order.