fix: add close/context-manager to diagnosis store; tighten import boundary
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user