Repository navigation
Conversation
- Seat spawning now conditionally includes task tool based on canSpawnAtDepth(cfgTaskMaxRecursionDepth.get(settings), 1) in src/ports/host.ts. - Dispatch owner and reviewer docs updated to condition task on having the tool in agents/dispatch-owner.md and agents/dispatch-reviewer.md. - README.md updated to note task recording requirement in tree simulation. - Tests/sim/run.ts updated with maxRecursionDepth config and task presence assertions. Refs #269
- Sim test setup now copies real agents from agents/ directory when packagedAgents is true. - Config now includes agentModelOverrides mapping workflow agents to sim/seat when packagedAgents enabled. - Added head-packaged test case based on head case with packagedAgents set to true. - New check verifies seat dispatch-session-contract systemPrompt includes agent body text. Refs #269
- Removed imports for cfgTaskMaxRecursionDepth and canSpawnAtDepth. - Always include "task" tool in seat agentTools list. - Set taskDepth to 1 instead of SEAT_TASK_DEPTH constant. Refs #269
证据包
结果 1 · 改功能 · library
结果 2 · 改功能 · agent-config
结果 3 · 改功能 · library
结果 4 · 保持不变 · library
结果 1 run · exit 0 ·
|
|
Gate 结论 · review · PASS · patch 36773443c08d8557d0545ea333bc9d641fdf1757 · HEAD 99abb83 · base main · issue rev 2026-12-01T16:15:43Z · 设计 无 结论:PASS
下一步:合并。 |
Closes #269
摘要
seat agent 的 helper 指示、README 与
tree仿真都改为按 OMP 的task.maxRecursionDepth描述 seat 的task:宿主默认1时 seat 没有task,也不被要求使用 helper;设为2及以上或-1时 seat 照旧有task。Dispatch 既不修改这个设置,也不重复宿主的深度判断。实现说明
task由宿主决定。seat 以taskDepth: 1建会话(src/ports/host.tslaunch,未改动),宿主在工具计划里用canUseTaskTool(即canSpawnAtDepth(maxRecursionDepth, taskDepth),19.4.0src/tools/registry.ts:654-656)过滤task(同文件:857)。设置重算时宿主用同一份计划,所以上限在 seat 运行中被调高时,seat 也会拿到task。agents/dispatch-owner.md、agents/dispatch-reviewer.md的 helper 句子改为以「有task工具」为前提(结果 2)。README.md「Sessions and recovery」写明 seat 只有在上限为2及以上或-1时才有task、能派生 helper,并写明 Dispatch 不修改该设置(结果 3)。task.maxRecursionDepth,也不按设置生成两份提示。canSpawnAtDepth决定是否为 seat 请求task。宿主已经按同一规则过滤,重复判断还会让 seat 在上限调高后经设置重算也拿不到task。spawns(取 agent 定义,未指定时为*)与taskDepth都不变。上限 ≥ 2 或-1时,seat 照旧有task。Main 不受影响,它的taskDepth是 0。tests/sim/run.ts给Case/Run增加maxRecursionDepth(默认1)。每次启动都把它写进仿真的omp-config.yml,所以结果不受运行者HOME设置的影响。tree在上限1下断言 seat 没有task(结果 1)。新增的tree-nested复用tree的 delivery,在上限2下断言每个 seat 都有task且spawns为*(结果 4)。其余用例只是显式固定为1,它们的断言不涉及task。sim-seatagent,seat 系统提示里没有打包 agent 的正文。新用例head-packaged复用head的 delivery,但改用默认 workflow 和原样复制的打包 agent 文件,并经task.agentModelOverrides把这两个 agent 指到脚本化模型sim/seat。任一 seat 在dispatch-session-contract中记录的系统提示不含其打包 agent 正文时,这个用例失败(结果 2)。-1只经宿主canSpawnAtDepth(max < 0)推断与2同样放行,仿真没有单独跑-1。