publish DeepSeek Harness architecture research

This commit is contained in:
wuyang6
2026-08-14 01:07:21 +08:00
parent b861578bb8
commit 8a3d5e9694
2 changed files with 166 additions and 0 deletions
@@ -0,0 +1,32 @@
<svg xmlns="http://www.w3.org/2000/svg" width="1440" height="820" viewBox="0 0 1440 820" role="img" aria-labelledby="title desc">
<title id="title">DeepSeek Harness 从配置组合到会话持久化的主链路</title>
<desc id="desc">Profile 与 patch 生成 Cordis 插件树。用户输入进入 Agent inbox,组装系统提示和工具 schema,调用模型,工具调用经过审批和执行管线,结果写入 SessionEvent 日志并驱动下一步、恢复和界面。</desc>
<defs>
<style>
.bg{fill:#f7f4ec}.ink{fill:#20211f}.muted{fill:#666b62}.box{fill:#fffdf7;stroke:#2b5d50;stroke-width:2}.box2{fill:#eef5ef;stroke:#2b5d50;stroke-width:2}.warn{fill:#fff2df;stroke:#b66a2b;stroke-width:2}.line{stroke:#2b5d50;stroke-width:3;fill:none;marker-end:url(#arrow)}.dash{stroke:#8a8f86;stroke-width:2;stroke-dasharray:8 8;fill:none;marker-end:url(#arrow2)}.t{font:600 24px -apple-system,BlinkMacSystemFont,"PingFang SC",sans-serif}.s{font:400 18px -apple-system,BlinkMacSystemFont,"PingFang SC",sans-serif}.tiny{font:400 16px -apple-system,BlinkMacSystemFont,"PingFang SC",sans-serif}.cap{font:700 15px ui-monospace,SFMono-Regular,monospace;letter-spacing:1px}
</style>
<marker id="arrow" viewBox="0 0 10 10" refX="9" refY="5" markerWidth="8" markerHeight="8" orient="auto-start-reverse"><path d="M 0 0 L 10 5 L 0 10 z" fill="#2b5d50"/></marker>
<marker id="arrow2" viewBox="0 0 10 10" refX="9" refY="5" markerWidth="8" markerHeight="8" orient="auto-start-reverse"><path d="M 0 0 L 10 5 L 0 10 z" fill="#8a8f86"/></marker>
</defs>
<rect class="bg" width="1440" height="820" rx="32"/>
<text x="72" y="68" class="t ink">DeepSeek Harness 主链路:组合、执行、记录</text>
<text x="72" y="101" class="s muted">配置决定运行时;事件日志连接执行、恢复与界面。</text>
<rect x="70" y="150" width="280" height="145" rx="18" class="box2"/>
<text x="95" y="184" class="cap muted">BOOT / COMPOSITION</text><text x="95" y="224" class="t ink">Profile + Bundles</text><text x="95" y="257" class="s muted">home patch · --patch</text>
<rect x="420" y="150" width="300" height="145" rx="18" class="box"/>
<text x="445" y="184" class="cap muted">CORDIS CONTEXT</text><text x="445" y="224" class="t ink">插件树</text><text x="445" y="257" class="s muted">services · events · effects</text>
<rect x="790" y="150" width="300" height="145" rx="18" class="box"/>
<text x="815" y="184" class="cap muted">TURN INPUT</text><text x="815" y="224" class="t ink">Agent inbox</text><text x="815" y="257" class="s muted">prompt · followup · steer</text>
<rect x="1160" y="150" width="210" height="145" rx="18" class="box"/>
<text x="1185" y="184" class="cap muted">PRE-STEP</text><text x="1185" y="224" class="t ink">上下文组装</text><text x="1185" y="257" class="tiny muted">history + tools</text>
<path d="M350 222 H420" class="line"/><path d="M720 222 H790" class="line"/><path d="M1090 222 H1160" class="line"/>
<rect x="1070" y="390" width="300" height="150" rx="18" class="box2"/><text x="1095" y="425" class="cap muted">MODEL STEP</text><text x="1095" y="465" class="t ink">LLM stream</text><text x="1095" y="500" class="s muted">assistant chunks / message</text>
<rect x="600" y="390" width="390" height="150" rx="18" class="warn"/><text x="625" y="425" class="cap muted">GUARDED TOOL PIPELINE</text><text x="625" y="465" class="t ink">pre → approval → execute → post</text><text x="625" y="500" class="s muted">缺审批通道时 ask 退化为 deny</text>
<rect x="70" y="390" width="450" height="150" rx="18" class="box"/><text x="95" y="425" class="cap muted">DURABLE FACTS</text><text x="95" y="465" class="t ink">append-only SessionEvent log</text><text x="95" y="500" class="s muted">user · assistant · tool · turn · policy</text>
<path d="M1265 295 V390" class="line"/><path d="M1070 465 H990" class="line"/><path d="M600 465 H520" class="line"/>
<rect x="70" y="650" width="300" height="100" rx="18" class="box2"/><text x="95" y="690" class="t ink">派生模型历史</text><text x="95" y="720" class="s muted">下一步请求使用</text>
<rect x="470" y="650" width="300" height="100" rx="18" class="box2"/><text x="495" y="690" class="t ink">恢复与分叉</text><text x="495" y="720" class="s muted">resume · fork · repair</text>
<rect x="870" y="650" width="300" height="100" rx="18" class="box2"/><text x="895" y="690" class="t ink">Web / SDK 投影</text><text x="895" y="720" class="s muted">trajectory · UI · API</text>
<path d="M210 540 V650" class="dash"/><path d="M295 540 C360 600 560 590 620 650" class="dash"/><path d="M420 540 C600 590 980 580 1020 650" class="dash"/>
<text x="70" y="790" class="tiny muted">图源:DeepSeek Harness 冻结提交 47f9438 的 architecture、agent-loop、tools 与 session-persistence;2026-08-14 重绘。</text>
</svg>

After

Width:  |  Height:  |  Size: 4.8 KiB