Skip to content

A2A Boundary

This page explains the shipped public A2A worker boundary. It separates A2A wire mechanics from OMEGA business authority so readers can follow dispatch, observation, cancel, and worker discovery without treating SDK transport details as mission truth.

Current Design Truth

The orchestrator talks to workers only through the public A2A boundary. WorkerA2AClient resolves Agent Cards, runs the worker gate, builds SDK clients for the current HTTP+JSON interface, sends assigned atomic TaskNode execute-skill requests, opens task subscriptions, reads task snapshots, and requests cancel. It does not reach into worker-local execution code.

This remains true under the current worker-private MCP baseline. Public topology advertises workers and skill_allowlist entries. Each worker privately resolves mcp_config_path, mcp_skill_implementations[skill_id], and mcp_servers before calling LIFT2 MCP below A2A. The private LIFT2 dependency is not public discovery, does not publish Agent Cards, is not a scheduling target, and is not called directly by the orchestrator. See Worker-Private OMEGA Runtime Boundary.

The worker owns the public route assembly. omega_worker_agent.a2a.routes exposes the canonical Agent Card, message send, message stream, task get, task cancel, and task subscribe surface from the shared route specs. omega_worker_agent.execution owns task acceptance, assigned TaskNode validation, worker-owned MCP operation lifecycle, output_mapping, and worker reports. omega_worker_agent.mcp owns the private MCP config, transport, operation store, and projector.

packages/contracts/src/omega_contracts/a2a_protocol.py owns the route names, task-state constants, media type, roles, and canonical route set. packages/worker_boundary/ owns the parsing and gate result structures that adapt SDK payloads into project-owned models. GateInspectionResult records discovery readiness and checkpoint details. WorkerTaskSnapshot carries task state plus worker reports back to the orchestrator observation path.

Public Boundary Diagram

This diagram separates the public A2A edge from project-owned mission authority behind it.

sequenceDiagram
    autonumber
    participant G as MissionGraph
    participant C as WorkerA2AClient
    participant A as Worker public A2A routes
    participant W as WorkerService
    participant B as worker-private MCP adapter
    participant O as LIFT2 MCP
    participant S as MissionStorage

    G->>C: discover worker and inspect gate
    C->>A: resolve Agent Card and ready state
    A-->>C: GateInspectionResult and capability snapshot
    G->>C: dispatch assigned TaskNode
    C->>A: A2A execute-skill request
    A->>W: parse request into project model
    W->>B: start/read/cancel worker-owned MCP operation
    B->>O: private Streamable HTTP MCP methods
    W-->>A: worker task id and accepted state
    A-->>C: A2A task response
    C-->>G: observation target
    C->>A: subscribe or get WorkerTaskSnapshot
    A->>W: read worker-owned task record
    W-->>A: WorkerTaskSnapshot with reports
    A-->>C: snapshot
    C-->>G: worker report
    G->>S: apply report to mission artifacts

Data And Control Flow

  1. The orchestrator loads configured worker endpoints and asks WorkerA2AClient to discover them.
  2. For each worker, the client resolves the Agent Card, parses the advertised HTTP+JSON interface, validates capability identity through packages/worker_boundary/, and checks worker readiness.
  3. A ready gate produces a DiscoveredWorkerSnapshot with a WorkerCapabilitySnapshot for planning and scheduling.
  4. MissionGraph schedules ready atomic TaskNodes and asks WorkerA2AClient to send an execute-skill request to the assigned worker.
  5. The worker public A2A edge accepts the request, hands it to worker service authority, and returns a worker task identifier.
  6. The orchestrator observes the worker task through subscription-first task observation and worker task snapshots; WorkerTaskSnapshot reports are applied to mission runtime state.
  7. Cancel uses the public task cancel route, but mission terminal state is still determined by orchestrator runtime handling and persisted artifacts.

Authority Boundaries

Wire Mechanics

Mechanic Current owner Notes
Agent Card resolution and A2A SDK client construction WorkerA2AClient Uses configured transport URLs as concrete connection authority after validating the advertised HTTP+JSON interface.
Public route shape a2a_protocol.py, omega_worker_agent.a2a.routes The worker route builder exposes the repo-owned canonical subset for the advertised A2A surface.
A2A version handling omega_worker_agent.a2a.routes, worker gateway validation The worker accepts semver-equivalent current protocol headers and rejects non-current public calls.
Message and task transport parsing packages/worker_boundary/ Transport payloads are parsed into project-owned request and snapshot models.
Task observation transport WorkerA2AClient, task observation service The orchestrator opens task subscriptions and confirms state through worker task snapshots.

