Add orch command contract tests

This commit is contained in:
2026-03-19 16:45:19 +08:00
parent a20bec1cac
commit 405d8c0aab
8 changed files with 1481 additions and 4 deletions
@@ -21,14 +21,15 @@ orch --db TMPDIR/coord.db --json run show --run run_blog_001
- `run show` 退出码为 `0`
- `data.run.run_id == "run_blog_001"`
- `data.run.status == "active"`
- `data.run.status == "ready"`
- `data.task_counts.ready >= 1`
- 返回值不包含 `tasks` 数组
## 断言结论
- `run show` 提供的是聚合视图,而不是完整任务明细
- run 级状态和任务计数可以在不调用 `status` 的情况下被读取
- run 级状态会反映当前任务聚合结果;当 run 下已有 `ready` 任务时,返回状态会是 `ready`
- 任务计数可以在不调用 `status` 的情况下被读取
## 补充约束