mirror of
https://github.com/ThearchyHelios/AgentLab.git
synced 2026-11-22 23:41:59 +00:00
业务本体与标准实体:跨源键值对齐、对账共变算子、健康证据链与实体助手
- 新增标准业务实体(CanonicalEntity)模型、确定性跨源编码翻译、后台候选实体扫描与文档驱动实体智能助手 - 新增指标本体图谱(factor / reconciles_with / upstream_driver)、DAG 防环校验以及 ontology_neighbors / source_health 内置工具 - 新增跨源对账(analysis_reconcile)与滞后共变(analysis_cochange)分析算子,打通 [[h:H1]] 数据源健康证据链、报告导出与本体消融评测 - 数据目录新增「标准业务实体」视图与候选审阅工作台,口径页集成指标本体拓扑面板与端到端浏览器检查
This commit is contained in:
@@ -46,6 +46,8 @@ class Sealed:
|
||||
retrievals: dict[str, dict[str, Any]] = field(default_factory=dict)
|
||||
#: 封存范围内台账里记过的分析结论:工件 id → {node_id, exec, call_id / item, inputs}
|
||||
analyses: dict[str, dict[str, Any]] = field(default_factory=dict)
|
||||
#: 封存范围内台账里记过的数据源健康度快照:工件 id → {node_id, exec, call_id, source_name, status}
|
||||
source_healths: dict[str, dict[str, Any]] = field(default_factory=dict)
|
||||
#: 封存时记下的清单哈希(没封存的是 None):旧答案的猜测按 (run_id, 它) 缓存
|
||||
manifest_hash: str | None = None
|
||||
#: 运行记录上的 manifest_seq 原值(老运行是 None):按需裁判追加判定前核对封存没换过
|
||||
@@ -202,6 +204,10 @@ async def read_sealed(run_id: str) -> Sealed:
|
||||
out.analyses.setdefault(artifact, {
|
||||
"node_id": node_id, **{k: entry[k] for k in ("exec", "call_id", "item", "inputs")
|
||||
if entry.get(k) is not None}})
|
||||
elif entry.get("kind") == "source_health":
|
||||
out.source_healths.setdefault(artifact, {
|
||||
"node_id": node_id, **{k: entry[k] for k in ("exec", "call_id", "verdict", "sources", "issue_count")
|
||||
if entry.get(k) is not None}})
|
||||
return out
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user