Files
inkos/assets/arch-memory.svg

75 lines
4.5 KiB
XML

<?xml version="1.0" encoding="UTF-8"?>
<svg viewBox="0 0 1040 420" xmlns="http://www.w3.org/2000/svg" font-family="-apple-system,'PingFang SC',system-ui,sans-serif">
<defs>
<marker id="a2" markerWidth="8" markerHeight="8" refX="6.5" refY="4" orient="auto"><path d="M0,0 L7,4 L0,8 Z" fill="#cdbfa3"/></marker>
<marker id="a2g" markerWidth="8" markerHeight="8" refX="6.5" refY="4" orient="auto"><path d="M0,0 L7,4 L0,8 Z" fill="#cf9a52"/></marker>
<filter id="s2" x="-20%" y="-30%" width="140%" height="170%"><feDropShadow dx="0" dy="3" stdDeviation="4" flood-color="#5b3a1e" flood-opacity="0.12"/></filter>
<style>
.t2{ fill:#2d1b0e; font-size:23px; font-weight:800; letter-spacing:.02em; }
.nm2{ fill:#3a2817; font-size:15px; font-weight:700; }
.nm2k{ fill:#c0532f; font-size:15px; font-weight:800; }
.nm2g{ fill:#9a6a1e; font-size:15px; font-weight:800; }
.pth{ font-family:ui-monospace,Menlo,monospace; fill:#a85433; font-size:13px; font-weight:600; }
.pthn{ font-family:ui-monospace,Menlo,monospace; fill:#6b4a2a; font-size:13px; font-weight:600; }
.d2{ fill:#7a6a55; font-size:12px; }
.hd2{ fill:#2d1b0e; font-size:14px; font-weight:800; }
.c2{ fill:#fffdf6; stroke:#ece0c4; stroke-width:1.2; rx:13; }
.c2k{ fill:#fdeee7; stroke:#f0cdbd; }
.c2g{ fill:#fbf2db; stroke:#ecdbac; }
.lay{ fill:#fffdf6; stroke:#ece0c4; stroke-width:1.2; rx:15; }
.layk{ fill:#fdeee7; stroke:#f0cdbd; }
.ln2{ stroke:#cdbfa3; stroke-width:1.5; fill:none; marker-end:url(#a2); }
.ln2g{ stroke:#cf9a52; stroke-width:1.5; fill:none; stroke-dasharray:5 5; marker-end:url(#a2g); }
.al2{ fill:#9a8a72; font-size:11.5px; }
.alg2{ fill:#a87a36; font-size:11.5px; }
</style>
</defs>
<rect x="0" y="0" width="1040" height="420" fill="#fdf8ec" rx="18"/>
<text class="t2" x="44" y="56">长期记忆与状态</text>
<rect x="46" y="68" width="58" height="3" rx="1.5" fill="#e76f51"/>
<rect class="c2 c2k" x="44" y="92" width="150" height="56" filter="url(#s2)"/>
<text class="nm2k" x="64" y="125">写手正文</text>
<rect class="c2" x="232" y="92" width="150" height="56" filter="url(#s2)"/>
<text class="nm2" x="252" y="125">提取九类事实</text>
<rect class="c2" x="420" y="92" width="150" height="56" filter="url(#s2)"/>
<text class="nm2" x="440" y="125">结构化增量</text>
<rect class="c2" x="608" y="92" width="150" height="56" filter="url(#s2)"/>
<text class="nm2" x="628" y="125">不可变写入</text>
<rect class="c2 c2g" x="796" y="92" width="160" height="56" filter="url(#s2)"/>
<text class="nm2g" x="816" y="125">结构校验 ✓</text>
<path class="ln2" d="M194,120 L230,120"/>
<path class="ln2" d="M382,120 L418,120"/>
<path class="ln2" d="M570,120 L606,120"/>
<path class="ln2" d="M758,120 L794,120"/>
<rect class="lay layk" x="44" y="216" width="296" height="150" filter="url(#s2)"/>
<text class="hd2" x="66" y="248">权威结构化状态</text>
<text class="pth" x="66" y="276">story/state/*.json</text>
<text class="d2" x="66" y="304">当前状态 · 伏笔 · 章节摘要</text>
<text class="d2" x="66" y="326">逐字段校验,坏数据直接拒绝</text>
<text class="d2" x="66" y="348">本书唯一权威来源</text>
<rect class="lay" x="372" y="216" width="296" height="150" filter="url(#s2)"/>
<text class="hd2" x="394" y="248">人类可读投影</text>
<text class="pthn" x="394" y="276">story/*.md</text>
<text class="d2" x="394" y="304">当前状态 · 待兑现伏笔</text>
<text class="d2" x="394" y="326">章节摘要 · 角色矩阵</text>
<text class="d2" x="394" y="348">从权威状态渲染,给人看</text>
<rect class="lay" x="700" y="216" width="296" height="150" filter="url(#s2)"/>
<text class="hd2" x="722" y="248">时序记忆库</text>
<text class="pthn" x="722" y="276">story/memory.db</text>
<text class="d2" x="722" y="304">本地数据库,22 版以上自动启用</text>
<text class="d2" x="722" y="326">按相关性检索事实 / 伏笔 / 摘要</text>
<text class="d2" x="722" y="348">避免全量注入撑爆上下文</text>
<path class="ln2" d="M876,148 C876,184 192,184 192,214"/>
<text class="al2" x="430" y="180">校验通过 · 写入权威状态</text>
<path class="ln2" d="M340,290 L370,290"/><text class="al2" x="343" y="283">渲染</text>
<path class="ln2" d="M668,290 L698,290"/><text class="al2" x="668" y="283">索引</text>
<path class="ln2g" d="M848,366 C848,398 192,398 192,368"/>
<text class="alg2" x="430" y="412">写下一章前 · 按相关性检索</text>
</svg>