Orchestrator¶
This page maps the shipped orchestrator application to its source-owned authority.
Concept Model¶
The orchestrator is the shipped control plane. It is the only component
that turns a mission request into a global task graph, chooses when dependencies
are ready, and decides which worker receives each atomic TaskNode. Workers do
not plan, reorder, or schedule the graph; they only execute work assigned through
their public A2A boundary.
The orchestrator also owns mission memory for the current OMEGA system. Mission state,
events, worker discovery, selected planning attempts, task graph snapshots, worker
reports, task attempts, and resolved slot binding evidence are persisted as
orchestrator artifacts behind shared contracts. Northbound read routes project those
artifacts for the console and public reads. The canonical operator-read route is
GET /missions/{mission_id}/operator-read-model; mission-level realtime transport
is not part of the current Engineering Preview implementation.
Implementation Flow¶
create_app() wires the FastAPI shell with MissionStorage, MissionReadService,
PlannerService, WorkerA2AClient, task observation, MissionGraph, and
MissionRuntime. mission_api.py creates missions through storage, starts the
background runtime, and serves list/state/timeline/report/task-graph/planning
views through the read service.
MissionGraph runs the control loop: discover configured workers, build planner
input, call the planner, persist the selected runtime task graph, compute the
ready set, materialize whole-slot TaskOutputRef values before dispatch, dispatch
selected tasks with WorkerA2AClient, observe worker task state, apply worker
reports through scheduler helpers, retry eligible failures, and finalize mission
status. Workers receive literal slot values, not unresolved task-output references;
private MCP operation inputs are selected and started by the worker below the public
worker boundary. MissionStorage and MissionReadService keep durable artifact
shape and read projection source-owned: planning_trace is the only active
StorageExposure.PUBLIC_PROJECTED storage slot, while monitoring/operator reads
load internal mission artifacts and return typed public DTOs instead of raw private
debug sidecars.
Mission Control Flow Diagram¶
This diagram follows the orchestrator-owned control loop from mission intake to northbound reads. Worker execution and private runtime behavior stay behind the worker boundary.
flowchart TD
Submit["mission submit"]
API["mission_api.py"]
Runtime["MissionRuntime"]
Graph["MissionGraph"]
Discovery["worker discovery"]
Planner["PlannerService"]
Scheduler["scheduler helpers"]
Resolver["TaskOutputRef resolver"]
Client["WorkerA2AClient"]
Worker["worker A2A edge"]
Reports["worker reports"]
Storage["MissionStorage artifacts"]
Reads["MissionReadService and operator-read model"]
Submit --> API
API --> Storage
API --> Runtime
Runtime --> Graph
Graph --> Discovery
Graph --> Planner
Planner --> Storage
Graph --> Scheduler
Scheduler --> Resolver
Resolver --> Client
Client -->|"atomic TaskNode"| Worker
Worker --> Reports
Reports --> Scheduler
Scheduler --> Storage
Storage --> Reads
Orchestrator Authority Diagram¶
This diagram separates the orchestrator authority from the worker-local and runtime-private surfaces that it must not bypass.
flowchart LR
subgraph OrchestratorNode["orchestrator authority"]
Intake["mission intake"]
GraphTruth["task_graph truth"]
Scheduling["global scheduling"]
Artifacts["mission artifacts"]
Reads["northbound reads"]
end
subgraph PublicWorker["public worker boundary"]
A2A["A2A dispatch and cancel"]
Snapshots["task snapshots and reports"]
end
subgraph WorkerPrivate["worker-owned private side"]
WorkerService["WorkerService"]
SkillExecutor["SkillExecutor"]
McpAdapter["worker-private MCP adapter"]
Runtime["private LIFT2 MCP server"]
end
Intake --> GraphTruth
GraphTruth --> Scheduling
Scheduling --> A2A
A2A --> WorkerService
WorkerService --> SkillExecutor
SkillExecutor --> McpAdapter
McpAdapter --> Runtime
WorkerService --> Snapshots
Snapshots --> Artifacts
Artifacts --> Reads
Responsibility¶
Own the orchestrator role: mission intake, worker discovery, graph
compilation, global scheduling, A2A dispatch, lifecycle ingestion, mission
artifact persistence, dispatch-time TaskOutputRef materialization, and northbound
mission reads. The runtime path is coordinated through MissionRuntime,
MissionGraph, MissionStorage, MissionReadService, and WorkerA2AClient.
Owns¶
- Mission intake and read route assembly in
mission_api.py. - Application dependency wiring in
app.py, includingMissionRuntime,MissionGraph,MissionStorage,MissionReadService, planner service, task observation, andWorkerA2AClient. - Worker discovery and gate inspection from the orchestrator side.
- Planner input creation, selected task graph persistence, ready-set scheduling,
TaskOutputRefmaterialization, A2A dispatch of atomicTaskNodework, observation, retry, and final mission status projection. - Mission artifact persistence and read-side views backed by
packages/contracts/models. - Public mission, monitoring, planning, and operator-read projections through
omega_orchestrator.services.mission_reads.MissionReadService, the stable facade over split read-model modules underservices/mission_reads/. - Canonical operator-read projection routing through
GET /missions/{mission_id}/operator-read-model.
Does Not Own¶
- Worker-local execution code or downstream runtime internals.
- Worker task invention, worker dependency reordering, or worker-owned global scheduling.
- Worker-private LIFT2 MCP server internals, MCP task IDs, tool descriptors, runner lifecycle, or private MCP operation implementation details.
- Direct worker-private MCP access; private MCP invocation, task identity, result projection, and diagnostics stay below the worker boundary.
- Deployment command authority, topology definitions, route payload schema copies, or contract field lists.
- Mission-level realtime transport semantics.
Current Status¶
Shipped component source map for the current OMEGA orchestrator. The
current docs record that task-output-to-slot resolution is orchestrator-owned, that
MissionReadService is the stable read facade at
omega_orchestrator.services.mission_reads, and that operator-facing reads converge
on the canonical operator-read model through typed DTO projection.
Source Of Truth¶
The orchestrator implementation remains authoritative for current behavior. This page explains where to retrieve that truth; it does not define API payloads, artifact schemas, scheduler rules, or deploy commands.
Key Source Paths¶
| Path | Purpose |
|---|---|
apps/orchestrator/ |
Orchestrator application package and service entrypoints. |
apps/orchestrator/src/omega_orchestrator/app.py |
FastAPI app factory and dependency assembly for MissionRuntime, MissionGraph, MissionStorage, MissionReadService, planner, task observation, and WorkerA2AClient. |
apps/orchestrator/src/omega_orchestrator/mission_api.py |
Northbound mission submission and mission read routes backed by orchestrator services. |
apps/orchestrator/src/omega_orchestrator/graph.py |
MissionGraph lifecycle for discovery, planning, scheduling, dispatch, observation, retry, and finalization. |
apps/orchestrator/src/omega_orchestrator/services/task_output_resolver.py |
Dispatch-time TaskOutputRef materialization into literal slot values and resolved binding evidence. |
apps/orchestrator/src/omega_orchestrator/services/mission_runtime.py |
MissionRuntime background mission loop management and shutdown behavior. |
apps/orchestrator/src/omega_orchestrator/services/scheduler.py |
Ready-set scheduling, dispatch marking, worker report application, and active resource projection. |
apps/orchestrator/src/omega_orchestrator/services/mission_storage/ |
MissionStorage artifact slot catalog, persisted mission state, event log, task graph, planner trace, and worker report writes. |
apps/orchestrator/src/omega_orchestrator/services/mission_reads/ |
Split read-model package for mission summaries, timelines, reports, task graph views, planning views, operator-read projection, diagnostics, and artifact loading. |
omega_orchestrator.services.mission_reads.MissionReadService |
Stable read service facade used by app wiring and mission routes; package internals are split by read-model ownership. |
apps/orchestrator/src/omega_orchestrator/clients/worker_a2a_client.py |
WorkerA2AClient discovery, gate inspection, A2A dispatch, task snapshot, cancel, and subscription client behavior. |
packages/contracts/ |
Shared mission, task, worker, planning, route, and artifact contracts consumed by the orchestrator. |
packages/contracts/src/omega_contracts/operator_read_model.py |
Canonical operator read model contract consumed by operator-facing reads. |
packages/contracts/src/omega_contracts/monitoring_api.py |
Public mission list, state, timeline, reports, task graph, and planning DTO contracts used by mission routes. |
Source Authority¶
Orchestrator behavior is owned by the source paths above. Use them for current mission intake, graph scheduling, A2A dispatch, artifact persistence, and read-model authority.