ns-execution-orchestrator
Compare original and translation side by side
🇺🇸
Original
English🇨🇳
Translation
ChineseExecution Orchestrator
执行编排器
Drive a partitioned version to completion one slice at a time. You do not
implement application code yourself: you dispatch one subagent per slice, keep
all state in files + git, and advance automatically until every slice is done
or a stop condition forces a pause.
State lives in files + git, never in chat history.
逐切片推动分区版本直至完成。你无需自行实现应用代码:为每个切片分配一个Subagent,将所有状态存储在文件和git中,自动推进直至所有切片完成或触发停止条件而暂停。
状态仅存储在文件 + git中,绝不会保存在聊天记录里。
Harness discovery
工具集发现
See and
. Read first.
Load the and any execution-routing / scope-isolation rules
from when present. Do not assume monorepo layout or stack
until discovery resolves it.
../ns-harness/references/harness-discovery.md../ns-harness/references/artifact-layout.mdAGENTS.mdcore-subversions{harness}/rules/*查看 和 。请先阅读 。当存在 文件时,加载其中的 规则以及任何执行路由/范围隔离规则。在工具集发现完成前,请勿假设采用单体仓库布局或技术栈。
../ns-harness/references/harness-discovery.md../ns-harness/references/artifact-layout.mdAGENTS.md{harness}/rules/*core-subversionsOutput language
输出语言
Communicate with the human in the project's configured language (see
; default to the user's language). Code and comments stay in English.
AGENTS.md使用项目配置的语言与人类沟通(详见 ;默认使用用户的语言)。代码及注释保持英文。
AGENTS.mdSession inputs (ask once if missing)
会话输入(缺失时询问一次)
| Variable | Example |
|---|---|
| |
| |
If is omitted: pick the only version with pending slices in
; if ambiguous, ask once, then proceed.
{version_san}version-roadmap.md| 变量名 | 示例 |
|---|---|
| |
| |
若未提供 :选择 中唯一存在待处理切片的版本;若存在歧义,仅询问一次后继续执行。
{version_san}version-roadmap.mdScope isolation
范围隔离
After is confirmed, operate only under
plus harness infra (, ). Never read or reference other
products in a monorepo. See the scope-isolation rule when present in the harness.
{product_root}{product_root}/**AGENTS.md{harness}/确认 后,仅在 以及工具集基础设施(、)下操作。绝不要读取或引用单体仓库中的其他产品。若工具集中存在范围隔离规则,请遵循该规则。
{product_root}{product_root}/**AGENTS.md{harness}/Boot (mandatory, once per orchestration session)
启动流程(强制要求,每个编排会话执行一次)
- Read (implementation section) and load harness execution rules.
AGENTS.md - Read — required. If missing, stop: this version is not partitioned; execute its tasks directly (non-orchestrated) instead.
{product_root}/docs/versions/{version_san}/version-roadmap.md - Read master (overview only — do not replan).
{product_root}/docs/versions/{version_san}/requirements.md - Load the rule from the harness when present.
core-subversions - If exists: ensure the work branch is created and checked out before the first slice subagent runs (see
{product_root}/docs/context/gitlab-sync-config.md). Never implement on a protected branch.mcp-gitlab-usage
- 阅读 (实现部分)并加载工具集执行规则。
AGENTS.md - 读取 ——必须执行。若文件缺失,停止执行:该版本未进行分区,请直接执行其任务(非编排模式)。
{product_root}/docs/versions/{version_san}/version-roadmap.md - 读取主目录下的 (仅查看概述——请勿重新规划)。
{product_root}/docs/versions/{version_san}/requirements.md - 若工具集中存在 规则,加载该规则。
core-subversions - 若 存在:在第一个切片Subagent运行前,确保工作分支已创建并检出(详见
{product_root}/docs/context/gitlab-sync-config.md)。绝不要在受保护分支上进行实现。mcp-gitlab-usage
Orchestration mandate
编排规则
- Execute all pending slices in roadmap DAG order (respect inter-slice dependencies).
- Do not ask "start next slice?", "continue?", or "commit?" between slices.
- Do not implement tasks in the parent session — delegate every slice to a subagent.
- Do not run tests during slice implementation (backend or frontend). Execute the slice's tasks and advance; testing belongs to the end-of-version review flow.
- 按照路线图DAG顺序执行所有待处理切片(遵守切片间依赖关系)。
- 切片间请勿询问“启动下一个切片?”“继续?”或“提交?”。
- 请勿在父会话中实现任务——将每个切片委托给Subagent处理。
- 切片实现期间请勿运行测试(后端或前端)。执行切片任务并推进;测试属于版本末期的评审流程。
Per-slice loop (synchronous subagent)
单切片循环(同步Subagent)
For each slice whose roadmap is or :
statusplannedin_progress- Select the next per roadmap DAG order.
{subversion_san} - Mark the roadmap row → .
in_progress - Dispatch one subagent (blocking / synchronous, not backgrounded):
MUST use harness when available (see
coder-agent); else a generic subagent whose prompt follows../ns-harness/references/subagent-dispatch.md. Prompt contains only:ns-code-coder- ,
{product_root},{version_san}{subversion_san} - Instruction to follow the skill as the slice worker, invoked by the execution orchestrator (bridge already points at the skill when using
ns-code-coder)coder-agent - Paths limited to
for slice tasks; also load
{product_root}/docs/versions/{version_san}/subversions/{subversion_san}/per{product_root}/docs/context/Implementation boot rule before coding (+ layer rules from the harness as needed)artifact-layout.md - Mandate: implement all tasks of the slice, no confirmation between tasks, no commit (the parent commits)
- Explicitly: do not run tests during slice execution; implement only
- Reinforcement (short): obey + harness rules strictly; if any instruction conflicts with rules or scope, stop and report a blocker instead of proceeding by assumption
AGENTS.md
- Validate the subagent result (unit/integration tests only — never run
E2E during slice execution; human runs E2E at version end):
- Every slice task marked or
completed(waiver noted in the handoff)waived - Slice handoff updated per (time block + task rows)
ns-sdd-execution-handoff-generator - Roadmap row updated by the worker (or update it yourself)
- Every slice task marked
- Commit (parent only): one Conventional Commit per slice.
- Mark the roadmap row → (if the worker did not).
completed - Advance to the next slice automatically.
针对路线图中状态为 或 的每个切片:
plannedin_progress- 选择路线图DAG顺序中的下一个 。
{subversion_san} - 标记路线图对应行 → 。
in_progress - 分配一个Subagent(阻塞/同步,非后台运行):若可用必须使用工具集的 (详见
coder-agent);否则使用符合../ns-harness/references/subagent-dispatch.md提示规范的通用Subagent。提示内容仅包含:ns-code-coder- 、
{product_root}、{version_san}{subversion_san} - 指令:作为切片工作者遵循 技能要求,由执行编排器调用(使用
ns-code-coder时已自动关联该技能)coder-agent - 路径限制为 (用于切片任务);编码前还需根据
{product_root}/docs/versions/{version_san}/subversions/{subversion_san}/的实现启动规则加载artifact-layout.md内容(+ 按需加载工具集中的分层规则){product_root}/docs/context/ - 强制要求:实现该切片的所有任务,任务间无需确认,请勿提交(由父会话提交)
- 明确要求:切片执行期间请勿运行测试;仅进行实现工作
- 强化说明(简短):严格遵守 + 工具集规则;若任何指令与规则或范围冲突,停止执行并报告阻塞问题,而非自行假设处理
AGENTS.md
- 验证Subagent的执行结果(仅单元/集成测试——切片执行期间绝不要运行E2E测试;E2E测试由人类在版本末期执行):
- 每个切片任务均标记为 或
completed(豁免情况需在交接文档中注明)waived - 切片交接文档已根据 更新(时间块 + 任务行)
ns-sdd-execution-handoff-generator - 工作者已更新路线图对应行(或自行更新)
- 每个切片任务均标记为
- 提交(仅父会话执行):每个切片对应一次Conventional Commit。
- 标记路线图对应行 → (若工作者未完成该操作)。
completed - 自动推进至下一个切片。
End of version (all slices done)
版本完成(所有切片处理完毕)
When every slice in is (or waived):
version-roadmap.mdcompleted- Present any navigation / semantic grouping menu and wait for human approval before applying it.
- Run the post-implementation review: MUST dispatch when available (else
reviewer-agent, read-only) over the version diff. Do not expectns-code-reviewer— use the verdict line and minimal fix map on Rejected. Seecode-review-report.md.../ns-harness/references/subagent-dispatch.md - Consolidate living specs when review is —
Approved.ns-sdd-living-spec-consolidator - Move the version to only after the human confirms or a documented waiver exists.
_done/ - If a version exists, close its final delivery block and recompute total process seconds per
execution-handoff.md.ns-sdd-execution-handoff-generator
当 中的所有切片均为 (或已豁免)时:
version-roadmap.mdcompleted- 展示导航/语义分组菜单,并等待人类批准后再应用该菜单。
- 执行实现后评审:若可用必须分配 (否则使用只读的
reviewer-agent)对版本差异进行评审。无需生成ns-code-reviewer——仅需使用评审结论行和拒绝时的最小修复映射表。详见code-review-report.md。../ns-harness/references/subagent-dispatch.md - 若评审结果为 ,整合动态规格——使用
Approved。ns-sdd-living-spec-consolidator - 仅在人类确认存在已记录的豁免时,将版本移至 目录。
_done/ - 若存在版本 ,关闭其最终交付块,并根据
execution-handoff.md重新计算总流程耗时。ns-sdd-execution-handoff-generator
Stop conditions (only reasons to pause)
停止条件(仅有的暂停原因)
| Condition | Action |
|---|---|
Subagent reports a task | Stop; document in slice handoff + roadmap |
| Protected git branch / missing work branch | Stop until a valid work branch exists |
| Real environment blocker (Docker/tests impossible) | Stop; note in handoff |
| Inter-slice dependency not satisfied | Stop; fix roadmap or the prior slice |
Missing | Ask once, then proceed |
| Stop before |
Human waiver needed (menu apply, | Stop for that item only |
| 条件 | 行动 |
|---|---|
Subagent报告任务已 | 停止执行;在切片交接文档和路线图中记录相关信息 |
| Git受保护分支/缺失工作分支 | 停止执行直至存在有效的工作分支 |
| 真实环境阻塞(Docker/测试无法执行) | 停止执行;在交接文档中注明原因 |
| 切片间依赖未满足 | 停止执行;修复路线图或前置切片 |
缺失 | 仅询问一次,然后继续执行 |
| 移至 |
需要人类豁免(菜单应用、移至 | 仅针对该操作停止执行 |
Forbidden
禁止操作
- Do not implement application code in the parent session — delegate to the slice worker.
- Do not skip the commit after a successful slice (orchestrated mode always commits per slice).
- Do not generate new task files (planning is closed by the time you run).
- Do not access other products in the repo.
- Do not apply navigation semantic grouping without human approval.
- Do not run backend/frontend tests during implementation orchestration.
- 请勿在父会话中实现应用代码——委托给切片工作者处理。
- 请勿跳过成功切片后的提交操作(编排模式始终按切片提交)。
- 请勿生成新的任务文件(运行时规划阶段已结束)。
- 请勿访问仓库中的其他产品。
- 请勿未经人类批准应用导航语义分组。
- 请勿在实现编排期间运行后端/前端测试。
Invocation examples
调用示例
Product: apps/my-product/
Version: 3.8.0-feat-payable-payment-workflow
Skill: ns-execution-orchestrator
Run all slices of the roadmap in orchestrated mode (sync subagent per slice,
commit per slice).Orchestrate the partitioned implementation of apps/my-product 3.8.0.Product: apps/my-product/
Version: 3.8.0-feat-payable-payment-workflow
Skill: ns-execution-orchestrator
Run all slices of the roadmap in orchestrated mode (sync subagent per slice,
commit per slice).Orchestrate the partitioned implementation of apps/my-product 3.8.0.Integration
集成关系
| Stage | Skill |
|---|---|
| Partition version → roadmap + subversions | |
| Handoff generation and updates | |
| Slice worker (per-slice implementation) | |
| End-of-version review gate | |
| Living specs consolidation | |
| Work branch / GitLab sync | |
| 阶段 | 技能 |
|---|---|
| 版本分区 → 路线图 + 子版本 | |
| 交接文档生成与更新 | |
| 切片工作者(单切片实现) | |
| 版本末期评审关卡 | |
| 动态规格整合 | |
| 工作分支 / GitLab同步 | |
References
参考文档
| File | When to read |
|---|---|
| Exact slice subagent prompt template and validation checklist |
| Planning loop that produces the roadmap you consume |
| 文件路径 | 阅读时机 |
|---|---|
| 查看精确的切片Subagent提示模板和验证清单 |
| 查看生成你所使用路线图的规划循环流程 |