Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
改动说明
这是 #20 的独立基础切片:为 Deep Research 报告中的 evidence 持久化最小必要的来源 provenance snapshot,并提供显式 source drift 检测。
EvidenceRef新增可选sourceSnapshots:稳定 source id、规范 URL、document id、标题、发布时间、retrieved_at、provider/method、实际 evidence excerpt、excerpt/source-content SHA-256 hash 与可选 source version。ResearchRunner在真实research.news报告组装路径按文章生成快照;其他 capability 仅保存已进入报告的摘要,不归档完整响应或网页。current、source_drifted、source_unavailable;live 内容不会改写原报告快照。ResearchReportJSON 持久化,重启后保持不变。关联 Issue
Related to #20。此 PR 不关闭 #20:尚未接入 UI 的 original/current 对照、符合 #19 policy 的生产 live retriever、trace/eval metadata 与真实模型来源验收材料。
验证
环境:Windows 11 / Bun 1.4.2
新增测试包含:实际
research.news→ 报告组装、JSON 重启持久化、受控 HTTP source 的 v1 → v2 → 410 unavailable 漂移路径;原始 v1 excerpt 在后两种状态下始终保留。UI
无可见 UI 变化;本 PR 只提供报告数据与漂移检测基础能力。