跳转至

Worker-Private OMEGA 运行时边界

本页说明当前 OMEGA 仓库身份下的 worker 私有运行时边界。读者看到 external/lerobot_lab/deploy/lift2/omega_runtime/ 下的 LIFT2 MCP 服务时,应从这里确认:它是 worker 后面的执行依赖,不是公开 A2A agent、Agent Card 拥有者,也不是调度目标。

当前设计事实

OMEGA 是当前仓库和文档身份。external/lerobot_lab/deploy/lift2/omega_runtime/ 下的 LIFT2 MCP 服务是 worker 私有 MCP 服务。它服务于当前启用技能的 worker-owned MCP operation;它不是公开发现目标,不发布 Agent Card,不是 orchestrator 端点,也不是调度目标。

公开执行身份仍以 worker 和技能为中心。公开 worker 配置档暴露 skill_allowlist;worker settings 选择 mcp_config_path;私有配置把 mcp_skill_implementations[skill_id] 绑定到私有 mcp_servers。worker 校验分配好的 TaskNode,启动或恢复 worker-owned MCP operation,并用 WorkerExecutionReport 与显式 output_mapping 投影公开结果。LIFT2 MCP 服务拥有私有服务壳层、带认证的 MCP 传输、MCP SDK server 集成、descriptor resolution、operation admission/progress projection 和父进程执行器监督。具体 resident VLA/LLM/procedural runner 生命周期、ROS/base 管理器状态、加速器预热、取消/截止时间检查、依赖细节和本地诊断属于 ProcessIsolatedExecutorSupervisor 后面的进程隔离子执行器/运行时,不属于公开 worker 合约。

数据与控制流

有效控制路径保持不变:

  1. orchestrator 拥有任务受理、任务图权威依据、调度、分派、结果和面向上层的读取。
  2. 分派通过公开 A2A worker 边界到达 worker。
  3. worker 加载 mcp_config_path,解析 mcp_skill_implementations[skill_id],并通过 worker 私有 MCP adapter 创建 worker-owned MCP operation。
  4. worker 向配置好的私有 LIFT2 MCP 服务发送 authenticated Streamable HTTP。HTTPX 与 Starlette 埋点在这个私有 worker 到 LIFT2 的 HTTP 一跳上传递 W3C trace header,但 trace context 不进入公开/domain payload。
  5. external/lerobot_lab/deploy/lift2/omega_runtime/ 下的 LIFT2 MCP 父壳层拥有私有 MCP admission、service-shell readiness、descriptor resolution、mcp_runner_adapter.py 和 ProcessIsolatedExecutorSupervisor。
  6. supervisor 通过 ExecutorClient 和 executor_ipc.py 与 executor_child.py 通信;executor_runtime.py 在子进程里拥有具体 registry 资源、依赖监督器、运行器执行、取消/截止时间检查和终态任务生命周期。
  7. 运行时观察先回到 worker 任务状态和 orchestrator 结果,然后才进入面向上层的可见结果。

LIFT2 app、MCP 服务、进程监督器、执行器客户端、IPC 模型、子运行时、运行器 adapter、readiness、descriptor catalog 和运行器模块都是源码指针。本页只把读者路由到这些拥有者,不复制私有 MCP payload、结构、测试体、拓扑 YAML 或运行手册命令。

边界图

此图展示哪一部分属于公开 worker 权威,哪一部分必须留在 worker 私有边界后面。

flowchart LR
    subgraph Public["公开 OMEGA 控制平面"]
        OrchestratorNode["orchestrator"] --> A2A["公开 worker A2A 边界"]
        A2A --> WorkerService["WorkerService"]
    end

    subgraph Private["worker 私有运行时路径"]
        WorkerService --> Routes["配置档 mcp_skill_implementations"]
        Routes --> Bridge["worker-private MCP adapter / Streamable HTTP MCP adapter"]
        Bridge --> OmegaRuntime["父 LIFT2 HTTP/MCP shell"]
        OmegaRuntime --> Supervisor["ProcessIsolatedExecutorSupervisor"]
        Supervisor --> Client["ExecutorClient + executor_ipc.py"]
        Client --> Child["executor_child.py"]
        Child --> Runtime["executor_runtime.py"]
        Runtime --> Registry["私有 runner 注册表"]
        OmegaRuntime --> Operation["私有 MCP operation 生命周期"]
    end

    subgraph Forbidden["不是公开权威"]
        AgentCard["运行时 Agent Card"]
        SchedulerTarget["orchestrator 调度目标"]
        DirectCall["orchestrator 直接运行时调用"]
    end

    OmegaRuntime -.-> AgentCard
    OmegaRuntime -.-> SchedulerTarget
    OrchestratorNode -.-> DirectCall

