<mxfile host="app.diagrams.net" modified="2026-06-17T14:58:00.000Z" agent="Codex" version="24.7.17" type="device">
  <diagram id="current-production" name="1 当前生产 LLM 调度实际">
    <mxGraphModel dx="1600" dy="960" grid="1" gridSize="10" guides="1" tooltips="1" connect="1" arrows="1" fold="1" page="1" pageScale="1" pageWidth="1600" pageHeight="1100" math="0" shadow="0">
      <root>
        <mxCell id="0" />
        <mxCell id="1" parent="0" />
        <mxCell id="c-title" value="Data Horizon 当前生产环境 LLM 调度实际链路&#xa;证据口径：仓库代码 + Railway prod 配置 + Query Nest 生产库只读聚合（2026-06-17）" style="rounded=0;whiteSpace=wrap;html=1;fillColor=#17202A;fontColor=#FFFFFF;strokeColor=#17202A;fontSize=22;fontStyle=1;align=left;spacingLeft=24;" vertex="1" parent="1">
          <mxGeometry x="40" y="30" width="1520" height="74" as="geometry" />
        </mxCell>
        <mxCell id="c-evidence" value="生产事实快照：最近 7 天 dn_llm_call_log 共 86,765 次；主要集中在 agent_id=1「新闻标准化」。启用 Provider 仅第三方-vveai（openai-compatible）；Gemini 直连 Provider 禁用。KOL snapshot 最新 id=79，kol_control_room/24h，ready，252 samples / 35 KOL / 11 components。" style="rounded=1;whiteSpace=wrap;html=1;fillColor=#FEF7E0;strokeColor=#E6A700;fontColor=#1F2933;fontSize=14;spacing=12;" vertex="1" parent="1">
          <mxGeometry x="40" y="122" width="1520" height="58" as="geometry" />
        </mxCell>

        <mxCell id="c-sources" value="采集入口&#xa;RSS / Telegram / Macro / Market / External feeds&#xa;Scraper jobs 写入 dn_raw_news(status=pending)" style="rounded=1;whiteSpace=wrap;html=1;fillColor=#E8F1FE;strokeColor=#4C78A8;fontSize=15;fontStyle=1;spacing=12;" vertex="1" parent="1">
          <mxGeometry x="70" y="235" width="230" height="116" as="geometry" />
        </mxCell>
        <mxCell id="c-raw" value="dn_raw_news&#xa;原始消息池&#xa;status: pending / standardized / dispatched&#xa;image_analysis_status 独立跟踪" style="rounded=1;whiteSpace=wrap;html=1;fillColor=#FFFFFF;strokeColor=#6B7280;fontSize=14;spacing=10;" vertex="1" parent="1">
          <mxGeometry x="360" y="235" width="230" height="116" as="geometry" />
        </mxCell>
        <mxCell id="c-std-job" value="StandardizeJob @every 1s&#xa;batch=10&#xa;1. source std_config&#xa;2. Weaviate 去重&#xa;3. clean + truncate&#xa;4. Google Translate(prod)&#xa;5. Phase 3 LLM JSON 分析" style="rounded=1;whiteSpace=wrap;html=1;fillColor=#E9F7EF;strokeColor=#2E8B57;fontSize=14;spacing=10;" vertex="1" parent="1">
          <mxGeometry x="650" y="220" width="260" height="150" as="geometry" />
        </mxCell>
        <mxCell id="c-std-llm" value="news_std LLM 调用&#xa;tag=news_std&#xa;agent_id=1 NewsStdAgentId&#xa;模型：第三方-news_std / gpt-4.1&#xa;输出：subjects / category / keywords JSON&#xa;解析失败时 max_tokens 重试一次；LLM 失败则继续无 LLM 结果" style="rounded=1;whiteSpace=wrap;html=1;fillColor=#DFF6DD;strokeColor=#2E8B57;fontSize=14;spacing=10;" vertex="1" parent="1">
          <mxGeometry x="980" y="205" width="280" height="170" as="geometry" />
        </mxCell>
        <mxCell id="c-std-output" value="标准化结果回写&#xa;std_content_zh/en&#xa;subjects&#xa;std_extra(category, keywords)&#xa;status=standardized" style="rounded=1;whiteSpace=wrap;html=1;fillColor=#FFFFFF;strokeColor=#6B7280;fontSize=14;spacing=10;" vertex="1" parent="1">
          <mxGeometry x="1320" y="235" width="210" height="116" as="geometry" />
        </mxCell>

        <mxCell id="c-selector" value="pkg/llm.Selector（当前统一选择器）&#xa;FindByTag / SelectById / SelectByConfig&#xa;dn_llm_config + dn_llm_provider&#xa;daily_limit / daily_used / UTC reset&#xa;ChatWithLog 写 dn_llm_call_log（异步）&#xa;生产配置 tags: news_std + kol_intelligence, news_std_image, search" style="rounded=1;whiteSpace=wrap;html=1;fillColor=#F4ECF7;strokeColor=#7D3C98;fontSize=14;fontStyle=1;spacing=12;" vertex="1" parent="1">
          <mxGeometry x="650" y="430" width="610" height="130" as="geometry" />
        </mxCell>

        <mxCell id="c-image-job" value="RawNewsImageAnalysisJob @every 5s&#xa;异步 Vision，不阻塞标准化/分发&#xa;读取 eligible status=1/2 的图片候选&#xa;tag=news_std_image，失败找不到可用模型时回退 news_std&#xa;成功：追加 [Image Analysis] + Telegram reply push_log&#xa;生产近 7 天 image config 调用 66,550 次，成功 231，失败多为图片 URL http get" style="rounded=1;whiteSpace=wrap;html=1;fillColor=#FFF3E0;strokeColor=#E67E22;fontSize=14;spacing=10;" vertex="1" parent="1">
          <mxGeometry x="70" y="455" width="460" height="160" as="geometry" />
        </mxCell>
        <mxCell id="c-rawnews-job" value="RawNewsJob @every 1s&#xa;读取 status=standardized&#xa;每条消息内并行：AgentTask + DirectPushTask&#xa;完成后 status=dispatched" style="rounded=1;whiteSpace=wrap;html=1;fillColor=#E8F1FE;strokeColor=#4C78A8;fontSize=14;spacing=10;" vertex="1" parent="1">
          <mxGeometry x="1320" y="440" width="210" height="130" as="geometry" />
        </mxCell>
        <mxCell id="c-agents" value="AgentTask 当前生产状态&#xa;启用 dn_agent 仅 3 个，processor_mode=forward&#xa;代码支持 analyze：AnalystAgent RealtimeRun 调 LLM + 翻译 + push_log&#xa;但生产启用项未见 analyze agent" style="rounded=1;whiteSpace=wrap;html=1;fillColor=#FFFFFF;strokeColor=#4C78A8;fontSize=14;spacing=10;" vertex="1" parent="1">
          <mxGeometry x="990" y="650" width="260" height="140" as="geometry" />
        </mxCell>
        <mxCell id="c-direct" value="DirectPushTask&#xa;dn_raw_news_direct 配置&#xa;写 dn_push_log&#xa;输出到 Telegram / Webhook / Trading Matrix" style="rounded=1;whiteSpace=wrap;html=1;fillColor=#FFFFFF;strokeColor=#4C78A8;fontSize=14;spacing=10;" vertex="1" parent="1">
          <mxGeometry x="1320" y="650" width="210" height="120" as="geometry" />
        </mxCell>
        <mxCell id="c-push" value="PushJob / Telegram push&#xa;普通消息先发；图片分析完成后追加 reply&#xa;push_log 幂等 key 控制重复发送" style="rounded=1;whiteSpace=wrap;html=1;fillColor=#F0F7FF;strokeColor=#4C78A8;fontSize=14;spacing=10;" vertex="1" parent="1">
          <mxGeometry x="1320" y="835" width="210" height="110" as="geometry" />
        </mxCell>

        <mxCell id="c-snapshot-job" value="KolIntelligenceSnapshotRebuildJob @every 5m&#xa;Build: raw_news + enabled KOL + source bindings + profile summaries&#xa;规则/统计聚合生成 SemanticComponents&#xa;prod config: SnapshotLLMEnhancerEnabled=true&#xa;LLMEnhancer tag=kol_intelligence, max_tokens=1800&#xa;失败则本轮 BuildAndPersist 返回错误；Dashboard 读已持久化 snapshot" style="rounded=1;whiteSpace=wrap;html=1;fillColor=#EAF2F8;strokeColor=#2874A6;fontSize=14;spacing=10;" vertex="1" parent="1">
          <mxGeometry x="70" y="690" width="520" height="165" as="geometry" />
        </mxCell>
        <mxCell id="c-snapshot-db" value="dn_kol_intelligence_snapshot&#xa;snapshot_key=kol_control_room&#xa;time_window=24h&#xa;status=ready&#xa;latest production: id=79, 252 samples, 35 KOL, 11 components, build_ms=1828" style="rounded=1;whiteSpace=wrap;html=1;fillColor=#FFFFFF;strokeColor=#2874A6;fontSize=14;spacing=10;" vertex="1" parent="1">
          <mxGeometry x="650" y="710" width="270" height="130" as="geometry" />
        </mxCell>

        <mxCell id="c-warning" value="当前主要运营风险&#xa;1. dn_llm_call_log 无 biz_tag，config 5 同时承载 news_std / kol_intelligence，日志难以精确拆场景。&#xa;2. news_std_image 近期失败极高，主要是远程图片下载失败。&#xa;3. 当前 Selector 具备 tag + daily limit + log，但尚未内建 provider 分层、安全策略、质量评分、成本看板、上一版 snapshot 兜底策略。" style="rounded=1;whiteSpace=wrap;html=1;fillColor=#FDEDEC;strokeColor=#C0392B;fontSize=14;spacing=12;" vertex="1" parent="1">
          <mxGeometry x="650" y="900" width="610" height="130" as="geometry" />
        </mxCell>

        <mxCell id="e1" style="edgeStyle=orthogonalEdgeStyle;rounded=0;orthogonalLoop=1;jettySize=auto;html=1;strokeWidth=2;strokeColor=#4C78A8;endArrow=block;" edge="1" parent="1" source="c-sources" target="c-raw"><mxGeometry relative="1" as="geometry" /></mxCell>
        <mxCell id="e2" style="edgeStyle=orthogonalEdgeStyle;rounded=0;orthogonalLoop=1;jettySize=auto;html=1;strokeWidth=2;strokeColor=#2E8B57;endArrow=block;" edge="1" parent="1" source="c-raw" target="c-std-job"><mxGeometry relative="1" as="geometry" /></mxCell>
        <mxCell id="e3" style="edgeStyle=orthogonalEdgeStyle;rounded=0;orthogonalLoop=1;jettySize=auto;html=1;strokeWidth=2;strokeColor=#2E8B57;endArrow=block;" edge="1" parent="1" source="c-std-job" target="c-std-llm"><mxGeometry relative="1" as="geometry" /></mxCell>
        <mxCell id="e4" style="edgeStyle=orthogonalEdgeStyle;rounded=0;orthogonalLoop=1;jettySize=auto;html=1;strokeWidth=2;strokeColor=#2E8B57;endArrow=block;" edge="1" parent="1" source="c-std-llm" target="c-std-output"><mxGeometry relative="1" as="geometry" /></mxCell>
        <mxCell id="e5" style="edgeStyle=orthogonalEdgeStyle;rounded=0;orthogonalLoop=1;jettySize=auto;html=1;dashed=1;strokeColor=#7D3C98;endArrow=block;" edge="1" parent="1" source="c-std-llm" target="c-selector"><mxGeometry relative="1" as="geometry" /></mxCell>
        <mxCell id="e6" style="edgeStyle=orthogonalEdgeStyle;rounded=0;orthogonalLoop=1;jettySize=auto;html=1;strokeWidth=2;strokeColor=#4C78A8;endArrow=block;" edge="1" parent="1" source="c-std-output" target="c-rawnews-job"><mxGeometry relative="1" as="geometry" /></mxCell>
        <mxCell id="e7" style="edgeStyle=orthogonalEdgeStyle;rounded=0;orthogonalLoop=1;jettySize=auto;html=1;strokeColor=#E67E22;endArrow=block;" edge="1" parent="1" source="c-raw" target="c-image-job"><mxGeometry relative="1" as="geometry" /></mxCell>
        <mxCell id="e8" style="edgeStyle=orthogonalEdgeStyle;rounded=0;orthogonalLoop=1;jettySize=auto;html=1;dashed=1;strokeColor=#7D3C98;endArrow=block;" edge="1" parent="1" source="c-image-job" target="c-selector"><mxGeometry relative="1" as="geometry" /></mxCell>
        <mxCell id="e9" style="edgeStyle=orthogonalEdgeStyle;rounded=0;orthogonalLoop=1;jettySize=auto;html=1;strokeColor=#4C78A8;endArrow=block;" edge="1" parent="1" source="c-rawnews-job" target="c-agents"><mxGeometry relative="1" as="geometry" /></mxCell>
        <mxCell id="e10" style="edgeStyle=orthogonalEdgeStyle;rounded=0;orthogonalLoop=1;jettySize=auto;html=1;strokeColor=#4C78A8;endArrow=block;" edge="1" parent="1" source="c-rawnews-job" target="c-direct"><mxGeometry relative="1" as="geometry" /></mxCell>
        <mxCell id="e11" style="edgeStyle=orthogonalEdgeStyle;rounded=0;orthogonalLoop=1;jettySize=auto;html=1;strokeColor=#4C78A8;endArrow=block;" edge="1" parent="1" source="c-direct" target="c-push"><mxGeometry relative="1" as="geometry" /></mxCell>
        <mxCell id="e12" style="edgeStyle=orthogonalEdgeStyle;rounded=0;orthogonalLoop=1;jettySize=auto;html=1;strokeColor=#E67E22;endArrow=block;" edge="1" parent="1" source="c-image-job" target="c-push"><mxGeometry relative="1" as="geometry" /></mxCell>
        <mxCell id="e13" style="edgeStyle=orthogonalEdgeStyle;rounded=0;orthogonalLoop=1;jettySize=auto;html=1;strokeColor=#2874A6;endArrow=block;" edge="1" parent="1" source="c-snapshot-job" target="c-snapshot-db"><mxGeometry relative="1" as="geometry" /></mxCell>
        <mxCell id="e14" style="edgeStyle=orthogonalEdgeStyle;rounded=0;orthogonalLoop=1;jettySize=auto;html=1;dashed=1;strokeColor=#7D3C98;endArrow=block;" edge="1" parent="1" source="c-snapshot-job" target="c-selector"><mxGeometry relative="1" as="geometry" /></mxCell>
      </root>
    </mxGraphModel>
  </diagram>
  <diagram id="recommended-strategy" name="2 建议生产 LLM 策略链路">
    <mxGraphModel dx="1600" dy="960" grid="1" gridSize="10" guides="1" tooltips="1" connect="1" arrows="1" fold="1" page="1" pageScale="1" pageWidth="1600" pageHeight="1100" math="0" shadow="0">
      <root>
        <mxCell id="0" />
        <mxCell id="1" parent="0" />
        <mxCell id="s-title" value="Data Horizon 建议的服务器端生产链路 LLM 场景与策略&#xa;核心原则：实时稳定、强模型只处理高价值聚合、Dashboard 只读 snapshot、离线增强可追溯" style="rounded=0;whiteSpace=wrap;html=1;fillColor=#17202A;fontColor=#FFFFFF;strokeColor=#17202A;fontSize=22;fontStyle=1;align=left;spacingLeft=24;" vertex="1" parent="1">
          <mxGeometry x="40" y="30" width="1520" height="74" as="geometry" />
        </mxCell>
        <mxCell id="s-input" value="原始数据层&#xa;新闻 / 社群 / KOL / 图片 / 行情文本 / TM 回灌 / 搜索补充&#xa;统一进入可追踪数据池" style="rounded=1;whiteSpace=wrap;html=1;fillColor=#E8F1FE;strokeColor=#4C78A8;fontSize=15;fontStyle=1;spacing=12;" vertex="1" parent="1">
          <mxGeometry x="50" y="160" width="260" height="120" as="geometry" />
        </mxCell>
        <mxCell id="s-router" value="统一 LLM Router（Selector 升级目标）&#xa;tag 路由：news_std / news_std_image / kol_dynamic_event / kol_intelligence / kol_profile_static / source_profile / daily_panorama / translation_llm / search_enrichment / tm_feedback_explain&#xa;Provider 分层：本地模型 / 官方 API / 第三方聚合 API&#xa;治理：限额、预算、成本、质量评分、调用日志、安全策略、敏感字段策略、降级策略" style="rounded=1;whiteSpace=wrap;html=1;fillColor=#F4ECF7;strokeColor=#7D3C98;fontSize=14;fontStyle=1;spacing=12;" vertex="1" parent="1">
          <mxGeometry x="380" y="140" width="820" height="150" as="geometry" />
        </mxCell>
        <mxCell id="s-control" value="控制面&#xa;dn_llm_config / dn_llm_provider / dn_llm_call_log&#xa;新增建议：biz_tag、task_type、input_hash、quality_score、cost attribution、provider_safety_policy、fallback_reason" style="rounded=1;whiteSpace=wrap;html=1;fillColor=#FEF7E0;strokeColor=#E6A700;fontSize=14;spacing=10;" vertex="1" parent="1">
          <mxGeometry x="1260" y="150" width="290" height="130" as="geometry" />
        </mxCell>

        <mxCell id="s-realtime" value="A. 实时生产链路（秒级-分钟级）&#xa;目标：自动化、低延迟、可重试、可降级" style="rounded=1;whiteSpace=wrap;html=1;fillColor=#E9F7EF;strokeColor=#2E8B57;fontSize=16;fontStyle=1;spacing=12;" vertex="1" parent="1">
          <mxGeometry x="50" y="360" width="260" height="90" as="geometry" />
        </mxCell>
        <mxCell id="s-realtime-pre" value="规则 / 本地模型预处理&#xa;去重、清洗、语言、标的识别、方向初判、模板化抽取&#xa;高吞吐低风险任务优先本地化" style="rounded=1;whiteSpace=wrap;html=1;fillColor=#FFFFFF;strokeColor=#2E8B57;fontSize=14;spacing=10;" vertex="1" parent="1">
          <mxGeometry x="380" y="340" width="250" height="130" as="geometry" />
        </mxCell>
        <mxCell id="s-realtime-llm" value="轻量 API / 本地模型增强&#xa;news_std：结构化 JSON&#xa;kol_dynamic_event：标的/方向/策略/止损/仓位变化&#xa;news_std_image：异步 OCR/图表摘要&#xa;推送前摘要过滤：规则模板可兜底" style="rounded=1;whiteSpace=wrap;html=1;fillColor=#DFF6DD;strokeColor=#2E8B57;fontSize=14;spacing=10;" vertex="1" parent="1">
          <mxGeometry x="700" y="330" width="270" height="150" as="geometry" />
        </mxCell>
        <mxCell id="s-events" value="结构化事件层&#xa;dn_event_news_std / KOL dynamic event / push candidates&#xa;schema 校验、字段完整率、失败重试、规则降级&#xa;风险告警：触发条件由规则/数据层决定，LLM 只解释原因" style="rounded=1;whiteSpace=wrap;html=1;fillColor=#FFFFFF;strokeColor=#2E8B57;fontSize=14;spacing=10;" vertex="1" parent="1">
          <mxGeometry x="1040" y="340" width="260" height="140" as="geometry" />
        </mxCell>
        <mxCell id="s-push" value="消费端&#xa;Telegram / Webhook / Trading Matrix / Risk alerts&#xa;失败时可用规则模板、原文摘要或上一版可用结果" style="rounded=1;whiteSpace=wrap;html=1;fillColor=#F0F7FF;strokeColor=#4C78A8;fontSize=14;spacing=10;" vertex="1" parent="1">
          <mxGeometry x="1360" y="350" width="190" height="120" as="geometry" />
        </mxCell>

        <mxCell id="s-near" value="B. 近实时情报链路（5m / 15m / 30m / 1h）&#xa;目标：周期性 snapshot，页面不触发 LLM" style="rounded=1;whiteSpace=wrap;html=1;fillColor=#EAF2F8;strokeColor=#2874A6;fontSize=16;fontStyle=1;spacing=12;" vertex="1" parent="1">
          <mxGeometry x="50" y="575" width="260" height="95" as="geometry" />
        </mxCell>
        <mxCell id="s-near-agg" value="规则/统计聚合&#xa;KOL 动态事件、静态画像、近期消息、标的/方向/策略统计、TM 回灌反馈&#xa;生成候选组件，而不是把无限原始消息直接交给强模型" style="rounded=1;whiteSpace=wrap;html=1;fillColor=#FFFFFF;strokeColor=#2874A6;fontSize=14;spacing=10;" vertex="1" parent="1">
          <mxGeometry x="380" y="550" width="285" height="140" as="geometry" />
        </mxCell>
        <mxCell id="s-strong" value="强模型情报提炼&#xa;kol_intelligence：总控室摘要&#xa;daily_panorama：每日全景基础/增强&#xa;tm_feedback_explain：回灌解释&#xa;source_profile：信源质量画像&#xa;输出必须含 evidence / confidence / freshness / input_hash" style="rounded=1;whiteSpace=wrap;html=1;fillColor=#D6EAF8;strokeColor=#2874A6;fontSize=14;spacing=10;" vertex="1" parent="1">
          <mxGeometry x="735" y="535" width="285" height="165" as="geometry" />
        </mxCell>
        <mxCell id="s-snapshot" value="版本化 snapshot / report read model&#xa;保留上一版可用 snapshot&#xa;记录 schema_version、prompt_version、input_hash、model/provider、provenance&#xa;Dashboard 只读，失败不阻塞用户打开页面" style="rounded=1;whiteSpace=wrap;html=1;fillColor=#FFFFFF;strokeColor=#2874A6;fontSize=14;spacing=10;" vertex="1" parent="1">
          <mxGeometry x="1090" y="550" width="275" height="145" as="geometry" />
        </mxCell>
        <mxCell id="s-dashboard" value="Dashboard / 团队 Review / TM 协同&#xa;展示市场概要、多空结构、共识分歧、热门标的、策略变化、风险机会、证据链下钻" style="rounded=1;whiteSpace=wrap;html=1;fillColor=#F0F7FF;strokeColor=#2874A6;fontSize=14;spacing=10;" vertex="1" parent="1">
          <mxGeometry x="1420" y="560" width="130" height="130" as="geometry" />
        </mxCell>

        <mxCell id="s-offline" value="C. 非实时离线增强链路（小时级-天级-周级）&#xa;目标：大 Token、高价值、可人工参与、可审计回传" style="rounded=1;whiteSpace=wrap;html=1;fillColor=#FFF3E0;strokeColor=#E67E22;fontSize=16;fontStyle=1;spacing=12;" vertex="1" parent="1">
          <mxGeometry x="50" y="805" width="260" height="95" as="geometry" />
        </mxCell>
        <mxCell id="s-package" value="服务器生成任务包&#xa;package_id / task_type / time_window / schema_version / prompt_version&#xa;data_files / input_hash / expected_output_schema / evidence_policy / safety_policy" style="rounded=1;whiteSpace=wrap;html=1;fillColor=#FFFFFF;strokeColor=#E67E22;fontSize=14;spacing=10;" vertex="1" parent="1">
          <mxGeometry x="380" y="785" width="290" height="140" as="geometry" />
        </mxCell>
        <mxCell id="s-local" value="本地处理&#xa;团队成员下载任务包&#xa;个人订阅 / 本地 Agent / 本地模型&#xa;适用：每日全景、KOL 静态画像、信源画像、周报/月报、长周期复盘&#xa;不适用：实时推送/告警/交易信号" style="rounded=1;whiteSpace=wrap;html=1;fillColor=#FFE5CC;strokeColor=#E67E22;fontSize=14;spacing=10;" vertex="1" parent="1">
          <mxGeometry x="735" y="770" width="285" height="170" as="geometry" />
        </mxCell>
        <mxCell id="s-validate" value="服务器校验结果包&#xa;package_id / input_hash / JSON schema / evidence / duplicate / sensitive fields / output_hash&#xa;写入 provenance=manual_offline_llm_enrichment&#xa;版本记录 + 人工备注" style="rounded=1;whiteSpace=wrap;html=1;fillColor=#FFFFFF;strokeColor=#E67E22;fontSize=14;spacing=10;" vertex="1" parent="1">
          <mxGeometry x="1090" y="785" width="275" height="150" as="geometry" />
        </mxCell>
        <mxCell id="s-review" value="自动版 + 增强版 + 已审核版&#xa;auto_snapshot&#xa;manual_enhanced_snapshot&#xa;reviewed_snapshot&#xa;前端/报告明确来源与版本" style="rounded=1;whiteSpace=wrap;html=1;fillColor=#FEF7E0;strokeColor=#E6A700;fontSize=14;spacing=10;" vertex="1" parent="1">
          <mxGeometry x="1420" y="800" width="130" height="130" as="geometry" />
        </mxCell>

        <mxCell id="se1" style="edgeStyle=orthogonalEdgeStyle;rounded=0;orthogonalLoop=1;jettySize=auto;html=1;strokeWidth=2;strokeColor=#7D3C98;endArrow=block;" edge="1" parent="1" source="s-input" target="s-router"><mxGeometry relative="1" as="geometry" /></mxCell>
        <mxCell id="se2" style="edgeStyle=orthogonalEdgeStyle;rounded=0;orthogonalLoop=1;jettySize=auto;html=1;dashed=1;strokeColor=#7D3C98;endArrow=block;" edge="1" parent="1" source="s-router" target="s-control"><mxGeometry relative="1" as="geometry" /></mxCell>
        <mxCell id="se3" style="edgeStyle=orthogonalEdgeStyle;rounded=0;orthogonalLoop=1;jettySize=auto;html=1;strokeColor=#2E8B57;endArrow=block;" edge="1" parent="1" source="s-realtime" target="s-realtime-pre"><mxGeometry relative="1" as="geometry" /></mxCell>
        <mxCell id="se4" style="edgeStyle=orthogonalEdgeStyle;rounded=0;orthogonalLoop=1;jettySize=auto;html=1;strokeColor=#2E8B57;endArrow=block;" edge="1" parent="1" source="s-realtime-pre" target="s-realtime-llm"><mxGeometry relative="1" as="geometry" /></mxCell>
        <mxCell id="se5" style="edgeStyle=orthogonalEdgeStyle;rounded=0;orthogonalLoop=1;jettySize=auto;html=1;strokeColor=#2E8B57;endArrow=block;" edge="1" parent="1" source="s-realtime-llm" target="s-events"><mxGeometry relative="1" as="geometry" /></mxCell>
        <mxCell id="se6" style="edgeStyle=orthogonalEdgeStyle;rounded=0;orthogonalLoop=1;jettySize=auto;html=1;strokeColor=#4C78A8;endArrow=block;" edge="1" parent="1" source="s-events" target="s-push"><mxGeometry relative="1" as="geometry" /></mxCell>
        <mxCell id="se7" style="edgeStyle=orthogonalEdgeStyle;rounded=0;orthogonalLoop=1;jettySize=auto;html=1;dashed=1;strokeColor=#7D3C98;endArrow=block;" edge="1" parent="1" source="s-router" target="s-realtime-llm"><mxGeometry relative="1" as="geometry" /></mxCell>
        <mxCell id="se8" style="edgeStyle=orthogonalEdgeStyle;rounded=0;orthogonalLoop=1;jettySize=auto;html=1;strokeColor=#2874A6;endArrow=block;" edge="1" parent="1" source="s-near" target="s-near-agg"><mxGeometry relative="1" as="geometry" /></mxCell>
        <mxCell id="se9" style="edgeStyle=orthogonalEdgeStyle;rounded=0;orthogonalLoop=1;jettySize=auto;html=1;strokeColor=#2874A6;endArrow=block;" edge="1" parent="1" source="s-near-agg" target="s-strong"><mxGeometry relative="1" as="geometry" /></mxCell>
        <mxCell id="se10" style="edgeStyle=orthogonalEdgeStyle;rounded=0;orthogonalLoop=1;jettySize=auto;html=1;strokeColor=#2874A6;endArrow=block;" edge="1" parent="1" source="s-strong" target="s-snapshot"><mxGeometry relative="1" as="geometry" /></mxCell>
        <mxCell id="se11" style="edgeStyle=orthogonalEdgeStyle;rounded=0;orthogonalLoop=1;jettySize=auto;html=1;strokeColor=#2874A6;endArrow=block;" edge="1" parent="1" source="s-snapshot" target="s-dashboard"><mxGeometry relative="1" as="geometry" /></mxCell>
        <mxCell id="se12" style="edgeStyle=orthogonalEdgeStyle;rounded=0;orthogonalLoop=1;jettySize=auto;html=1;dashed=1;strokeColor=#7D3C98;endArrow=block;" edge="1" parent="1" source="s-router" target="s-strong"><mxGeometry relative="1" as="geometry" /></mxCell>
        <mxCell id="se13" style="edgeStyle=orthogonalEdgeStyle;rounded=0;orthogonalLoop=1;jettySize=auto;html=1;strokeColor=#E67E22;endArrow=block;" edge="1" parent="1" source="s-offline" target="s-package"><mxGeometry relative="1" as="geometry" /></mxCell>
        <mxCell id="se14" style="edgeStyle=orthogonalEdgeStyle;rounded=0;orthogonalLoop=1;jettySize=auto;html=1;strokeColor=#E67E22;endArrow=block;" edge="1" parent="1" source="s-package" target="s-local"><mxGeometry relative="1" as="geometry" /></mxCell>
        <mxCell id="se15" style="edgeStyle=orthogonalEdgeStyle;rounded=0;orthogonalLoop=1;jettySize=auto;html=1;strokeColor=#E67E22;endArrow=block;" edge="1" parent="1" source="s-local" target="s-validate"><mxGeometry relative="1" as="geometry" /></mxCell>
        <mxCell id="se16" style="edgeStyle=orthogonalEdgeStyle;rounded=0;orthogonalLoop=1;jettySize=auto;html=1;strokeColor=#E67E22;endArrow=block;" edge="1" parent="1" source="s-validate" target="s-review"><mxGeometry relative="1" as="geometry" /></mxCell>
      </root>
    </mxGraphModel>
  </diagram>
  <diagram id="review-notes" name="3 Review 证据与讨论点">
    <mxGraphModel dx="1600" dy="960" grid="1" gridSize="10" guides="1" tooltips="1" connect="1" arrows="1" fold="1" page="1" pageScale="1" pageWidth="1600" pageHeight="1100" math="0" shadow="0">
      <root>
        <mxCell id="0" />
        <mxCell id="1" parent="0" />
        <mxCell id="r-title" value="Review 讨论页：当前证据、差距、建议决策" style="rounded=0;whiteSpace=wrap;html=1;fillColor=#17202A;fontColor=#FFFFFF;strokeColor=#17202A;fontSize=24;fontStyle=1;align=left;spacingLeft=24;" vertex="1" parent="1">
          <mxGeometry x="40" y="35" width="1520" height="70" as="geometry" />
        </mxCell>
        <mxCell id="r-current" value="当前生产证据&#xa;1. 代码入口：StandardizeJob 每秒处理 pending；RawNewsJob 每秒分发；RawNewsImageAnalysisJob 每 5 秒异步图片分析；KolIntelligenceSnapshotRebuildJob 每 5 分钟重建 KOL snapshot；AnalystScheduleJob 每 60 秒处理定时 analyze agent。&#xa;2. Prod 配置：GoogleTranslate Engine=google；KolIntelligence SnapshotLLMEnhancerEnabled=true；SnapshotLLMTag=kol_intelligence；HttpProxy 来自 HTTP_PROXY_URL。&#xa;3. 生产 DB：启用 Provider 仅第三方-vveai/openai-compatible；dn_llm_config 启用 news_std+kol_intelligence、news_std_image、search 等 tag；最近 7 天 LLM 调用 86,765 次。&#xa;4. 当前启用 Agent 仅 forward；生产调用日志近期只归到 agent_id=1「新闻标准化」，无法用日志直接拆分 news_std 与 kol_intelligence。" style="rounded=1;whiteSpace=wrap;html=1;fillColor=#E8F1FE;strokeColor=#4C78A8;fontSize=15;spacing=14;align=left;verticalAlign=top;" vertex="1" parent="1">
          <mxGeometry x="60" y="145" width="700" height="260" as="geometry" />
        </mxCell>
        <mxCell id="r-gap" value="策略文档建议与当前差距&#xa;1. Router：当前 Selector 有 tag、provider config、daily limit、call log；尚缺每分钟/预算上限、质量评分、成本归因、安全策略、fallback_reason。&#xa;2. 事件层：KOL 动态事件、source_profile、daily_panorama、tm_feedback_explain 等 tag/链路仍需补齐。&#xa;3. 日志可审计性：dn_llm_call_log 缺 biz_tag/task_type/input_hash，config 多 tag 时无法精确回放场景。&#xa;4. Vision：news_std_image 近期失败主要来自远程图片下载，应优先处理图片代理/缓存/过期 URL/采样策略。&#xa;5. 离线增强：任务包、结果包、校验、provenance、版本记录尚未形成生产闭环。" style="rounded=1;whiteSpace=wrap;html=1;fillColor=#FEF7E0;strokeColor=#E6A700;fontSize=15;spacing=14;align=left;verticalAlign=top;" vertex="1" parent="1">
          <mxGeometry x="840" y="145" width="700" height="260" as="geometry" />
        </mxCell>
        <mxCell id="r-decisions" value="建议 Review 决策顺序&#xa;A. 先定 tag 体系和哪些场景允许外部 Provider，哪些必须本地/内部。&#xa;B. 先补日志维度：biz_tag、task_type、input_hash、fallback_reason、quality_score、cost 字段或旁路统计。&#xa;C. KOL 总控室：确认是否保持服务端自动 snapshot + LLM 增强，不允许页面实时触发 LLM。&#xa;D. Vision：决定是否加图片下载缓存/代理、失败退避、采样和优先级。&#xa;E. 离线包：先选每日全景 snapshot 或 KOL 静态画像批量刷新作为第一个闭环试点。" style="rounded=1;whiteSpace=wrap;html=1;fillColor=#E9F7EF;strokeColor=#2E8B57;fontSize=15;spacing=14;align=left;verticalAlign=top;" vertex="1" parent="1">
          <mxGeometry x="60" y="470" width="700" height="240" as="geometry" />
        </mxCell>
        <mxCell id="r-open" value="开放问题&#xa;1. 强模型层是否只允许官方 API / 内部网关，还是允许第三方聚合 API 承担 kol_intelligence？&#xa;2. KOL 动态事件抽取先规则优先还是先接轻量 LLM？触发升级强模型的阈值是什么？&#xa;3. Dashboard snapshot 失败时，是保留上一版、展示规则层结果，还是展示 partial 状态？&#xa;4. 离线增强结果是否允许覆盖自动版，还是作为并列版本供 Review 选择？&#xa;5. 日志与成本看板按 tag、agent、provider、task_type 哪个维度作为第一优先级？" style="rounded=1;whiteSpace=wrap;html=1;fillColor=#FDEDEC;strokeColor=#C0392B;fontSize=15;spacing=14;align=left;verticalAlign=top;" vertex="1" parent="1">
          <mxGeometry x="840" y="470" width="700" height="240" as="geometry" />
        </mxCell>
        <mxCell id="r-footer" value="使用方式：在 diagrams.net / draw.io 打开本文件。Page 1 用于对齐当前生产事实；Page 2 用于讨论目标架构；Page 3 用于 Review 决策和落地顺序。" style="rounded=1;whiteSpace=wrap;html=1;fillColor=#F4ECF7;strokeColor=#7D3C98;fontSize=16;fontStyle=1;spacing=14;" vertex="1" parent="1">
          <mxGeometry x="60" y="790" width="1480" height="80" as="geometry" />
        </mxCell>
      </root>
    </mxGraphModel>
  </diagram>
</mxfile>
