Files
ai-workflow-skill/docs/tests/inbox/renew/renew-rejects-non-owner.md
T

25 lines
445 B
Markdown

# Case: `renew-rejects-non-owner`
## 用例意义
验证非租约拥有者不能续租别人的活跃 lease。
## 前置条件
- `worker-c` 已成功 `claim` 线程 `THREAD_ID`
## 输入
```bash
inbox --db TMPDIR/coord.db --json renew --agent worker-x --thread THREAD_ID --lease-seconds 600
```
## 预期输出
- 退出码为 `20`
- JSON 错误码为 `lease_conflict`
## 断言结论
- `renew``claim` 一样受 lease owner 约束