OrchestratorRuntime 生命周期三层依赖

OrchestratorRuntime 生命周期三层依赖 由 Archify 生成的架构图。 RuntimeBaseDeps · 启动装配一次 · 启动期稳定 · stores · audit · memory RuntimeBaseDeps 启动装配一次 stores · audit · memory composeDeps · base + narrow + turn · 架构组件 composeDeps base + narrow + turn OrchestratorDeps · 合并后的完整 deps · 架构组件 OrchestratorDeps 合并后的完整 deps resolveAgentPipeline · 按 agent 解析 · Turn 层 resolveAgentPipeline 按 agent 解析 统一入口 · web · IM · scheduler · 架构组件 统一入口 web · IM · scheduler OrchestratorRuntime · resolveAndRun · 架构组件 · ADR-0018 OrchestratorRuntime resolveAndRun ADR-0018 TurnConfig · llm · tools · prompt · Turn 层 TurnConfig llm · tools · prompt OrchestrateInput · session · tenant · message · 请求边界 OrchestrateInput session · tenant · message orchestrate() · ReAct rounds · 架构组件 orchestrate() ReAct rounds resolveAndRun merge 每轮 TurnConfig turnConfig base + narrow OrchestratorDeps deps 携带 input 启动期稳定 Turn 层 请求边界 图例 后端 数据库 云服务 外部系统

为什么存在

  • • web 曾漏 internalToolDeps / promptSegments
  • • 消灭入口手抄 33 字段 deps 桶
  • • 单一装配点使 drift 结构性不可能

三层切分

  • • Base:stores / audit / memory / internalToolDeps
  • • TurnConfig:llm / tools / prompt / criticalFields
  • • Input:session / tenant / user / message / agentId

边界

  • • gateway 装配后调 orchestrate,不反向依赖
  • • 入口只调 resolveAndRun
  • • composeDeps 是唯一合并点