Files
boss/docs/diagrams/current_flow_mindmap_cn.svg
2026-03-26 23:16:56 +08:00

133 lines
10 KiB
XML
Raw Permalink Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

<svg width="1800" height="1220" viewBox="0 0 1800 1220" fill="none" xmlns="http://www.w3.org/2000/svg">
<defs>
<linearGradient id="bg" x1="200" y1="80" x2="1600" y2="1140" gradientUnits="userSpaceOnUse">
<stop stop-color="#F8FBFF"/>
<stop offset="1" stop-color="#EDF4FF"/>
</linearGradient>
<linearGradient id="centerFill" x1="730" y1="465" x2="1070" y2="755" gradientUnits="userSpaceOnUse">
<stop stop-color="#0F62FE"/>
<stop offset="1" stop-color="#4A8DFF"/>
</linearGradient>
<filter id="shadow" x="0" y="0" width="1800" height="1220" filterUnits="userSpaceOnUse" color-interpolation-filters="sRGB">
<feDropShadow dx="0" dy="18" stdDeviation="20" flood-color="#1F2937" flood-opacity="0.12"/>
</filter>
<style>
.title { font: 700 34px -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif; fill: #152033; }
.subtitle { font: 500 16px -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif; fill: #4D6178; }
.section-title { font: 700 24px -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif; fill: #132238; }
.section-text { font: 500 15px -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif; fill: #3D5066; }
.section-text-small { font: 500 14px -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif; fill: #4C6075; }
.center-title { font: 700 30px -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif; fill: white; }
.center-text { font: 500 16px -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif; fill: rgba(255,255,255,0.92); }
.badge { font: 700 12px -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif; fill: #0F62FE; }
.footer { font: 500 14px -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif; fill: #5E7289; }
</style>
</defs>
<rect x="0" y="0" width="1800" height="1220" rx="36" fill="url(#bg)"/>
<text x="94" y="92" class="title">Codex 多机协作当前流程思维导图</text>
<text x="94" y="126" class="subtitle">围绕手机单入口、主控调度、多机 Codex、专项审计、硬件能力接管与容灾恢复的当前整体流程</text>
<g filter="url(#shadow)">
<rect x="690" y="450" width="420" height="300" rx="34" fill="url(#centerFill)"/>
</g>
<rect x="728" y="490" width="344" height="36" rx="18" fill="rgba(255,255,255,0.18)"/>
<text x="790" y="515" class="badge">当前主流程中心</text>
<text x="779" y="580" class="center-title">一个主 Agent</text>
<text x="758" y="622" class="center-title">统一调度全局</text>
<text x="776" y="665" class="center-text">手机端只和一个主会话对话</text>
<text x="742" y="694" class="center-text">外部记忆保存项目真相,不让单线程越聊越钝</text>
<path d="M690 566C594 534 484 490 390 425" stroke="#3B82F6" stroke-width="6" stroke-linecap="round"/>
<path d="M695 633C579 646 471 665 392 728" stroke="#22C55E" stroke-width="6" stroke-linecap="round"/>
<path d="M895 450C891 332 892 252 892 186" stroke="#F59E0B" stroke-width="6" stroke-linecap="round"/>
<path d="M1108 563C1229 533 1340 492 1410 426" stroke="#A855F7" stroke-width="6" stroke-linecap="round"/>
<path d="M1108 640C1230 651 1348 681 1410 744" stroke="#EF4444" stroke-width="6" stroke-linecap="round"/>
<path d="M900 752C902 852 905 918 905 1002" stroke="#0EA5E9" stroke-width="6" stroke-linecap="round"/>
<g filter="url(#shadow)">
<rect x="96" y="244" width="462" height="300" rx="28" fill="#FFFFFF"/>
<rect x="92" y="246" width="10" height="294" rx="5" fill="#3B82F6"/>
</g>
<rect x="132" y="274" width="124" height="32" rx="16" fill="#E8F1FF"/>
<text x="165" y="296" class="badge">用户入口</text>
<text x="132" y="346" class="section-title">1. 手机端 / Web 单入口</text>
<text x="132" y="388" class="section-text">• 只保留一个主对话窗口,不让用户自己分配线程</text>
<text x="132" y="420" class="section-text">• 项目列表可查看每个 Codex 线程的聊天、命令、补丁、状态</text>
<text x="132" y="452" class="section-text">• 顶部小胶囊显示当前主控身份:主 GPT / 备用 GPT / API 容灾</text>
<text x="132" y="484" class="section-text">• 实时显示各绑定 Codex 客户端剩余额度和切换情况</text>
<g filter="url(#shadow)">
<rect x="92" y="616" width="488" height="302" rx="28" fill="#FFFFFF"/>
<rect x="88" y="620" width="10" height="294" rx="5" fill="#22C55E"/>
</g>
<rect x="130" y="646" width="154" height="32" rx="16" fill="#EAF9EE"/>
<text x="168" y="668" class="badge" style="fill:#14803D">主控编排</text>
<text x="130" y="716" class="section-title">2. Master Agent Runtime</text>
<text x="130" y="758" class="section-text">• LangGraph 负责任务拆解、节点选择、上下文裁剪、阶段推进</text>
<text x="130" y="790" class="section-text">• Project Memory 保存目标、约束、摘要、决策和未决项</text>
<text x="130" y="822" class="section-text">• Scheduler 按平台能力、额度、负载和项目优先级派发任务</text>
<text x="130" y="854" class="section-text">• Inter-Thread Broker 监管 Mac / Windows / 云线程的对话</text>
<g filter="url(#shadow)">
<rect x="648" y="78" width="510" height="288" rx="28" fill="#FFFFFF"/>
<rect x="644" y="82" width="10" height="280" rx="5" fill="#F59E0B"/>
</g>
<rect x="686" y="108" width="164" height="32" rx="16" fill="#FFF4DA"/>
<text x="725" y="130" class="badge" style="fill:#A16207">执行层</text>
<text x="686" y="178" class="section-title">3. 多机 Codex Worker 执行</text>
<text x="686" y="220" class="section-text">• Mac Worker前端、Xcode、轻量开发、本地联调</text>
<text x="686" y="252" class="section-text">• Windows WorkerWSL2GPU、CUDA、Windows 工具链、硬件桥接</text>
<text x="686" y="284" class="section-text">• Cloud WorkerCI、批处理、长任务、后台服务</text>
<text x="686" y="316" class="section-text">• 每个节点都运行自己的 Codex app-server / SDK 和独立账号</text>
<g filter="url(#shadow)">
<rect x="1236" y="244" width="474" height="300" rx="28" fill="#FFFFFF"/>
<rect x="1704" y="246" width="10" height="294" rx="5" fill="#A855F7"/>
</g>
<rect x="1272" y="274" width="160" height="32" rx="16" fill="#F4E8FF"/>
<text x="1307" y="296" class="badge" style="fill:#7E22CE">审计层</text>
<text x="1272" y="346" class="section-title">4. 混合审计与专项 Agent</text>
<text x="1272" y="388" class="section-text">• Rules Audit Engine先看超时、失败、断流、额度、队列积压</text>
<text x="1272" y="420" class="section-text">• 软件审计 Agent看代码、测试、接口契约、发布风险</text>
<text x="1272" y="452" class="section-text">• 硬件审计 Agent看固件、串口、传感器、设备状态机</text>
<text x="1272" y="484" class="section-text">• 多模态审计 Agent看视频、截图、音频、拟人交互效果</text>
<g filter="url(#shadow)">
<rect x="1228" y="620" width="492" height="312" rx="28" fill="#FFFFFF"/>
<rect x="1724" y="624" width="10" height="304" rx="5" fill="#EF4444"/>
</g>
<rect x="1268" y="650" width="184" height="32" rx="16" fill="#FEEAEA"/>
<text x="1304" y="672" class="badge" style="fill:#B42318">开放硬件能力</text>
<text x="1268" y="722" class="section-title">5. Capability Registry + Test Rig</text>
<text x="1268" y="764" class="section-text">• 摄像头、麦克风、扬声器、串口、继电器、拇指机器人统一注册</text>
<text x="1268" y="796" class="section-text">• Lease Manager 管租约Preemption Manager 管抢占和宽限期</text>
<text x="1268" y="828" class="section-text">• 审计 Agent 通过标准能力接口接管硬件,不直接抢系统桌面</text>
<text x="1268" y="860" class="section-text">• Evidence Collector 归档视频片段、截图、音频、日志与检测结果</text>
<g filter="url(#shadow)">
<rect x="606" y="956" width="594" height="218" rx="28" fill="#FFFFFF"/>
<rect x="602" y="960" width="10" height="210" rx="5" fill="#0EA5E9"/>
</g>
<rect x="646" y="986" width="192" height="32" rx="16" fill="#E4F6FD"/>
<text x="683" y="1008" class="badge" style="fill:#0369A1">数据与容灾</text>
<text x="646" y="1058" class="section-title">6. Event Store / Quota / Standby</text>
<text x="646" y="1100" class="section-text">• Event Store 镜像 thread、命令、patch、审批、协作与告警</text>
<text x="646" y="1132" class="section-text">• gptpluscontrol 提供剩余额度、账号切换、实时监控和预警</text>
<text x="646" y="1164" class="section-text">• Standby Controller 和外部状态存储保证主控故障后仍可接管</text>
<rect x="104" y="1068" width="364" height="96" rx="20" fill="#FFFFFF" opacity="0.82"/>
<text x="132" y="1106" class="section-title" style="font-size:20px;">当前主流程一句话</text>
<text x="132" y="1138" class="section-text-small">用户只对一个主 Agent 说话,主 Agent 依靠外部记忆和事件流</text>
<text x="132" y="1162" class="section-text-small">去调度多台机器上的短上下文 Codex 线程,并在审计与容灾下持续推进。</text>
<rect x="1320" y="1012" width="406" height="136" rx="20" fill="#FFFFFF" opacity="0.9"/>
<text x="1348" y="1050" class="section-title" style="font-size:20px;">开发顺序建议</text>
<text x="1348" y="1082" class="section-text-small">1. 先打通 Worker + Event Store + Quota Monitor</text>
<text x="1348" y="1108" class="section-text-small">2. 再接 Inter-Thread Broker 和审计任务协议</text>
<text x="1348" y="1134" class="section-text-small">3. 最后接 Capability Registry 与硬件测试台</text>
<text x="94" y="1196" class="footer">图文件:/Users/kris/code/Talking/current_flow_mindmap_cn.svg</text>
</svg>