Chat 路径覆盖矩阵:补齐零覆盖路径的真栈用例
- Dominant language
- TypeScript
- Stars
- 0
- Forks
- 0
- Avg merge
- 1h 7m
- Merged PRs (30d)
- 969
Description
人类直接交办(ad-hoc,不走 sprint/feature 流程;按 `.harness/instructions/ad-hoc-fix-pr-sop.md` 开一个轻量 issue 供 PR 引用)。
## 要解决的问题
`/chat` 已经有 11 条性能 SLO、一份 UX 验收卡、99 个 e2e spec,缺的从来不是标准,是**一张说清「路径全集是什么、每条被谁覆盖、哪些根本没人测」的表**——以及那张表里零覆盖的那些路径本身。
## 做法
1. `.harness/instructions/chat-path-coverage-matrix.md`:37 条路径的覆盖矩阵,作为唯一事实源。它只说覆盖,不复制任何延迟阈值(那是 `chat-agent-performance-acceptance.md` 的事)或界面判据(那是验收卡的事)。
2. 补齐零覆盖路径的真栈用例:A3 长会话压缩(早期事实穿过摘要层)、A5 冷启动首屏、C4 一次两个画布、C5 连续三轮产物、D4 skill 三态区分、F2 断线重连、F6 并发双 run、F7 上游断流。
3. `pnpm run lint:chat-path-coverage`:把矩阵与仓库现状机械对上(标签 / testMatch / 文件存在性),免得这张表跟着「规范早就有、门控一直没有」那条老路烂掉。
## 已知边界
- C8 子任务产物写回、C6 Office 产物(chat 侧)、F5 取消传播(chat 侧)仍是缺口:三者都要求本 e2e 车道具备 native 会话 + 真实沙箱编排,属新增 CI 预算,须先有人拍板。理由逐条写在矩阵文档的「已知缺口」一节。
- 新增的 8 条用例落在**非阻塞**车道 `chat-path-coverage`,跑绿两次后按矩阵文档「首跑与搬家」搬进 `chat-read`。
Contributor guide
No contributing guide indexed for this repository
Research direction
Read .harness/instructions/chat-path-coverage-matrix.md and .harness/instructions/ad-hoc-fix-pr-sop.md first, then inspect the existing /chat e2e specs and run pnpm run lint:chat-path-coverage. Add real-stack coverage for A3, A5, C4, C5, D4, F2, F6, and F7 in the non-blocking chat-path-coverage lane; done means the matrix check passes and the lane is green twice before following the documented move to chat-read.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- typescript
- Domain
- ci-cd, testing
- Issue type
- Feature
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Active
- Clarity
- Mostly clear
- Newbie friendliness
- 68/100