Skip to content

Invariants

This page names the shipped architecture invariants that future changes must preserve. It is for readers who need to evaluate whether a proposed change still fits the Centralized Explicit system. These invariants apply to the current Engineering Preview implementation.

Current Design Truth

The shipped system is intentionally narrow. It is not a general distributed runtime and it does not grant every service equal scheduling authority. The orchestrator owns global mission state, workers own assigned execution, and every cross-service payload that matters to the control plane stays behind shared contracts.

The invariants below protect that shape:

  • Orchestrator-owned global scheduling: only the orchestrator selects graph truth, computes ready work, dispatches ready nodes, persists mission artifacts, and serves northbound mission reads.
  • A2A-only cross-service dispatch: orchestrator-to-worker calls go through the public worker A2A boundary; the orchestrator does not import or call worker-local execution code.
  • Shared Pydantic contracts: mission, task, worker, public A2A, WorkerExecutionReport, and artifact payloads use source-owned models instead of docs-defined schemas.
  • Atomic task dispatch: workers receive assigned atomic TaskNodes. A wait condition, dependency barrier, or scheduler pause is not encoded as a worker task.
  • Worker-private MCP runtime: downstream MCP operations belong behind WorkerService and the worker-private MCP adapter; private MCP servers do not publish Agent Cards or participate in worker discovery.
  • Public runtime identity stays minimal: public evidence exposes mission, task, worker, skill, attempt, WorkerExecutionReport, typed worker DTO, and explicit output_mapping data. It does not expose MCP task ids, tool names, runner presets, model paths, endpoints, keys, or raw diagnostics.
  • Mission reads stay public-projected: MissionReadService remains the stable omega_orchestrator.services.mission_reads facade over package internals. Mission summaries, task graph, events, reports, public planning, monitoring, and operator reads use typed public DTOs. Public planning reads load planning_trace through StorageExposure.PUBLIC_PROJECTED; planning_trace is the only active public-projected storage slot, and planner_outputs/private_debug/raw_responses.json stays private debug.
  • Worker-private LIFT2 stays private under OMEGA: the LIFT2 MCP server under external/lerobot_lab/deploy/lift2/omega_runtime/ remains a worker-private dependency; it does not publish Agent Cards, participate in public discovery, or create orchestrator client authority.
  • Source-owned validation: behavior is checked by source-owned validation and deploy runbooks. Docs summarize and route; they do not become proof.
  • Docs as retrieval layer: docs can mention stable paths, modules, route surfaces, classes, and source-owned validation posture, but canonical definitions remain in source-owned files.

Data And Control Flow

Every current control flow preserves the same ownership order:

  1. The orchestrator receives mission intent and creates mission state.
  2. The orchestrator resolves worker availability through public worker surfaces.
  3. The orchestrator selects or compiles the typed task graph.
  4. Scheduler logic identifies ready atomic TaskNodes.
  5. WorkerA2AClient dispatches a ready node to its assigned worker.
  6. WorkerService validates and starts worker-local execution.
  7. Runtime-backed work crosses only from the worker into the worker-private MCP adapter; worker mcp_config_path and private mcp_skill_implementations[skill_id] select the implementation below the public boundary.
  8. Worker snapshots and reports return to orchestrator-owned mission state and artifacts.
  9. Northbound reads expose orchestrator-owned views from MissionReadService, not worker-private runtime state or private debug sidecars.

Invariant Enforcement Diagram

This diagram shows the ownership chain each current control flow must preserve.

flowchart TD
    Intent["Mission intent"] --> OrchestratorNode["orchestrator owns mission state"]
    OrchestratorNode --> Graph["Typed TaskGraph truth"]
    Graph --> Scheduler["Ready-set scheduling"]
    Scheduler --> Dispatch["A2A-only atomic dispatch"]
    Dispatch --> Worker["Worker executes assigned TaskNode"]
    Worker --> Runtime["Worker-private runtime seam"]
    Runtime --> Reports["Worker reports and snapshots"]
    Reports --> Artifacts["Mission artifacts"]
    Artifacts --> Reads["Northbound reads"]
    Artifacts --> Validation["Source-owned deploy and validation"]

    Worker -. forbidden .-> GlobalSchedule["worker global scheduling"]
    Runtime -. forbidden .-> PublicDiscovery["runtime Agent Card or scheduler target"]
    Reads -. forbidden .-> PrivateRuntimeState["direct private runtime inspection"]

Authority Boundaries

Invariant Boundary protected
Orchestrator schedules globally Workers cannot create global work, reorder the DAG, or own mission reads.
A2A-only dispatch WorkerA2AClient is the orchestrator-side retrieval pointer for worker calls.
Worker-local execution WorkerService is the retrieval pointer for assigned task handling and runtime projection.
Shared contracts packages/contracts/ owns task graph, public A2A constants, mission reads, WorkerExecutionReport, worker snapshots, and artifacts.
Mission read facade MissionReadService owns artifact-backed public reads; public planning uses the planning_trace StorageExposure.PUBLIC_PROJECTED slot while private debug sidecars stay private.
Runtime privacy worker-private MCP adapter is worker-private and does not become a public scheduling target.
LIFT2 MCP privacy external/lerobot_lab/deploy/lift2/omega_runtime/ is worker-private and does not publish Agent Cards or orchestrator endpoints.
Deploy authority deploy/topology/ owns public topology/profile truth; deploy/multi-device/ owns multi-device runbook examples.
Verification ownership Source modules and deploy runbooks own behavior checks.

Source Authorities

Invariant Public source pointer
Atomic task validation packages/contracts/src/omega_contracts/task_graph.py
Worker-local execution and runtime projection apps/worker_agent/src/omega_worker_agent/execution/worker_service.py
Public A2A boundary and dispatch behavior apps/worker_agent/src/omega_worker_agent/a2a/, apps/orchestrator/src/omega_orchestrator/clients/worker_a2a_client.py, packages/worker_boundary/
MCP adapter and LIFT2 MCP behavior apps/worker_agent/src/omega_worker_agent/mcp/, external/lerobot_lab/deploy/lift2/omega_runtime/
Source-owned docs discipline docs/, mkdocs.yml, and the current source/deploy files named by each page

Current Status

This page reflects the current Engineering Preview implementation. These invariants describe shipped behavior, not mission-level realtime transport, live robot execution beyond deterministic MCP proof, or future SUPV-01 process/job supervisor semantics.

Source Of Truth

Concern Source-owned truth
Orchestrator authority apps/orchestrator/
Worker execution authority apps/worker_agent/
Public A2A and shared payload contracts packages/contracts/
Worker-private runtime protocol apps/worker_agent/src/omega_worker_agent/mcp/config.py, apps/worker_agent/src/omega_worker_agent/mcp/execution_adapter.py, apps/worker_agent/src/omega_worker_agent/mcp/operation.py, apps/worker_agent/src/omega_worker_agent/mcp/operation_projector.py, external/lerobot_lab/deploy/lift2/omega_runtime/
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)
Worker-private MCP mapping authority deploy/worker-private/lift2/kitchen/
Deploy runbook authority deploy/multi-device/, deploy/topology/