chore: 归档 session-storage change

- 创建 devflow 项目档案(brief/evidence/decisions/acceptance)
- 更新 devflow/index.md 索引
- 移动 OpenSpec 到 archive
This commit is contained in:
zhuyongxin
2026-06-26 17:33:56 +08:00
parent 9b52afce07
commit e3f20b1f06
12 changed files with 95 additions and 0 deletions
@@ -0,0 +1,28 @@
# 验收记录
## 验证情况
### 静态验证
- [x] 编译通过(`mvn compile`)
- [x] 42 个测试全部通过(DocumentChunkService / LookupKnowledgeTool / Repository)
- [x] 三张新表通过 Flyway 成功创建
### 脚本验证
- [x] `/api/chat` — 单 Agent 正常响应,agent_step 记录正确
- [x] `/api/chat` — 复杂问题路由到多 Agent(Planner + Executor)
- [x] `/api/ai_ops` — 多 Agent 流程正常,planner 步骤写入 agent_step
- [x] Tool_invocation L0/L1 检索质量明细正确
- [x] diagnosis_session 汇总指标(total_token_count / step_count / tool_call_count)正确
- [x] TokenTrackingChatModel 捕获实际 token 数(已验证 total=827)
- [x] 旧 diagnosis_record 表删除成功
### 未验证
- `/api/chat_stream`(SSE 流式)— 未接入 session 存储,不在本次范围,后续覆盖
- `self_evaluation` / `feedback` — 无前端交互入口
## 剩余风险
| 风险 | 说明 |
|------|------|
| Token 累加 | 当前每步独立记录,汇总在 `backfillSessionMetrics`,未在 Hook 层累加 |
| Async 优化 | 同步写 DB 在低并发下无问题,后续可引入 @Async |