Files
ai-workflow-skill/docs/tests/inbox/claim/claim-rejects-when-thread-missing.md
T

29 lines
548 B
Markdown

# Case: `claim-rejects-when-thread-missing`
## 用例意义
验证 `claim` 对不存在的线程返回稳定的 not-found 错误契约。
## 前置条件
- 空数据库已完成 `init`
## 输入
```bash
inbox --db TMPDIR/coord.db --json claim --agent worker-z --thread thr_missing
```
## 预期输出
- 退出码为 `40`
- JSON 错误码为 `not_found`
## 断言结论
- 缺失线程会被明确区分为引用错误,而不是 lease 冲突
## 补充约束
- `--thread` 是必填 flag;缺失时属于 `invalid_input` 类 usage error