feat: 接入 SEC 与 Apple 官方研究文档和证据检索 - #95
Open
Zhangchenhao-111 wants to merge 13 commits into
Open
Conversation
Zhangchenhao-111
marked this pull request as ready for review
September 13, 2026 02:15
Zhangchenhao-111
marked this pull request as draft
September 13, 2026 02:34
Zhangchenhao-111
marked this pull request as ready for review
September 13, 2026 02:35
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.
改动说明
为研究流程增加统一 ResearchDocument 元数据、SEC EDGAR 与 Apple 官方 Newsroom 两个真实来源连接器,并注册 search_research_documents / get_document_evidence 工具。支持公司、文档类型、报告期、日期和来源过滤;HTML 引用包含稳定文档 ID、规范化文本位置、内容哈希和来源跳转。默认及综合研究计划接入检索,EvidenceRef 保留来源类型和证据。
关联 Issue
Closes #32
当前为 Draft:以下未完成验收项补齐前,请勿合并。
测试报告(正式审核前必填)
环境
实际执行命令与结果
按 CI 高信号模式扫描仓库源码:未发现 secret。真实来源脚本使用本地环境变量设置 SEC User-Agent,联系信息未提交。脚本验证 Apple 10-K(2025-10-31,报告期 2025-09-27)和当前官方公告;输出来源类型、有界引用、哈希及证据跳转。它是 provider/tool integration,不能代替 LLM 或 Electron UI E2E。
与上游 3ce3848 在本地合并后,再次运行:
已知失败 / Baseline
唯一失败为 PiRuntimeAdapter 的 disposeSession 删除会话文件测试:Windows 沙箱拒绝创建 /tmp/pi(C:\tmp\pi)。在原始基线的独立干净 worktree 执行 bun test packages/shared/src/agent/pi-runtime-agent-backend.test.ts,同样 16 pass / 1 fail;失败位置及实现未被本 PR 修改。
详细报告:docs/research-documents-test-report.md。
UI 截图
未修改 UI 组件,但新增研究资料可能出现在已有研究结果中。尚未完成 Electron 视觉验证和截图;本地 Electron 可执行文件不可用,未宣称通过 UI 验收。
Scope / 后续
首版 IR 来源仅覆盖 Apple 当前 Newsroom feed;SEC 历史查询最多 20 个匹配文件,超限明确报错。暂不支持 PDF 文本定位。第三方研报仅提供独立许可适配器契约,未接入付费服务。不将来源缺失、未知报告期或研报观点伪装为监管披露。