docs: split inbox test plans into case files

This commit is contained in:
2026-03-19 11:29:17 +08:00
parent 9beb7e93eb
commit 5f59350577
70 changed files with 1820 additions and 1606 deletions
@@ -0,0 +1,25 @@
# Case: `reply-rejects-invalid-payload-json`
## 用例意义
验证 `reply` 对非法 `--payload-json` 输入返回稳定错误契约。
## 前置条件
- 已存在一个非终态线程 `THREAD_ID`
## 输入
```bash
inbox --db TMPDIR/coord.db --json reply --from leader --to worker-a --thread THREAD_ID --summary "Retry read timeouts" --payload-json not-json
```
## 预期输出
- 退出码为 `30`
- JSON 错误码为 `invalid_input`
## 断言结论
- `reply` 的 payload 与其他消息写入命令一样需要通过 JSON 校验