Skip to content

feat(data): 统一多市场财经新闻与披露 - #152

Open
mirror29 wants to merge 4 commits into
mainfrom
feat/global-market-news
Open

feat(data): 统一多市场财经新闻与披露#152
mirror29 wants to merge 4 commits into
mainfrom
feat/global-market-news

Conversation

@mirror29

Copy link
Copy Markdown
Owner

Summary

  • Data:新增统一多市场新闻契约与 provider router,接入东财、SEC、HKEX、Crypto RSS/Atom,以及明确标注的 Yahoo 指数/ETF 市场代理;支持 PIT as_of/since、来源等级、去重、逐 provider 状态和部分失败语义。
  • Orchestration:新增 data.get_news,把 data.get_market_news 扩展到全部已声明市场,并同步 DataClient、tool catalog 与市场路由提示词。
  • Research:让 sentiment/macro analyst 消费结构化多市场新闻,保留 FNG 与 Web 的可见降级路径。
  • Documentation:同步中英文能力清单与当前状态页,明确代理口径和来源覆盖。

Test Coverage

  • Data 新闻专项:45 passed
  • Research 全量:144 passed
  • Orchestration:typecheck 通过,Vitest 全量通过;market-tools 20 passed
  • Data 全量:222 passed,2 failed(既有测试硬编码 2026-07-23,当前实现按运行日生成 2026-07-30;与本 PR 无关)
  • Ruff(data/research 相关范围)、scripts/check-consistency.shgit diff --check:通过

Pre-Landing Review

发布前审查发现并修复:

  • TS/FastAPI 逗号分隔 kinds 契约
  • legacy venue 在校验前规范化,且响应保留旧请求回显
  • naive as_of / since 按 UTC 解释,避免 PIT 比较 500
  • 市场级 scope 不再错误回填 yfinance venue
  • 东财故障不再伪装 no_results,来源不再误标 Yahoo/官方
  • Crypto 市场 feed 不再冒充单标的新闻流
  • 新闻市场 schema 与 A 股专用板块/资金/强势股 schema 分离

安全专项审查无发现。Codex 未安装,因此跨模型审查跳过。

Design Review

No frontend files changed — design review skipped.

Eval Results

Prompt/tool catalog 已由 TypeScript 类型检查、Vitest 和真实 Agent smoke 验证;未运行独立 LLM eval suite。

Plan Completion

统一契约、免费公开 provider、API/生命周期、orchestration、research 接线与 PIT 修复均已完成。新闻全文库、事件聚类、商业 API 与付费墙抓取按首版边界未纳入。

Documentation

  • README.md / README.zh-CN.md:补充统一多市场财经新闻能力。
  • docs/04-current-state.md:记录来源、代理口径、PIT、provider 状态和 analyst 接线。

Test plan

  • Data 新闻专项通过(45)
  • Research 全量通过(144)
  • Orchestration typecheck + Vitest 全量通过
  • Ruff / consistency / diff check 通过
  • 真实 tool 覆盖 14 类市场
  • 真实 Agent 验证美股与日股市场快讯代理口径

🤖 Generated with Claude Code

mirror29 and others added 4 commits July 30, 2026 11:11
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
@github-actions

Copy link
Copy Markdown

Review base: a4a9a0e

🤖 GLM-5.2 PR Review

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant