Files
SuperBizAgent-java/devflow/projects/2026-06-26-session-storage/evidence.md
T
zhuyongxin e3f20b1f06 chore: 归档 session-storage change
- 创建 devflow 项目档案(brief/evidence/decisions/acceptance)
- 更新 devflow/index.md 索引
- 移动 OpenSpec 到 archive
2026-06-26 17:33:56 +08:00

24 lines
1021 B
Markdown
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
# 证据记录
## Evidence-Driven 查证
### E1: AgentLoggingHook 创建方式
- **发现**: ChatService 通过 `new AgentLoggingHook()` 创建,非 Spring 管理,无法注入 Repository
- **结论**: 需要改造为可注入的 POJO(构造注入)
- **影响**: Hook 重构为构造注入 Repository + agentName
### E2: AiOpsService 未使用 Hook
- **发现**: AiOpsService 的 Planner / Executor / Supervisor 均未配置 AgentLoggingHook
- **结论**: 需要补齐,每个子 Agent 加 Hook
- **影响**: Planner 和 Executor 各加 Hook,Supervisor 不加
### E3: 项目无异步基础设施
- **发现**: 全局搜索 `@Async` / `@EnableAsync` 均无匹配
- **结论**: MVP 阶段同步写 DB,后续优化
- **影响**: 标记为技术债
### E4: RunnableConfig 支持 metadata
- **发现**: `RunnableConfig` 的 `metadata` 为 `ConcurrentMap`,可在构建时设置
- **结论**: sessionId 通过 `config.addMetadata("sessionId", id)` 传递,线程安全
- **影响**: 取代 ThreadLocal 方案