Memory / Internal Tools 按 turn 收窄

Memory / Internal Tools 按 turn 收窄 由 Archify 生成的架构图。 OrchestratorRuntime · resolveAndRun · 启动期持有 · ADR-0018 OrchestratorRuntime resolveAndRun ADR-0018 Memory / Internal · recall · extractor · tools · 启动期持有 · 启动持有 Memory / Internal recall · extractor · tools 启动持有 memoryEnabled · policy ?? turnConfig · 每轮门控 memoryEnabled policy ?? turnConfig on = true · 完整 memory + tools · 每轮门控 on = true 完整 memory + tools on = false · 置空 + strip · 每轮门控 on = false 置空 + strip narrowInternalToolDeps · 剥离 memory-gated · 每轮门控 narrowInternalToolDeps 剥离 memory-gated composeDeps · narrow 后合并 · 架构组件 composeDeps narrow 后合并 OrchestratorDeps · 交给 orchestrate · 架构组件 OrchestratorDeps 交给 orchestrate 持有 每轮判定 true false strip full stripped deps 启动期持有 每轮门控 图例 后端 数据库 云服务 安全

启动持有

  • • memoryRecall / memoryExtractor 一次注入
  • • internalToolDeps 含 memory-gated 工具
  • • 跨请求稳定,不在入口重抄

每轮门控

  • • on = contextPolicy.memoryEnabled ?? turnConfig.memoryEnabled
  • • false → recall/extractor 置空
  • • narrowInternalToolDeps 剥离 memory-gated

web bug 已修

  • • 同一 resolveAndRun 路径
  • • memory on 时始终带上 internalToolDeps
  • • 不再依赖入口手抄注入