Business Authority

Business concern Current authority Not owned by the wire layer
Mission intake and selected task graph truth Orchestrator mission API, MissionRuntime, MissionGraph, MissionStorage Agent Card metadata or SDK task objects do not own mission artifacts.
Atomic task identity and assignment TaskNode and runtime task state models in packages/contracts/ and orchestrator state Workers do not invent or reorder global DAG work.
Worker capability and readiness gating GateInspectionResult, WorkerCapabilitySnapshot, worker /readyz Raw transport reachability alone is not enough to schedule work.
Worker task lifecycle WorkerService, worker reports, WorkerTaskSnapshot A2A task state is adapted into project worker-report semantics.
Worker-private MCP execution worker-private MCP adapter, mcp_config_path, mcp_skill_implementations[skill_id], mcp_servers, and output_mapping Private LIFT2 execution does not become public A2A discovery, Agent Card authority, or scheduling authority.
Northbound mission reads MissionReadService over persisted mission artifacts Public A2A task reads are not the operator-facing mission read model.

Source Authorities

Behavior Public source authority Runtime scope
Canonical public route set packages/contracts/src/omega_contracts/a2a_protocol.py, apps/worker_agent/src/omega_worker_agent/a2a/routes.py The listed source files define the current route subset.
Current-version public A2A handling apps/worker_agent/src/omega_worker_agent/a2a/routes.py Public docs describe the contract; implementation-owned validation enforces accepted and rejected protocol versions.
Worker gate inspection and readiness WorkerA2AClient, packages/worker_boundary/ Gate behavior belongs to worker/orchestrator boundary checks.
Execute-skill transport payload parsing packages/worker_boundary/ Transport parsing remains source-owned and validated through implementation checks.
Subscribe-first task observation and worker snapshots WorkerA2AClient, task observation service, WorkerTaskSnapshot Observation behavior stays tied to source-owned task snapshots and mission-state handling.
Business-state separation from SDK objects MissionGraph, MissionStorage, MissionReadService Mission artifacts and read services remain business truth behind the wire layer.
Worker-private MCP boundary worker-private MCP adapter, private config bindings, and LIFT2 MCP Private MCP stays worker-owned and is not part of public A2A discovery or scheduling.

Current Status

This page reflects the current Engineering Preview implementation. The public worker edge is HTTP+JSON A2A, assembled by the worker and consumed by the orchestrator through a validated client. Project-owned contracts, worker records, task snapshots, MCP operation projections, output_mapping, and mission artifacts remain the source of business truth behind that edge.

Source Of Truth

Concern Source-owned truth
Public A2A route constants and allowlist packages/contracts/src/omega_contracts/a2a_protocol.py
Orchestrator-side worker discovery, gate inspection, dispatch, observation, and cancel apps/orchestrator/src/omega_orchestrator/clients/worker_a2a_client.py
Worker public A2A route assembly apps/worker_agent/src/omega_worker_agent/a2a/routes.py, apps/worker_agent/src/omega_worker_agent/a2a/sdk_server.py
Worker service execution authority behind the public edge apps/worker_agent/src/omega_worker_agent/execution/worker_service.py
Worker-private MCP boundary and LIFT2 source docs/design/worker-private-omega-runtime-boundary.md, apps/worker_agent/src/omega_worker_agent/mcp/config.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/
Shared gate and transport parsing helpers packages/worker_boundary/
Task graph and mission payload models packages/contracts/src/omega_contracts/
Public A2A and task-observation behavior packages/contracts/src/omega_contracts/a2a_protocol.py, apps/worker_agent/src/omega_worker_agent/a2a/routes.py, apps/orchestrator/src/omega_orchestrator/clients/worker_a2a_client.py

Out Of Scope

  • Non-A2A orchestrator shortcuts into worker-local execution code.
  • Public discovery of downstream LIFT2 MCP servers; runtimes remain worker-private dependencies.
  • Private LIFT2 discovery through Agent Cards, scheduler-visible runtime dependencies, or any direct orchestrator runtime call.
  • Treating SDK task objects, route payloads, or Agent Card fields as duplicated mission artifact truth.
  • JSON-RPC, gRPC, or broader public A2A route expansion without a shipped consumer.
  • Mission-level realtime transport, including resubscribe semantics, snapshot reconciliation, and operator-facing UX; those remain deferred scope.