权威边界

边界 当前权威 禁止捷径
产品命名 OMEGA 是当前仓库和文档身份。 把 worker 私有 LIFT2 MCP 服务描述成独立公开下游产品。
公开执行边界 worker 仍是唯一通过 A2A 和 Agent Card 暴露的公开任务执行参与者。 把 LIFT2 MCP 服务暴露成公开发现、Agent Card 拥有者或 orchestrator 调度目标。
运行时身份 公开证据保持在任务实例、任务、worker、技能、attempt、WorkerExecutionReport 和 output_mapping。 添加公开 runner 家族、分支、镜像、checkpoint、endpoint、模型、工具或 provider 身份字段。
worker 私有服务 external/lerobot_lab/deploy/lift2/omega_runtime/ 拥有 Starlette 壳层、私有 MCP 传输/认证、父 readiness projection、进程监督、子进程 IPC、子运行时状态、operation progress 和 runner dispatch。 让正式文档成为 payload、结构、命令、拓扑或测试权威。
私有 base 路由 worker 私有配置把公开面向技能映射到运行时私有 reach-pose/base 能力;descriptor_catalog.py、base_reach_pose.py 和 base_ros_manager.py 拥有源码级路由与运动语义。 把私有配置 selector 或运行时 capability 名称当成公开技能权威。公开技能权威仍在 deploy/topology/profiles/workers.yaml 和 omega_skill_specs。
进程拥有权 父壳层拥有 admission/projection/supervision;子进程 executor_runtime.py 拥有 ROS/VLA/LLM/base 依赖、CUDA/模型预热、副作用抑制或发布,以及运行器生命周期。 把具体运行时拥有权重新路由到父 HTTP/MCP 服务,或把子执行器身份暴露到上层。
trace 传播 worker HTTPX 埋点和 LIFT2 Starlette 埋点在 worker 到 LIFT2 调用上传递私有 W3C trace header。 把 trace context 加进公开 DTO、mission artifact、Agent Card、scheduler target、operator projection 或 MCP domain payload。

运行时私有 VLA Reset

worker 私有维护 reset 路径用于 live debugging、bringup 和 HUMAN-UAT 场景下,在选定运行时主机或匹配运行时容器中 reset resident VLA state。它不是 orchestrator 命令,不是公开 A2A task,不是 Agent Card capability,不是公开 skill,不是 planner-visible DAG node,也不是公开 mission artifact。

该维护路径保持公开/私有边界不变:operator 使用私有运行时 operation,请求进入进程隔离运行时,resident VLA actor 只在私有运行时 admission 规则下执行 reset。公开 orchestrator、scheduler、planner、Agent Card builder、公开 skill specs、worker profiles 和 mission artifacts 都不会获得 reset 权限或 reset evidence。

边界验证职责

关注点 源码拥有的验证职责
进程隔离父/子执行器边界 把父进程 admission/projection/supervision 与子运行时副作用分开守护。
LIFT2 MCP descriptor catalog、registry 与 runner allowlist 保持 descriptor resolution、registry entry 和 runner dispatch 只受私有运行时源码约束。
私有 reach-pose 与 base primitive 路由 确保公开 face skill 只能通过 worker 私有配置和源码拥有的运行时能力分发。
worker 私有服务应用、readiness、operation lifecycle、进程监督、子进程 IPC 与 launcher 行为 验证私有服务壳层,同时不让正式文档成为 payload、topology、command 或 test 权威。
私有服务的 worker-private MCP adapter 兼容性 保持 worker adapter 与私有服务兼容,同时保留公开边界只走 A2A。
orchestrator 只走 A2A 的边界与 worker MCP 分派 确认 orchestrator scheduling 和 dispatch 永远不直接以 worker 私有运行时为目标。
公开证据边界 在 evidence 离开 worker/projector 边界前验证公开 key 和 value。

