Skip to content

Mission Runtime

This page explains the shipped mission runtime path: orchestrator -> worker -> downstream runtime. It focuses on current execution authority, worker-private MCP adaptation, and the source surfaces that own behavior.

Current Design Truth

MissionRuntime owns the background orchestrator loop. It receives a submitted mission, preserves trace and business context, invokes MissionGraph, and marks the mission failed if the graph raises outside a planning-failure terminal state.

MissionGraph owns mission-level runtime progression. It dispatches ready TaskNodes through the A2A worker client, observes worker reports, applies retry policy, writes task attempts, and finalizes mission artifacts. It resolves task-output slots before dispatch and does not call a downstream LIFT2 MCP server directly.

WorkerService is the worker-local composition point behind the public A2A edge. It validates task identity, prepares execution through SkillExecutor, resolves private mcp_skill_implementations[skill_id] from the worker mcp_config_path, stores the initial worker task record, and hands admitted lifecycle work to AdmissionLifecycleDispatcher. Public TaskRecord and WorkerExecutionReport projection is routed through apply_public_task_projection; steady MCP observation, active cancel/deadline convergence, stale projector recovery, and terminal cleanup are owned by ProjectorLifecycleOwner and McpOperationConvergence.

The worker-private MCP adapter is the private protocol bridge for tool calls, task reads, task results, cancellation, timeouts, and bounded error projection. The Streamable HTTP adapter talks only to the worker-private LIFT2 MCP service selected by worker config. MCP tool names, protocol task IDs, runner presets, checkpoints, models, local paths, and raw vendor diagnostics stay below the worker boundary.

The current Engineering Preview implementation builds on the public control-plane and worker-private runtime baseline with private MCP implementation coverage for active worker profiles, the worker-private LIFT2 MCP server under external/lerobot_lab/deploy/lift2/omega_runtime/, resident VLA/procedural runners, deterministic mock/recorded proof, and legacy HTTP execution-path cleanup. Mission-level realtime transport is not part of current mission runtime behavior.

Public worker profiles under deploy/topology/ expose semantic skills. Worker-private kitchen MCP mappings under deploy/worker-private/lift2/kitchen/ select implementation details through mcp_config_path, and deploy/multi-device/ owns multi-device runbook examples that consume those private mappings without becoming their authority. The downstream LIFT2 MCP server remains worker-private: it does not publish Agent Cards, participate in worker discovery, or become visible to mission scheduling.

Runtime Path Diagram

This diagram shows the current runtime path. The orchestrator never calls the private LIFT2 MCP server directly.

flowchart LR
    MissionAPI["Mission API"] --> MissionRuntime["MissionRuntime"]
    MissionRuntime --> MissionGraph["MissionGraph"]
    MissionGraph -->|"assigned TaskNode over A2A"| WorkerA2A["Worker public A2A edge"]

    subgraph Worker["Worker-owned execution"]
        WorkerA2A --> WorkerService["WorkerService"]
        WorkerService --> Admission["AdmissionLifecycleDispatcher"]
        WorkerService --> SkillExecutor["SkillExecutor"]
        SkillExecutor --> PrivateMcpConfig["private mcp_skill_implementations"]
        SkillExecutor --> McpAdapter["worker-private MCP adapter"]
        WorkerService --> Projection["apply_public_task_projection"]
        WorkerService --> ProjectorOwner["ProjectorLifecycleOwner"]
        WorkerService --> TaskStore["Worker task record"]
        TaskStore --> Snapshot["WorkerTaskSnapshot"]
    end

    subgraph PrivateRuntime["Worker-private downstream runtime"]
        McpAdapter --> HttpBridge["Streamable HTTP MCP adapter"]
        HttpBridge --> Lift2Mcp["private LIFT2 MCP service"]
    end

    Snapshot -->|"reports observed by orchestrator"| MissionGraph
    MissionGraph --> Storage["MissionStorage artifacts"]
    MissionGraph -. forbidden direct call .-> Lift2Mcp
    linkStyle 16 stroke:#c62828,stroke-width:2px,stroke-dasharray:5 5;

