改了什么
- 新增 team-workflow-guide/flow.html:角色 × 阶段泳道图(JointJS),3 条打回边、3 道人工闸门。
dev-build 用单节点 + 框内四步清单(实现 → 自测 → UI 对照 → 代码评审),
overnight-runner 用卡片堆表示可一直追加的队列(只收已确认 Plan)
- index.html 首屏 #lane 段用 iframe 嵌入泳道图,导航与 lead 指向锚点;
flow.html「返回指南」加 target="_top",从 iframe 里也能跳出
- 编排图从 .agents/plan/iteration-to-test.html 移到 agents-workflow-engine/graph.html
(git mv 保留历史);标题由「版本到提测」改为「迭代编排图」(图早已到「可上线」)
- 预设延伸到交付与上线:accepted 里程碑 → ba-gen-facts → dev-release-plan → shipped,
单元测试同步;QA 用例与技术高阶并行、E2E 回路补齐
- README / AGENTS.md 补 L3 vs L4 两种协作模式;两个模块 README 给出 GitHub Pages 链接
为什么
- 图是模块产物,不该留在计划目录;读者也不该为了看一眼图跳出主文档
- L3(人编排)与 L4(人决策)共用同一套 26 个 skill,差异只在谁调度,需要一张对照表说清
怎么验证
- ./.agents/verify.sh 全部通过(68 项;163 条相对链接有效;engine 25/25,runner 44/44 + 13/13)
- 浏览器实测:index.html 的 iframe 内 58 个 cell / 18 个实心节点,0 console 报错,无横向溢出;
flow.html 18 节点 / 21 连线 / 0 重叠 / 0 文字溢出 / 0 连线穿框;graph.html 92 cell 正常出图
- Pages 从 main 构建,推送后两条链接生效
文档同步检查
- 已更新:根 README、AGENTS.md §1/§3/§8/§13、agents-workflow-engine/README、team-workflow-guide/{README,index.html}
- 占位符与 catalog.json:不涉及
103 lines
6.1 KiB
YAML
103 lines
6.1 KiB
YAML
id: iteration-to-test
|
||
entry: graph-start
|
||
lanes:
|
||
- { id: human, title: 人 }
|
||
- { id: master, title: graph-master }
|
||
- { id: subagent, title: 子 agent }
|
||
models:
|
||
writer: { env: MODEL_WRITER }
|
||
reviewer: { env: MODEL_REVIEWER }
|
||
loops:
|
||
- id: spec
|
||
maxIterations: 3
|
||
backEdges: [req-gate-reject, req-decision-reject]
|
||
- id: hld
|
||
maxIterations: 3
|
||
backEdges: [hld-reject]
|
||
- id: dev
|
||
maxIterations: 3
|
||
backEdges: [build-reject, e2e-reject]
|
||
- id: e2e
|
||
maxIterations: 3
|
||
backEdges: [e2e-revise]
|
||
nodes:
|
||
- { id: graph-start, actor: master, kind: entry, title: 会话启动 }
|
||
- { id: start-version, actor: human, kind: human_input, title: 开始版本 }
|
||
- { id: pm-start-iteration, actor: subagent, kind: action, skill: pm-start-iteration, title: 开始迭代, model: writer }
|
||
- { id: write-spec, actor: human, kind: human_input, title: 编写规格 }
|
||
- { id: ba-write-spec, actor: subagent, kind: action, skill: ba-write-spec, title: 需求规格, model: writer }
|
||
- { id: ba-write-prototype, actor: subagent, kind: action, skill: ba-write-prototype, title: 原型, once: true, model: writer }
|
||
- { id: ba-requirement-review, actor: subagent, kind: gate, skill: ba-requirement-review, title: 需求质量门, model: reviewer }
|
||
- { id: requirement-decision, actor: human, kind: decision, title: 需求决策, options: [满意, 不满意] }
|
||
- { id: qa-write-cases, actor: subagent, kind: action, skill: qa-write-cases, title: 编写 QA 用例, model: writer }
|
||
- { id: tech-brief, actor: human, kind: human_input, title: 技术高阶 }
|
||
- { id: tl-high-level-design, actor: subagent, kind: action, skill: tl-high-level-design, title: 技术高阶设计, once: true, model: writer }
|
||
- { id: hld-decision, actor: human, kind: decision, title: 高阶决策, options: [满意, 不满意] }
|
||
- id: dev-plan
|
||
actor: subagent
|
||
kind: action
|
||
skill: dev-plan
|
||
title: 详细规划
|
||
batch: true
|
||
model: writer
|
||
note: [详细设计(API/DB 字段、文件改动), 任务清单, 自测用例(DST)]
|
||
- { id: dev-plan-review, actor: subagent, kind: gate, skill: dev-plan-review, title: plan 质量门, model: reviewer }
|
||
- { id: plan-confirm, actor: human, kind: human_input, title: plan 确认 }
|
||
- { id: plan-decision, actor: human, kind: decision, title: plan 决策, options: [满意, 不满意] }
|
||
- { id: overnight-runner, actor: subagent, kind: action, skill: overnight-runner, title: 排本批顺序, model: writer }
|
||
- id: dev-build
|
||
actor: subagent
|
||
kind: action
|
||
skill: dev-build
|
||
title: 构建与自测
|
||
sealed: true
|
||
repeatsBatch: dev-plan
|
||
model: writer
|
||
note: [后端 TDD, 前端 TDD, 构建/Lint, 前端 UI review, API 测试, 浏览器自测]
|
||
- { id: build-decision, actor: human, kind: decision, title: 构建决策, options: [满意, 不满意] }
|
||
- { id: amend-input, actor: human, kind: human_input, title: 修订输入 }
|
||
- { id: dev-plan-amend, actor: subagent, kind: action, skill: dev-plan-amend, title: 规划修订, model: writer }
|
||
- { id: handoff, actor: master, kind: milestone, title: 提测 }
|
||
- { id: qa-run-e2e, actor: subagent, kind: action, skill: qa-run-e2e, title: 编写并运行 E2E 测试, join: true, model: writer }
|
||
- { id: test-decision, actor: human, kind: decision, title: 测试决策, options: [修订, 通过, 打回开发] }
|
||
- { id: accepted, actor: master, kind: milestone, title: 人工补测 }
|
||
- { id: ba-gen-facts, actor: subagent, kind: action, skill: ba-gen-facts, title: 刷新事实文档, model: writer }
|
||
- { id: dev-release-plan, actor: subagent, kind: action, skill: dev-release-plan, title: 准备上线, model: writer }
|
||
- { id: shipped, actor: master, kind: end, title: 可上线 }
|
||
edges:
|
||
- { id: e0, from: graph-start, to: start-version }
|
||
- { id: e1, from: start-version, to: pm-start-iteration }
|
||
- { id: e2, from: pm-start-iteration, to: write-spec }
|
||
- { id: e3, from: write-spec, to: ba-write-spec }
|
||
- { id: e4, from: ba-write-spec, to: ba-write-prototype }
|
||
- { id: e5, from: ba-write-spec, to: ba-requirement-review }
|
||
- { id: e6, from: ba-write-prototype, to: ba-requirement-review }
|
||
- { id: req-pass, from: ba-requirement-review, to: requirement-decision, when: 满意 }
|
||
- { id: req-gate-reject, from: ba-requirement-review, to: write-spec, when: 不满意, back: true }
|
||
- { id: req-decision-reject, from: requirement-decision, to: write-spec, when: 不满意, back: true }
|
||
- { id: req-qa, from: requirement-decision, to: qa-write-cases, when: 满意, parallel: true }
|
||
- { id: req-ok, from: requirement-decision, to: tech-brief, when: 满意 }
|
||
- { id: e7, from: tech-brief, to: tl-high-level-design }
|
||
- { id: e8, from: tl-high-level-design, to: hld-decision }
|
||
- { id: hld-reject, from: hld-decision, to: tech-brief, when: 不满意, back: true }
|
||
- { id: hld-ok, from: hld-decision, to: dev-plan, when: 满意 }
|
||
- { id: e9, from: dev-plan, to: dev-plan-review }
|
||
- { id: plan-pass, from: dev-plan-review, to: plan-confirm, when: 满意 }
|
||
- { id: e10, from: plan-confirm, to: plan-decision }
|
||
- { id: plan-ok, from: plan-decision, to: overnight-runner, when: 满意 }
|
||
- { id: e11, from: overnight-runner, to: dev-build }
|
||
- { id: e12, from: dev-build, to: build-decision }
|
||
- { id: build-pass, from: build-decision, to: handoff, when: 满意 }
|
||
- { id: build-reject, from: build-decision, to: amend-input, when: 不满意, back: true }
|
||
- { id: e13, from: amend-input, to: dev-plan-amend }
|
||
- { id: e14, from: dev-plan-amend, to: dev-plan, back: true }
|
||
- { id: handoff-to-e2e, from: handoff, to: qa-run-e2e }
|
||
- { id: qa-cases-ready, from: qa-write-cases, to: qa-run-e2e }
|
||
- { id: e2e-to-decision, from: qa-run-e2e, to: test-decision }
|
||
- { id: e2e-revise, from: test-decision, to: qa-run-e2e, when: 修订, back: true }
|
||
- { id: e2e-pass, from: test-decision, to: accepted, when: 通过 }
|
||
- { id: e2e-reject, from: test-decision, to: amend-input, when: 打回开发, back: true }
|
||
- { id: accepted-to-facts, from: accepted, to: ba-gen-facts }
|
||
- { id: facts-to-release, from: ba-gen-facts, to: dev-release-plan }
|
||
- { id: release-to-shipped, from: dev-release-plan, to: shipped }
|