Skip to content

Commit 38b497f

Browse files
committed
docs(batch-b): close transport abort ticket
1 parent 8ec1ef1 commit 38b497f

2 files changed

Lines changed: 17 additions & 8 deletions

File tree

.scratch/batch-b/issues/02-u2-transport-timeout-abort.md

Lines changed: 15 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -6,10 +6,19 @@
66
**Evidence:** `.scratch/batch-b/evidence.md#u-2--timeout-传播到底层-http-取消`
77
**Branch:** `test/transport-abort`
88
**Blocked by:** 01(同一 OpenSpec 串行落地)
9-
**Status:** blocked
9+
**Status:** closed
1010

11-
- [ ] fixture 提供“请求已接收”与“response 已取消”的有界 fence,禁止用固定 sleep 猜时序
12-
- [ ] timeout 后断言现有 `LLMError` Transport/Timeout 形状
13-
- [ ] 服务端确定性观察到 response stream cancellation;request abort 只作补充信号
14-
- [ ] 不用内存 HttpClient 或显式 Fiber interrupt 重复现有覆盖
15-
- [ ]`packages/llm` 连续运行目标测试至少 3 次并运行 `bun typecheck`
11+
- [x] fixture 提供“请求已接收”与“response 已取消”的有界 fence,禁止用固定 sleep 猜时序
12+
- [x] timeout 后断言现有 `LLMError` Transport/Timeout 形状
13+
- [x] 服务端确定性观察到 response stream cancellation;request abort 只作补充信号
14+
- [x] 不用内存 HttpClient 或显式 Fiber interrupt 重复现有覆盖
15+
- [x]`packages/llm` 连续运行目标测试至少 3 次并运行 `bun typecheck`
16+
17+
## 验证证据
18+
19+
- 基线:`dev@55dd345491de4542dbf6fa7a4ba126a2c23104c4`;分支:`test/transport-abort`
20+
- 实现提交:`8ec1ef192`;PR:[LeXwDeX/OpenCode-GraphAgent#193](https://github.com/LeXwDeX/OpenCode-GraphAgent/pull/193)`dev`
21+
- 真实 transport:公开 `LLMClient.stream(...)``FetchHttpClient.layer` 请求 loopback `Bun.serve`;2 秒有界 fence 分别证明请求已接收与服务端 response `cancel()` 已触发。
22+
- mutation 红灯:临时移除 response stream 的 `Stream.timeoutOrElse` 后,新增场景在 1 秒测试边界超时,0 pass / 1 fail;mutation 已恢复,生产文件无 diff。
23+
- `cd packages/llm && bun test test/transport-timeout.test.ts --timeout 30000`:连续 3 次均为 7 pass、0 fail、14 expect;`bun typecheck``tsgo --noEmit`,exit 0。
24+
- 现有生产实现满足 OpenSpec Requirement 2,无生产代码修改;Requirement 3 留给 03 票。

.scratch/batch-b/issues/03-transport-midstream-stall.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,8 @@
55
**Spec:** `.scratch/batch-b/abort-path-contracts.md` 的 Requirement 3
66
**Evidence:** `.scratch/batch-b/evidence.md#transport-mid-stream-stall`
77
**Branch:** `test/midstream-timeout`
8-
**Blocked by:** 02(共同修改 `packages/llm/test/transport-timeout.test.ts`
9-
**Status:** blocked
8+
**Blocked by:** None(02 已完成
9+
**Status:** ready-for-agent
1010

1111
- [ ] 用 fence 证明 timeout 前合法首帧已经交付给消费者
1212
- [ ] 用 TestClock 越过下一帧间隔,随后得到现有 Transport/Timeout

0 commit comments

Comments
 (0)