Data And Control Flow

  1. The orchestrator accepts a mission and starts MissionRuntime.
  2. MissionGraph discovers workers, obtains a typed task graph, computes ready work, and dispatches one assigned atomic node at a time through A2A.
  3. The worker public A2A edge hands the execute request to WorkerService.
  4. SkillExecutor validates the task payload, requires literal slot values, and resolves the private mcp_skill_implementations[skill_id] entry for the skill.
  5. AdmissionLifecycleDispatcher owns the admitted same-process background lifecycle task while WorkerService keeps the A2A request path non-blocking.
  6. The worker starts or resumes a worker-owned MCP operation through the worker-private MCP adapter. McpStartHandoffObservation records whether side effects may exist after a lost start response.
  7. The Streamable HTTP adapter sends private MCP tool/task/cancel requests to the private LIFT2 MCP service selected by worker config.
  8. Worker MCP operation snapshots cross the worker-private boundary only as bounded worker-owned snapshots. apply_public_task_projection converts them into worker task state and ordered worker reports.
  9. ProjectorLifecycleOwner owns passive observation, active cancel/deadline intents, stale recovery, and terminal cleanup. It observes existing worker operation identity and does not restart side-effecting MCP operations during recovery.
  10. The orchestrator observes worker reports through task observation, updates mission runtime state, persists artifacts, and serves northbound reads from artifact-backed services.

MissionReadService is the stable read facade at omega_orchestrator.services.mission_reads.MissionReadService. Its package internals split summary/list, task graph, events, reports, planning/public planning, operator read, diagnostics, and artifact-loading helpers without exposing multiple public read services. Public mission summaries, task graph, events, reports, public planning, monitoring, and operator-read DTO behavior remains unchanged. Public planning loaders resolve planning_trace through the StorageExposure.PUBLIC_PROJECTED storage-slot policy; planning_trace is the only active public-projected slot. planner_outputs/private_debug/raw_responses.json stays a private debug sidecar and is not enumerated by mission, monitoring, planning, or operator reads.

Runtime Projection Loop

This diagram shows how private worker MCP operation state becomes worker reports and mission artifacts.

flowchart TD
    MissionGraph["MissionGraph"] --> WorkerA2A["Worker public A2A edge"]
    WorkerA2A --> WorkerService["WorkerService"]
    WorkerService --> SkillExecutor["SkillExecutor"]
    SkillExecutor --> Routes["private mcp_skill_implementations"]
    Routes --> Bridge["worker-private MCP adapter / Streamable HTTP MCP adapter"]
    Bridge --> McpOperation["private worker MCP operation"]
    McpOperation --> OperationSnapshot["worker MCP operation snapshot"]
    OperationSnapshot --> ProjectorOwner["ProjectorLifecycleOwner"]
    ProjectorOwner --> Convergence["McpOperationConvergence"]
    ProjectorOwner --> Projection["apply_public_task_projection"]
    Projection --> TaskRecord["worker task record"]
    TaskRecord --> WorkerSnapshot["WorkerTaskSnapshot"]
    WorkerSnapshot --> MissionGraph
    MissionGraph --> Storage["MissionStorage artifacts"]

Worker Lifecycle Source / Contract Loop

Runtime phase Current owner Source authority Northbound contract
A2A task acceptance and composition WorkerService apps/worker_agent/src/omega_worker_agent/execution/worker_service.py ExecuteSkillRequest and WorkerExecutionReport in packages/contracts/src/omega_contracts/worker_execution.py
Admitted lifecycle dispatch AdmissionLifecycleDispatcher apps/worker_agent/src/omega_worker_agent/execution/admission_dispatcher.py No northbound contract; worker-private source only
Public task/report projection apply_public_task_projection apps/worker_agent/src/omega_worker_agent/execution/task_projection.py WorkerExecutionReport plus task-state consistency in packages/contracts/src/omega_contracts/task_runtime.py
Start handoff and no-start-replay recovery typed start-handoff observation through WorkerService apps/worker_agent/src/omega_worker_agent/execution/worker_service.py, apps/worker_agent/src/omega_worker_agent/mcp/operation.py No northbound contract; worker-private source only
Passive observation, stale recovery, and terminal cleanup ProjectorLifecycleOwner apps/worker_agent/src/omega_worker_agent/mcp/operation_projector.py No northbound contract; worker-private source only
Active cancel and deadline convergence after MCP side effects may exist ProjectorLifecycleOwner using McpOperationConvergence apps/worker_agent/src/omega_worker_agent/mcp/operation_projector.py, apps/worker_agent/src/omega_worker_agent/mcp/operation_convergence.py No northbound contract; worker-private source only

Recovery is observation-only once a private MCP side effect may exist. The owner rereads existing worker operation identity, applies bounded public projection, and never replays start_or_resume from projector recovery, cancel convergence, deadline convergence, or terminal cleanup.

Authority Boundaries

Boundary Current authority Rule
Mission runtime MissionRuntime, MissionGraph, MissionStorage Mission state and artifacts are orchestrator-owned.
Public worker execution Worker public A2A routes plus WorkerService composition Workers execute only assigned atomic tasks.
Worker skill authority deploy/topology/profiles/workers.yaml, SkillExecutor Public worker profiles expose semantic skill allowlists; skill specs stay semantic.
Worker-private MCP seam mcp_config_path, deploy/worker-private/lift2/kitchen/, mcp_skill_implementations, worker MCP adapter, ProjectorLifecycleOwner, McpOperationConvergence, output_mapping MCP calls stay behind worker authority and only typed public projections cross back.
Private LIFT2 MCP server external/lerobot_lab/deploy/lift2/omega_runtime/ LIFT2 owns worker-private service admission and readiness; it is not an A2A worker.
Public topology and deploy examples deploy/topology/, deploy/multi-device/ Public topology/profile truth and multi-device examples stay separate from worker-private MCP implementation authority.

