test(graph): establish diagnosis stategraph suite

This commit is contained in:
zhuyongxin
2026-07-17 18:53:29 +08:00
parent 99e490f227
commit 208a231113
19 changed files with 868 additions and 395 deletions
@@ -0,0 +1,20 @@
# Chat Diagnosis StateGraph Test Suite Brief
## 背景
- 用户目标:将 ISS-011 阶段 4作为独立 sm-flow,建立以 Graph 路径和外部行为为中心的新测试体系。
- 当前问题:阶段 1–3 覆盖充分但组织分散,旧 Hook payload test 仍会约束已退出生产的隐式状态机。
- 关联 OpenSpec:`openspec/changes/chat-diagnosis-stategraph-test-suite/`
- devflow 分档:complex;接口影响 L1 test-only。
## 范围
- 本次要做:Workflow/Node Contract/Chat Integration 三层权威入口、Issue 路径矩阵补齐、旧 Hook test 退役、保留安全回归。
- 本次不做:不改生产源码,不删除生产 Hook/ThreadLocal 类型,不运行 live E2E/log/DB 验收。
- 影响区域:Diagnosis Graph tests、ChatService integration test、OpenSpec/devflow。
## OpenSpec 对齐
- proposal/design/specs:已覆盖,2 个 delta capabilities。
- tasks:21/21 已完成。
- 生产行为:无变化,`src/main` diff=0。