fix: add close/context-manager to diagnosis store; tighten import boundary

This commit is contained in:
2026-07-15 12:06:29 -04:00
parent 6b85fcbe1c
commit 3a8dd5c167
3 changed files with 44 additions and 5 deletions
+6 -4
View File
@@ -1,8 +1,10 @@
"""core/evolution/ 子包的只读 Protocol 定义。
"""core/evolution/ 子包的持久化 Protocol 定义。
三个 Protocol 均为只读——core/ 返回结果 dataclass写入由 app/ 持久化。
SkillStore / PromptStore 同步(文件读取量小且快),RunLog 为异步
(隔离 SQLite 查询,core/ 不写 SQL)。
SkillStore / PromptStore / RunLog 为只读——core/ 返回结果 dataclass
读取由 app/ 落盘的资源。SkillStore / PromptStore 同步(文件读取量小且快),
RunLog 异步(隔离 SQLite 查询,core/ 不写 SQL)。
DiagnosisSignalStore 兼具读写:逐题 upsert 诊断信号并支持断点续跑查询,
同样隔离 SQLite 实现,app/core 不写裸 SQL。
"""
from __future__ import annotations