refactor: 工作流终点用语「测试通过」统一为「人工补测」

改了什么:
- 预设 iteration-to-test.yaml 的终点 accepted 标题改为「人工补测」
- cli.py run 子命令帮助、state.py 已完成提示同步改词
- 单元测试渲染断言随节点标题更新
- AGENTS.md §1/§8、根 README、引擎 README、两份 plan 与预览图同步

为什么:
引擎的职责边界是跑到「人工补测」为止,测试决策通过之后的人工验收不在调度范围内,
终点名称若叫「测试通过」会暗示已完成验收。

怎么验证的:
- ./.agents/verify.sh 67 项全部通过
- agents-workflow-engine 单元测试 24/24 通过

文档同步检查:已更新(README ×2、AGENTS.md、引擎 README、plan ×2、预览 HTML;
schema/graph.schema.json 不涉及;dev-release-plan 模板中的「测试通过」是上线阶段标题,不改)
This commit is contained in:
ning-inspire
2026-11-19 11:52:48 +08:00
parent acd62c3ab9
commit d64bca4e6c
10 changed files with 13 additions and 13 deletions

View File

@@ -1,6 +1,6 @@
# agents-workflow-engine
一个人用主会话把一条迭代从启动调度到测试通过。图是 YAML。人、graph-master、子 agent 分三道泳道。子 agent 调用 skill,并且可以绑不同模型做对抗验证。
一个人用主会话把一条迭代从启动调度到人工补测。图是 YAML。人、graph-master、子 agent 分三道泳道。子 agent 调用 skill,并且可以绑不同模型做对抗验证。
预设的主线:
@@ -8,7 +8,7 @@
需求规格 → 需求质量门 → 需求决策 ─┬─ 编写 QA 用例(并行侧分支)────────┐
└─ 技术高阶 → 迭代 HLD → 详细规划 → 开发 → 提测
│
测试通过 ← 测试决策 ← 编写并运行 E2E ←┘
人工补测 ← 测试决策 ← 编写并运行 E2E ←┘
```
## 用法

View File

@@ -131,7 +131,7 @@ def build_parser() -> argparse.ArgumentParser:
render_cmd.add_argument("--output", default="", help="写入的文件。缺省打印到标准输出")
render_cmd.set_defaults(func=cmd_render)
run_cmd = sub.add_parser("run", help="主会话按图执行到测试通过")
run_cmd = sub.add_parser("run", help="主会话按图执行到人工补测")
run_cmd.add_argument("--answers", default="", help="人的答案 YAML")
run_cmd.add_argument("--agent", default="", help="子 agent 命令")
run_cmd.add_argument("--master-model", default=os.environ.get("MODEL_MASTER", "master"), help="主会话模型,子 agent 未配置时沿用")

View File

@@ -77,7 +77,7 @@ def list_states(project: str) -> list:
def open_instance(project: str, iteration: str, entry: str) -> dict:
"""没有记录就创建。已有记录就返回它,用来接着跑。已到测试通过则拒绝再开一条。"""
"""没有记录就创建。已有记录就返回它,用来接着跑。已到人工补测则拒绝再开一条。"""
check_iteration(iteration)
existing = load_state(project, iteration)
if not existing:
@@ -96,7 +96,7 @@ def open_instance(project: str, iteration: str, entry: str) -> dict:
return state
if existing.get("status") == "completed":
raise GraphError(
"迭代 %s 已经有一条 workflow,并且已经到测试通过。不能再创建一条。用 status --iteration %s 查看"
"迭代 %s 已经有一条 workflow,并且已经到人工补测。不能再创建一条。用 status --iteration %s 查看"
% (iteration, iteration)
)
return existing

View File

@@ -60,7 +60,7 @@ nodes:
- { 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: end, title: 测试通过 }
- { id: accepted, actor: master, kind: end, title: 人工补测 }
edges:
- { id: e0, from: graph-start, to: start-version }
- { id: e1, from: start-version, to: pm-start-iteration }

View File

@@ -78,7 +78,7 @@ class PresetTest(unittest.TestCase):
self.assertIn("start-version[/开始版本/]", text)
self.assertIn("requirement-decision{需求决策}", text)
self.assertIn("handoff([提测 · 里程碑])", text)
self.assertIn("accepted([测试通过])", text)
self.assertIn("accepted([人工补测])", text)
self.assertIn("graph-start{{会话启动}}", text)
self.assertIn("后端 TDD", text)
self.assertIn("-.->|不满意|", text)