Validation Responsibilities

Behavior Source-owned validation responsibility
Background mission loop MissionRuntime and MissionGraph own the submitted mission loop and failure handling.
Worker public projection apply_public_task_projection, worker task store, reporter modules, and WorkerExecutionReport own public state projection.
Worker lifecycle owner split WorkerService, AdmissionLifecycleDispatcher, ProjectorLifecycleOwner, and McpOperationConvergence own the lifecycle split.
Worker-private MCP config and adapter Worker MCP config and execution-adapter sources own private implementation resolution and bounded error projection.
Streamable HTTP MCP adapter Worker MCP transport and execution-adapter sources own the worker-private HTTP bridge.
Mission read facade and public loaders MissionReadService and mission storage catalog policy own public read behavior.
Private MCP implementation coverage deploy/worker-private/lift2/kitchen/, worker skill-execution source, and deploy topology profiles own private implementation coverage.
Private LIFT2 MCP server routes external/lerobot_lab/deploy/lift2/omega_runtime/app.py, mcp_server.py, and readiness.py own the deploy runtime service surface.
Multi-device deploy examples deploy/multi-device/ owns multi-device runbook examples without becoming worker-private MCP source authority.

Current Status

This page reflects the current Engineering Preview implementation. The orchestrator plans, resolves slots, schedules, dispatches, observes, and persists mission truth. Workers accept assigned atomic work over A2A, resolve private MCP skill implementations, and execute through the worker-private MCP adapter. Downstream LIFT2 MCP servers are part of the execution path, but they are not public A2A agents and they are not orchestrator dispatch targets. Default verification remains deterministic and hardware-free; live robot, GPU, VLA, SGLang, and vendor-server proof stays HUMAN-UAT unless a later milestone changes the gate.

Source Of Truth

Concern Source-owned truth
Orchestrator mission loop apps/orchestrator/src/omega_orchestrator/services/mission_runtime.py, apps/orchestrator/src/omega_orchestrator/graph.py
Worker task execution composition apps/worker_agent/src/omega_worker_agent/execution/worker_service.py, apps/worker_agent/src/omega_worker_agent/execution/admission_dispatcher.py
Public worker task projection apps/worker_agent/src/omega_worker_agent/execution/task_projection.py
Worker MCP implementation resolution apps/worker_agent/src/omega_worker_agent/mcp/config.py, apps/worker_agent/src/omega_worker_agent/execution/skill_executor.py
Public skill allowlists deploy/topology/profiles/workers.yaml
Worker-private MCP adapter apps/worker_agent/src/omega_worker_agent/mcp/execution_adapter.py, apps/worker_agent/src/omega_worker_agent/mcp/http_transport.py
MCP operation models, owner, convergence, and errors apps/worker_agent/src/omega_worker_agent/mcp/operation.py, apps/worker_agent/src/omega_worker_agent/mcp/operation_projector.py, apps/worker_agent/src/omega_worker_agent/mcp/operation_convergence.py, apps/worker_agent/src/omega_worker_agent/execution/runtime_failures.py
Mission read facade and public loader policy apps/orchestrator/src/omega_orchestrator/services/mission_reads/, apps/orchestrator/src/omega_orchestrator/services/mission_storage/catalog.py (planning_trace is the only active StorageExposure.PUBLIC_PROJECTED slot)
Private LIFT2 MCP server source external/lerobot_lab/deploy/lift2/omega_runtime/app.py, mcp_server.py
Worker-private OMEGA service and runner boundary docs/design/worker-private-omega-runtime-boundary.md, external/lerobot_lab/deploy/lift2/omega_runtime/
Worker-private kitchen MCP mappings deploy/worker-private/lift2/kitchen/
Public topology and multi-device deploy examples deploy/topology/, deploy/multi-device/

Out Of Scope

  • Direct orchestrator-to-downstream-runtime calls.
  • Public discovery, Agent Cards, or A2A scheduling for downstream LIFT2 MCP servers.
  • Duplicating private route payload schemas, compose YAML, runtime model fields, or runbook commands as docs-owned truth.
  • Treating kitchen OMEGA paths as runnable before their owning source and tests make them runnable.
  • Claiming mission-level realtime transport, including resubscribe behavior, snapshot reconciliation, realtime reads, or operator-facing UX, as current.