2026-05-22 15:27:36 +08:00
|
|
|
{
|
|
|
|
|
"workflow": "human-ai-collaboration",
|
2026-05-23 22:28:45 +08:00
|
|
|
"roles": ["human", "arch-ai", "dev-ai", "qa-ai"],
|
2026-05-22 15:27:36 +08:00
|
|
|
"stages": [
|
|
|
|
|
{
|
|
|
|
|
"name": "需求分析",
|
2026-05-23 22:28:45 +08:00
|
|
|
"actor": "arch-ai",
|
|
|
|
|
"output": ["docs/01_产品需求/PRD.md", "review/{task_id}/task.md"]
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
"name": "架构设计",
|
|
|
|
|
"actor": "arch-ai",
|
|
|
|
|
"input": ["docs/01_产品需求/PRD.md", "review/{task_id}/task.md"],
|
|
|
|
|
"output": ["docs/02_系统架构/", "review/{task_id}/impact.md", "review/{task_id}/acceptance.md"]
|
2026-05-22 15:27:36 +08:00
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
"name": "开发实现",
|
|
|
|
|
"actor": "dev-ai",
|
2026-05-23 22:28:45 +08:00
|
|
|
"input": ["review/{task_id}/task.md", "review/{task_id}/acceptance.md"],
|
|
|
|
|
"output": ["projects/*/src/", "projects/*/docs/"]
|
2026-05-22 15:27:36 +08:00
|
|
|
},
|
|
|
|
|
{
|
2026-05-23 20:55:12 +08:00
|
|
|
"name": "测试验证",
|
2026-05-22 15:27:36 +08:00
|
|
|
"actor": "qa-ai",
|
|
|
|
|
"input": ["review/{task_id}/task.md", "review/{task_id}/acceptance.md"],
|
2026-05-23 20:55:12 +08:00
|
|
|
"output": ["projects/*/tests/", "reports/test-results/", "review/{task_id}/feedback/round{round}.md"]
|
2026-05-22 15:27:36 +08:00
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
"name": "验收确认",
|
|
|
|
|
"actor": "human",
|
|
|
|
|
"input": ["review/{task_id}/feedback/", "reports/test-results/"]
|
|
|
|
|
}
|
|
|
|
|
],
|
2026-05-23 20:55:12 +08:00
|
|
|
"retry": {
|
|
|
|
|
"max_rounds": 3,
|
|
|
|
|
"loop": ["测试验证", "开发实现"],
|
|
|
|
|
"escalation": {
|
|
|
|
|
"trigger": "第 3 轮测试仍有 BLOCKER 或 HIGH 级别 Bug",
|
|
|
|
|
"action": "暂停任务流转,等待人类负责人裁决"
|
|
|
|
|
},
|
|
|
|
|
"skip_acceptance_on_retry": true
|
|
|
|
|
},
|
2026-05-22 15:27:36 +08:00
|
|
|
"ci_triggers": {
|
|
|
|
|
"on_push_to_main": ["run-tests", "generate-reports"],
|
|
|
|
|
"on_pr_open": ["run-tests", "code-review"],
|
|
|
|
|
"on_task_update": ["notify-qa-ai"]
|
|
|
|
|
}
|
2026-05-23 20:55:12 +08:00
|
|
|
}
|