1.5 KiB
1.5 KiB
Case: council-start-dispatches-three-reviewers
用例意义
验证 council start 会创建一个新的 council run,并立即分派固定的三位 reviewer:architecture-reviewer、implementation-reviewer、risk-reviewer。
前置条件
- 使用隔离的临时目录
TMPDIR - 目标数据库
TMPDIR/coord.db尚不存在
输入
orch --db TMPDIR/coord.db --json council start \
--run council_blog_001 \
--target "Review the current blog architecture and propose optimizations." \
--target-type mixed \
--output both
orch --db TMPDIR/coord.db --json status --run council_blog_001
预期输出
council start退出码为0start.data.run_id == "council_blog_001"start.data.mode == "brainstorm"start.data.target_type == "mixed"start.data.output == "both"start.data.only_unanimous == falsestart.data.reviewers长度为3- 三个 reviewer 的
reviewer_role分别为architecture-reviewer、implementation-reviewer、risk-reviewer - 三个 reviewer 的
status都是dispatched - 后续
status返回3个 task,run 处于活动中而不是终态
断言结论
council start不只是创建 run 元数据,还会直接完成 reviewer task 的创建与分派- v1 reviewer 集合是固定的三角色集合,而不是由用户动态指定
补充约束
- 未显式传入
--mode时,默认回退到brainstorm - 未显式传入
--only-unanimous时,默认值是false - council reviewer task 在当前实现里不应自动申请 code worktree