当前状态

当前工程预览实现包括公开 skill_allowlist 权威、worker mcp_config_path、私有 mcp_skill_implementations[skill_id]、私有 LIFT2 MCP transport/auth、MCP SDK server support、父 ProcessIsolatedExecutorSupervisor、私有 ExecutorClient 与 executor_ipc.py 命令/事件帧、子 executor_child.py / executor_runtime.py 执行拥有权、私有 progress propagation、worker 到 LIFT2 W3C trace-header propagation、worker-owned MCP operation 投影、WorkerExecutionReport 和显式 output_mapping。当前启用的 worker 配置档都由私有 MCP 实现覆盖。worker B/C 面向技能实现通过 worker 私有运行时 capability mapping 路由;公开技能权威仍在 profile/catalog 表面。旧 HTTP 执行路径不是当前架构。

权威来源

关注点 源码权威
worker 私有 LIFT2 Starlette app 壳 external/lerobot_lab/deploy/lift2/omega_runtime/app.py
父进程监督器与缓存 readiness external/lerobot_lab/deploy/lift2/omega_runtime/executor_supervisor.py (ProcessIsolatedExecutorSupervisor)
父/子 IPC 客户端 external/lerobot_lab/deploy/lift2/omega_runtime/executor_client.py (ExecutorClient)
严格 executor 命令/事件 schema external/lerobot_lab/deploy/lift2/omega_runtime/executor_ipc.py
子进程入口 external/lerobot_lab/deploy/lift2/omega_runtime/executor_child.py
子进程拥有的具体运行时 external/lerobot_lab/deploy/lift2/omega_runtime/executor_runtime.py
私有 MCP service admission、SDK server integration、auth 与 operation lifecycle external/lerobot_lab/deploy/lift2/omega_runtime/mcp_server.py
私有 base 与 reach-pose descriptor external/lerobot_lab/deploy/lift2/omega_runtime/descriptor_catalog.py
运行器 adapter、执行器提交与输出整理 external/lerobot_lab/deploy/lift2/omega_runtime/mcp_runner_adapter.py
取消、deadline 和 progress bridge external/lerobot_lab/deploy/lift2/omega_runtime/mcp_lifecycle.py
LIFT2 launcher auth 与有界 observability env forwarding external/lerobot_lab/deploy/lift2/run_omega_runtime.sh
就绪检查与私有依赖细节 external/lerobot_lab/deploy/lift2/omega_runtime/readiness.py
静态 runner 注册表与允许的私有 capability external/lerobot_lab/deploy/lift2/omega_runtime/registry.py
私有 reach-pose 与 base manager 实现 external/lerobot_lab/deploy/lift2/omega_runtime/runners/base_reach_pose.py, external/lerobot_lab/deploy/lift2/omega_runtime/runners/base_ros_manager.py
常驻 VLA、LLM 与程序式 runner implementation external/lerobot_lab/deploy/lift2/omega_runtime/runners/
worker 私有 MCP 配置模型 apps/worker_agent/src/omega_worker_agent/mcp/config.py
worker 私有 MCP 客户端、trace propagation 与投影 apps/worker_agent/src/omega_worker_agent/mcp/http_transport.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
公开 worker skill 权威 deploy/topology/profiles/workers.yaml
worker 任务执行 apps/worker_agent/src/omega_worker_agent/execution/worker_service.py 和 apps/worker_agent/src/omega_worker_agent/execution/skill_executor.py

非当前范围

  • 把 LIFT2 MCP 服务当成公开发现目标、Agent Card 参与者、orchestrator 端点或调度目标。
  • 复制私有 MCP payload、结构字段清单、拓扑 YAML、运行手册命令体或测试体到正式文档。
  • 把 live ROS/GPU/VLA/robot execution 说成默认自动化证明。
  • 把子执行器 operation identifier、进程细节、endpoint、model/checkpoint identity 或 raw diagnostics 当成公开 proof、Agent Card、scheduler、mission artifact 或 operator read 权威。

相关页面