Author orch Markdown test plan
This commit is contained in:
@@ -0,0 +1,27 @@
|
||||
# Case: `task-add-rejects-invalid-priority`
|
||||
|
||||
## 用例意义
|
||||
|
||||
验证 `task add` 只接受 `low|normal|high` 三种优先级值,并在其他输入下返回稳定错误。
|
||||
|
||||
## 前置条件
|
||||
|
||||
- 已存在 run `run_blog_004`
|
||||
|
||||
## 输入
|
||||
|
||||
```bash
|
||||
orch --db TMPDIR/coord.db --json run init --run run_blog_004 --goal "Validate task priority input"
|
||||
orch --db TMPDIR/coord.db --json task add --run run_blog_004 --task T1 --title "Implement retry policy" --priority urgent
|
||||
```
|
||||
|
||||
## 预期输出
|
||||
|
||||
- `task add` 退出码为 `30`
|
||||
- JSON 错误码为 `invalid_input`
|
||||
- 错误消息指出 `priority` 必须是 `low`、`normal` 或 `high`
|
||||
|
||||
## 断言结论
|
||||
|
||||
- `task add` 的优先级枚举是明确而稳定的 CLI 契约
|
||||
- 非法优先级会在任务写入前被拒绝,而不是退回到默认值或被静默接受
|
||||
Reference in New Issue
Block a user