Provider 链(11-tier 家族-通道命名链)
Provider 链(11-tier 家族-通道命名链) live 底座
复合态:链路 live;07-21 审计复核:raw health 存在 OpenCode 401 与 cursor-agent/codex binary missing,全链健康未证
职责:LLM 调用单一出口与 fallback,11 tier 覆盖 codex/glm/claude/grok/composer/kimi/ollama 多通道,Kimi 双轨 Codex 双通道分治
策展 as-of 2026-07-21 · 状态真源 data/systems_status.mjs(人工策展,机器测不出 live/partial)
证据锚
STATE.md· 2026-07-19tools/llm_runtime/providers.conf· 2026-07-19contexts/survey_sessions/system_updates_since_last_status_visualization_20260721_manual.md· 2026-07-21
未决项(4)
- D1 S1 首切片(llm info 三档 + 8 项文档/挂载)已落地(provider_info.py 在场、CLAUDE/AGENTS 双 GENERATED 区 live);S3/S4 文档收敛与 gate 接线仍 armed
- 18 份文档处置表(CALLING_MODELS.md 归档等)未执行
- zai 默认档超时是否已修=unverified
- raw health:OpenCode 401、cursor-agent/codex binary missing(audit CTX-08,07-21 未清)
进出边(消费链登记)
→ section:runtime(ok:全部 LLM 调用出口)
结构图(27 张 · 快照)
1.1 概貌图(≤7 一级块)设计图 · provider_routing_self_invocation · 块 1
flowchart LR
subgraph 概貌["按关注面 —— 三大关注面簇概貌"]
direction LR
blk1["防穿透计量簇<br/>wrapper+router 防穿透/计量唯一"]
blk2["真源与注入簇<br/>唯一真相源+分层分级注入"]
blk3["弹性与演进簇<br/>配额冷却+模型阶梯+alias命名"]
end
blk1 -->|读取真源驱动| blk2
blk2 -->|真源支撑弹性判定| blk3
blk3 -->|演进结果写回真源| blk2
真源 adhoc_jobs/context_infra_base_tooling_STATE_20260709/domains/provider_routing_self_invocation/bundle_r_provider_routing_self_invocation_20260712/diagrams/design_diagrams.md · bundle 20260712 · 结构图快照,非实时
1.2 下钻:真源与注入簇(removal-test 最关键环节)设计图 · provider_routing_self_invocation · 块 2
flowchart TD du_single_source_conf["du_single_source_conf<br/>唯一真相源"] du_layered_injection_pointer["du_layered_injection_pointer<br/>分层注入指针"] du_tiered_injection_general["du_tiered_injection_general<br/>分级注入一般化"] du_context_budget_pair["du_context_budget_pair<br/>budget成对"] du_layered_injection_pointer -->|points_to: 指向真源作为改provider落点| du_single_source_conf du_layered_injection_pointer -->|instance_of: 分级注入的一个具体实例| du_tiered_injection_general du_context_budget_pair -->|resides_in: 住providers.conf tier budgets段| du_single_source_conf classDef existing fill:#eef0f2,stroke:#64748b,color:#1e293b; class du_single_source_conf,du_layered_injection_pointer,du_tiered_injection_general,du_context_budget_pair existing;
真源 adhoc_jobs/context_infra_base_tooling_STATE_20260709/domains/provider_routing_self_invocation/bundle_r_provider_routing_self_invocation_20260712/diagrams/design_diagrams.md · bundle 20260712 · 结构图快照,非实时
1.3 最后的总(承重交付物)—— 10 du 全量,按 concerns 分组设计图 · provider_routing_self_invocation · 块 3
flowchart TD subgraph cAntiPen["防穿透计量关注面"] du_cc_self_invoke_wrapper["du_cc_self_invoke_wrapper<br/>CC自调用wrapper"] du_router_channel_adapter["du_router_channel_adapter<br/>统一channel adapter"] end subgraph cSourceInject["真源与注入关注面"] du_single_source_conf["du_single_source_conf<br/>providers.conf 唯一真相源"] du_layered_injection_pointer["du_layered_injection_pointer<br/>分层注入指针"] du_tiered_injection_general["du_tiered_injection_general<br/>分级注入一般化"] du_context_budget_pair["du_context_budget_pair<br/>budget成对管理"] end subgraph cResilEvo["弹性与演进关注面"] du_quota_cooldown_guard["du_quota_cooldown_guard<br/>配额冷却防护"] du_model_ladder_autoupdate["du_model_ladder_autoupdate<br/>模型自动更新"] du_alias_naming_capability["du_alias_naming_capability<br/>alias命名规范"] du_cc_layer_worker_trace["du_cc_layer_worker_trace<br/>worker留痕约束"] end %% ---- 设计承诺边(DE-01..DE-13 全 13 条)---- du_cc_self_invoke_wrapper -->|reads: 读模型alias/key env/fallback| du_single_source_conf du_router_channel_adapter -->|reads: 默认链取值来自真源| du_single_source_conf du_router_channel_adapter -->|dispatches: CC channel经wrapper派发| du_cc_self_invoke_wrapper du_router_channel_adapter -->|consults: 撞限额记冷却/跳scope| du_quota_cooldown_guard du_quota_cooldown_guard -->|reads: 限额识别正则/backoff参数| du_single_source_conf du_model_ladder_autoupdate -->|writes: apply改HIGH_MODEL+LADDER| du_single_source_conf du_model_ladder_autoupdate -->|honors: 只改值不新增变量名| du_alias_naming_capability du_alias_naming_capability -->|governs: 约束变量结构| du_single_source_conf du_context_budget_pair -.->|resides_in: 住tier budgets段| du_single_source_conf du_layered_injection_pointer -.->|points_to: 指向真源作为落点| du_single_source_conf du_layered_injection_pointer -.->|instance_of: 分级注入的实例| du_tiered_injection_general du_cc_layer_worker_trace -->|constrains: 只放行CC channel| du_router_channel_adapter du_context_budget_pair -->|injects: budget变量注入CC运行时| du_cc_self_invoke_wrapper %% ---- classDef:结构色(关注面分组,不表状态)---- classDef cAntiPen fill:#fee2e2,stroke:#b91c1c,stroke-width:1.5px,color:#7f1d1d; classDef cSourceInject fill:#dbeafe,stroke:#1d4ed8,stroke-width:1.5px,color:#1e3a8a; classDef cResilEvo fill:#dcfce7,stroke:#15803d,stroke-width:1.5px,color:#14532d; class du_cc_self_invoke_wrapper,du_router_channel_adapter cAntiPen; class du_single_source_conf,du_layered_injection_pointer,du_tiered_injection_general,du_context_budget_pair cSourceInject; class du_quota_cooldown_guard,du_model_ladder_autoupdate,du_alias_naming_capability,du_cc_layer_worker_trace cResilEvo; subgraph legend1["图例(关注面结构色 + 边线型,不表状态)"] direction LR lg1_1["防穿透计量"] lg1_2["真源与注入"] lg1_3["弹性与演进"] lg1_4["实线=写入/调用/强依赖"] lg1_5["虚线=读取/指针/弱依赖"] end class lg1_1 cAntiPen; class lg1_2 cSourceInject; class lg1_3 cResilEvo; classDef legendNote fill:#ffffff,stroke:#94a3b8,color:#334155,stroke-dasharray:2 2; class lg1_4,lg1_5 legendNote;
真源 adhoc_jobs/context_infra_base_tooling_STATE_20260709/domains/provider_routing_self_invocation/bundle_r_provider_routing_self_invocation_20260712/diagrams/design_diagrams.md · bundle 20260712 · 结构图快照,非实时
2.1 概貌图(≤7 一级块,命题化边)设计图 · provider_routing_self_invocation · 块 4
flowchart LR T1["provider_routing 域<br/>wrapper+router+真源+budget 四 territory"] T2["注入纪律簇<br/>分层指针+分级注入一般化 两 territory"] T3["统一出口簇<br/>留痕约束+配额冷却 两 territory"] T4["演进纪律簇<br/>模型阶梯+alias命名 两 territory"] T1 -->|真源被注入纪律指针指向| T2 T1 -->|真源被统一出口读取/consult| T3 T1 -->|真源被演进纪律写入/命名约束| T4 T3 -->|留痕约束限定出口可用channel| T1
真源 adhoc_jobs/context_infra_base_tooling_STATE_20260709/domains/provider_routing_self_invocation/bundle_r_provider_routing_self_invocation_20260712/diagrams/design_diagrams.md · bundle 20260712 · 结构图快照,非实时
2.2 下钻:统一出口簇(removal-test 最关键环节)设计图 · provider_routing_self_invocation · 块 5
flowchart TD du_router_channel_adapter["du_router_channel_adapter<br/>统一出口 territory"] du_cc_layer_worker_trace["du_cc_layer_worker_trace<br/>留痕约束 territory"] du_quota_cooldown_guard["du_quota_cooldown_guard<br/>配额冷却 territory"] du_cc_layer_worker_trace -->|constrains: 只放行CC channel不放行opencode| du_router_channel_adapter du_router_channel_adapter -->|consults: 撞限额记冷却/跳scope| du_quota_cooldown_guard classDef existing fill:#eef0f2,stroke:#64748b,color:#1e293b; class du_router_channel_adapter,du_cc_layer_worker_trace,du_quota_cooldown_guard existing;
真源 adhoc_jobs/context_infra_base_tooling_STATE_20260709/domains/provider_routing_self_invocation/bundle_r_provider_routing_self_invocation_20260712/diagrams/design_diagrams.md · bundle 20260712 · 结构图快照,非实时
2.3 最后的总(承重交付物)—— 10 du 全量,按 territory 分组(含 external_partners)设计图 · provider_routing_self_invocation · 块 6
flowchart TD subgraph terrRouting["provider_routing 域"] du_cc_self_invoke_wrapper["du_cc_self_invoke_wrapper<br/>CC 自调用"] du_router_channel_adapter["du_router_channel_adapter<br/>统一出口"] du_single_source_conf["du_single_source_conf<br/>唯一真相源"] du_context_budget_pair["du_context_budget_pair<br/>context budget"] end subgraph terrInject["注入纪律簇(分层指针/分级注入)"] du_layered_injection_pointer["du_layered_injection_pointer<br/>分层指针"] du_tiered_injection_general["du_tiered_injection_general<br/>分级注入"] end subgraph terrExit["统一出口簇(留痕约束/配额冷却)"] du_cc_layer_worker_trace["du_cc_layer_worker_trace<br/>留痕约束"] du_quota_cooldown_guard["du_quota_cooldown_guard<br/>配额冷却"] end subgraph terrEvo["演进纪律簇(模型阶梯/alias命名)"] du_model_ladder_autoupdate["du_model_ladder_autoupdate<br/>模型阶梯"] du_alias_naming_capability["du_alias_naming_capability<br/>alias命名"] end %% ---- external_partners(域外/兄弟域,EP-01..EP-08 全 8 条)---- ep_orchestrator["orchestrator_dispatch_mode<br/>(兄弟域)"]:::external ep_hookbridge["cross_platform_hook_bridge<br/>(兄弟域)"]:::external ep_runtime["runtime_phase_skill_trace<br/>(兄弟域)"]:::external ep_guardian["guardian_daemon<br/>(兄弟域)"]:::external ep_crosscutting["cross_cutting<br/>(兄弟域)"]:::external ep_errortrace["error_ledger/error_trace_feedback<br/>(外部系统)"]:::external ep_anthropic["Anthropic real endpoint<br/>(外部系统)"]:::external %% ---- 设计承诺边(DE-01..DE-13 全 13 条)---- du_cc_self_invoke_wrapper -->|reads| du_single_source_conf du_router_channel_adapter -->|reads| du_single_source_conf du_router_channel_adapter -->|dispatches| du_cc_self_invoke_wrapper du_router_channel_adapter -->|consults| du_quota_cooldown_guard du_quota_cooldown_guard -->|reads| du_single_source_conf du_model_ladder_autoupdate -->|writes| du_single_source_conf du_model_ladder_autoupdate -->|honors| du_alias_naming_capability du_alias_naming_capability -->|governs| du_single_source_conf du_context_budget_pair -.->|resides_in| du_single_source_conf du_layered_injection_pointer -.->|points_to| du_single_source_conf du_layered_injection_pointer -.->|instance_of| du_tiered_injection_general du_cc_layer_worker_trace -->|constrains| du_router_channel_adapter du_context_budget_pair -->|injects| du_cc_self_invoke_wrapper %% ---- external_partners 边(EP-01..EP-08)---- du_router_channel_adapter -.->|EP-01 downstream-of: alias被消费| ep_orchestrator du_cc_layer_worker_trace -.->|EP-02 join: 留痕依赖host桥接| ep_hookbridge du_router_channel_adapter -.->|EP-03 downstream-of: 被runtime消费| ep_runtime du_quota_cooldown_guard -.->|EP-04 downstream-of: 状态被guardian消费| ep_guardian du_single_source_conf -.->|EP-05 shared: 跨域共享底座| ep_crosscutting du_model_ladder_autoupdate -.->|EP-06 schedule+verify: cron失败同款告警| ep_guardian du_router_channel_adapter -.->|EP-07 produces: 失败写error_ledger| ep_errortrace du_cc_self_invoke_wrapper -.->|EP-08 guards-against: 防穿透外部计费| ep_anthropic %% ---- classDef:结构色(territory containment 分组,不表状态)---- classDef terrRouting fill:#dbeafe,stroke:#1d4ed8,stroke-width:1.5px,color:#1e3a8a; classDef terrInject fill:#ede9fe,stroke:#6d28d9,stroke-width:1.5px,color:#4c1d95; classDef terrExit fill:#fae8ff,stroke:#a21caf,stroke-width:1.5px,color:#701a75; classDef terrEvo fill:#dcfce7,stroke:#15803d,stroke-width:1.5px,color:#14532d; classDef external fill:#ffffff,stroke:#94a3b8,color:#334155,stroke-dasharray:4 2; class du_cc_self_invoke_wrapper,du_router_channel_adapter,du_single_source_conf,du_context_budget_pair terrRouting; class du_layered_injection_pointer,du_tiered_injection_general terrInject; class du_cc_layer_worker_trace,du_quota_cooldown_guard terrExit; class du_model_ladder_autoupdate,du_alias_naming_capability terrEvo; subgraph legend2["图例(territory结构色+external,不表状态)"] direction LR lg2_1["provider_routing 域"] lg2_2["注入纪律簇"] lg2_3["统一出口簇"] lg2_4["演进纪律簇"] lg2_5["external 域外/系统外(白虚)"] end class lg2_1 terrRouting; class lg2_2 terrInject; class lg2_3 terrExit; class lg2_4 terrEvo; class lg2_5 external;
真源 adhoc_jobs/context_infra_base_tooling_STATE_20260709/domains/provider_routing_self_invocation/bundle_r_provider_routing_self_invocation_20260712/diagrams/design_diagrams.md · bundle 20260712 · 结构图快照,非实时
3.1 概貌图(宏观 zoom-out,≤7 一级块)设计图 · provider_routing_self_invocation · 块 7
flowchart LR z1["DF1 自调用防穿透流<br/>wrapper取alias→pin防穿透"] z2["DF2+DF3 派发弹性流<br/>router撞限额→冷却→预检复活"] z4["DF4 模型阶梯演进流<br/>cron探测→apply改真源"] z5["DF5 指针注入流<br/>agent经指针跳真源"] z6["DF6 留痕放行流<br/>判worker需留痕→限定channel"] z1 -->|同读真源| z5 z2 -->|同读真源| z5 z4 -->|写真源供z1/z2下次读取| z5 z2 -->|派发前先经留痕判定| z6
真源 adhoc_jobs/context_infra_base_tooling_STATE_20260709/domains/provider_routing_self_invocation/bundle_r_provider_routing_self_invocation_20260712/diagrams/design_diagrams.md · bundle 20260712 · 结构图快照,非实时
3.2 下钻:DF2+DF3 派发弹性流微观时序(removal-test 最关键环节)设计图 · provider_routing_self_invocation · 块 8
sequenceDiagram participant R as du_router_channel_adapter participant Q as du_quota_cooldown_guard participant C as du_single_source_conf R->>Q: consults(DE-04) 撞限额→记quota scope冷却 Q->>C: reads(DE-05) 取限额识别正则+per-scope backoff参数 R->>Q: 跳同scope tier前→在线预检probe Q-->>R: 已恢复则复活该scope→不再跳 R->>R: fallback到下一tier
真源 adhoc_jobs/context_infra_base_tooling_STATE_20260709/domains/provider_routing_self_invocation/bundle_r_provider_routing_self_invocation_20260712/diagrams/design_diagrams.md · bundle 20260712 · 结构图快照,非实时
3.3 最后的总(承重交付物)—— DF1-DF6 全量叠加在 10 du 节点上(flowchart 行为流视角)设计图 · provider_routing_self_invocation · 块 9
flowchart TD subgraph df1["DF1 自调用防穿透流"] du_cc_self_invoke_wrapper["du_cc_self_invoke_wrapper<br/>取alias并pin防穿透"] end subgraph df25["DF2+DF3 派发弹性流"] du_router_channel_adapter["du_router_channel_adapter<br/>选primary tier/撞限额fallback"] du_quota_cooldown_guard["du_quota_cooldown_guard<br/>记冷却/在线预检复活"] end subgraph df4["DF4 模型阶梯演进流"] du_model_ladder_autoupdate["du_model_ladder_autoupdate<br/>探测门控apply真源"] end subgraph df5["DF5 指针注入流"] du_layered_injection_pointer["du_layered_injection_pointer<br/>语义指针跳真源"] end subgraph df6["DF6 留痕放行流"] du_cc_layer_worker_trace["du_cc_layer_worker_trace<br/>判worker需CC层留痕"] end subgraph shared["流共享落点(真源+旁支 du)"] du_single_source_conf["du_single_source_conf<br/>providers.conf 唯一真相源"] du_tiered_injection_general["du_tiered_injection_general<br/>分级注入一般化"] du_alias_naming_capability["du_alias_naming_capability<br/>alias命名规范"] du_context_budget_pair["du_context_budget_pair<br/>context budget成对"] end %% ---- DF1-DF6 行为流边(每条流按 designed_flows 表的箭头顺序)---- du_cc_self_invoke_wrapper -->|DF1: source取alias→pin防穿透| du_single_source_conf du_router_channel_adapter -->|DF2: 撞限额consult记冷却| du_quota_cooldown_guard du_router_channel_adapter -->|DF2: dispatch经wrapper派发| du_cc_self_invoke_wrapper du_quota_cooldown_guard -.->|DF3: 跳前在线预检probe复活| du_router_channel_adapter du_model_ladder_autoupdate -->|DF4: apply改HIGH_MODEL+LADDER| du_single_source_conf du_model_ladder_autoupdate -->|DF4: 遵守能力命名规范| du_alias_naming_capability du_layered_injection_pointer -.->|DF5: 语义指针跳到真源| du_single_source_conf du_layered_injection_pointer -.->|DF5: 是分级注入的实例| du_tiered_injection_general du_cc_layer_worker_trace -->|DF6: 判定后只放行CC channel| du_router_channel_adapter du_context_budget_pair -->|budget变量注入wrapper运行时| du_cc_self_invoke_wrapper du_quota_cooldown_guard -->|reads限额识别参数| du_single_source_conf %% ---- classDef:结构色(按所属流分组,不表状态)---- classDef df1c fill:#fee2e2,stroke:#b91c1c,stroke-width:1.5px,color:#7f1d1d; classDef df25c fill:#dbeafe,stroke:#1d4ed8,stroke-width:1.5px,color:#1e3a8a; classDef df4c fill:#dcfce7,stroke:#15803d,stroke-width:1.5px,color:#14532d; classDef df5c fill:#ede9fe,stroke:#6d28d9,stroke-width:1.5px,color:#4c1d95; classDef df6c fill:#fae8ff,stroke:#a21caf,stroke-width:1.5px,color:#701a75; classDef sharedc fill:#f1f5f9,stroke:#475569,stroke-width:1.5px,color:#1e293b; class du_cc_self_invoke_wrapper df1c; class du_router_channel_adapter,du_quota_cooldown_guard df25c; class du_model_ladder_autoupdate df4c; class du_layered_injection_pointer df5c; class du_cc_layer_worker_trace df6c; class du_single_source_conf,du_tiered_injection_general,du_alias_naming_capability,du_context_budget_pair sharedc; subgraph legend3["图例(行为流结构色 + 边线型,不表状态)"] direction LR lg3_1["DF1 自调用防穿透"] lg3_2["DF2+DF3 派发弹性"] lg3_3["DF4 模型阶梯演进"] lg3_4["DF5 指针注入"] lg3_5["DF6 留痕放行"] lg3_6["流共享落点"] end class lg3_1 df1c; class lg3_2 df25c; class lg3_3 df4c; class lg3_4 df5c; class lg3_5 df6c; class lg3_6 sharedc;
真源 adhoc_jobs/context_infra_base_tooling_STATE_20260709/domains/provider_routing_self_invocation/bundle_r_provider_routing_self_invocation_20260712/diagrams/design_diagrams.md · bundle 20260712 · 结构图快照,非实时
图例(全文件通用,颜色+线型)实现图 · provider_routing_self_invocation · 块 1
flowchart LR
subgraph LEGEND["图例(颜色=verdict 状态 / 线型=边关系)"]
direction LR
lg1["landed 已落地(行为+消费者)"]:::landed
lg2["partial 部分实现(缺B或缺C)"]:::partial
lg3["orphan(exists) 功能全无生产消费或未直跑"]:::orphan
end
classDef landed fill:#d4edda,stroke:#28a745,color:#155724;
classDef partial fill:#fff3cd,stroke:#d39e00,color:#856404;
classDef orphan fill:#e2e3e5,stroke:#6c757d,color:#41464b,stroke-dasharray:3 3;
classDef drift fill:#ffe5d0,stroke:#fd7e14,stroke-width:2px,color:#7a3d00,stroke-dasharray:5 3;
classDef dnb fill:#f8d7da,stroke:#c00,color:#721c24,stroke-dasharray:5 3;
classDef mixed fill:#cfe2ff,stroke:#0d6efd,color:#084298;
真源 adhoc_jobs/context_infra_base_tooling_STATE_20260709/domains/provider_routing_self_invocation/bundle_r_provider_routing_self_invocation_20260712/diagrams/impl_diagrams.md · bundle 20260712 · 结构图快照,非实时
总(鸟瞰)实现图 · provider_routing_self_invocation · 块 2
flowchart TB ROLE1["调度与路由核心<br/>6 comp"]:::landed ROLE2["Wrapper 执行壳<br/>7 comp(1 exists)"]:::mixed ROLE3["弹性状态与巡检<br/>4 comp"]:::landed ROLE4["演进控制<br/>5 comp(1 partial+1 exists)"]:::mixed ROLE5["诊断工具<br/>1 comp exists"]:::orphan ROLE6["文档/注入纪律<br/>3 comp(2 partial)"]:::mixed ROLE2 -.->|"sources(pin/resolve)"| ROLE1 ROLE1 -.->|"reads/consults/calls/imports"| ROLE3 ROLE4 -->|"writes(providers.conf)"| ROLE1 ROLE6 -.->|"points_to/instance_of"| ROLE1 classDef landed fill:#d4edda,stroke:#28a745,color:#155724; classDef partial fill:#fff3cd,stroke:#d39e00,color:#856404; classDef orphan fill:#e2e3e5,stroke:#6c757d,color:#41464b,stroke-dasharray:3 3; classDef mixed fill:#cfe2ff,stroke:#0d6efd,color:#084298;
真源 adhoc_jobs/context_infra_base_tooling_STATE_20260709/domains/provider_routing_self_invocation/bundle_r_provider_routing_self_invocation_20260712/diagrams/impl_diagrams.md · bundle 20260712 · 结构图快照,非实时
总(完整关注面分组图,最终figure)实现图 · provider_routing_self_invocation · 块 3
flowchart TB
subgraph G1["调度与路由核心"]
C1["C1 providers.conf"]:::landed
C2["C2 claude/providers.conf"]:::landed
C3["C3 router.py"]:::landed
C19["C19 route_decision.py"]:::landed
C20["C20 route_proof_gate.py E"]:::orphan
C22["C22 error_guidance.py"]:::landed
end
subgraph G2["Wrapper 执行壳"]
C5["C5 provider_common.sh"]:::landed
C6["C6 claude_zai.sh"]:::landed
C7["C7 claude_kimi.sh"]:::landed
C8["C8 claude_ollama_glm.sh"]:::landed
C9["C9 claude_opus.sh"]:::landed
C10["C10 claude_deepseek.sh"]:::landed
C11["C11 claude_minimax.sh E"]:::orphan
end
subgraph G3["弹性状态与巡检"]
C12["C12 quota_state.py"]:::landed
C13["C13 rate_limits.py"]:::landed
C21["C21 usage_report.py"]:::landed
C23["C23 wake_resume.py"]:::landed
end
subgraph G4["演进控制"]
C14["C14 update.py 缺B"]:::partial
C15["C15 probe.py"]:::landed
C16["C16 channels.json"]:::landed
C17["C17 conf_edit.py"]:::landed
C18["C18 install_cron.sh E"]:::orphan
end
subgraph G5["诊断工具"]
C4["C4 wrapper_canary.py E"]:::orphan
end
subgraph G6["文档/注入纪律"]
C24["C24 CLAUDE.md 指针段 缺C"]:::partial
C25["C25 FS_OPS_GUIDE §4"]:::landed
C26["C26 KIMI_LAUNCH_PROMPT.md 缺B"]:::partial
end
C6 -.->|"sources"| C5
C6 -.->|"sources"| C2
C7 -.->|"sources"| C5
C8 -.->|"sources"| C5
C9 -.->|"sources"| C5
C10 -.->|"sources"| C5
C2 -.->|"sources"| C1
C3 -->|"reads"| C1
C3 -.->|"consults"| C12
C3 -->|"calls"| C22
C3 -->|"imports"| C19
C12 -->|"imports"| C13
C14 -->|"calls"| C15
C14 -->|"reads"| C16
C14 -->|"calls"| C17
C14 -->|"writes"| C1
C20 -->|"imports"| C19
C21 -->|"reads"| C12
C23 -->|"imports"| C19
C24 -.->|"points_to"| C1
C25 -.->|"instance_of"| C24
classDef landed fill:#d4edda,stroke:#28a745,color:#155724;
classDef partial fill:#fff3cd,stroke:#d39e00,color:#856404;
classDef orphan fill:#e2e3e5,stroke:#6c757d,color:#41464b,stroke-dasharray:3 3;
classDef mixed fill:#cfe2ff,stroke:#0d6efd,color:#084298;
真源 adhoc_jobs/context_infra_base_tooling_STATE_20260709/domains/provider_routing_self_invocation/bundle_r_provider_routing_self_invocation_20260712/diagrams/impl_diagrams.md · bundle 20260712 · 结构图快照,非实时
总(鸟瞰)实现图 · provider_routing_self_invocation · 块 4
flowchart LR T1["tools/llm_runtime<br/>8 comp,全 landed"]:::landed T2["tools/claude<br/>8 comp(1 exists)"]:::mixed T3["tools/cli_agent<br/>2 comp(1 exists)"]:::mixed T4["tools/model_ladder_update<br/>5 comp(1P+1E)"]:::mixed T5["rules/(根)<br/>2 comp(1 partial)"]:::mixed T6["adhoc kimi_orchestrator<br/>1 comp partial"]:::partial T2 -.->|"sources(config)"| T2 T2 -.->|"sources(facade)"| T1 T3 -.->|"reads/consults/calls/imports"| T1 T4 -->|"writes"| T1 T5 -.->|"points_to"| T1 classDef landed fill:#d4edda,stroke:#28a745,color:#155724; classDef partial fill:#fff3cd,stroke:#d39e00,color:#856404; classDef mixed fill:#cfe2ff,stroke:#0d6efd,color:#084298;
真源 adhoc_jobs/context_infra_base_tooling_STATE_20260709/domains/provider_routing_self_invocation/bundle_r_provider_routing_self_invocation_20260712/diagrams/impl_diagrams.md · bundle 20260712 · 结构图快照,非实时
总(完整 territory 分组图,最终figure)实现图 · provider_routing_self_invocation · 块 5
flowchart TB
subgraph TR1["tools/llm_runtime"]
C1["C1 providers.conf"]:::landed
C12["C12 quota_state.py"]:::landed
C13["C13 rate_limits.py"]:::landed
C19["C19 route_decision.py"]:::landed
C20["C20 route_proof_gate.py E"]:::orphan
C21["C21 usage_report.py"]:::landed
C22["C22 error_guidance.py"]:::landed
C23["C23 wake_resume.py"]:::landed
end
subgraph TR2["tools/claude"]
C2["C2 claude/providers.conf"]:::landed
C5["C5 provider_common.sh"]:::landed
C6["C6 claude_zai.sh"]:::landed
C7["C7 claude_kimi.sh"]:::landed
C8["C8 claude_ollama_glm.sh"]:::landed
C9["C9 claude_opus.sh"]:::landed
C10["C10 claude_deepseek.sh"]:::landed
C11["C11 claude_minimax.sh E"]:::orphan
end
subgraph TR3["tools/cli_agent"]
C3["C3 router.py"]:::landed
C4["C4 wrapper_canary.py E"]:::orphan
end
subgraph TR4["tools/model_ladder_update"]
C14["C14 update.py 缺B"]:::partial
C15["C15 probe.py"]:::landed
C16["C16 channels.json"]:::landed
C17["C17 conf_edit.py"]:::landed
C18["C18 install_cron.sh E"]:::orphan
end
subgraph TR5["rules/(根)"]
C24["C24 CLAUDE.md 指针段 缺C"]:::partial
C25["C25 FS_OPS_GUIDE §4"]:::landed
end
subgraph TR6["adhoc kimi_orchestrator"]
C26["C26 KIMI_LAUNCH_PROMPT.md 缺B"]:::partial
end
C6 -.->|"sources"| C5
C6 -.->|"sources"| C2
C7 -.->|"sources"| C5
C8 -.->|"sources"| C5
C9 -.->|"sources"| C5
C10 -.->|"sources"| C5
C2 -.->|"sources"| C1
C3 -->|"reads"| C1
C3 -.->|"consults"| C12
C3 -->|"calls"| C22
C3 -->|"imports"| C19
C12 -->|"imports"| C13
C14 -->|"calls"| C15
C14 -->|"reads"| C16
C14 -->|"calls"| C17
C14 -->|"writes"| C1
C20 -->|"imports"| C19
C21 -->|"reads"| C12
C23 -->|"imports"| C19
C24 -.->|"points_to"| C1
C25 -.->|"instance_of"| C24
classDef landed fill:#d4edda,stroke:#28a745,color:#155724;
classDef partial fill:#fff3cd,stroke:#d39e00,color:#856404;
classDef orphan fill:#e2e3e5,stroke:#6c757d,color:#41464b,stroke-dasharray:3 3;
真源 adhoc_jobs/context_infra_base_tooling_STATE_20260709/domains/provider_routing_self_invocation/bundle_r_provider_routing_self_invocation_20260712/diagrams/impl_diagrams.md · bundle 20260712 · 结构图快照,非实时
总(L0 域边界,本域 vs 8 个域外接口)实现图 · provider_routing_self_invocation · 块 6
flowchart LR
subgraph DOMAIN["本域(26 comp 折叠)"]
C3D["C3 router.py(29 入度汇聚点)"]:::landed
C1D["C1 providers.conf(共享底座)"]:::landed
C21D["C21 usage_report.py"]:::landed
C12D["C12 quota_state.py"]:::landed
end
EXT1["orchestrator_dispatch_mode<br/>(dispatch.py)"]:::orphan
EXT2["runtime_phase_skill<br/>_trace(guardian)"]:::orphan
EXT3["git_tooling<br/>(merge/version cron)"]:::orphan
EXT4["error_trace_feedback<br/>(error_ledger)"]:::orphan
EXT5["cross_cutting<br/>(29 生产文件共享)"]:::orphan
EXT6["quality_gate_framework<br/>(unified_gate)"]:::orphan
EXT7["guardian_daemon<br/>(quota 消费,未接线)"]:::orphan
EXT8["cross_platform_hook_bridge<br/>(CC host 桥)"]:::orphan
EXT1 -->|"consumes(channel alias)"| C3D
EXT2 -->|"consumes(import router)"| C3D
EXT3 -->|"consumes(import router)"| C3D
EXT5 -->|"shared(TIER_CONFIG)"| C3D
EXT6 -->|"register(route_decision)"| C1D
C3D -->|"produced-by(error_ledger)"| EXT4
C3D -->|"verify(usage_report)"| C21D
EXT7 -.->|"consumes(未接线,EP-04争议)"| C12D
EXT8 -.->|"join(留痕依赖,本run未独立核)"| C3D
classDef landed fill:#d4edda,stroke:#28a745,color:#155724;
classDef orphan fill:#e2e3e5,stroke:#6c757d,color:#41464b,stroke-dasharray:3 3;
真源 adhoc_jobs/context_infra_base_tooling_STATE_20260709/domains/provider_routing_self_invocation/bundle_r_provider_routing_self_invocation_20260712/diagrams/impl_diagrams.md · bundle 20260712 · 结构图快照,非实时
分(L1 territory 折叠骨架)实现图 · provider_routing_self_invocation · 块 7
flowchart TB L1_CLAUDE["tools/claude(8 comp)<br/>facade+wrapper 壳"]:::mixed L1_RUNTIME["tools/llm_runtime(8 comp)<br/>配置真源+弹性状态"]:::landed L1_CLIAGENT["tools/cli_agent(2 comp)<br/>调度核心(1E)"]:::mixed L1_LADDER["model_ladder_update(5)<br/>演进控制(1P+1E)"]:::mixed L1_RULES["rules/(根)(2 comp)<br/>注入纪律(1P)"]:::mixed L1_KIMI["adhoc kimi_orchestrator(1 comp)<br/>派发约束(P)"]:::partial L1_CLAUDE -.->|"sources(facade→真源)"| L1_RUNTIME L1_CLIAGENT -->|"reads/consults/calls/imports"| L1_RUNTIME L1_LADDER -->|"writes(自动化写入方)"| L1_RUNTIME L1_RULES -.->|"points_to(指针)"| L1_RUNTIME classDef landed fill:#d4edda,stroke:#28a745,color:#155724; classDef partial fill:#fff3cd,stroke:#d39e00,color:#856404; classDef mixed fill:#cfe2ff,stroke:#0d6efd,color:#084298;
真源 adhoc_jobs/context_infra_base_tooling_STATE_20260709/domains/provider_routing_self_invocation/bundle_r_provider_routing_self_invocation_20260712/diagrams/impl_diagrams.md · bundle 20260712 · 结构图快照,非实时
总(L2 全量行为流视图,最终figure,叠加 actual_flows AF1/AF2/AF4/AF5/AF7 断裂点标注)实现图 · provider_routing_self_invocation · 块 8
flowchart TB
subgraph FLOW_ZONE["调度与配置真源(AF1/2/3/8/9)"]
C1["C1 providers.conf"]:::landed
C2["C2 claude/providers.conf"]:::landed
C3["C3 router.py(AF2/AF3骨干)"]:::landed
C5["C5 provider_common.sh(AF1骨干)"]:::landed
C12["C12 quota_state.py"]:::landed
C19["C19 route_decision.py"]:::landed
C21["C21 usage_report.py(AF8)"]:::landed
C22["C22 error_guidance.py(AF9)"]:::landed
end
subgraph FLOW_WRAPPER["Wrapper 入口(AF1)"]
C6["C6 claude_zai.sh"]:::landed
C7["C7 claude_kimi.sh"]:::landed
C8["C8 claude_ollama_glm.sh"]:::landed
C9["C9 claude_opus.sh"]:::landed
C10["C10 claude_deepseek.sh"]:::landed
C11["C11 claude_minimax.sh E"]:::orphan
C13["C13 rate_limits.py"]:::landed
C23["C23 wake_resume.py"]:::landed
end
subgraph FLOW_LADDER["演进闭环(AF4/AF5 断裂点)"]
C14["C14 update.py 缺B<br/>AF4断裂:apply未通电"]:::partial
C15["C15 probe.py"]:::landed
C16["C16 channels.json"]:::landed
C17["C17 conf_edit.py"]:::landed
C18["C18 install_cron.sh E"]:::orphan
end
subgraph FLOW_ORPHAN["孤立/断裂节点(AF6/AF7)"]
C4["C4 wrapper_canary.py E<br/>AF6:presence-only"]:::orphan
C20["C20 route_proof_gate.py E<br/>AF7断裂:0生产caller"]:::orphan
end
subgraph FLOW_DOCS["文档/派发纪律"]
C24["C24 CLAUDE.md 指针段 缺C"]:::partial
C25["C25 FS_OPS_GUIDE §4"]:::landed
C26["C26 KIMI_LAUNCH_PROMPT.md 缺B"]:::partial
end
C6 -.->|"sources"| C5
C6 -.->|"sources"| C2
C7 -.->|"sources"| C5
C8 -.->|"sources"| C5
C9 -.->|"sources"| C5
C10 -.->|"sources"| C5
C2 -.->|"sources"| C1
C3 -->|"reads"| C1
C3 -.->|"consults"| C12
C3 -->|"calls"| C22
C3 -->|"imports"| C19
C12 -->|"imports"| C13
C14 -->|"calls"| C15
C14 -->|"reads"| C16
C14 -->|"calls"| C17
C14 -->|"writes(AF4断裂:apply从未触发)"| C1
C20 -->|"imports"| C19
C21 -->|"reads"| C12
C23 -->|"imports"| C19
C24 -.->|"points_to"| C1
C25 -.->|"instance_of"| C24
classDef landed fill:#d4edda,stroke:#28a745,color:#155724;
classDef partial fill:#fff3cd,stroke:#d39e00,color:#856404;
classDef orphan fill:#e2e3e5,stroke:#6c757d,color:#41464b,stroke-dasharray:3 3;
真源 adhoc_jobs/context_infra_base_tooling_STATE_20260709/domains/provider_routing_self_invocation/bundle_r_provider_routing_self_invocation_20260712/diagrams/impl_diagrams.md · bundle 20260712 · 结构图快照,非实时
图例(全文件通用)差距图 · provider_routing_self_invocation · 块 1
flowchart LR
subgraph LEGEND["图例(颜色=verdict / 线型=边关系)"]
direction LR
lg1["landed 正样本对照"]:::landed
lg2["partial 缺B或缺C"]:::partial
lg3["orphan 灰虚"]:::orphan
lg4["drift 橙虚"]:::drift
lg5["mixed 内部混合"]:::mixed
end
classDef landed fill:#d4edda,stroke:#28a745,color:#155724;
classDef partial fill:#fff3cd,stroke:#d39e00,color:#856404;
classDef orphan fill:#e2e3e5,stroke:#6c757d,color:#41464b,stroke-dasharray:3 3;
classDef drift fill:#ffe5d0,stroke:#fd7e14,stroke-width:2px,color:#7a3d00,stroke-dasharray:5 3;
classDef mixed fill:#cfe2ff,stroke:#0d6efd,color:#084298;
真源 adhoc_jobs/context_infra_base_tooling_STATE_20260709/domains/provider_routing_self_invocation/bundle_r_provider_routing_self_invocation_20260712/diagrams/gap_diagrams.md · bundle 20260712 · 结构图快照,非实时
1.1 概貌图(≤7 一级块)差距图 · provider_routing_self_invocation · 块 2
flowchart LR
subgraph 概貌["关注面差距密度鸟瞰"]
direction LR
blkA["防穿透计量簇<br/>0 gap"]:::landed
blkB["真源与注入簇<br/>1 partial"]:::partial
blkC["弹性与演进簇<br/>4 gap 汇聚"]:::mixed
end
blkA -->|真源无差距| blkB
blkB -->|支撑弹性判定| blkC
blkC -.->|回写真源子步drift| blkB
真源 adhoc_jobs/context_infra_base_tooling_STATE_20260709/domains/provider_routing_self_invocation/bundle_r_provider_routing_self_invocation_20260712/diagrams/gap_diagrams.md · bundle 20260712 · 结构图快照,非实时
1.2 下钻:弹性与演进簇(差距最密集,removal-test 关键环节)差距图 · provider_routing_self_invocation · 块 3
flowchart TD du_model_ladder_autoupdate["du_model_ladder_autoupdate"]:::partial du_quota_cooldown_guard["du_quota_cooldown_guard"]:::orphan du_cc_layer_worker_trace["du_cc_layer_worker_trace"]:::partial du_alias_naming_capability["du_alias_naming_capability"]:::landed du_model_ladder_autoupdate -.->|honors:遵守命名规范,无差距| du_alias_naming_capability du_quota_cooldown_guard -.->|EP-04:GAP-03消费边未接线| du_model_ladder_autoupdate classDef landed fill:#d4edda,stroke:#28a745,color:#155724; classDef partial fill:#fff3cd,stroke:#d39e00,color:#856404; classDef orphan fill:#e2e3e5,stroke:#6c757d,color:#41464b,stroke-dasharray:3 3;
真源 adhoc_jobs/context_infra_base_tooling_STATE_20260709/domains/provider_routing_self_invocation/bundle_r_provider_routing_self_invocation_20260712/diagrams/gap_diagrams.md · bundle 20260712 · 结构图快照,非实时
1.3 最后的总(承重交付物)—— 关注面视角全量差距图差距图 · provider_routing_self_invocation · 块 4
flowchart TD subgraph cAntiPen["防穿透计量(0 gap)"] du_cc_self_invoke_wrapper["du_cc_self_invoke_wrapper"]:::landed du_router_channel_adapter_A["du_router_channel_adapter"]:::landed C20["C20 route_proof_gate.py E"]:::orphan end subgraph cSourceInject["真源与注入(1 partial)"] du_single_source_conf["du_single_source_conf"]:::landed du_layered_injection_pointer["du_layered_injection_pointer"]:::partial C24["C24 CLAUDE.md指针段 缺C"]:::partial end subgraph cResilEvo["弹性与演进(4 gap)"] du_quota_cooldown_guard["du_quota_cooldown_guard"]:::mixed du_model_ladder_autoupdate["du_model_ladder_autoupdate"]:::mixed du_cc_layer_worker_trace["du_cc_layer_worker_trace"]:::partial C12["C12 quota_state.py"]:::landed C14["C14 update.py 缺B"]:::partial C26["C26 KIMI_LAUNCH_PROMPT.md 缺B"]:::partial end %% ---- gap 边 ---- du_model_ladder_autoupdate -.->|"GAP-01 drift:OpenCode子步cron PATH缺失恒失败"| C14 du_model_ladder_autoupdate -.->|"FNL-01:apply半边P+B在,C未产出"| C14 du_model_ladder_autoupdate -.->|"PRSI-08缺B:apply零执行,hidden=k"| C14 du_router_channel_adapter_A -.->|"GAP-02孤儿:零生产caller仅test+doc命中"| C20 du_quota_cooldown_guard -.->|"GAP-03孤儿:EP-04承诺,生产代码0命中"| C12 du_layered_injection_pointer -.->|"PRSI-04缺C:指针只列3<6 live symlink"| C24 du_cc_layer_worker_trace -.->|"PRSI-06缺B:纯prompt零机械gate"| C26 %% ---- landed 对照边(正样本,实线)---- du_cc_self_invoke_wrapper -->|"PRSI-01 landed(M3核心):5/6 pin fallback"| du_single_source_conf du_router_channel_adapter_A -->|"PRSI-02 landed(M4核心):29消费者统一出口"| du_single_source_conf du_quota_cooldown_guard -->|"PRSI-07 landed(M4核心):backoff精确匹配"| du_single_source_conf classDef landed fill:#d4edda,stroke:#28a745,color:#155724; classDef partial fill:#fff3cd,stroke:#d39e00,color:#856404; classDef orphan fill:#e2e3e5,stroke:#6c757d,color:#41464b,stroke-dasharray:3 3; classDef drift fill:#ffe5d0,stroke:#fd7e14,stroke-width:2px,color:#7a3d00,stroke-dasharray:5 3; classDef mixed fill:#cfe2ff,stroke:#0d6efd,color:#084298;
真源 adhoc_jobs/context_infra_base_tooling_STATE_20260709/domains/provider_routing_self_invocation/bundle_r_provider_routing_self_invocation_20260712/diagrams/gap_diagrams.md · bundle 20260712 · 结构图快照,非实时
2.1 概貌图(≤7 一级块,命题化边)差距图 · provider_routing_self_invocation · 块 5
flowchart LR T1["provider_routing域<br/>0 gap"]:::landed T2["注入纪律簇<br/>1 partial缺C"]:::partial T3["统一出口簇<br/>2 orphan+1partial"]:::mixed T4["演进纪律簇<br/>drift+FNL+partial"]:::mixed T1 -->|真源被指针指向,枚举不全| T2 T1 -->|真源被读取,消费边孤儿| T3 T1 -->|真源被写入,子步drift| T4 T3 -.->|留痕约束纯prompt无强制| T1
真源 adhoc_jobs/context_infra_base_tooling_STATE_20260709/domains/provider_routing_self_invocation/bundle_r_provider_routing_self_invocation_20260712/diagrams/gap_diagrams.md · bundle 20260712 · 结构图快照,非实时
2.2 下钻:统一出口簇(GAP-02/03/PRSI-06 三差距交汇处)差距图 · provider_routing_self_invocation · 块 6
flowchart TD du_router_channel_adapter_B["du_router_channel_adapter"]:::landed du_cc_layer_worker_trace_B["du_cc_layer_worker_trace"]:::partial du_quota_cooldown_guard_B["du_quota_cooldown_guard"]:::mixed C20_B["C20 route_proof_gate.py E"]:::orphan C12_B["C12 quota_state.py"]:::landed du_router_channel_adapter_B -.->|"GAP-02:证据门建好未接线"| C20_B du_cc_layer_worker_trace_B -.->|"PRSI-06:constrains纯prompt无gate"| du_router_channel_adapter_B du_quota_cooldown_guard_B -.->|"GAP-03:消费边代码层未接线"| C12_B classDef landed fill:#d4edda,stroke:#28a745,color:#155724; classDef partial fill:#fff3cd,stroke:#d39e00,color:#856404; classDef orphan fill:#e2e3e5,stroke:#6c757d,color:#41464b,stroke-dasharray:3 3; classDef mixed fill:#cfe2ff,stroke:#0d6efd,color:#084298;
真源 adhoc_jobs/context_infra_base_tooling_STATE_20260709/domains/provider_routing_self_invocation/bundle_r_provider_routing_self_invocation_20260712/diagrams/gap_diagrams.md · bundle 20260712 · 结构图快照,非实时
2.3 最后的总(承重交付物)—— territory 视角全量差距图差距图 · provider_routing_self_invocation · 块 7
flowchart TD subgraph terrRouting["provider_routing域"] du_cc_self_invoke_wrapper_T["du_cc_self_invoke_wrapper"]:::landed du_router_channel_adapter_T["du_router_channel_adapter"]:::landed du_single_source_conf_T["du_single_source_conf"]:::landed du_context_budget_pair_T["du_context_budget_pair"]:::landed end subgraph terrInject["注入纪律簇"] du_layered_injection_pointer_T["du_layered_injection_pointer"]:::partial du_tiered_injection_general_T["du_tiered_injection_general"]:::landed end subgraph terrExit["统一出口簇"] du_cc_layer_worker_trace_T["du_cc_layer_worker_trace"]:::partial du_quota_cooldown_guard_T["du_quota_cooldown_guard"]:::mixed end subgraph terrEvo["演进纪律簇"] du_model_ladder_autoupdate_T["du_model_ladder_autoupdate"]:::mixed du_alias_naming_capability_T["du_alias_naming_capability"]:::landed end %% ---- gap 边 ---- du_layered_injection_pointer_T -.->|"PRSI-04缺C:枚举3<6 live symlink"| du_single_source_conf_T du_cc_layer_worker_trace_T -.->|"PRSI-06缺B:纯prompt无机械gate"| du_router_channel_adapter_T du_quota_cooldown_guard_T -.->|"GAP-03孤儿:消费边未接线(EP-04)"| du_single_source_conf_T du_model_ladder_autoupdate_T -.->|"GAP-01+FNL-01:子步cron失败+apply零执行"| du_single_source_conf_T du_model_ladder_autoupdate_T -->|"honors无差距:遵守命名规范"| du_alias_naming_capability_T %% ---- landed 对照边(正样本,实线)---- du_cc_self_invoke_wrapper_T -->|"reads landed:取alias/key env"| du_single_source_conf_T du_router_channel_adapter_T -->|"reads landed:默认链取真源"| du_single_source_conf_T du_quota_cooldown_guard_T -->|"reads landed:限额正则+backoff"| du_single_source_conf_T du_context_budget_pair_T -.->|"resides_in landed:住budgets段"| du_single_source_conf_T du_layered_injection_pointer_T -.->|"instance_of landed半边:分级实例"| du_tiered_injection_general_T classDef landed fill:#d4edda,stroke:#28a745,color:#155724; classDef partial fill:#fff3cd,stroke:#d39e00,color:#856404; classDef orphan fill:#e2e3e5,stroke:#6c757d,color:#41464b,stroke-dasharray:3 3; classDef drift fill:#ffe5d0,stroke:#fd7e14,stroke-width:2px,color:#7a3d00,stroke-dasharray:5 3; classDef mixed fill:#cfe2ff,stroke:#0d6efd,color:#084298;
真源 adhoc_jobs/context_infra_base_tooling_STATE_20260709/domains/provider_routing_self_invocation/bundle_r_provider_routing_self_invocation_20260712/diagrams/gap_diagrams.md · bundle 20260712 · 结构图快照,非实时
3.1 概貌图(宏观 zoom-out,≤7 一级块)差距图 · provider_routing_self_invocation · 块 8
flowchart LR z1["宏观:10 PRSI<br/>7L/3P"]:::mixed z2["中观:构件差距<br/>drift+2orphan"]:::mixed z3["中观:1 FNL<br/>apply零执行"]:::partial z4["微观top1<br/>PRSI-08"]:::partial z5["微观top2<br/>PRSI-04"]:::partial z6["微观top3<br/>PRSI-06"]:::partial z1 -->|行级下钻到构件级| z2 z2 -->|drift归入| z4 z3 -->|FNL同源归入| z4 z4 -->|salience降序| z5 z5 -->|salience降序| z6
真源 adhoc_jobs/context_infra_base_tooling_STATE_20260709/domains/provider_routing_self_invocation/bundle_r_provider_routing_self_invocation_20260712/diagrams/gap_diagrams.md · bundle 20260712 · 结构图快照,非实时
3.2 下钻:PRSI-08 微观断裂链(top_by_meaning 首选,唯一 hidden=k)差距图 · provider_routing_self_invocation · 块 9
sequenceDiagram participant Cron as cron 03:30 participant U as C14 update.py participant P as C15 probe.py participant Conf as C1 providers.conf participant OC as OpenCode二进制 Cron->>U: 触发 model_ladder run U->>P: 逐通道试调候选版本 P-->>U: HTTP 400正确拒绝(无新版可apply) U--xConf: FNL-01:apply从未触发,backups目录不存在 U--xOC: GAP-01:升级子步裸调opencode,cron PATH缺~/.opencode/bin Note over U,OC: PRSI-08=两条断裂链同构件汇合,hidden=k
真源 adhoc_jobs/context_infra_base_tooling_STATE_20260709/domains/provider_routing_self_invocation/bundle_r_provider_routing_self_invocation_20260712/diagrams/gap_diagrams.md · bundle 20260712 · 结构图快照,非实时
3.3 最后的总(承重交付物)—— top_by_meaning 三差距叠加 4 core landed 正样本差距图 · provider_routing_self_invocation · 块 10
flowchart TD subgraph coreLanded["4 core landed正样本"] du_single_source_conf_Z["du_single_source_conf"]:::landed du_cc_self_invoke_wrapper_Z["du_cc_self_invoke_wrapper"]:::landed du_router_channel_adapter_Z["du_router_channel_adapter"]:::landed du_quota_cooldown_guard_Z["du_quota_cooldown_guard"]:::landed end subgraph topGap1["top1 PRSI-08"] du_model_ladder_autoupdate_Z["du_model_ladder_autoupdate"]:::mixed C14_Z["C14 update.py 缺B"]:::partial end subgraph topGap2["top2 PRSI-04"] du_layered_injection_pointer_Z["du_layered_injection_pointer"]:::partial C24_Z["C24 CLAUDE.md指针段 缺C"]:::partial end subgraph topGap3["top3 PRSI-06"] du_cc_layer_worker_trace_Z["du_cc_layer_worker_trace"]:::partial C26_Z["C26 KIMI_LAUNCH_PROMPT.md 缺B"]:::partial end subgraph gapComp["构件差距附着点"] C20_Z["C20 route_proof_gate.py E"]:::orphan C12_Z["C12 quota_state.py"]:::landed end %% ---- top_by_meaning 差距边(虚线,salience 降序)---- du_model_ladder_autoupdate_Z -.->|"top1:drift+FNL+apply零执行,hidden=k"| C14_Z du_layered_injection_pointer_Z -.->|"top2:缺C,枚举3<6 wrapper"| C24_Z du_cc_layer_worker_trace_Z -.->|"top3:缺B,纯prompt无gate"| C26_Z %% ---- 构件级差距(GAP-02/03,非行级PRSI但锚回同批构件)---- du_router_channel_adapter_Z -.->|"GAP-02孤儿:零生产caller"| C20_Z du_quota_cooldown_guard_Z -.->|"GAP-03孤儿:消费边EP-04未接线"| C12_Z %% ---- core landed 正样本边(实线,对照组)---- du_cc_self_invoke_wrapper_Z -->|"PRSI-01(M3)landed:pin+真回复"| du_single_source_conf_Z du_router_channel_adapter_Z -->|"PRSI-02(M4)landed:统一出口"| du_single_source_conf_Z du_quota_cooldown_guard_Z -->|"PRSI-07(M4)landed:backoff匹配"| du_single_source_conf_Z du_model_ladder_autoupdate_Z -->|"honors无差距:遵守命名规范"| du_single_source_conf_Z classDef landed fill:#d4edda,stroke:#28a745,color:#155724; classDef partial fill:#fff3cd,stroke:#d39e00,color:#856404; classDef orphan fill:#e2e3e5,stroke:#6c757d,color:#41464b,stroke-dasharray:3 3; classDef drift fill:#ffe5d0,stroke:#fd7e14,stroke-width:2px,color:#7a3d00,stroke-dasharray:5 3; classDef mixed fill:#cfe2ff,stroke:#0d6efd,color:#084298; %% ---- salience 强调(top_by_meaning 三条粗边框标注下钻首选)---- style du_model_ladder_autoupdate_Z stroke-width:4px style du_layered_injection_pointer_Z stroke-width:4px style du_cc_layer_worker_trace_Z stroke-width:4px
真源 adhoc_jobs/context_infra_base_tooling_STATE_20260709/domains/provider_routing_self_invocation/bundle_r_provider_routing_self_invocation_20260712/diagrams/gap_diagrams.md · bundle 20260712 · 结构图快照,非实时
图源为仓内 bundle mermaid 逐字提取(仅隐私清洗),渲染失败时原样退化为代码块。结构图是绘制时点的快照,非实时状态。