feat(ack): enforce worker launch policy

This commit is contained in:
2026-07-12 17:19:46 +08:00
parent ae05845ee7
commit b3765ecad6
6 changed files with 239 additions and 22 deletions
+3 -3
View File
@@ -29,7 +29,7 @@
Coordinator 发现或读取 open 任务
-> prepare:写/补全 tasks.yaml 验收信号
-> 决定 worktree:当前 worktree 起子 agent,还是新建隔离 worktree(见下节「子任务放哪」)
-> 起 worker按档位建 worker 终端(如 cursor-agent --model auto见 model-routing.md
-> 起 worker先按项目覆盖层校验命令,再按档位和执行模式建 worker 终端(见 model-routing.md
-> dispatch 给 Developer--to <worker handle>
-> waitDeveloper 的 worker_done / escalation
-> writeback fixed_by_dev
@@ -54,7 +54,7 @@ Coordinator 派发前先决定 Developer/Test 在哪工作。两种方式:
**方式 1:当前 worktree 起子 agent(终端)**
```bash
orca terminal create --worktree active --command "cursor-agent --model auto" --json
orca terminal create --worktree active --command "cursor-agent --yolo --model auto" --json
```
- 适合:串行闭环、一次一个 Developer 任务、小改动、Test 要复测的正是 Developer 改的那棵树。
@@ -65,7 +65,7 @@ orca terminal create --worktree active --command "cursor-agent --model auto" --j
```bash
orca worktree create --name <feature> --base-branch <base> --json
# 然后在新 worktree 内 orca terminal create --worktree path:<new> --command "cursor-agent --model auto"
# 然后在新 worktree 内 orca terminal create --worktree path:<new> --command "cursor-agent --yolo --model auto"
```
- 适合:并行多个互不依赖的子任务、大/高风险/实验性改动、要保持基线分支干净(如 prod 不动、feature 走独立分支)、要独立 build 或跑独立服务实例、best-of-N 尝试。