Worker Agent¶
This page maps the current worker-agent application to its source-owned authority and public/private execution boundary.
Concept Model¶
The worker agent is the public execution boundary for a configured worker. It
publishes the Agent Card and A2A routes that the orchestrator can discover and
call. Its authority is local: accept an assigned atomic TaskNode, maintain
worker-local task state, resolve the matching private MCP skill implementation,
invoke the worker-private LIFT2 MCP server, and report lifecycle updates. It does
not invent work, alter dependencies, perform global scheduling, or expose the
downstream MCP server as a public participant.
The current worker keeps two boundaries separate. The public side is A2A and
Agent Card compatible. The private side is worker-private MCP: worker settings
select mcp_config_path, and private
mcp_skill_implementations[skill_id] mappings bind public skills to worker-side
MCP behavior over Streamable HTTP. The public skill authority remains in
deploy/topology/profiles/workers.yaml; private MCP endpoints, concrete tool
names, runner presets, task IDs, models, checkpoints, local paths, and vendor
diagnostics stay below the worker boundary.
Implementation Flow¶
omega_worker_agent.app is the thin FastAPI app factory and composition facade.
It loads worker settings and deploy-config worker definitions, builds the Agent
Card from the authored skill catalog, constructs the configured MCP execution
adapter, wires lifespan/readiness checks, and registers public A2A routes.
omega_worker_agent.a2a owns the public worker edge: Agent Card serialization,
HTTP+JSON route assembly, SDK server/request handling, and task-store projection
back to A2A clients. It does not own execution policy.
omega_worker_agent.execution owns assigned-task execution. WorkerService is
the composition point for accepted atomic A2A work: it validates assigned
TaskNodes through SkillExecutor, creates worker-local task records, hands
admitted background lifecycle work to AdmissionLifecycleDispatcher, and routes
public task-record mutations through apply_public_task_projection. The
lifecycle report contract is WorkerExecutionReport from
omega_contracts.worker_execution.
omega_worker_agent.mcp owns the worker-private MCP side: private MCP config,
compatibility/readiness checks, Streamable HTTP transport, execution adapter,
operation snapshots, ProjectorLifecycleOwner, McpOperationConvergence, and
deterministic tool schema helpers. Steady polling, active cancel convergence,
deadline convergence, stale projector recovery, and terminal owner cleanup live
there, below the public A2A boundary. This package remains worker-internal and
is not an orchestrator, operator, or public-doc import surface.
Public Worker Boundary Diagram¶
This diagram shows what the orchestrator can see and call. The public boundary ends at assigned worker tasks and lifecycle reports.
flowchart LR
Orchestrator["orchestrator"]
AgentCard["Agent Card"]
A2A["omega_worker_agent.a2a"]
Execution["omega_worker_agent.execution"]
TaskStore["worker task store"]
Report["WorkerExecutionReport"]
Orchestrator --> AgentCard
Orchestrator --> A2A
A2A --> Execution
Execution --> TaskStore
Execution --> Report
TaskStore --> A2A
Report --> A2A
A2A --> Orchestrator
Worker-Private MCP Execution Diagram¶
This diagram shows the worker-private execution path after an assigned
TaskNode has crossed the public A2A boundary.
flowchart LR
AssignedTask["assigned TaskNode / ExecuteSkillRequest"]
Execution["omega_worker_agent.execution"]
PrivateConfig["mcp_config_path"]
SkillImpl["mcp_skill_implementations[skill_id]"]
MCP["omega_worker_agent.mcp"]
Lift2["worker-private LIFT2 MCP"]
Projection["typed DTO + output_mapping projection"]
Report["WorkerExecutionReport"]
AssignedTask --> Execution
Execution --> PrivateConfig
PrivateConfig --> SkillImpl
SkillImpl --> MCP
MCP --> Lift2
Lift2 --> Projection
Projection --> Execution
Execution --> Report
Responsibility¶
Expose the public A2A worker edge, publish the worker Agent Card, report bounded
readiness, accept only orchestrator-assigned atomic work, project worker-local
task state, and adapt assigned tasks to the worker-private MCP boundary through
the a2a, execution, and mcp subpackages.
Owns¶
- Public A2A route assembly, Agent Card exposure, and SDK request handling in
omega_worker_agent.a2a. - Worker app construction, settings/bootstrap wiring, health/readiness routes,
and lifespan setup in
omega_worker_agent.app. - Assigned
TaskNodeandExecuteSkillRequestvalidation inomega_worker_agent.execution. WorkerServiceas the worker-local composition point for accepted execution, task store/reporting, before-side-effect local stop/timeout handling, and owner handoff.AdmissionLifecycleDispatcheras the same-process owner for admitted background lifecycle tasks.apply_public_task_projectionas the only publicTaskRecordprojection choke point for A2A-visible state/report mutations.ProjectorLifecycleOwneras the worker-private owner for steady MCP observation, active cancel/deadline intents, stale projector recovery, and terminal owner cleanup.McpOperationConvergenceas the bounded cancel/deadline mechanics shared by active requests and projector polling.WorkerExecutionReportlifecycle projection through shared contract DTOs.- Private MCP implementation resolution through
mcp_config_pathandmcp_skill_implementations[skill_id]. - Public evidence projection through typed DTOs, bounded worker-authored
wording, and explicit
output_mapping.
Does Not Own¶
- Global task planning, dependency scheduling, or mission graph authority.
- Orchestrator persistence and monitoring read models.
- Task invention, dependency reordering, global scheduling, or mission-level artifact truth.
- Public discovery for worker-private MCP servers.
- LIFT2 runner lifecycle, private MCP operation identities, private MCP task IDs, concrete tool names, MCP server IDs, endpoints, runner presets, model or checkpoint paths, local paths, raw diagnostics, or vendor diagnostics as public contracts.
- Route schema copies, private MCP payload copies, or deploy command authority in docs.
Lifecycle Owner Map¶
| Lifecycle concern | Current owner | Source authority |
|---|---|---|
| Public A2A acceptance and owner composition | WorkerService |
apps/worker_agent/src/omega_worker_agent/execution/worker_service.py |
| Admitted background lifecycle task ownership | AdmissionLifecycleDispatcher |
apps/worker_agent/src/omega_worker_agent/execution/admission_dispatcher.py |
Public TaskRecord state/report projection |
apply_public_task_projection |
apps/worker_agent/src/omega_worker_agent/execution/task_projection.py |
| Steady MCP polling, stale recovery, terminal cleanup, and active owner intents | ProjectorLifecycleOwner |
apps/worker_agent/src/omega_worker_agent/mcp/operation_projector.py |
| Bounded cancel/deadline mechanics after MCP side effects may exist | McpOperationConvergence |
apps/worker_agent/src/omega_worker_agent/mcp/operation_convergence.py |
This split is intentional. WorkerService composes the public worker lifecycle
and preserves A2A behavior, but it is not the sole direct owner of steady-state
MCP polling, active cancel convergence, deadline convergence, stale recovery, or
terminal cleanup. Those concerns run through the worker-private owner and
convergence modules so public projection, private operation handling, and
cleanup remain traceable to one source-owned loop.
Current Status¶
Current component source map for the OMEGA public worker A2A edge and
worker-owned MCP execution lifecycle. The current app/package identity is
apps/worker_agent/src/omega_worker_agent, and the current CLI identity is
omega-worker-agent. The production boundary remains worker-private LIFT2 MCP
over Streamable HTTP; public evidence remains a typed DTO and output_mapping
projection.
Source Of Truth¶
The worker application, worker-boundary package, worker-private config schema, LIFT2 MCP runtime source, and shared contracts remain authoritative for current behavior. This page explains where to retrieve that truth; it does not define A2A payloads, MCP wire payloads, private tool/task schemas, or deploy commands.
Key Source Paths¶
| Path | Purpose |
|---|---|
apps/worker_agent/ |
Worker-agent application package and service entrypoints. |
apps/worker_agent/src/omega_worker_agent/app.py |
FastAPI worker shell, settings/bootstrap wiring, Agent Card composition, public route registration, health/readiness, lifespan, and configured MCP adapter construction. |
apps/worker_agent/src/omega_worker_agent/a2a/routes.py |
Canonical public A2A HTTP+JSON route assembly and Agent Card endpoint serialization. |
apps/worker_agent/src/omega_worker_agent/a2a/sdk_server.py |
SDK-native request handling, task-store projection, execute/cancel gateway behavior, and context normalization. |
apps/worker_agent/src/omega_worker_agent/execution/worker_service.py |
WorkerService task acceptance, worker-local composition, task store/reporting, before-side-effect local stop/timeout handling, owner handoff, and bounded failure mapping. |
apps/worker_agent/src/omega_worker_agent/execution/admission_dispatcher.py |
AdmissionLifecycleDispatcher ownership for admitted background lifecycle tasks. |
apps/worker_agent/src/omega_worker_agent/execution/skill_executor.py |
Assigned task validation, literal slot materialization, and worker-owned MCP start request construction. |
apps/worker_agent/src/omega_worker_agent/execution/task_projection.py |
apply_public_task_projection public TaskRecord projection choke point and initial accepted/rejected record constructors. |
apps/worker_agent/src/omega_worker_agent/execution/task_store.py |
Worker-local TaskRecord state and SDK task projection helpers. |
apps/worker_agent/src/omega_worker_agent/execution/reporter.py |
WorkerExecutionReport construction from accepted, MCP operation, and failure updates. |
apps/worker_agent/src/omega_worker_agent/mcp/config.py |
Private MCP server and skill implementation config models. |
apps/worker_agent/src/omega_worker_agent/mcp/http_transport.py |
Streamable HTTP MCP transport helpers for worker-private calls. |
apps/worker_agent/src/omega_worker_agent/mcp/execution_adapter.py |
Worker-private MCP protocol client, task start/read/result/cancel behavior, and output_mapping projection. |
apps/worker_agent/src/omega_worker_agent/mcp/operation.py |
Public-safe MCP operation snapshot DTOs and private ID containment. |
apps/worker_agent/src/omega_worker_agent/mcp/operation_projector.py |
ProjectorLifecycleOwner ownership for steady polling, active owner intents, stale recovery, and terminal cleanup. |
apps/worker_agent/src/omega_worker_agent/mcp/operation_convergence.py |
McpOperationConvergence bounded cancel/deadline mechanics for existing worker-private operations. |
packages/contracts/src/omega_contracts/worker_execution.py |
Shared WorkerExecutionReport lifecycle report contract. |
packages/worker_boundary/ |
Shared worker-boundary parsing, gate, and task snapshot utilities. |
deploy/topology/profiles/workers.yaml |
Public skill authority for active worker profiles. |
external/lerobot_lab/deploy/lift2/omega_runtime/ |
Worker-private LIFT2 MCP service, registry, resident VLA runner, LLM runner, and procedural runner source. |
Out Of Scope¶
- Granting workers global planning, dependency scheduling, or mission graph authority.
- Publishing worker-private MCP servers as public A2A participants.
- Copying A2A payloads, contract schemas, MCP task/tool payloads, or deploy commands into docs.
- Exposing private MCP operation identities, task IDs, concrete tool names, MCP server IDs, endpoints, runner presets, model/checkpoint paths, local paths, raw diagnostics, or vendor diagnostics as public evidence.
- Describing mission-level realtime transport as shipped.