feat: 支持工程决策看板与构建体系
|
After Width: | Height: | Size: 309 KiB |
@@ -0,0 +1,128 @@
|
||||
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1400 860" width="100%" height="100%">
|
||||
<defs>
|
||||
<pattern id="light-grid" width="32" height="32" patternUnits="userSpaceOnUse">
|
||||
<path d="M 32 0 L 0 0 0 32" fill="none" stroke="#e2e8f0" stroke-width="0.75"/>
|
||||
</pattern>
|
||||
<filter id="soft-shadow" x="-5%" y="-5%" width="110%" height="110%">
|
||||
<feDropShadow dx="0" dy="8" stdDeviation="12" flood-color="#0f172a" flood-opacity="0.05"/>
|
||||
</filter>
|
||||
</defs>
|
||||
|
||||
<style>
|
||||
@import url('https://fonts.googleapis.com/css2?family=JetBrains+Mono:wght@400;600;700;800&display=swap');
|
||||
text {
|
||||
font-family: -apple-system, 'PingFang SC', 'Noto Sans SC', 'Segoe UI', 'JetBrains Mono', sans-serif;
|
||||
}
|
||||
.code { font-family: 'JetBrains Mono', monospace; }
|
||||
</style>
|
||||
|
||||
<!-- Clean Off-white Background -->
|
||||
<rect width="100%" height="100%" fill="#f8fafc"/>
|
||||
<rect width="100%" height="100%" fill="url(#light-grid)"/>
|
||||
|
||||
<!-- HEADER -->
|
||||
<g transform="translate(80, 50)">
|
||||
<rect x="0" y="0" width="150" height="28" rx="14" fill="#e0f2fe" stroke="#0284c7" stroke-width="1.2"/>
|
||||
<text x="75" y="19" fill="#0369a1" font-size="12" font-weight="800" text-anchor="middle" letter-spacing="0.5">开箱即用 4 件套</text>
|
||||
<text x="0" y="70" fill="#0f172a" font-size="32" font-weight="800">write-notes-like-deepseek 交付了什么?</text>
|
||||
</g>
|
||||
|
||||
<!-- 4 MINIMAL BENTO BOXES (LARGE TEXT, ZERO BULLET POINTS, MAXIMUM BREATHING SPACE) -->
|
||||
|
||||
<!-- BOX 1: SKILL -->
|
||||
<g transform="translate(80, 150)">
|
||||
<rect x="0" y="0" width="590" height="310" rx="20" fill="#ffffff" stroke="#bae6fd" stroke-width="2" filter="url(#soft-shadow)"/>
|
||||
<path d="M 0 20 Q 0 0 20 0 L 570 0 Q 590 0 590 20 L 590 64 L 0 64 Z" fill="#f0f9ff"/>
|
||||
|
||||
<circle cx="36" cy="32" r="15" fill="#0284c7"/>
|
||||
<text x="36" y="38" fill="#ffffff" font-size="14" font-weight="800" text-anchor="middle">1</text>
|
||||
<text x="64" y="39" fill="#0369a1" font-size="20" font-weight="800">AI 一键装配(Agent Skill)</text>
|
||||
|
||||
<g transform="translate(28, 90)">
|
||||
<!-- Command Box -->
|
||||
<rect x="0" y="0" width="534" height="64" rx="12" fill="#0f172a"/>
|
||||
<text x="20" y="38" fill="#38bdf8" font-size="13.5" font-weight="700" class="code">$ npx skills add czm15053/write-notes-like-deepseek</text>
|
||||
|
||||
<!-- Single Bold Message -->
|
||||
<g transform="translate(0, 95)">
|
||||
<text x="0" y="24" fill="#0f172a" font-size="18" font-weight="800">让 Cursor / Claude 动手前必须先看封条,</text>
|
||||
<text x="0" y="56" fill="#0284c7" font-size="18" font-weight="800">绝不自作聪明盲目乱改代码!</text>
|
||||
</g>
|
||||
</g>
|
||||
</g>
|
||||
|
||||
<!-- BOX 2: TEMPLATES -->
|
||||
<g transform="translate(730, 150)">
|
||||
<rect x="0" y="0" width="590" height="310" rx="20" fill="#ffffff" stroke="#fde68a" stroke-width="2" filter="url(#soft-shadow)"/>
|
||||
<path d="M 0 20 Q 0 0 20 0 L 570 0 Q 590 0 590 20 L 590 64 L 0 64 Z" fill="#fffbeb"/>
|
||||
|
||||
<circle cx="36" cy="32" r="15" fill="#d97706"/>
|
||||
<text x="36" y="38" fill="#ffffff" font-size="14" font-weight="800" text-anchor="middle">2</text>
|
||||
<text x="64" y="39" fill="#92400e" font-size="20" font-weight="800">200 字填空模板(填空即用)</text>
|
||||
|
||||
<g transform="translate(28, 90)">
|
||||
<!-- 3 Pills -->
|
||||
<rect x="0" y="0" width="165" height="64" rx="12" fill="#fef3c7" stroke="#fde68a" stroke-width="1.4"/>
|
||||
<text x="82" y="28" fill="#b45309" font-size="11" font-weight="700" text-anchor="middle">动手前立项</text>
|
||||
<text x="82" y="50" fill="#78350f" font-size="13" font-weight="800" text-anchor="middle" class="code">proposed.md</text>
|
||||
|
||||
<rect x="184" y="0" width="175" height="64" rx="12" fill="#dcfce7" stroke="#a7f3d0" stroke-width="1.4"/>
|
||||
<text x="271" y="28" fill="#047857" font-size="11" font-weight="700" text-anchor="middle">已落地法律</text>
|
||||
<text x="271" y="50" fill="#065f46" font-size="13" font-weight="800" text-anchor="middle" class="code">implemented.md</text>
|
||||
|
||||
<rect x="378" y="0" width="156" height="64" rx="12" fill="#ffe4e6" stroke="#fecdd3" stroke-width="1.4"/>
|
||||
<text x="456" y="28" fill="#9f1239" font-size="11" font-weight="700" text-anchor="middle">被否决方案</text>
|
||||
<text x="456" y="50" fill="#be123c" font-size="13" font-weight="800" text-anchor="middle" class="code">rejected.md</text>
|
||||
|
||||
<!-- Single Bold Message -->
|
||||
<g transform="translate(0, 95)">
|
||||
<text x="0" y="24" fill="#0f172a" font-size="18" font-weight="800">只有 4 个填空题,单篇仅 200 字,</text>
|
||||
<text x="0" y="56" fill="#d97706" font-size="18" font-weight="800">就像发朋友圈一样轻松,3 分钟搞定!</text>
|
||||
</g>
|
||||
</g>
|
||||
</g>
|
||||
|
||||
<!-- BOX 3: CI GATES -->
|
||||
<g transform="translate(80, 500)">
|
||||
<rect x="0" y="0" width="590" height="310" rx="20" fill="#ffffff" stroke="#ddd6fe" stroke-width="2" filter="url(#soft-shadow)"/>
|
||||
<path d="M 0 20 Q 0 0 20 0 L 570 0 Q 590 0 590 20 L 590 64 L 0 64 Z" fill="#faf5ff"/>
|
||||
|
||||
<circle cx="36" cy="32" r="15" fill="#7c3aed"/>
|
||||
<text x="36" y="38" fill="#ffffff" font-size="14" font-weight="800" text-anchor="middle">3</text>
|
||||
<text x="64" y="39" fill="#5b21b6" font-size="20" font-weight="800">机器铁面保安(CI 质检门禁)</text>
|
||||
|
||||
<g transform="translate(28, 90)">
|
||||
<!-- Command Box -->
|
||||
<rect x="0" y="0" width="534" height="64" rx="12" fill="#0f172a"/>
|
||||
<text x="20" y="38" fill="#c084fc" font-size="13.5" font-weight="700" class="code">$ npm run verify-agent-note-tree && npm run verify-format</text>
|
||||
|
||||
<!-- Single Bold Message -->
|
||||
<g transform="translate(0, 95)">
|
||||
<text x="0" y="24" fill="#0f172a" font-size="18" font-weight="800">敢吹牛画大饼?有断头死链?</text>
|
||||
<text x="0" y="56" fill="#7c3aed" font-size="18" font-weight="800">提交代码时机器人直接打回,不靠人的自觉!</text>
|
||||
</g>
|
||||
</g>
|
||||
</g>
|
||||
|
||||
<!-- BOX 4: BOARD -->
|
||||
<g transform="translate(730, 500)">
|
||||
<rect x="0" y="0" width="590" height="310" rx="20" fill="#ffffff" stroke="#a7f3d0" stroke-width="2.2" filter="url(#soft-shadow)"/>
|
||||
<path d="M 0 20 Q 0 0 20 0 L 570 0 Q 590 0 590 20 L 590 64 L 0 64 Z" fill="#f0fdf4"/>
|
||||
|
||||
<circle cx="36" cy="32" r="15" fill="#059669"/>
|
||||
<text x="36" y="38" fill="#ffffff" font-size="14" font-weight="800" text-anchor="middle">4</text>
|
||||
<text x="64" y="39" fill="#065f46" font-size="20" font-weight="800">免部署离线看板(全景大屏)</text>
|
||||
|
||||
<g transform="translate(28, 90)">
|
||||
<!-- Command Box -->
|
||||
<rect x="0" y="0" width="534" height="64" rx="12" fill="#f0fdf4" stroke="#a7f3d0" stroke-width="1.5"/>
|
||||
<text x="20" y="38" fill="#047857" font-size="14" font-weight="700" class="code">双击 assets/agent-notes-board.html 直接打开</text>
|
||||
|
||||
<!-- Single Bold Message -->
|
||||
<g transform="translate(0, 95)">
|
||||
<text x="0" y="24" fill="#0f172a" font-size="18" font-weight="800">不用装 Node / 不用后端,纯本地大屏,</text>
|
||||
<text x="0" y="56" fill="#059669" font-size="18" font-weight="800">避坑智库 + 演进史诗,向上汇报看它就行!</text>
|
||||
</g>
|
||||
</g>
|
||||
</g>
|
||||
</svg>
|
||||
|
After Width: | Height: | Size: 7.1 KiB |
|
After Width: | Height: | Size: 377 KiB |
@@ -0,0 +1,113 @@
|
||||
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1400 860" width="100%" height="100%">
|
||||
<defs>
|
||||
<pattern id="light-grid" width="32" height="32" patternUnits="userSpaceOnUse">
|
||||
<path d="M 32 0 L 0 0 0 32" fill="none" stroke="#e2e8f0" stroke-width="0.75"/>
|
||||
</pattern>
|
||||
<filter id="soft-shadow" x="-5%" y="-5%" width="110%" height="110%">
|
||||
<feDropShadow dx="0" dy="6" stdDeviation="10" flood-color="#0f172a" flood-opacity="0.06"/>
|
||||
</filter>
|
||||
<marker id="arr-rose" markerWidth="8" markerHeight="6" refX="7" refY="3" orient="auto">
|
||||
<polygon points="0 0, 8 3, 0 6" fill="#e11d48"/>
|
||||
</marker>
|
||||
<marker id="arr-emerald" markerWidth="8" markerHeight="6" refX="7" refY="3" orient="auto">
|
||||
<polygon points="0 0, 8 3, 0 6" fill="#059669"/>
|
||||
</marker>
|
||||
</defs>
|
||||
|
||||
<style>
|
||||
@import url('https://fonts.googleapis.com/css2?family=JetBrains+Mono:wght@400;600;700;800&display=swap');
|
||||
text {
|
||||
font-family: -apple-system, 'PingFang SC', 'Noto Sans SC', 'Segoe UI', 'JetBrains Mono', sans-serif;
|
||||
}
|
||||
.code { font-family: 'JetBrains Mono', monospace; }
|
||||
</style>
|
||||
|
||||
<rect width="100%" height="100%" fill="#f8fafc"/>
|
||||
<rect width="100%" height="100%" fill="url(#light-grid)"/>
|
||||
|
||||
<!-- HEADER -->
|
||||
<g transform="translate(80, 42)">
|
||||
<rect x="0" y="0" width="150" height="28" rx="14" fill="#e0f2fe" stroke="#0284c7" stroke-width="1.2"/>
|
||||
<text x="75" y="19" fill="#0369a1" font-size="12" font-weight="800" text-anchor="middle" letter-spacing="0.5">图 1 · 真实故事</text>
|
||||
<text x="0" y="68" fill="#0f172a" font-size="30" font-weight="800">三个月前踩过的坑,新 AI 为什么又踩一遍?</text>
|
||||
<text x="0" y="100" fill="#64748b" font-size="15">代码只记下「怎么跑」,没记下「为什么不能用更简单的写法」</text>
|
||||
</g>
|
||||
|
||||
<!-- LEFT: NO NOTE -->
|
||||
<g transform="translate(80, 155)">
|
||||
<rect x="0" y="0" width="590" height="645" rx="20" fill="#ffffff" stroke="#fecdd3" stroke-width="2" filter="url(#soft-shadow)"/>
|
||||
<path d="M 0 20 Q 0 0 20 0 L 570 0 Q 590 0 590 20 L 590 60 L 0 60 Z" fill="#fff1f2"/>
|
||||
<circle cx="28" cy="30" r="10" fill="#e11d48"/>
|
||||
<text x="48" y="36" fill="#be123c" font-size="17" font-weight="800">没有 Note:三个月后,新 AI 把坑重新踩一遍</text>
|
||||
|
||||
<!-- Step 1 -->
|
||||
<g transform="translate(24, 84)">
|
||||
<rect x="0" y="0" width="542" height="128" rx="12" fill="#f8fafc" stroke="#e2e8f0" stroke-width="1.2"/>
|
||||
<text x="16" y="26" fill="#0f172a" font-size="14" font-weight="800">① 三个月前:工程师踩完坑,代码合进去了</text>
|
||||
<rect x="16" y="40" width="510" height="72" rx="8" fill="#f1f5f9" stroke="#cbd5e1" stroke-width="1"/>
|
||||
<text x="28" y="64" fill="#64748b" font-size="12">当时没写笔记。代码看起来很绕,但线上跑得稳。</text>
|
||||
<text x="28" y="90" fill="#0f172a" font-size="12" class="code">while (!tryAcquireWithBackoff(lockKey, 50)) { yield(); }</text>
|
||||
</g>
|
||||
|
||||
<line x1="295" y1="226" x2="295" y2="252" stroke="#e11d48" stroke-width="2.5" marker-end="url(#arr-rose)"/>
|
||||
|
||||
<!-- Step 2 -->
|
||||
<g transform="translate(24, 266)">
|
||||
<rect x="0" y="0" width="542" height="128" rx="12" fill="#f8fafc" stroke="#fecdd3" stroke-width="1.2"/>
|
||||
<text x="16" y="26" fill="#e11d48" font-size="14" font-weight="800">② 今天:新开的 AI 会话看到这段代码</text>
|
||||
<rect x="16" y="40" width="510" height="72" rx="8" fill="#f1f5f9" stroke="#cbd5e1" stroke-width="1"/>
|
||||
<text x="28" y="64" fill="#dc2626" font-size="12" class="code">- while (!tryAcquireWithBackoff(...)) { yield(); }</text>
|
||||
<text x="28" y="90" fill="#16a34a" font-size="12" class="code">+ await mutex.lock(lockKey); // 「太丑了,我来优雅重构」</text>
|
||||
</g>
|
||||
|
||||
<line x1="295" y1="408" x2="295" y2="434" stroke="#e11d48" stroke-width="2.5" marker-end="url(#arr-rose)"/>
|
||||
|
||||
<!-- Step 3 -->
|
||||
<g transform="translate(24, 448)">
|
||||
<rect x="0" y="0" width="542" height="168" rx="12" fill="#fff1f2" stroke="#fda4af" stroke-width="1.5"/>
|
||||
<text x="18" y="30" fill="#be123c" font-size="15" font-weight="800">③ 线上死锁。三个月前试过的「优雅写法」又崩了</text>
|
||||
<text x="18" y="64" fill="#9f1239" font-size="13.5">代码只记下 What,没记下 Why Not。</text>
|
||||
<text x="18" y="94" fill="#9f1239" font-size="13.5">新 AI 是一张白纸,飞书 / Wiki 它也不会主动去翻。</text>
|
||||
<text x="18" y="128" fill="#64748b" font-size="13">👉 坑还在,记忆没了。这就是不写 Note 的代价。</text>
|
||||
</g>
|
||||
</g>
|
||||
|
||||
<!-- RIGHT: WITH NOTE -->
|
||||
<g transform="translate(730, 155)">
|
||||
<rect x="0" y="0" width="590" height="645" rx="20" fill="#ffffff" stroke="#a7f3d0" stroke-width="2" filter="url(#soft-shadow)"/>
|
||||
<path d="M 0 20 Q 0 0 20 0 L 570 0 Q 590 0 590 20 L 590 60 L 0 60 Z" fill="#f0fdf4"/>
|
||||
<circle cx="28" cy="30" r="10" fill="#059669"/>
|
||||
<text x="48" y="36" fill="#065f46" font-size="17" font-weight="800">有 Note:代码入口贴封条,新 AI 先读再动手</text>
|
||||
|
||||
<!-- Step 1 -->
|
||||
<g transform="translate(24, 84)">
|
||||
<rect x="0" y="0" width="542" height="128" rx="12" fill="#f8fafc" stroke="#e2e8f0" stroke-width="1.2"/>
|
||||
<text x="16" y="26" fill="#0f172a" font-size="14" font-weight="800">① 当时合代码时,顺手在入口留了一行指针</text>
|
||||
<rect x="16" y="40" width="510" height="72" rx="8" fill="#f0f9ff" stroke="#bae6fd" stroke-width="1"/>
|
||||
<text x="28" y="64" fill="#0284c7" font-size="11.5" class="code">// Note: 为什么不用普通锁 — 见 .agents/notes/.../lock.md</text>
|
||||
<text x="28" y="90" fill="#0f172a" font-size="12" class="code">export function acquireLock() { while (!tryAcquire...) { ... } }</text>
|
||||
</g>
|
||||
|
||||
<line x1="295" y1="226" x2="295" y2="252" stroke="#059669" stroke-width="2.5" marker-end="url(#arr-emerald)"/>
|
||||
|
||||
<!-- Step 2 -->
|
||||
<g transform="translate(24, 266)">
|
||||
<rect x="0" y="0" width="542" height="128" rx="12" fill="#f8fafc" stroke="#a7f3d0" stroke-width="1.2"/>
|
||||
<text x="16" y="26" fill="#059669" font-size="14" font-weight="800">② 今天新 AI 读到封条,先打开那篇笔记</text>
|
||||
<rect x="16" y="40" width="510" height="72" rx="8" fill="#fffbeb" stroke="#fde68a" stroke-width="1"/>
|
||||
<text x="28" y="64" fill="#b45309" font-size="12" font-weight="700">## Alternatives considered</text>
|
||||
<text x="28" y="90" fill="#78350f" font-size="12">普通互斥锁写法简洁,但并发实测会死锁,不能用。</text>
|
||||
</g>
|
||||
|
||||
<line x1="295" y1="408" x2="295" y2="434" stroke="#059669" stroke-width="2.5" marker-end="url(#arr-emerald)"/>
|
||||
|
||||
<!-- Step 3 -->
|
||||
<g transform="translate(24, 448)">
|
||||
<rect x="0" y="0" width="542" height="168" rx="12" fill="#f0fdf4" stroke="#86efac" stroke-width="1.5"/>
|
||||
<text x="18" y="30" fill="#065f46" font-size="15" font-weight="800">③ 新 AI 收回手,在已知边界里改,线上不崩</text>
|
||||
<text x="18" y="64" fill="#047857" font-size="13.5">封条 100% 进上下文,不靠 AI 自觉去搜文档。</text>
|
||||
<text x="18" y="94" fill="#047857" font-size="13.5">笔记跟代码同一批提交,三个月后仍然对得上。</text>
|
||||
<text x="18" y="128" fill="#059669" font-size="13" font-weight="800">★ 换谁来接手,都先看见这条红线。</text>
|
||||
</g>
|
||||
</g>
|
||||
</svg>
|
||||
|
After Width: | Height: | Size: 7.2 KiB |
|
After Width: | Height: | Size: 418 KiB |
@@ -0,0 +1,161 @@
|
||||
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1400 860" width="100%" height="100%">
|
||||
<defs>
|
||||
<pattern id="light-grid" width="32" height="32" patternUnits="userSpaceOnUse">
|
||||
<path d="M 32 0 L 0 0 0 32" fill="none" stroke="#e2e8f0" stroke-width="0.75"/>
|
||||
</pattern>
|
||||
<filter id="soft-shadow" x="-5%" y="-5%" width="110%" height="110%">
|
||||
<feDropShadow dx="0" dy="6" stdDeviation="10" flood-color="#0f172a" flood-opacity="0.06"/>
|
||||
</filter>
|
||||
</defs>
|
||||
|
||||
<style>
|
||||
@import url('https://fonts.googleapis.com/css2?family=JetBrains+Mono:wght@400;600;700;800&display=swap');
|
||||
text {
|
||||
font-family: -apple-system, 'PingFang SC', 'Noto Sans SC', 'Segoe UI', 'JetBrains Mono', sans-serif;
|
||||
}
|
||||
.code { font-family: 'JetBrains Mono', monospace; }
|
||||
</style>
|
||||
|
||||
<!-- Background -->
|
||||
<rect width="100%" height="100%" fill="#f8fafc"/>
|
||||
<rect width="100%" height="100%" fill="url(#light-grid)"/>
|
||||
|
||||
<!-- HEADER -->
|
||||
<g transform="translate(80, 50)">
|
||||
<rect x="0" y="0" width="150" height="28" rx="14" fill="#e0f2fe" stroke="#0284c7" stroke-width="1.2"/>
|
||||
<text x="75" y="19" fill="#0369a1" font-size="12" font-weight="800" text-anchor="middle" letter-spacing="0.5">图 2 · 分类大地图</text>
|
||||
<text x="0" y="70" fill="#0f172a" font-size="32" font-weight="800">到底哪些改动要写笔记?就这 6 种情况!</text>
|
||||
<text x="0" y="104" fill="#64748b" font-size="16">路径格式:{状态}/{种类}/日期-主题.md · 就这 6 个固定文件夹,多建一个 CI 都会打回</text>
|
||||
</g>
|
||||
|
||||
<!-- 6 BENTO CARDS (2 ROWS x 3 COLS) - ULTRA LEAN -->
|
||||
|
||||
<!-- ROW 1 -->
|
||||
<!-- 1. feature -->
|
||||
<g transform="translate(80, 160)">
|
||||
<rect x="0" y="0" width="380" height="260" rx="16" fill="#ffffff" stroke="#bae6fd" stroke-width="1.8" filter="url(#soft-shadow)"/>
|
||||
<path d="M 0 16 Q 0 0 16 0 L 364 0 Q 380 0 380 16 L 380 56 L 0 56 Z" fill="#f0f9ff"/>
|
||||
|
||||
<rect x="18" y="16" width="76" height="24" rx="5" fill="#e0f2fe"/>
|
||||
<text x="56" y="32" fill="#0284c7" font-size="12" font-weight="800" text-anchor="middle" class="code">feature</text>
|
||||
<text x="106" y="35" fill="#0369a1" font-size="17" font-weight="800">🌟 加了新功能</text>
|
||||
|
||||
<g transform="translate(20, 80)">
|
||||
<text x="0" y="18" fill="#0f172a" font-size="15" font-weight="800">用户看得见的新能力与非显然选择:</text>
|
||||
<rect x="0" y="36" width="340" height="115" rx="10" fill="#f8fafc" stroke="#e2e8f0" stroke-width="1.2"/>
|
||||
<g transform="translate(16, 24)">
|
||||
<text x="0" y="18" fill="#0284c7" font-size="13" font-weight="700">DSH 真实案例:</text>
|
||||
<text x="0" y="44" fill="#334155" font-size="12.5">• 存储层从文本换成 SQLite</text>
|
||||
<text x="0" y="68" fill="#334155" font-size="12.5">• 多 Agent 组队与共享任务认领</text>
|
||||
</g>
|
||||
</g>
|
||||
</g>
|
||||
|
||||
<!-- 2. bug-fix -->
|
||||
<g transform="translate(510, 160)">
|
||||
<rect x="0" y="0" width="380" height="260" rx="16" fill="#ffffff" stroke="#fecdd3" stroke-width="1.8" filter="url(#soft-shadow)"/>
|
||||
<path d="M 0 16 Q 0 0 16 0 L 364 0 Q 380 0 380 16 L 380 56 L 0 56 Z" fill="#fff1f2"/>
|
||||
|
||||
<rect x="18" y="16" width="76" height="24" rx="5" fill="#ffe4e6"/>
|
||||
<text x="56" y="32" fill="#e11d48" font-size="12" font-weight="800" text-anchor="middle" class="code">bug-fix</text>
|
||||
<text x="106" y="35" fill="#be123c" font-size="17" font-weight="800">🐛 踩坑大修复</text>
|
||||
|
||||
<g transform="translate(20, 80)">
|
||||
<text x="0" y="18" fill="#0f172a" font-size="15" font-weight="800">解决隐蔽故障,复盘把教训焊死:</text>
|
||||
<rect x="0" y="36" width="340" height="115" rx="10" fill="#f8fafc" stroke="#fecdd3" stroke-width="1.2"/>
|
||||
<g transform="translate(16, 24)">
|
||||
<text x="0" y="18" fill="#e11d48" font-size="13" font-weight="700">DSH 真实案例:</text>
|
||||
<text x="0" y="44" fill="#334155" font-size="12.5">• 修复多进程退火竞争导致的死锁</text>
|
||||
<text x="0" y="68" fill="#334155" font-size="12.5">• 修复 Python 进程结算隔离崩溃</text>
|
||||
</g>
|
||||
</g>
|
||||
</g>
|
||||
|
||||
<!-- 3. simplification -->
|
||||
<g transform="translate(940, 160)">
|
||||
<rect x="0" y="0" width="380" height="260" rx="16" fill="#ffffff" stroke="#a7f3d0" stroke-width="1.8" filter="url(#soft-shadow)"/>
|
||||
<path d="M 0 16 Q 0 0 16 0 L 364 0 Q 380 0 380 16 L 380 56 L 0 56 Z" fill="#f0fdf4"/>
|
||||
|
||||
<rect x="18" y="16" width="108" height="24" rx="5" fill="#dcfce7"/>
|
||||
<text x="72" y="32" fill="#059669" font-size="11" font-weight="800" text-anchor="middle" class="code">simplification</text>
|
||||
<text x="136" y="35" fill="#065f46" font-size="17" font-weight="800">✂️ 删繁就简</text>
|
||||
|
||||
<g transform="translate(20, 80)">
|
||||
<text x="0" y="18" fill="#0f172a" font-size="15" font-weight="800">只删不增!裁撤历史多余包袱:</text>
|
||||
<rect x="0" y="36" width="340" height="115" rx="10" fill="#f8fafc" stroke="#a7f3d0" stroke-width="1.2"/>
|
||||
<g transform="translate(16, 24)">
|
||||
<text x="0" y="18" fill="#059669" font-size="13" font-weight="700">DSH 真实案例:</text>
|
||||
<text x="0" y="44" fill="#334155" font-size="12.5">• 删掉 SQLite 存储层,全量瘦身成 JSONL</text>
|
||||
<text x="0" y="68" fill="#334155" font-size="12.5">• 删掉手写工具,直接复用系统命令</text>
|
||||
</g>
|
||||
</g>
|
||||
</g>
|
||||
|
||||
<!-- ROW 2 -->
|
||||
<!-- 4. architecture -->
|
||||
<g transform="translate(80, 455)">
|
||||
<rect x="0" y="0" width="380" height="260" rx="16" fill="#ffffff" stroke="#ddd6fe" stroke-width="1.8" filter="url(#soft-shadow)"/>
|
||||
<path d="M 0 16 Q 0 0 16 0 L 364 0 Q 380 0 380 16 L 380 56 L 0 56 Z" fill="#faf5ff"/>
|
||||
|
||||
<rect x="18" y="16" width="94" height="24" rx="5" fill="#f3e8ff"/>
|
||||
<text x="65" y="32" fill="#7c3aed" font-size="11" font-weight="800" text-anchor="middle" class="code">architecture</text>
|
||||
<text x="122" y="35" fill="#5b21b6" font-size="17" font-weight="800">🏛️ 骨架与分家</text>
|
||||
|
||||
<g transform="translate(20, 80)">
|
||||
<text x="0" y="18" fill="#0f172a" font-size="15" font-weight="800">模块物理切分、包之间的边界:</text>
|
||||
<rect x="0" y="36" width="340" height="115" rx="10" fill="#f8fafc" stroke="#ddd6fe" stroke-width="1.2"/>
|
||||
<g transform="translate(16, 24)">
|
||||
<text x="0" y="18" fill="#7c3aed" font-size="13" font-weight="700">DSH 真实案例:</text>
|
||||
<text x="0" y="44" fill="#334155" font-size="12.5">• 规定插件只准调接口,绝不碰实现</text>
|
||||
<text x="0" y="68" fill="#334155" font-size="12.5">• 网页端功能拆成独立包单独发布</text>
|
||||
</g>
|
||||
</g>
|
||||
</g>
|
||||
|
||||
<!-- 5. process -->
|
||||
<g transform="translate(510, 455)">
|
||||
<rect x="0" y="0" width="380" height="260" rx="16" fill="#ffffff" stroke="#fde68a" stroke-width="1.8" filter="url(#soft-shadow)"/>
|
||||
<path d="M 0 16 Q 0 0 16 0 L 364 0 Q 380 0 380 16 L 380 56 L 0 56 Z" fill="#fffbeb"/>
|
||||
|
||||
<rect x="18" y="16" width="76" height="24" rx="5" fill="#fef3c7"/>
|
||||
<text x="56" y="32" fill="#d97706" font-size="12" font-weight="800" text-anchor="middle" class="code">process</text>
|
||||
<text x="106" y="35" fill="#92400e" font-size="17" font-weight="800">⚙️ 协作与工具</text>
|
||||
|
||||
<g transform="translate(20, 80)">
|
||||
<text x="0" y="18" fill="#0f172a" font-size="15" font-weight="800">围绕代码运转的检查、发布规矩:</text>
|
||||
<rect x="0" y="36" width="340" height="115" rx="10" fill="#f8fafc" stroke="#fde68a" stroke-width="1.2"/>
|
||||
<g transform="translate(16, 24)">
|
||||
<text x="0" y="18" fill="#d97706" font-size="13" font-weight="700">DSH 真实案例:</text>
|
||||
<text x="0" y="44" fill="#334155" font-size="12.5">• 强制每个包 README 必须写缺陷限制</text>
|
||||
<text x="0" y="68" fill="#334155" font-size="12.5">• 制定多个堆叠 PR 顺序合并的规矩</text>
|
||||
</g>
|
||||
</g>
|
||||
</g>
|
||||
|
||||
<!-- 6. testing -->
|
||||
<g transform="translate(940, 455)">
|
||||
<rect x="0" y="0" width="380" height="260" rx="16" fill="#ffffff" stroke="#bfdbfe" stroke-width="1.8" filter="url(#soft-shadow)"/>
|
||||
<path d="M 0 16 Q 0 0 16 0 L 364 0 Q 380 0 380 16 L 380 56 L 0 56 Z" fill="#eff6ff"/>
|
||||
|
||||
<rect x="18" y="16" width="76" height="24" rx="5" fill="#dbeafe"/>
|
||||
<text x="56" y="32" fill="#2563eb" font-size="12" font-weight="800" text-anchor="middle" class="code">testing</text>
|
||||
<text x="106" y="35" fill="#1e40af" font-size="17" font-weight="800">🧪 测试写稳妥</text>
|
||||
|
||||
<g transform="translate(20, 80)">
|
||||
<text x="0" y="18" fill="#0f172a" font-size="15" font-weight="800">专门消灭偶发报错的假警报用例:</text>
|
||||
<rect x="0" y="36" width="340" height="115" rx="10" fill="#f8fafc" stroke="#bfdbfe" stroke-width="1.2"/>
|
||||
<g transform="translate(16, 24)">
|
||||
<text x="0" y="18" fill="#2563eb" font-size="13" font-weight="700">DSH 真实案例:</text>
|
||||
<text x="0" y="44" fill="#334155" font-size="12.5">• 随机分配空闲端口,防并发冲突</text>
|
||||
<text x="0" y="68" fill="#334155" font-size="12.5">• 解决苹果/Windows时间戳精度大坑</text>
|
||||
</g>
|
||||
</g>
|
||||
</g>
|
||||
|
||||
<!-- BOTTOM STRIP -->
|
||||
<g transform="translate(80, 740)">
|
||||
<rect x="0" y="0" width="1240" height="75" rx="12" fill="#ffffff" stroke="#cbd5e1" stroke-width="1.5" filter="url(#soft-shadow)"/>
|
||||
<text x="24" y="30" fill="#d97706" font-size="14" font-weight="800">💡 为什么没有 refactor(重构)目录?</text>
|
||||
<text x="24" y="54" fill="#334155" font-size="13">对外表现出来的功能变了?归入 <tspan fill="#0284c7" font-weight="700">feature / bug-fix</tspan>;功能完全没变、纯粹删繁就简?直接归入 <tspan fill="#059669" font-weight="700">simplification</tspan>!</text>
|
||||
</g>
|
||||
</svg>
|
||||
|
After Width: | Height: | Size: 9.6 KiB |
|
After Width: | Height: | Size: 440 KiB |
@@ -0,0 +1,134 @@
|
||||
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1400 860" width="100%" height="100%">
|
||||
<defs>
|
||||
<pattern id="light-grid" width="32" height="32" patternUnits="userSpaceOnUse">
|
||||
<path d="M 32 0 L 0 0 0 32" fill="none" stroke="#e2e8f0" stroke-width="0.75"/>
|
||||
</pattern>
|
||||
<filter id="soft-shadow" x="-5%" y="-5%" width="110%" height="110%">
|
||||
<feDropShadow dx="0" dy="6" stdDeviation="12" flood-color="#0f172a" flood-opacity="0.06"/>
|
||||
</filter>
|
||||
</defs>
|
||||
|
||||
<style>
|
||||
@import url('https://fonts.googleapis.com/css2?family=JetBrains+Mono:wght@400;600;700;800&display=swap');
|
||||
text {
|
||||
font-family: -apple-system, 'PingFang SC', 'Noto Sans SC', 'Segoe UI', 'JetBrains Mono', sans-serif;
|
||||
}
|
||||
.code { font-family: 'JetBrains Mono', monospace; }
|
||||
</style>
|
||||
|
||||
<!-- Background -->
|
||||
<rect width="100%" height="100%" fill="#f8fafc"/>
|
||||
<rect width="100%" height="100%" fill="url(#light-grid)"/>
|
||||
|
||||
<!-- HEADER -->
|
||||
<g transform="translate(80, 50)">
|
||||
<rect x="0" y="0" width="150" height="28" rx="14" fill="#f3e8ff" stroke="#7c3aed" stroke-width="1.2"/>
|
||||
<text x="75" y="19" fill="#6d28d9" font-size="12" font-weight="800" text-anchor="middle" letter-spacing="0.5">图 3 · 真实笔记解剖</text>
|
||||
<text x="0" y="70" fill="#0f172a" font-size="32" font-weight="800">一篇合格的 Note 到底长啥样?只填 4 个空!</text>
|
||||
</g>
|
||||
|
||||
<!-- MAIN BODY -->
|
||||
<!-- LEFT: DOCUMENT MOCKUP (740px) -->
|
||||
<g transform="translate(80, 150)">
|
||||
<rect x="0" y="0" width="750" height="660" rx="20" fill="#ffffff" stroke="#bae6fd" stroke-width="2" filter="url(#soft-shadow)"/>
|
||||
<path d="M 0 20 Q 0 0 20 0 L 730 0 Q 750 0 750 20 L 750 56 L 0 56 Z" fill="#f0f9ff"/>
|
||||
<circle cx="28" cy="28" r="7" fill="#0284c7"/>
|
||||
<text x="46" y="34" fill="#0369a1" font-size="14.5" font-weight="800">DSH 真实笔记:.agents/notes/implemented/simplification/2026-08-30-jsonl-only.md</text>
|
||||
|
||||
<g transform="translate(26, 75)">
|
||||
<rect x="0" y="0" width="698" height="555" rx="12" fill="#f8fafc" stroke="#cbd5e1" stroke-width="1.2"/>
|
||||
|
||||
<g transform="translate(24, 25)">
|
||||
<!-- Headers -->
|
||||
<text x="0" y="18" fill="#059669" font-size="14.5" font-weight="800" class="code"># Agent Note: JSONL-only first-party Session persistence</text>
|
||||
<text x="0" y="44" fill="#0284c7" font-size="13" font-weight="700" class="code">Status: implemented</text>
|
||||
<line x1="0" y1="58" x2="650" y2="58" stroke="#e2e8f0" stroke-width="1.5"/>
|
||||
|
||||
<!-- Section 1 -->
|
||||
<g transform="translate(0, 75)">
|
||||
<text x="0" y="16" fill="#b45309" font-size="13.5" font-weight="800" class="code">## Problem (遇到的棘手问题)</text>
|
||||
<text x="0" y="42" fill="#334155" font-size="12.5">同时维护 JSONL 和 SQLite 导致跨平台测试和迁移规则全部翻倍,包袱过重。</text>
|
||||
</g>
|
||||
|
||||
<!-- Section 2 -->
|
||||
<g transform="translate(0, 150)">
|
||||
<text x="0" y="16" fill="#059669" font-size="13.5" font-weight="800" class="code">## Decision (现在时客观事实)</text>
|
||||
<text x="0" y="42" fill="#334155" font-size="12.5">首方存储全量瘦身为纯 JSONL。彻底删除 SQLite 存储包,坚决只留一种单物理格式!</text>
|
||||
</g>
|
||||
|
||||
<!-- Section 3 -->
|
||||
<g transform="translate(0, 225)">
|
||||
<rect x="-8" y="0" width="666" height="135" rx="8" fill="#fffbeb" stroke="#fde68a" stroke-width="1.4"/>
|
||||
<g transform="translate(14, 20)">
|
||||
<text x="0" y="14" fill="#b45309" font-size="13.5" font-weight="800" class="code">## Alternatives considered (被否决的备选方案)</text>
|
||||
<text x="0" y="40" fill="#78350f" font-size="12">• <tspan font-weight="700">保留 SQLite 作为可选后端</tspan>:看似灵活,但会让 CI 矩阵无限膨胀,否决!</text>
|
||||
<text x="0" y="66" fill="#78350f" font-size="12">• <tspan font-weight="700">保留只读 SQLite 导入包</tspan>:没有实际部署需求,纯属过度设计,否决!</text>
|
||||
<text x="0" y="92" fill="#78350f" font-size="12">• <tspan font-weight="700">把搜索数据库拿来当主存储</tspan>:将可丢弃的缓存与持久化混为一谈,否决!</text>
|
||||
</g>
|
||||
</g>
|
||||
|
||||
<!-- Section 4 -->
|
||||
<g transform="translate(0, 385)">
|
||||
<text x="0" y="16" fill="#7c3aed" font-size="13.5" font-weight="800" class="code">## Consequences (收益与真实代价)</text>
|
||||
<text x="0" y="42" fill="#334155" font-size="12.5">• <tspan fill="#059669" font-weight="700">收益</tspan>:首方架构大幅简化,格式迁移无需跨库事务,削减海量测试成本。</text>
|
||||
<text x="0" y="68" fill="#e11d48" font-size="12.5">• <tspan fill="#e11d48" font-weight="700">代价</tspan>:不再开箱兼容老旧的 SQLite 文件,需要用户在升级前手动导出。</text>
|
||||
</g>
|
||||
</g>
|
||||
</g>
|
||||
</g>
|
||||
|
||||
<!-- RIGHT: SUPER LEAN RULES (470px) -->
|
||||
<g transform="translate(860, 150)">
|
||||
<!-- Box 1: 4 Core Sections -->
|
||||
<g transform="translate(0, 0)">
|
||||
<rect x="0" y="0" width="460" height="315" rx="20" fill="#ffffff" stroke="#a7f3d0" stroke-width="2" filter="url(#soft-shadow)"/>
|
||||
<path d="M 0 20 Q 0 0 20 0 L 440 0 Q 460 0 460 20 L 460 56 L 0 56 Z" fill="#f0fdf4"/>
|
||||
<circle cx="28" cy="28" r="12" fill="#059669"/>
|
||||
<text x="28" y="33" fill="#ffffff" font-size="12" font-weight="800" text-anchor="middle">✓</text>
|
||||
<text x="50" y="34" fill="#065f46" font-size="17" font-weight="800">4 个填空分别回答什么?</text>
|
||||
|
||||
<g transform="translate(24, 80)">
|
||||
<text x="0" y="18" fill="#b45309" font-size="14" font-weight="800">1. Problem</text>
|
||||
<text x="145" y="18" fill="#334155" font-size="14">当时遇到了什么大麻烦?</text>
|
||||
|
||||
<text x="0" y="58" fill="#059669" font-size="14" font-weight="800">2. Decision</text>
|
||||
<text x="145" y="58" fill="#334155" font-size="14">现在用什么方案彻底解决?</text>
|
||||
|
||||
<text x="0" y="98" fill="#d97706" font-size="14" font-weight="800">3. Alternatives</text>
|
||||
<text x="145" y="98" fill="#334155" font-size="14">毙掉了谁?为啥不要它?</text>
|
||||
|
||||
<text x="0" y="138" fill="#7c3aed" font-size="14" font-weight="800">4. Consequences</text>
|
||||
<text x="145" y="138" fill="#334155" font-size="14">得了啥好处?有啥坏处?</text>
|
||||
|
||||
<rect x="0" y="170" width="412" height="42" rx="8" fill="#f0fdf4"/>
|
||||
<text x="206" y="196" fill="#047857" font-size="13" font-weight="800" text-anchor="middle">⏱ 就像填空题一样,200字搞定!</text>
|
||||
</g>
|
||||
</g>
|
||||
|
||||
<!-- Box 2: CI Red Flags -->
|
||||
<g transform="translate(0, 345)">
|
||||
<rect x="0" y="0" width="460" height="315" rx="20" fill="#ffffff" stroke="#fecdd3" stroke-width="2" filter="url(#soft-shadow)"/>
|
||||
<path d="M 0 20 Q 0 0 20 0 L 440 0 Q 460 0 460 20 L 460 56 L 0 56 Z" fill="#fff1f2"/>
|
||||
<circle cx="28" cy="28" r="12" fill="#e11d48"/>
|
||||
<text x="28" y="33" fill="#ffffff" font-size="12" font-weight="800" text-anchor="middle">!</text>
|
||||
<text x="50" y="34" fill="#be123c" font-size="17" font-weight="800">CI 门禁打回两张红牌:</text>
|
||||
|
||||
<g transform="translate(24, 85)">
|
||||
<rect x="0" y="0" width="412" height="60" rx="10" fill="#fff1f2"/>
|
||||
<text x="16" y="24" fill="#e11d48" font-size="14" font-weight="800">🚫 红牌 1:严禁吹牛画大饼</text>
|
||||
<text x="16" y="46" fill="#9f1239" font-size="12">已落地笔记敢写“后续计划支持”?直接报错!</text>
|
||||
|
||||
<g transform="translate(0, 75)">
|
||||
<rect x="0" y="0" width="412" height="60" rx="10" fill="#fff1f2"/>
|
||||
<text x="16" y="24" fill="#e11d48" font-size="14" font-weight="800">🚫 红牌 2:严禁偷懒不写备选</text>
|
||||
<text x="16" y="46" fill="#9f1239" font-size="12">不写放弃了谁、没有对比?判定为敷衍打回!</text>
|
||||
</g>
|
||||
|
||||
<g transform="translate(0, 150)">
|
||||
<rect x="0" y="0" width="412" height="42" rx="8" fill="#faf5ff"/>
|
||||
<text x="206" y="26" fill="#7c3aed" font-size="13" font-weight="800" text-anchor="middle">🛡 机器人严格验货,只收硬核事实!</text>
|
||||
</g>
|
||||
</g>
|
||||
</g>
|
||||
</g>
|
||||
</svg>
|
||||
|
After Width: | Height: | Size: 8.1 KiB |
|
After Width: | Height: | Size: 490 KiB |
@@ -0,0 +1,161 @@
|
||||
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1400 880" width="100%" height="100%">
|
||||
<defs>
|
||||
<pattern id="light-grid" width="32" height="32" patternUnits="userSpaceOnUse">
|
||||
<path d="M 32 0 L 0 0 0 32" fill="none" stroke="#e2e8f0" stroke-width="0.75"/>
|
||||
</pattern>
|
||||
<filter id="soft-shadow" x="-5%" y="-5%" width="110%" height="110%">
|
||||
<feDropShadow dx="0" dy="6" stdDeviation="10" flood-color="#0f172a" flood-opacity="0.06"/>
|
||||
</filter>
|
||||
</defs>
|
||||
|
||||
<style>
|
||||
@import url('https://fonts.googleapis.com/css2?family=JetBrains+Mono:wght@400;600;700&display=swap');
|
||||
text {
|
||||
font-family: -apple-system, 'PingFang SC', 'Noto Sans SC', 'Segoe UI', 'JetBrains Mono', sans-serif;
|
||||
}
|
||||
.code { font-family: 'JetBrains Mono', monospace; }
|
||||
</style>
|
||||
|
||||
<!-- Background -->
|
||||
<rect width="100%" height="100%" fill="#f8fafc"/>
|
||||
<rect width="100%" height="100%" fill="url(#light-grid)"/>
|
||||
|
||||
<!-- HEADER -->
|
||||
<g transform="translate(60, 45)">
|
||||
<rect x="0" y="0" width="220" height="28" rx="14" fill="#e0f2fe" stroke="#0284c7" stroke-width="1.2"/>
|
||||
<text x="110" y="19" fill="#0369a1" font-size="12" font-weight="700" text-anchor="middle" letter-spacing="0.5">图 4 · DSH 真实分流实战</text>
|
||||
<text x="0" y="68" fill="#0f172a" font-size="28" font-weight="800">DSH 真实场景三档分流:我这次改动到底属于哪一档?</text>
|
||||
<text x="0" y="98" fill="#475569" font-size="14.5">结合 DSH 真实提交记录 ➔ 本项目提供模板与 verify-agent-note-* 脚本自动化核对</text>
|
||||
</g>
|
||||
|
||||
<!-- 3 CARDS -->
|
||||
|
||||
<!-- TIER 1: 80% IN PLACE -->
|
||||
<g transform="translate(60, 145)">
|
||||
<rect x="0" y="0" width="390" height="680" rx="16" fill="#ffffff" stroke="#059669" stroke-width="2.2" filter="url(#soft-shadow)"/>
|
||||
<path d="M 0 16 Q 0 0 16 0 L 374 0 Q 390 0 390 16 L 390 56 L 0 56 Z" fill="#f0fdf4"/>
|
||||
|
||||
<rect x="18" y="16" width="110" height="24" rx="5" fill="#dcfce7"/>
|
||||
<text x="73" y="32" fill="#065f46" font-size="11.5" font-weight="800" text-anchor="middle">DSH 占 80% 大头</text>
|
||||
<text x="140" y="34" fill="#047857" font-size="15.5" font-weight="800">第 1 档:原地改两行</text>
|
||||
|
||||
<g transform="translate(24, 76)">
|
||||
<text x="0" y="18" fill="#0f172a" font-size="14" font-weight="800">【DSH 真实场景】:</text>
|
||||
<text x="0" y="44" fill="#334155" font-size="12.5">既有功能的内部优化、接口签名改动、</text>
|
||||
<text x="0" y="68" fill="#334155" font-size="12.5">文件挪动路径,或者调整默认配置。</text>
|
||||
<text x="0" y="92" fill="#047857" font-size="12.5" font-weight="700">这块功能此前已经有一篇成熟的 Note。</text>
|
||||
|
||||
<!-- Realistic DSH example box -->
|
||||
<g transform="translate(0, 115)">
|
||||
<rect x="0" y="0" width="342" height="110" rx="8" fill="#f0fdf4" stroke="#a7f3d0" stroke-width="1.2"/>
|
||||
<text x="14" y="24" fill="#059669" font-size="12" font-weight="800">📜 DSH 真实案例:</text>
|
||||
<text x="14" y="48" fill="#065f46" font-size="11">在重构 `ui-conversation` 输入框时,</text>
|
||||
<text x="14" y="70" fill="#065f46" font-size="11">DSH 工程师直接就地修改已有的</text>
|
||||
<text x="14" y="92" fill="#0369a1" font-size="10" class="code">2026-07-25-web-input-machine.md</text>
|
||||
</g>
|
||||
|
||||
<!-- Action Box -->
|
||||
<g transform="translate(0, 245)">
|
||||
<text x="0" y="18" fill="#0f172a" font-size="14" font-weight="800">你只需要做:</text>
|
||||
|
||||
<g transform="translate(0, 32)">
|
||||
<rect x="0" y="0" width="342" height="205" rx="8" fill="#f8fafc" stroke="#cbd5e1" stroke-width="1.2"/>
|
||||
<text x="16" y="30" fill="#059669" font-size="14" font-weight="800">打开老笔记,直接就地修改!</text>
|
||||
<text x="16" y="60" fill="#334155" font-size="12">• 修正事实(类名、路径、默认参数)</text>
|
||||
<text x="16" y="86" fill="#be123c" font-size="12" font-weight="700">• 严禁开新文件!(绝不开新篇稀释注意力)</text>
|
||||
<text x="16" y="112" fill="#be123c" font-size="12" font-weight="700">• 严禁记流水账!(别写几月几号改了啥)</text>
|
||||
<text x="16" y="138" fill="#334155" font-size="12">• 笔记永远代表系统“现行的法律”!</text>
|
||||
|
||||
<rect x="16" y="158" width="310" height="30" rx="5" fill="#dcfce7"/>
|
||||
<text x="171" y="178" fill="#15803d" font-size="11.5" font-weight="800" text-anchor="middle">⏱ 耗时:30 秒改两行,老笔记永久保鲜!</text>
|
||||
</g>
|
||||
</g>
|
||||
</g>
|
||||
</g>
|
||||
|
||||
<!-- TIER 2: EXEMPT (RED) -->
|
||||
<g transform="translate(485, 145)">
|
||||
<rect x="0" y="0" width="390" height="680" rx="16" fill="#ffffff" stroke="#e11d48" stroke-width="1.8" filter="url(#soft-shadow)"/>
|
||||
<path d="M 0 16 Q 0 0 16 0 L 374 0 Q 390 0 390 16 L 390 56 L 0 56 Z" fill="#fff1f2"/>
|
||||
|
||||
<rect x="18" y="16" width="100" height="24" rx="5" fill="#ffe4e6"/>
|
||||
<text x="68" y="32" fill="#be123c" font-size="11.5" font-weight="800" text-anchor="middle">一律不写</text>
|
||||
<text x="130" y="34" fill="#be123c" font-size="15.5" font-weight="800">第 2 档:纯提交,别找事</text>
|
||||
|
||||
<g transform="translate(24, 76)">
|
||||
<text x="0" y="18" fill="#0f172a" font-size="14" font-weight="800">【DSH 真实场景】:</text>
|
||||
<text x="0" y="44" fill="#334155" font-size="12.5">代码逻辑毫无改变的小改动,</text>
|
||||
<text x="0" y="68" fill="#334155" font-size="12.5">半年后绝对没有任何人会问</text>
|
||||
<text x="0" y="92" fill="#334155" font-size="12.5">“当时为什么这么选”。</text>
|
||||
|
||||
<!-- Realistic DSH example box -->
|
||||
<g transform="translate(0, 115)">
|
||||
<rect x="0" y="0" width="342" height="110" rx="8" fill="#fff1f2" stroke="#fecdd3" stroke-width="1.2"/>
|
||||
<text x="14" y="24" fill="#e11d48" font-size="12" font-weight="800">📜 DSH 真实案例:</text>
|
||||
<text x="14" y="48" fill="#9f1239" font-size="10.5" class="code">commit: caf386f59c (修复测试命名)</text>
|
||||
<text x="14" y="70" fill="#9f1239" font-size="11">• 纯代码格式化 / Prettier 换行缩进</text>
|
||||
<text x="14" y="92" fill="#9f1239" font-size="11">• 给 Git 打 Release Tag / 依赖包小升级</text>
|
||||
</g>
|
||||
|
||||
<!-- Action Box -->
|
||||
<g transform="translate(0, 245)">
|
||||
<text x="0" y="18" fill="#0f172a" font-size="14" font-weight="800">你只需要做:</text>
|
||||
|
||||
<g transform="translate(0, 32)">
|
||||
<rect x="0" y="0" width="342" height="205" rx="8" fill="#f8fafc" stroke="#cbd5e1" stroke-width="1.2"/>
|
||||
<text x="16" y="30" fill="#be123c" font-size="14" font-weight="800">直接提交代码,严禁写笔记!</text>
|
||||
<text x="16" y="60" fill="#334155" font-size="12">• 不要给自己强行加戏</text>
|
||||
<text x="16" y="86" fill="#be123c" font-size="12" font-weight="700">• 为这种小事写 Note 只会污染仓库!</text>
|
||||
<text x="16" y="112" fill="#334155" font-size="12">• 保持目录树的绝对纯净</text>
|
||||
<text x="16" y="138" fill="#334155" font-size="12">• 直接 git commit 推代码!</text>
|
||||
|
||||
<rect x="16" y="158" width="310" height="30" rx="5" fill="#ffe4e6"/>
|
||||
<text x="171" y="178" fill="#be123c" font-size="11.5" font-weight="800" text-anchor="middle">⏱ 耗时:0 秒,直接提交!</text>
|
||||
</g>
|
||||
</g>
|
||||
</g>
|
||||
</g>
|
||||
|
||||
<!-- TIER 3: MAJOR (AMBER) -->
|
||||
<g transform="translate(910, 145)">
|
||||
<rect x="0" y="0" width="430" height="680" rx="16" fill="#ffffff" stroke="#d97706" stroke-width="1.8" filter="url(#shadow)"/>
|
||||
<path d="M 0 16 Q 0 0 16 0 L 414 0 Q 430 0 430 16 L 430 56 L 0 56 Z" fill="#fffbeb"/>
|
||||
|
||||
<rect x="18" y="16" width="110" height="24" rx="5" fill="#fef3c7"/>
|
||||
<text x="73" y="32" fill="#92400e" font-size="11.5" font-weight="800" text-anchor="middle">重大技术选型</text>
|
||||
<text x="140" y="34" fill="#92400e" font-size="15.5" font-weight="800">第 3 档:新开一篇留痕</text>
|
||||
|
||||
<g transform="translate(24, 76)">
|
||||
<text x="0" y="18" fill="#0f172a" font-size="14" font-weight="800">【DSH 真实场景】:</text>
|
||||
<text x="0" y="44" fill="#334155" font-size="12.5">做了全新架构设计,选了 A 淘汰了 B、C。</text>
|
||||
<text x="0" y="68" fill="#334155" font-size="12.5">半年后新来的 AI 看到代码,</text>
|
||||
<text x="0" y="92" fill="#334155" font-size="12.5">必定会好奇“当初为啥不用更简单的 B 呢?”</text>
|
||||
|
||||
<!-- Realistic DSH example box -->
|
||||
<g transform="translate(0, 115)">
|
||||
<rect x="0" y="0" width="382" height="110" rx="8" fill="#fffbeb" stroke="#fde68a" stroke-width="1.2"/>
|
||||
<text x="14" y="24" fill="#d97706" font-size="12" font-weight="800">📜 DSH 真实案例:</text>
|
||||
<text x="14" y="48" fill="#78350f" font-size="10.5" class="code">2026-08-05-agent-teams.md</text>
|
||||
<text x="14" y="68" fill="#78350f" font-size="11">设计全新的 Agent 组队、邮箱与任务认领机制</text>
|
||||
<text x="14" y="90" fill="#0284c7" font-size="11" font-weight="700">★ 套用本项目 templates/implemented.md 模板</text>
|
||||
</g>
|
||||
|
||||
<!-- Action Box -->
|
||||
<g transform="translate(0, 245)">
|
||||
<text x="0" y="18" fill="#0f172a" font-size="14" font-weight="800">你只需要做:</text>
|
||||
|
||||
<g transform="translate(0, 32)">
|
||||
<rect x="0" y="0" width="382" height="205" rx="8" fill="#f8fafc" stroke="#cbd5e1" stroke-width="1.2"/>
|
||||
<text x="16" y="30" fill="#d97706" font-size="14" font-weight="800">按模板填 4 个空(总共200字)</text>
|
||||
<text x="16" y="58" fill="#334155" font-size="12">1. 遇到啥问题? 2. 拍板了啥方案?</text>
|
||||
<text x="16" y="82" fill="#334155" font-size="12">3. 毙掉了谁、为啥不要它? 4. 有啥代价?</text>
|
||||
<text x="16" y="108" fill="#0284c7" font-size="12" font-weight="700">★ 在代码入口贴一行 // Note: 见笔记...</text>
|
||||
<text x="16" y="132" fill="#059669" font-size="11.5" font-weight="700">跑 verify-agent-note-* 校验并随代码提交!</text>
|
||||
|
||||
<rect x="16" y="158" width="350" height="30" rx="5" fill="#fef3c7"/>
|
||||
<text x="191" y="178" fill="#92400e" font-size="11.5" font-weight="800" text-anchor="middle">⏱ 耗时:3 分钟写完,给代码装上护栏!</text>
|
||||
</g>
|
||||
</g>
|
||||
</g>
|
||||
</g>
|
||||
</svg>
|
||||
|
After Width: | Height: | Size: 10 KiB |
|
After Width: | Height: | Size: 452 KiB |
@@ -0,0 +1,146 @@
|
||||
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1400 880" width="100%" height="100%">
|
||||
<defs>
|
||||
<pattern id="light-grid" width="32" height="32" patternUnits="userSpaceOnUse">
|
||||
<path d="M 32 0 L 0 0 0 32" fill="none" stroke="#e2e8f0" stroke-width="0.75"/>
|
||||
</pattern>
|
||||
<filter id="soft-shadow" x="-5%" y="-5%" width="110%" height="110%">
|
||||
<feDropShadow dx="0" dy="6" stdDeviation="10" flood-color="#0f172a" flood-opacity="0.06"/>
|
||||
</filter>
|
||||
|
||||
<marker id="loop-blue" markerWidth="8" markerHeight="6" refX="7" refY="3" orient="auto">
|
||||
<polygon points="0 0, 8 3, 0 6" fill="#0284c7"/>
|
||||
</marker>
|
||||
<marker id="loop-green" markerWidth="8" markerHeight="6" refX="7" refY="3" orient="auto">
|
||||
<polygon points="0 0, 8 3, 0 6" fill="#059669"/>
|
||||
</marker>
|
||||
<marker id="loop-purple" markerWidth="8" markerHeight="6" refX="7" refY="3" orient="auto">
|
||||
<polygon points="0 0, 8 3, 0 6" fill="#7c3aed"/>
|
||||
</marker>
|
||||
</defs>
|
||||
|
||||
<style>
|
||||
@import url('https://fonts.googleapis.com/css2?family=JetBrains+Mono:wght@400;600;700&display=swap');
|
||||
text {
|
||||
font-family: -apple-system, 'PingFang SC', 'Noto Sans SC', 'Segoe UI', 'JetBrains Mono', sans-serif;
|
||||
}
|
||||
.code { font-family: 'JetBrains Mono', monospace; }
|
||||
</style>
|
||||
|
||||
<!-- Background -->
|
||||
<rect width="100%" height="100%" fill="#f8fafc"/>
|
||||
<rect width="100%" height="100%" fill="url(#light-grid)"/>
|
||||
|
||||
<!-- HEADER -->
|
||||
<g transform="translate(60, 45)">
|
||||
<rect x="0" y="0" width="190" height="28" rx="14" fill="#f3e8ff" stroke="#7c3aed" stroke-width="1.2"/>
|
||||
<text x="95" y="19" fill="#6d28d9" font-size="12" font-weight="700" text-anchor="middle" letter-spacing="0.5">图 5 · 真实工程闭环</text>
|
||||
<text x="0" y="68" fill="#0f172a" font-size="28" font-weight="800">DSH 源码闭环回路:代码与 Note 是怎么自我维持的?</text>
|
||||
<text x="0" y="98" fill="#475569" font-size="14.5">挂指针 ➔ 咬合上下文 ➔ 双轨提交 ➔ CI 机械验货 ➔ 合入主干成为下一代 AI 的基线</text>
|
||||
</g>
|
||||
|
||||
<!-- MAIN CIRCULAR LOOP CONTAINER -->
|
||||
<g transform="translate(60, 150)">
|
||||
<rect x="0" y="0" width="1280" height="660" rx="16" fill="#ffffff" stroke="#cbd5e1" stroke-width="1.6" filter="url(#soft-shadow)"/>
|
||||
|
||||
<!-- STEP 1 (TOP-LEFT): IN-CODE ANCHOR -->
|
||||
<g transform="translate(50, 40)">
|
||||
<rect x="0" y="0" width="540" height="220" rx="12" fill="#ffffff" stroke="#bae6fd" stroke-width="2" filter="url(#soft-shadow)"/>
|
||||
<path d="M 0 12 Q 0 0 12 0 L 528 0 Q 540 0 540 12 L 540 44 L 0 44 Z" fill="#f0f9ff"/>
|
||||
<circle cx="22" cy="22" r="10" fill="#0284c7"/>
|
||||
<text x="22" y="26" fill="#ffffff" font-size="11" font-weight="800" text-anchor="middle">1</text>
|
||||
<text x="42" y="27" fill="#0369a1" font-size="14" font-weight="800">代码挂物理指针(In-Code Pointer)</text>
|
||||
|
||||
<g transform="translate(20, 60)">
|
||||
<text x="0" y="16" fill="#0f172a" font-size="12.5" font-weight="700">DSH 源码真实写法(全库共 816 处):</text>
|
||||
<rect x="0" y="26" width="500" height="64" rx="6" fill="#f8fafc" stroke="#cbd5e1" stroke-width="1"/>
|
||||
<text x="12" y="48" fill="#0284c7" font-size="11" class="code">/** ui-conversation/src/client/input/decorations.ts:3 */</text>
|
||||
<text x="12" y="68" fill="#0369a1" font-size="11" class="code">* see .agents/notes/implemented/.../web-input-machine.md</text>
|
||||
|
||||
<text x="0" y="112" fill="#475569" font-size="12">💡 作用:任何 AI 只要来读这个函数,这行注释就 100% 强行灌入 Context,</text>
|
||||
<text x="0" y="132" fill="#0284c7" font-size="12" font-weight="700">不靠 AI 自觉、不用向量检索,物理级确定性拦截!</text>
|
||||
</g>
|
||||
</g>
|
||||
|
||||
<!-- ARROW 1 -> 2 (TOP HORIZONTAL) -->
|
||||
<path d="M 600 150 L 680 150" stroke="#0284c7" stroke-width="3" marker-end="url(#loop-blue)"/>
|
||||
<rect x="612" y="125" width="60" height="22" rx="4" fill="#e0f2fe"/>
|
||||
<text x="642" y="140" fill="#0369a1" font-size="10.5" font-weight="700" text-anchor="middle">顺藤摸瓜</text>
|
||||
|
||||
<!-- STEP 2 (TOP-RIGHT): CONTEXT INGESTION -->
|
||||
<g transform="translate(690, 40)">
|
||||
<rect x="0" y="0" width="540" height="220" rx="12" fill="#ffffff" stroke="#fde68a" stroke-width="2" filter="url(#soft-shadow)"/>
|
||||
<path d="M 0 12 Q 0 0 12 0 L 528 0 Q 540 0 540 12 L 540 44 L 0 44 Z" fill="#fffbeb"/>
|
||||
<circle cx="22" cy="22" r="10" fill="#d97706"/>
|
||||
<text x="22" y="26" fill="#ffffff" font-size="11" font-weight="800" text-anchor="middle">2</text>
|
||||
<text x="42" y="27" fill="#92400e" font-size="14" font-weight="800">AI 上下文自动咬合(Learn Constraints)</text>
|
||||
|
||||
<g transform="translate(20, 60)">
|
||||
<text x="0" y="16" fill="#0f172a" font-size="12.5" font-weight="700">AI 读取对应 Note,立刻获知“历史排雷记录”:</text>
|
||||
<rect x="0" y="26" width="500" height="64" rx="6" fill="#fffbeb" stroke="#fde68a" stroke-width="1"/>
|
||||
<text x="12" y="46" fill="#b45309" font-size="11" font-weight="700">## Alternatives considered (被否决方案):</text>
|
||||
<text x="12" y="68" fill="#78350f" font-size="10.5">• contenteditable: 兼容性极差,中文拼音输入法吞字卡死,严禁乱改!</text>
|
||||
|
||||
<text x="0" y="112" fill="#475569" font-size="12">💡 作用:彻底消除 AI 的无状态失忆!新 AI 即使没有历史记忆,</text>
|
||||
<text x="0" y="132" fill="#b45309" font-size="12" font-weight="700">读完也立刻收回想盲目重构的手,老实遵守已落地的架构法案!</text>
|
||||
</g>
|
||||
</g>
|
||||
|
||||
<!-- ARROW 2 -> 3 (RIGHT VERTICAL DOWN) -->
|
||||
<path d="M 960 270 L 960 340" stroke="#059669" stroke-width="3" marker-end="url(#loop-green)"/>
|
||||
<rect x="925" y="295" width="70" height="22" rx="4" fill="#dcfce7"/>
|
||||
<text x="960" y="310" fill="#065f46" font-size="10.5" font-weight="700" text-anchor="middle">规范施工</text>
|
||||
|
||||
<!-- STEP 3 (BOTTOM-RIGHT): ATOMIC COMMIT -->
|
||||
<g transform="translate(690, 350)">
|
||||
<rect x="0" y="0" width="540" height="230" rx="12" fill="#ffffff" stroke="#a7f3d0" stroke-width="2" filter="url(#soft-shadow)"/>
|
||||
<path d="M 0 12 Q 0 0 12 0 L 528 0 Q 540 0 540 12 L 540 44 L 0 44 Z" fill="#f0fdf4"/>
|
||||
<circle cx="22" cy="22" r="10" fill="#059669"/>
|
||||
<text x="22" y="26" fill="#ffffff" font-size="11" font-weight="800" text-anchor="middle">3</text>
|
||||
<text x="42" y="27" fill="#065f46" font-size="14" font-weight="800">双轨原子提交(Atomic Commit)</text>
|
||||
|
||||
<g transform="translate(20, 60)">
|
||||
<text x="0" y="16" fill="#0f172a" font-size="12.5" font-weight="700">业务代码改动与 Note 事实同步更新:</text>
|
||||
<rect x="0" y="26" width="500" height="74" rx="6" fill="#f0fdf4" stroke="#a7f3d0" stroke-width="1"/>
|
||||
<text x="12" y="46" fill="#14532d" font-size="11">• 修改业务代码:例如 `decorations.ts` 更新方法逻辑</text>
|
||||
<text x="12" y="66" fill="#059669" font-size="11" font-weight="700">• 同步更新对应 Note:事实变了就地更新,不留两本账!</text>
|
||||
<text x="12" y="86" fill="#14532d" font-size="11">• 必须打入同一个 Git PR / Commit,一步到位生效!</text>
|
||||
|
||||
<text x="0" y="122" fill="#475569" font-size="12">💡 作用:代码与文档同生共死,彻底粉碎“代码改了三版、文档停在半年前”</text>
|
||||
<text x="0" y="142" fill="#059669" font-size="12" font-weight="700">的陈年腐烂恶疾!</text>
|
||||
</g>
|
||||
</g>
|
||||
|
||||
<!-- ARROW 3 -> 4 (BOTTOM HORIZONTAL LEFT) -->
|
||||
<path d="M 680 460 L 600 460" stroke="#7c3aed" stroke-width="3" marker-end="url(#loop-purple)"/>
|
||||
<rect x="612" y="435" width="60" height="22" rx="4" fill="#f3e8ff"/>
|
||||
<text x="642" y="450" fill="#6d28d9" font-size="10.5" font-weight="700" text-anchor="middle">机器安检</text>
|
||||
|
||||
<!-- STEP 4 (BOTTOM-LEFT): CI GATES -->
|
||||
<g transform="translate(50, 350)">
|
||||
<rect x="0" y="0" width="540" height="230" rx="12" fill="#ffffff" stroke="#ddd6fe" stroke-width="2" filter="url(#soft-shadow)"/>
|
||||
<path d="M 0 12 Q 0 0 12 0 L 528 0 Q 540 0 540 12 L 540 44 L 0 44 Z" fill="#faf5ff"/>
|
||||
<circle cx="22" cy="22" r="10" fill="#7c3aed"/>
|
||||
<text x="22" y="26" fill="#ffffff" font-size="11" font-weight="800" text-anchor="middle">4</text>
|
||||
<text x="42" y="27" fill="#5b21b6" font-size="14" font-weight="800">CI 门禁机械把关(verify-agent-note-*)</text>
|
||||
|
||||
<g transform="translate(20, 60)">
|
||||
<text x="0" y="16" fill="#0f172a" font-size="12.5" font-weight="700">提交代码时,脚本自动把关每一项契约:</text>
|
||||
<rect x="0" y="26" width="500" height="74" rx="6" fill="#faf5ff" stroke="#ddd6fe" stroke-width="1"/>
|
||||
<text x="12" y="44" fill="#5b21b6" font-size="11" class="code">verify-agent-note-tree</text>
|
||||
<text x="210" y="44" fill="#059669" font-size="11">✔ 6大分类正确 · 链接全通无死链</text>
|
||||
<text x="12" y="64" fill="#5b21b6" font-size="11" class="code">verify-agent-note-format</text>
|
||||
<text x="210" y="64" fill="#059669" font-size="11">✔ 严禁未来时(Plan) · 必填Alternatives</text>
|
||||
<text x="12" y="84" fill="#5b21b6" font-size="11" class="code">prose-checklist</text>
|
||||
<text x="210" y="84" fill="#059669" font-size="11">✔ 剔除会话废话 · 保持纯硬核事实</text>
|
||||
|
||||
<text x="0" y="122" fill="#475569" font-size="12">💡 作用:机器严格守门,偷懒敷衍或画大饼直接挂掉拒绝合并,</text>
|
||||
<text x="0" y="142" fill="#7c3aed" font-size="12" font-weight="700">确保合入主干的代码与 Note 资产 100% 真实可用!</text>
|
||||
</g>
|
||||
</g>
|
||||
|
||||
<!-- ARROW 4 -> 1 (LEFT VERTICAL UP: CLOSING THE LOOP!) -->
|
||||
<path d="M 320 340 L 320 270" stroke="#0284c7" stroke-width="3" marker-end="url(#loop-blue)"/>
|
||||
<rect x="265" y="295" width="110" height="22" rx="4" fill="#e0f2fe"/>
|
||||
<text x="320" y="310" fill="#0369a1" font-size="10.5" font-weight="700" text-anchor="middle">合入主干,成为新基线</text>
|
||||
</g>
|
||||
</svg>
|
||||
|
After Width: | Height: | Size: 9.9 KiB |
|
After Width: | Height: | Size: 520 KiB |
@@ -0,0 +1,147 @@
|
||||
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1400 880" width="100%" height="100%">
|
||||
<defs>
|
||||
<pattern id="light-grid" width="32" height="32" patternUnits="userSpaceOnUse">
|
||||
<path d="M 32 0 L 0 0 0 32" fill="none" stroke="#e2e8f0" stroke-width="0.75"/>
|
||||
</pattern>
|
||||
<filter id="soft-shadow" x="-5%" y="-5%" width="110%" height="110%">
|
||||
<feDropShadow dx="0" dy="6" stdDeviation="10" flood-color="#0f172a" flood-opacity="0.06"/>
|
||||
</filter>
|
||||
|
||||
<marker id="arr-rose" markerWidth="8" markerHeight="6" refX="7" refY="3" orient="auto">
|
||||
<polygon points="0 0, 8 3, 0 6" fill="#e11d48"/>
|
||||
</marker>
|
||||
<marker id="arr-emerald" markerWidth="8" markerHeight="6" refX="7" refY="3" orient="auto">
|
||||
<polygon points="0 0, 8 3, 0 6" fill="#059669"/>
|
||||
</marker>
|
||||
</defs>
|
||||
|
||||
<style>
|
||||
@import url('https://fonts.googleapis.com/css2?family=JetBrains+Mono:wght@400;600;700&display=swap');
|
||||
text {
|
||||
font-family: -apple-system, 'PingFang SC', 'Noto Sans SC', 'Segoe UI', 'JetBrains Mono', sans-serif;
|
||||
}
|
||||
.code { font-family: 'JetBrains Mono', monospace; }
|
||||
</style>
|
||||
|
||||
<!-- Background -->
|
||||
<rect width="100%" height="100%" fill="#f8fafc"/>
|
||||
<rect width="100%" height="100%" fill="url(#light-grid)"/>
|
||||
|
||||
<!-- HEADER -->
|
||||
<g transform="translate(60, 45)">
|
||||
<rect x="0" y="0" width="220" height="28" rx="14" fill="#ffe4e6" stroke="#e11d48" stroke-width="1.2"/>
|
||||
<text x="110" y="19" fill="#be123c" font-size="12" font-weight="700" text-anchor="middle" letter-spacing="0.5">图 6 · Git 并发合并对决</text>
|
||||
<text x="0" y="68" fill="#0f172a" font-size="28" font-weight="800">Git 真实合并对决:为什么 DSH 源码里严禁 INDEX.md?</text>
|
||||
<text x="0" y="98" fill="#475569" font-size="14.5">左边看传统 ADR 为什么在多 Agent 时代必然卡死 ➔ 右边看 DeepSeek 纯路径设计如何做到 0 冲突自动合入</text>
|
||||
</g>
|
||||
|
||||
<!-- LEFT: TRADITIONAL ADR (INDEX CONFLICT) -->
|
||||
<g transform="translate(60, 155)">
|
||||
<rect x="0" y="0" width="610" height="660" rx="16" fill="#ffffff" stroke="#fecdd3" stroke-width="2" filter="url(#soft-shadow)"/>
|
||||
<path d="M 0 16 Q 0 0 16 0 L 594 0 Q 610 0 610 16 L 610 52 L 0 52 Z" fill="#fff1f2"/>
|
||||
<circle cx="26" cy="26" r="7" fill="#e11d48"/>
|
||||
<text x="44" y="32" fill="#be123c" font-size="16.5" font-weight="800">❌ 传统 ADR 做法:大家争抢修改同一个 INDEX.md</text>
|
||||
|
||||
<g transform="translate(24, 76)">
|
||||
<!-- Git Branch Visualization (Traditional) -->
|
||||
<g transform="translate(0, 0)">
|
||||
<rect x="0" y="0" width="562" height="150" rx="10" fill="#f8fafc" stroke="#cbd5e1" stroke-width="1.2"/>
|
||||
<text x="16" y="24" fill="#0f172a" font-size="12" font-weight="800">Git 分支合并现场:</text>
|
||||
|
||||
<!-- Main commit -->
|
||||
<circle cx="50" cy="80" r="14" fill="#0f172a"/>
|
||||
<text x="50" y="85" fill="#ffffff" font-size="10" font-weight="700" text-anchor="middle">main</text>
|
||||
|
||||
<!-- Branch A -->
|
||||
<path d="M 64 72 Q 130 40 180 40" fill="none" stroke="#64748b" stroke-width="2"/>
|
||||
<circle cx="190" cy="40" r="12" fill="#f1f5f9" stroke="#0284c7" stroke-width="2"/>
|
||||
<text x="210" y="44" fill="#0284c7" font-size="11" font-weight="700">Agent A:在 INDEX.md 底部追加 042 号</text>
|
||||
|
||||
<!-- Branch B -->
|
||||
<path d="M 64 88 Q 130 120 180 120" fill="none" stroke="#64748b" stroke-width="2"/>
|
||||
<circle cx="190" cy="120" r="12" fill="#f1f5f9" stroke="#d97706" stroke-width="2"/>
|
||||
<text x="210" y="124" fill="#d97706" font-size="11" font-weight="700">Agent B:也在 INDEX.md 底部追加 042 号</text>
|
||||
|
||||
<!-- Merge collision arrow -->
|
||||
<path d="M 440 40 Q 480 80 500 80" fill="none" stroke="#e11d48" stroke-width="2"/>
|
||||
<path d="M 440 120 Q 480 80 500 80" fill="none" stroke="#e11d48" stroke-width="2" marker-end="url(#arr-rose)"/>
|
||||
</g>
|
||||
|
||||
<!-- Conflict Code Box -->
|
||||
<g transform="translate(0, 168)">
|
||||
<rect x="0" y="0" width="562" height="155" rx="10" fill="#fff1f2" stroke="#e11d48" stroke-width="1.8"/>
|
||||
<text x="16" y="24" fill="#be123c" font-size="12" font-weight="800">💥 合并到 main 时爆发灾难性冲突:</text>
|
||||
<text x="16" y="46" fill="#be123c" font-size="11" class="code"><<<<<<< HEAD (Agent A 分支已合入)</text>
|
||||
<text x="16" y="68" fill="#1e293b" font-size="10.5" class="code">| 042 | 2026-09-01 | Web输入机重构方案 |</text>
|
||||
<text x="16" y="90" fill="#be123c" font-size="11" class="code">======= (Agent B 试图合入相同行)</text>
|
||||
<text x="16" y="112" fill="#1e293b" font-size="10.5" class="code">| 042 | 2026-09-01 | JSONL 会话持久化方案 |</text>
|
||||
<text x="16" y="136" fill="#be123c" font-size="11.5" font-weight="800" class="code">>>>>>>> CONFLICT (content): Merge conflict in docs/INDEX.md</text>
|
||||
</g>
|
||||
|
||||
<!-- Pain Summary Box -->
|
||||
<g transform="translate(0, 340)">
|
||||
<rect x="0" y="0" width="562" height="225" rx="10" fill="#fff1f2" stroke="#fda4af" stroke-width="1.4"/>
|
||||
<text x="18" y="30" fill="#be123c" font-size="14.5" font-weight="800">致命瓶颈:自动化流水线当场瘫痪!</text>
|
||||
<text x="18" y="58" fill="#9f1239" font-size="12">• 两个独立的 AI 本来改的代码毫无关系,却因为这个总表在 Git 锁死。</text>
|
||||
<text x="18" y="86" fill="#9f1239" font-size="12">• 自动化多 Agent 流水线无法自动合并,必须人工介入手动解冲突!</text>
|
||||
<text x="18" y="114" fill="#9f1239" font-size="12">• 如果每天跑几十个 Agent 任务,人类工程师将被无休止的合并冲突逼疯。</text>
|
||||
<text x="18" y="152" fill="#be123c" font-size="13" font-weight="800">👉 结局:全局索引文件直接抹杀了多 Agent 并行开发的最大红利!</text>
|
||||
</g>
|
||||
</g>
|
||||
</g>
|
||||
|
||||
<!-- RIGHT: DEEPSEEK PATH-AS-STATE (CLEAN AUTO MERGE) -->
|
||||
<g transform="translate(730, 155)">
|
||||
<rect x="0" y="0" width="610" height="660" rx="16" fill="#ffffff" stroke="#a7f3d0" stroke-width="2" filter="url(#soft-shadow)"/>
|
||||
<path d="M 0 16 Q 0 0 16 0 L 594 0 Q 610 0 610 16 L 610 52 L 0 52 Z" fill="#f0fdf4"/>
|
||||
<circle cx="26" cy="26" r="7" fill="#059669"/>
|
||||
<text x="44" y="32" fill="#065f46" font-size="16.5" font-weight="800">✔ DeepSeek 纯路径设计:每个人创建自己的独立叶子</text>
|
||||
|
||||
<g transform="translate(24, 76)">
|
||||
<!-- Git Branch Visualization (DeepSeek) -->
|
||||
<g transform="translate(0, 0)">
|
||||
<rect x="0" y="0" width="562" height="150" rx="10" fill="#f8fafc" stroke="#a7f3d0" stroke-width="1.4"/>
|
||||
<text x="16" y="24" fill="#065f46" font-size="12" font-weight="800">Git 干净无冲突自动合并现场:</text>
|
||||
|
||||
<!-- Main commit -->
|
||||
<circle cx="50" cy="80" r="14" fill="#0f172a"/>
|
||||
<text x="50" y="85" fill="#ffffff" font-size="10" font-weight="700" text-anchor="middle">main</text>
|
||||
|
||||
<!-- Branch A -->
|
||||
<path d="M 64 72 Q 130 40 180 40" fill="none" stroke="#059669" stroke-width="2"/>
|
||||
<circle cx="190" cy="40" r="12" fill="#f0fdf4" stroke="#059669" stroke-width="2"/>
|
||||
<text x="210" y="44" fill="#065f46" font-size="11" font-weight="700">Agent A:只创建自己的 `architecture/...-web.md`</text>
|
||||
|
||||
<!-- Branch B -->
|
||||
<path d="M 64 88 Q 130 120 180 120" fill="none" stroke="#059669" stroke-width="2"/>
|
||||
<circle cx="190" cy="120" r="12" fill="#f0fdf4" stroke="#059669" stroke-width="2"/>
|
||||
<text x="210" y="124" fill="#065f46" font-size="11" font-weight="700">Agent B:只创建自己的 `simplification/...-jsonl.md`</text>
|
||||
|
||||
<!-- Auto Merge arrow to Main -->
|
||||
<path d="M 460 40 Q 490 80 520 80" fill="none" stroke="#059669" stroke-width="2"/>
|
||||
<path d="M 460 120 Q 490 80 520 80" fill="none" stroke="#059669" stroke-width="2" marker-end="url(#arr-emerald)"/>
|
||||
</g>
|
||||
|
||||
<!-- Clean Merge Output Box -->
|
||||
<g transform="translate(0, 168)">
|
||||
<rect x="0" y="0" width="562" height="155" rx="10" fill="#f0fdf4" stroke="#059669" stroke-width="1.8"/>
|
||||
<text x="16" y="24" fill="#065f46" font-size="12" font-weight="800">✔ Git 自动三向合并(Clean Auto-Merge):</text>
|
||||
<text x="16" y="50" fill="#14532d" font-size="11" class="code">$ git merge branch-b</text>
|
||||
<text x="16" y="72" fill="#047857" font-size="11" class="code">Auto-merging .agents/notes/</text>
|
||||
<text x="16" y="94" fill="#047857" font-size="11" class="code">Merge made by the 'ort' strategy.</text>
|
||||
<text x="16" y="116" fill="#059669" font-size="11.5" font-weight="700" class="code"> 1 file changed, 45 insertions(+) ➔ 0 CONFLICTS!</text>
|
||||
<text x="16" y="138" fill="#15803d" font-size="11" font-weight="700">⚡ 秒级自动合入 master,完全不需要人类插手!</text>
|
||||
</g>
|
||||
|
||||
<!-- Benefit Summary Box -->
|
||||
<g transform="translate(0, 340)">
|
||||
<rect x="0" y="0" width="562" height="225" rx="10" fill="#f0fdf4" stroke="#86efac" stroke-width="1.4"/>
|
||||
<text x="18" y="28" fill="#065f46" font-size="14.5" font-weight="800">🚀 DSH 源码铁证:这就是为什么写死禁止 INDEX.md</text>
|
||||
<text x="18" y="56" fill="#047857" font-size="11.5">• DSH 脚本第 40 行写死:<tspan class="code" font-weight="700">INDEX.md — centralized indexes are forbidden!</tspan></text>
|
||||
<text x="18" y="80" fill="#047857" font-size="11.5">• <tspan font-weight="700">物理绝对正交</tspan>:路径就是分类,每个 Note 是独立文件,合并互不相交。</text>
|
||||
<text x="18" y="104" fill="#047857" font-size="11.5">• <tspan font-weight="700">海量并行战绩</tspan>:DSH 跑了 1,742 篇 Note,流水线 0 次因为索引冲突阻塞!</text>
|
||||
<text x="18" y="142" fill="#065f46" font-size="12.5" font-weight="800">👉 找笔记怎么找?直接用代码搜索,或双击打开本项目的 build-board 看板!</text>
|
||||
</g>
|
||||
</g>
|
||||
</g>
|
||||
</svg>
|
||||
|
After Width: | Height: | Size: 9.8 KiB |
|
After Width: | Height: | Size: 375 KiB |
@@ -0,0 +1,121 @@
|
||||
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1400 920" width="100%" height="100%">
|
||||
<defs>
|
||||
<pattern id="light-grid" width="32" height="32" patternUnits="userSpaceOnUse">
|
||||
<path d="M 32 0 L 0 0 0 32" fill="none" stroke="#e2e8f0" stroke-width="0.75"/>
|
||||
</pattern>
|
||||
<filter id="soft-shadow" x="-5%" y="-5%" width="110%" height="110%">
|
||||
<feDropShadow dx="0" dy="8" stdDeviation="12" flood-color="#0f172a" flood-opacity="0.06"/>
|
||||
</filter>
|
||||
</defs>
|
||||
|
||||
<style>
|
||||
@import url('https://fonts.googleapis.com/css2?family=JetBrains+Mono:wght@400;600;700;800&display=swap');
|
||||
text {
|
||||
font-family: -apple-system, 'PingFang SC', 'Noto Sans SC', 'Segoe UI', 'JetBrains Mono', sans-serif;
|
||||
}
|
||||
.code { font-family: 'JetBrains Mono', monospace; }
|
||||
</style>
|
||||
|
||||
<!-- Background -->
|
||||
<rect width="100%" height="100%" fill="#f8fafc"/>
|
||||
<rect width="100%" height="100%" fill="url(#light-grid)"/>
|
||||
|
||||
<!-- HEADER -->
|
||||
<g transform="translate(80, 40)">
|
||||
<rect x="0" y="0" width="180" height="28" rx="14" fill="#e0f2fe" stroke="#0284c7" stroke-width="1.2"/>
|
||||
<text x="90" y="19" fill="#0369a1" font-size="12" font-weight="800" text-anchor="middle" letter-spacing="0.5">AI 工作实录现场</text>
|
||||
<text x="0" y="68" fill="#0f172a" font-size="30" font-weight="800">装上 Skill 后:AI 怎么帮你立护栏?</text>
|
||||
<text x="0" y="100" fill="#64748b" font-size="15">核心原则:意思靠人点头,结构靠脚本代劳(一次最多问 3 句,绝不打扰节奏)</text>
|
||||
</g>
|
||||
|
||||
<!-- IDE WINDOW CONTAINER -->
|
||||
<g transform="translate(80, 180)">
|
||||
<rect x="0" y="0" width="1240" height="680" rx="20" fill="#ffffff" stroke="#cbd5e1" stroke-width="2" filter="url(#soft-shadow)"/>
|
||||
|
||||
<!-- IDE Title Bar -->
|
||||
<path d="M 0 20 Q 0 0 20 0 L 1220 0 Q 1240 0 1240 20 L 1240 46 L 0 46 Z" fill="#f1f5f9"/>
|
||||
<circle cx="24" cy="23" r="6" fill="#ef4444"/>
|
||||
<circle cx="44" cy="23" r="6" fill="#f59e0b"/>
|
||||
<circle cx="64" cy="23" r="6" fill="#10b981"/>
|
||||
<text x="620" y="28" fill="#475569" font-size="13" font-weight="700" text-anchor="middle" class="code">Cursor / Claude Code · 对话工作区</text>
|
||||
|
||||
<!-- LEFT: USER MESSAGE (360px) -->
|
||||
<g transform="translate(30, 75)">
|
||||
<rect x="0" y="0" width="380" height="150" rx="14" fill="#0f172a" filter="url(#soft-shadow)"/>
|
||||
<g transform="translate(20, 24)">
|
||||
<circle cx="16" cy="16" r="14" fill="#38bdf8"/>
|
||||
<text x="16" y="21" fill="#0f172a" font-size="12" font-weight="800" text-anchor="middle">你</text>
|
||||
<text x="42" y="22" fill="#94a3b8" font-size="13" font-weight="700">开发者说了一句话:</text>
|
||||
|
||||
<text x="0" y="66" fill="#f8fafc" font-size="15" font-weight="700">“把会话存储改用 SQLite,”</text>
|
||||
<text x="0" y="94" fill="#f8fafc" font-size="15" font-weight="700">“顺便把读写接口重新理一下。”</text>
|
||||
</g>
|
||||
|
||||
<!-- Human-in-the-loop Box -->
|
||||
<g transform="translate(10, 175)">
|
||||
<rect x="0" y="0" width="360" height="155" rx="12" fill="#fffbeb" stroke="#fde68a" stroke-width="1.5"/>
|
||||
<text x="16" y="28" fill="#b45309" font-size="14" font-weight="800">💡 关键交互:意思必须靠人点头</text>
|
||||
<text x="16" y="56" fill="#78350f" font-size="12.5">AI 不会擅自拍板定案。它会先向你复述:</text>
|
||||
<text x="16" y="80" fill="#92400e" font-size="12.5">“选 SQLite 是因为并发锁死,</text>
|
||||
<text x="16" y="104" fill="#92400e" font-size="12.5">并否决内存缓存(断电风险),对吗?”</text>
|
||||
<text x="16" y="132" fill="#d97706" font-size="13" font-weight="800">👉 你点头确认后,才开始写代码和笔记!</text>
|
||||
</g>
|
||||
</g>
|
||||
|
||||
<!-- RIGHT: AI AUTOMATED ACTIONS (760px) -->
|
||||
<g transform="translate(440, 75)">
|
||||
<rect x="0" y="0" width="770" height="540" rx="14" fill="#f8fafc" stroke="#e2e8f0" stroke-width="1.5"/>
|
||||
|
||||
<!-- AI Header -->
|
||||
<g transform="translate(24, 20)">
|
||||
<circle cx="16" cy="16" r="14" fill="#7c3aed"/>
|
||||
<text x="16" y="21" fill="#ffffff" font-size="12" font-weight="800" text-anchor="middle">AI</text>
|
||||
<text x="42" y="22" fill="#0f172a" font-size="15" font-weight="800">懂规矩的 AI 助手(已加载 Skill):</text>
|
||||
<text x="42" y="44" fill="#059669" font-size="12" font-weight="700">“意图已获确认,正在自动实施机械护栏动作与代码施工...”</text>
|
||||
</g>
|
||||
|
||||
<!-- 4 AUTOMATED ACTION CARDS -->
|
||||
<!-- Action 1 -->
|
||||
<g transform="translate(24, 80)">
|
||||
<rect x="0" y="0" width="722" height="90" rx="10" fill="#ffffff" stroke="#bae6fd" stroke-width="1.2"/>
|
||||
<circle cx="24" cy="24" r="10" fill="#0284c7"/>
|
||||
<text x="24" y="28" fill="#ffffff" font-size="11" font-weight="800" text-anchor="middle">1</text>
|
||||
<text x="44" y="29" fill="#0369a1" font-size="14" font-weight="800">在代码入口自动打桩贴封条(In-Code Anchor)</text>
|
||||
<rect x="20" y="44" width="682" height="34" rx="6" fill="#f0f9ff"/>
|
||||
<text x="32" y="66" fill="#0284c7" font-size="11.5" class="code">// Note: 为什么选 SQLite 代替 JSONL 见 .agents/notes/implemented/feature/...sqlite.md</text>
|
||||
</g>
|
||||
|
||||
<!-- Action 2 -->
|
||||
<g transform="translate(24, 185)">
|
||||
<rect x="0" y="0" width="722" height="115" rx="10" fill="#ffffff" stroke="#fde68a" stroke-width="1.2"/>
|
||||
<circle cx="24" cy="24" r="10" fill="#d97706"/>
|
||||
<text x="24" y="28" fill="#ffffff" font-size="11" font-weight="800" text-anchor="middle">2</text>
|
||||
<text x="44" y="29" fill="#92400e" font-size="14" font-weight="800">自动填好 200 字标准笔记(绝不漏写被否决方案)</text>
|
||||
|
||||
<rect x="20" y="44" width="682" height="58" rx="6" fill="#fffbeb"/>
|
||||
<text x="32" y="64" fill="#b45309" font-size="11" font-weight="700">## Alternatives considered (AI 自动写强对手论据):</text>
|
||||
<text x="32" y="84" fill="#78350f" font-size="11">• 否决内存缓存:断电丢失索引存在数据撕裂风险; • 否决外部PG:破坏本地CLI开箱体验</text>
|
||||
</g>
|
||||
|
||||
<!-- Action 3 -->
|
||||
<g transform="translate(24, 315)">
|
||||
<rect x="0" y="0" width="722" height="90" rx="10" fill="#ffffff" stroke="#ddd6fe" stroke-width="1.2"/>
|
||||
<circle cx="24" cy="24" r="10" fill="#7c3aed"/>
|
||||
<text x="24" y="28" fill="#ffffff" font-size="11" font-weight="800" text-anchor="middle">3</text>
|
||||
<text x="44" y="29" fill="#5b21b6" font-size="14" font-weight="800">本地自动跑 CI 门禁(verify-agent-note-*)</text>
|
||||
<rect x="20" y="44" width="682" height="34" rx="6" fill="#faf5ff"/>
|
||||
<text x="32" y="66" fill="#7c3aed" font-size="11.5" class="code">$ verify-agent-note-tree && verify-format ➔ ok: 0 死链,0 未来时口吻,格式完全合格!</text>
|
||||
</g>
|
||||
|
||||
<!-- Action 4 -->
|
||||
<g transform="translate(24, 420)">
|
||||
<rect x="0" y="0" width="722" height="95" rx="10" fill="#f0fdf4" stroke="#a7f3d0" stroke-width="1.5"/>
|
||||
<circle cx="24" cy="24" r="10" fill="#059669"/>
|
||||
<text x="24" y="28" fill="#ffffff" font-size="11" font-weight="800" text-anchor="middle">4</text>
|
||||
<text x="44" y="29" fill="#065f46" font-size="14" font-weight="800">代码与 Note 同一个 Git Commit 一起提交!</text>
|
||||
<text x="44" y="58" fill="#047857" font-size="12">✔ 业务代码已写好 ✔ 入口封条已加上 ✔ 笔记已生成 ✔ 门禁已通过</text>
|
||||
<text x="44" y="80" fill="#15803d" font-size="12.5" font-weight="700">🎉 “主人,改动已就绪,永久防撞护栏已立好,请直接审核合入!”</text>
|
||||
</g>
|
||||
</g>
|
||||
</g>
|
||||
</svg>
|
||||
|
After Width: | Height: | Size: 7.6 KiB |
|
After Width: | Height: | Size: 532 KiB |
|
After Width: | Height: | Size: 377 KiB |
@@ -0,0 +1,153 @@
|
||||
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1400 720" width="100%" height="100%">
|
||||
<defs>
|
||||
<pattern id="light-grid" width="32" height="32" patternUnits="userSpaceOnUse">
|
||||
<path d="M 32 0 L 0 0 0 32" fill="none" stroke="#e2e8f0" stroke-width="0.75"/>
|
||||
</pattern>
|
||||
<filter id="soft-shadow" x="-5%" y="-5%" width="110%" height="110%">
|
||||
<feDropShadow dx="0" dy="8" stdDeviation="12" flood-color="#0f172a" flood-opacity="0.06"/>
|
||||
</filter>
|
||||
<marker id="arr-blue" markerWidth="8" markerHeight="6" refX="7" refY="3" orient="auto">
|
||||
<polygon points="0 0, 8 3, 0 6" fill="#0284c7"/>
|
||||
</marker>
|
||||
</defs>
|
||||
|
||||
<style>
|
||||
@import url('https://fonts.googleapis.com/css2?family=JetBrains+Mono:wght@400;600;700;800&display=swap');
|
||||
text {
|
||||
font-family: -apple-system, 'PingFang SC', 'Noto Sans SC', 'Segoe UI', 'JetBrains Mono', sans-serif;
|
||||
}
|
||||
.code { font-family: 'JetBrains Mono', monospace; }
|
||||
</style>
|
||||
|
||||
<!-- Clean Off-white Background -->
|
||||
<rect width="100%" height="100%" fill="#f8fafc"/>
|
||||
<rect width="100%" height="100%" fill="url(#light-grid)"/>
|
||||
|
||||
<!-- HEADER -->
|
||||
<g transform="translate(80, 42)">
|
||||
<rect x="0" y="0" width="200" height="28" rx="14" fill="#e0f2fe" stroke="#0284c7" stroke-width="1.2"/>
|
||||
<text x="100" y="19" fill="#0369a1" font-size="12" font-weight="800" text-anchor="middle" letter-spacing="0.5">目录结构 · 架构全貌</text>
|
||||
<text x="0" y="70" fill="#0f172a" font-size="32" font-weight="800">路径即状态:像 DeepSeek 一样沉淀决策目录树</text>
|
||||
<text x="0" y="100" fill="#64748b" font-size="15">全库不搞任何全局 INDEX.md · 源码入口一行反向注释 · 笔记与代码同批原子提交</text>
|
||||
</g>
|
||||
|
||||
<!-- MAIN CONTAINER (SPLIT: LEFT TREE 480px, RIGHT CODE/NOTE 680px) -->
|
||||
|
||||
<!-- LEFT: VS CODE STYLE EXPLORER TREE (480px) -->
|
||||
<g transform="translate(80, 150)">
|
||||
<rect x="0" y="0" width="480" height="525" rx="18" fill="#ffffff" stroke="#cbd5e1" stroke-width="1.8" filter="url(#soft-shadow)"/>
|
||||
|
||||
<!-- Title Bar -->
|
||||
<path d="M 0 18 Q 0 0 18 0 L 462 0 Q 480 0 480 18 L 480 50 L 0 50 Z" fill="#f1f5f9"/>
|
||||
<circle cx="24" cy="25" r="5.5" fill="#ef4444"/>
|
||||
<circle cx="42" cy="25" r="5.5" fill="#f59e0b"/>
|
||||
<circle cx="60" cy="25" r="5.5" fill="#10b981"/>
|
||||
<text x="80" y="30" fill="#334155" font-size="13" font-weight="800">PROJECT EXPLORER</text>
|
||||
<text x="455" y="30" fill="#0284c7" font-size="11" font-weight="700" text-anchor="end">无锁无冲突</text>
|
||||
|
||||
<!-- Tree Content -->
|
||||
<g transform="translate(24, 75)">
|
||||
<!-- Root -->
|
||||
<text x="0" y="18" fill="#0f172a" font-size="14" font-weight="800" class="code">📁 .agents/notes/</text>
|
||||
|
||||
<!-- Level 1: Lifecycles -->
|
||||
<g transform="translate(18, 26)">
|
||||
<!-- proposed -->
|
||||
<text x="0" y="24" fill="#d97706" font-size="13" font-weight="700" class="code">├── 📁 proposed/</text>
|
||||
<text x="175" y="24" fill="#b45309" font-size="11">(想法立项阶段)</text>
|
||||
|
||||
<!-- implemented (Active Highlight) -->
|
||||
<g transform="translate(0, 36)">
|
||||
<rect x="-8" y="0" width="426" height="235" rx="8" fill="#f0fdf4" stroke="#a7f3d0" stroke-width="1.2"/>
|
||||
<text x="0" y="24" fill="#059669" font-size="13.5" font-weight="800" class="code">├── 📁 implemented/</text>
|
||||
<text x="190" y="24" fill="#047857" font-size="11.5" font-weight="700">(已落地事实·现行法律)</text>
|
||||
|
||||
<!-- Level 2: Classes inside implemented -->
|
||||
<g transform="translate(18, 32)">
|
||||
<text x="0" y="20" fill="#0284c7" font-size="12" font-weight="700" class="code">├── 📁 feature/</text>
|
||||
<text x="24" y="42" fill="#475569" font-size="11" class="code">└── 2026-08-05-agent-teams.md</text>
|
||||
|
||||
<text x="0" y="70" fill="#e11d48" font-size="12" font-weight="700" class="code">├── 📁 bug-fix/</text>
|
||||
<text x="24" y="92" fill="#475569" font-size="11" class="code">└── 2026-07-31-python-settlement.md</text>
|
||||
|
||||
<text x="0" y="120" fill="#7c3aed" font-size="12" font-weight="700" class="code">├── 📁 architecture/</text>
|
||||
<text x="24" y="142" fill="#475569" font-size="11" class="code">└── 2026-07-25-web-input-machine.md</text>
|
||||
|
||||
<text x="0" y="170" fill="#059669" font-size="12" font-weight="800" class="code">└── 📁 simplification/</text>
|
||||
<text x="24" y="192" fill="#047857" font-size="11" font-weight="700" class="code">└── 2026-08-30-jsonl-only.md</text>
|
||||
</g>
|
||||
</g>
|
||||
|
||||
<!-- rejected & archived -->
|
||||
<g transform="translate(0, 282)">
|
||||
<text x="0" y="22" fill="#be123c" font-size="13" font-weight="700" class="code">├── 📁 rejected/</text>
|
||||
<text x="175" y="22" fill="#9f1239" font-size="11">(被否决方案·防翻案)</text>
|
||||
|
||||
<text x="0" y="50" fill="#64748b" font-size="13" font-weight="700" class="code">└── 📁 archived/</text>
|
||||
<text x="175" y="50" fill="#64748b" font-size="11">(被新决策完全取代冻结)</text>
|
||||
</g>
|
||||
</g>
|
||||
</g>
|
||||
|
||||
<!-- Bottom Tip -->
|
||||
<g transform="translate(24, 465)">
|
||||
<rect x="0" y="0" width="432" height="42" rx="8" fill="#f8fafc" stroke="#cbd5e1" stroke-width="1"/>
|
||||
<text x="216" y="26" fill="#0f172a" font-size="12" font-weight="700" text-anchor="middle">⚡ 纯路径即状态,天然杜绝 Git Merge 冲突!</text>
|
||||
</g>
|
||||
</g>
|
||||
|
||||
<!-- RIGHT: REAL CODE ANCHOR & NOTE PREVIEW (660px) -->
|
||||
<g transform="translate(590, 150)">
|
||||
|
||||
<!-- CARD 1: IN-CODE ANCHOR (TOP 240px) -->
|
||||
<g transform="translate(0, 0)">
|
||||
<rect x="0" y="0" width="670" height="245" rx="18" fill="#ffffff" stroke="#bae6fd" stroke-width="1.8" filter="url(#soft-shadow)"/>
|
||||
<path d="M 0 18 Q 0 0 18 0 L 652 0 Q 670 0 670 18 L 670 48 L 0 48 Z" fill="#f0f9ff"/>
|
||||
<circle cx="24" cy="24" r="6" fill="#0284c7"/>
|
||||
<text x="40" y="29" fill="#0369a1" font-size="14" font-weight="800">1. 源码关键入口:一行黄色封条注释</text>
|
||||
|
||||
<g transform="translate(24, 66)">
|
||||
<text x="0" y="18" fill="#475569" font-size="12.5">在核心接口或关键函数上方打桩,AI 读代码时 100% 被迫先读此行:</text>
|
||||
|
||||
<g transform="translate(0, 32)">
|
||||
<rect x="0" y="0" width="622" height="96" rx="10" fill="#0f172a"/>
|
||||
<text x="20" y="28" fill="#38bdf8" font-size="12" font-weight="700" class="code">// Note: 为什么选 SQLite 代替 JSONL</text>
|
||||
<text x="20" y="50" fill="#38bdf8" font-size="12" class="code">// 见 .agents/notes/implemented/feature/2026-08-23-sqlite.md</text>
|
||||
<text x="20" y="78" fill="#e2e8f0" font-size="12.5" class="code">export class <tspan fill="#facc15">SessionStore</tspan> { ... }</text>
|
||||
</g>
|
||||
</g>
|
||||
</g>
|
||||
|
||||
<!-- ARROW CONNECTING CODE TO NOTE -->
|
||||
<g transform="translate(310, 245)">
|
||||
<line x1="25" y1="0" x2="25" y2="30" stroke="#0284c7" stroke-width="2.5" marker-end="url(#arr-blue)"/>
|
||||
</g>
|
||||
|
||||
<!-- CARD 2: NOTE 4-SECTION PREVIEW (BOTTOM 250px) -->
|
||||
<g transform="translate(0, 280)">
|
||||
<rect x="0" y="0" width="670" height="245" rx="18" fill="#ffffff" stroke="#a7f3d0" stroke-width="1.8" filter="url(#soft-shadow)"/>
|
||||
<path d="M 0 18 Q 0 0 18 0 L 652 0 Q 670 0 670 18 L 670 48 L 0 48 Z" fill="#f0fdf4"/>
|
||||
<circle cx="24" cy="24" r="6" fill="#059669"/>
|
||||
<text x="40" y="29" fill="#065f46" font-size="14" font-weight="800">2. 对应 Note 正文:极其精简,只填 4 个空(约200字)</text>
|
||||
|
||||
<g transform="translate(24, 65)">
|
||||
<rect x="0" y="0" width="622" height="155" rx="10" fill="#f8fafc" stroke="#cbd5e1" stroke-width="1"/>
|
||||
|
||||
<g transform="translate(20, 22)">
|
||||
<text x="0" y="16" fill="#b45309" font-size="12" font-weight="800" class="code">## Problem</text>
|
||||
<text x="110" y="16" fill="#334155" font-size="12">多进程并发写 JSONL 严重死锁,全量扫描延迟 >800ms</text>
|
||||
|
||||
<text x="0" y="44" fill="#059669" font-size="12" font-weight="800" class="code">## Decision</text>
|
||||
<text x="110" y="44" fill="#334155" font-size="12">改用 SQLite WAL 模式,核心表建联合索引(强制现在时客观事实)</text>
|
||||
|
||||
<text x="0" y="72" fill="#d97706" font-size="12" font-weight="800" class="code">## Alternatives</text>
|
||||
<text x="110" y="72" fill="#b45309" font-size="12" font-weight="700">★ 必填:写清为什么放弃内存缓存与外部 Postgres</text>
|
||||
|
||||
<text x="0" y="100" fill="#7c3aed" font-size="12" font-weight="800" class="code">## Consequences</text>
|
||||
<text x="110" y="100" fill="#334155" font-size="12">收益:延迟降至 10ms 以内; 代价:包体积增加 15MB</text>
|
||||
</g>
|
||||
</g>
|
||||
</g>
|
||||
|
||||
</g>
|
||||
</svg>
|
||||
|
After Width: | Height: | Size: 8.7 KiB |
@@ -0,0 +1,193 @@
|
||||
{
|
||||
"schema_version": 2,
|
||||
"diagram_type": "workflow",
|
||||
"meta": {
|
||||
"title": "Write Notes Like DeepSeek: Agent-Human Collaboration",
|
||||
"visual_preset": "classic",
|
||||
"quality_profile": "showcase"
|
||||
},
|
||||
"lanes": [
|
||||
{
|
||||
"id": "human",
|
||||
"label": "人类开发者 (Human)"
|
||||
},
|
||||
{
|
||||
"id": "agent",
|
||||
"label": "AI 编程助手 (Agent)"
|
||||
},
|
||||
{
|
||||
"id": "notes",
|
||||
"label": "现行决策留痕 (.agents/notes/)"
|
||||
},
|
||||
{
|
||||
"id": "ci",
|
||||
"label": "CI 自动化门禁 (Quality Gate)"
|
||||
}
|
||||
],
|
||||
"phases": [
|
||||
{
|
||||
"id": "p1",
|
||||
"label": "1. 意图与探测",
|
||||
"fromCol": 0,
|
||||
"toCol": 1
|
||||
},
|
||||
{
|
||||
"id": "p2",
|
||||
"label": "2. 编码与留痕",
|
||||
"fromCol": 2,
|
||||
"toCol": 3,
|
||||
"variant": "emphasis"
|
||||
},
|
||||
{
|
||||
"id": "p3",
|
||||
"label": "3. 门禁与合入",
|
||||
"fromCol": 4,
|
||||
"toCol": 5,
|
||||
"variant": "dashed"
|
||||
}
|
||||
],
|
||||
"nodes": [
|
||||
{
|
||||
"id": "dev_intent",
|
||||
"lane": "human",
|
||||
"col": 0,
|
||||
"type": "frontend",
|
||||
"label": "发起改动需求",
|
||||
"sublabel": "业务重构 / 选型 / 修Bug",
|
||||
"width": 140
|
||||
},
|
||||
{
|
||||
"id": "agent_check",
|
||||
"lane": "agent",
|
||||
"col": 1,
|
||||
"type": "backend",
|
||||
"label": "检索既有 Notes",
|
||||
"sublabel": "读取被否决路线与已知上限",
|
||||
"tag": "命中防撞护栏",
|
||||
"width": 140
|
||||
},
|
||||
{
|
||||
"id": "agent_code",
|
||||
"lane": "agent",
|
||||
"col": 2,
|
||||
"type": "backend",
|
||||
"label": "实施代码改动",
|
||||
"sublabel": "按现行约束编写实现",
|
||||
"width": 140
|
||||
},
|
||||
{
|
||||
"id": "note_sync",
|
||||
"lane": "notes",
|
||||
"col": 2,
|
||||
"type": "database",
|
||||
"label": "80% 原地事实同步",
|
||||
"sublabel": "更新路径/参数,非必要不新建",
|
||||
"tag": "In-place Sync",
|
||||
"width": 140
|
||||
},
|
||||
{
|
||||
"id": "code_comment",
|
||||
"lane": "agent",
|
||||
"col": 3,
|
||||
"type": "backend",
|
||||
"label": "源码入口加注",
|
||||
"sublabel": "// Note: 见 .agents/notes/...",
|
||||
"tag": "物理可寻址",
|
||||
"width": 140
|
||||
},
|
||||
{
|
||||
"id": "dev_review",
|
||||
"lane": "human",
|
||||
"col": 4,
|
||||
"type": "frontend",
|
||||
"label": "审查 PR 与决策",
|
||||
"sublabel": "核对反稻草人备选方案",
|
||||
"width": 140
|
||||
},
|
||||
{
|
||||
"id": "ci_gates",
|
||||
"lane": "ci",
|
||||
"col": 4,
|
||||
"type": "security",
|
||||
"label": "CI 双机械门禁",
|
||||
"sublabel": "tree 查死链 + format 查时态",
|
||||
"width": 140
|
||||
},
|
||||
{
|
||||
"id": "main_repo",
|
||||
"lane": "ci",
|
||||
"col": 5,
|
||||
"type": "cloud",
|
||||
"label": "主干原子合入",
|
||||
"sublabel": "代码与决策同 Commit/PR 生效",
|
||||
"tag": "永不失忆",
|
||||
"width": 140
|
||||
}
|
||||
],
|
||||
"edges": [
|
||||
{
|
||||
"id": "e1",
|
||||
"from": "dev_intent",
|
||||
"to": "agent_check",
|
||||
"variant": "emphasis"
|
||||
},
|
||||
{
|
||||
"id": "e2",
|
||||
"from": "agent_check",
|
||||
"to": "agent_code",
|
||||
"label": "遵守前人约束",
|
||||
"variant": "default"
|
||||
},
|
||||
{
|
||||
"id": "e3",
|
||||
"from": "agent_code",
|
||||
"to": "note_sync",
|
||||
"label": "同步事实",
|
||||
"variant": "emphasis"
|
||||
},
|
||||
{
|
||||
"id": "e4",
|
||||
"from": "agent_code",
|
||||
"to": "code_comment",
|
||||
"variant": "default"
|
||||
},
|
||||
{
|
||||
"id": "e5",
|
||||
"from": "code_comment",
|
||||
"to": "dev_review",
|
||||
"variant": "default"
|
||||
},
|
||||
{
|
||||
"id": "e6",
|
||||
"from": "dev_review",
|
||||
"to": "ci_gates",
|
||||
"label": "提交 PR",
|
||||
"variant": "emphasis"
|
||||
},
|
||||
{
|
||||
"id": "e7",
|
||||
"from": "ci_gates",
|
||||
"to": "main_repo",
|
||||
"label": "双门禁绿灯",
|
||||
"variant": "emphasis"
|
||||
}
|
||||
],
|
||||
"cards": [
|
||||
{
|
||||
"dot": "emerald",
|
||||
"title": "DeepSeek 核心心智",
|
||||
"items": [
|
||||
"80% 的日常改动是在老 Note 原地更新事实,不随手开新文件",
|
||||
"代码改动与决策记录必须同一 PR 原子合入,拒绝事后补写"
|
||||
]
|
||||
},
|
||||
{
|
||||
"dot": "cyan",
|
||||
"title": "Agent 防撞护栏",
|
||||
"items": [
|
||||
"源码入口留注释,下任 Agent 看到代码先读 Note,不搞破坏性重构",
|
||||
"机械脚本在 CI 拦截语法和死链,确保决策资产永不腐烂"
|
||||
]
|
||||
}
|
||||
]
|
||||
}
|
||||
@@ -0,0 +1,187 @@
|
||||
{
|
||||
"schema_version": 2,
|
||||
"diagram_type": "workflow",
|
||||
"meta": {
|
||||
"title": "Agent Note Lifecycle: State Machine & Archival Contract",
|
||||
"visual_preset": "classic",
|
||||
"quality_profile": "showcase"
|
||||
},
|
||||
"lanes": [
|
||||
{
|
||||
"id": "draft",
|
||||
"label": "提案与立项 (Draft & Proposed)"
|
||||
},
|
||||
{
|
||||
"id": "active",
|
||||
"label": "活跃现行法律 (Living Law)"
|
||||
},
|
||||
{
|
||||
"id": "sync_lane",
|
||||
"label": "日常迭代维护 (Daily Evolution)"
|
||||
},
|
||||
{
|
||||
"id": "frozen",
|
||||
"label": "冻结封存记录 (Frozen Archive)"
|
||||
}
|
||||
],
|
||||
"phases": [
|
||||
{
|
||||
"id": "p1",
|
||||
"label": "1. 提案与评审",
|
||||
"fromCol": 0,
|
||||
"toCol": 1
|
||||
},
|
||||
{
|
||||
"id": "p2",
|
||||
"label": "2. 交付与现行演进",
|
||||
"fromCol": 2,
|
||||
"toCol": 3,
|
||||
"variant": "emphasis"
|
||||
},
|
||||
{
|
||||
"id": "p3",
|
||||
"label": "3. 取代与封存",
|
||||
"fromCol": 4,
|
||||
"toCol": 4,
|
||||
"variant": "dashed"
|
||||
}
|
||||
],
|
||||
"nodes": [
|
||||
{
|
||||
"id": "idea",
|
||||
"lane": "draft",
|
||||
"col": 0,
|
||||
"type": "frontend",
|
||||
"label": "架构构想产生",
|
||||
"sublabel": "技术选型 / 模块重构",
|
||||
"width": 140
|
||||
},
|
||||
{
|
||||
"id": "proposed",
|
||||
"lane": "draft",
|
||||
"col": 1,
|
||||
"type": "backend",
|
||||
"label": "proposed/ 提案",
|
||||
"sublabel": "写清背景与强制反稻草人备选",
|
||||
"width": 140
|
||||
},
|
||||
{
|
||||
"id": "rejected",
|
||||
"lane": "frozen",
|
||||
"col": 1,
|
||||
"type": "security",
|
||||
"label": "rejected/ 否决",
|
||||
"sublabel": "一句话原因留痕,防后人重犯",
|
||||
"tag": "防反复翻案",
|
||||
"width": 140
|
||||
},
|
||||
{
|
||||
"id": "implemented",
|
||||
"lane": "active",
|
||||
"col": 2,
|
||||
"type": "backend",
|
||||
"label": "implemented/ 现行",
|
||||
"sublabel": "现在时 Decision,与代码原子提交",
|
||||
"tag": "现行法律",
|
||||
"width": 140
|
||||
},
|
||||
{
|
||||
"id": "sync",
|
||||
"lane": "sync_lane",
|
||||
"col": 2,
|
||||
"type": "database",
|
||||
"label": "80% 原地事实同步",
|
||||
"sublabel": "改名移包同批直接改 Note 事实",
|
||||
"tag": "In-place Sync",
|
||||
"width": 140
|
||||
},
|
||||
{
|
||||
"id": "superseded",
|
||||
"lane": "active",
|
||||
"col": 3,
|
||||
"type": "backend",
|
||||
"label": "被新方案取代",
|
||||
"sublabel": "将独特理由搬入新代 Note",
|
||||
"tag": "Supersession",
|
||||
"width": 140
|
||||
},
|
||||
{
|
||||
"id": "archived",
|
||||
"lane": "frozen",
|
||||
"col": 4,
|
||||
"type": "cloud",
|
||||
"label": "archived/ 封存",
|
||||
"sublabel": "永久封印入 manifest.json",
|
||||
"tag": "SHA-256 锁定",
|
||||
"width": 140
|
||||
}
|
||||
],
|
||||
"edges": [
|
||||
{
|
||||
"id": "e1",
|
||||
"from": "idea",
|
||||
"to": "proposed",
|
||||
"variant": "emphasis"
|
||||
},
|
||||
{
|
||||
"id": "e2",
|
||||
"from": "proposed",
|
||||
"to": "implemented",
|
||||
"label": "评审通过交付",
|
||||
"variant": "emphasis"
|
||||
},
|
||||
{
|
||||
"id": "e3",
|
||||
"from": "proposed",
|
||||
"to": "rejected",
|
||||
"label": "方案被否决",
|
||||
"variant": "security"
|
||||
},
|
||||
{
|
||||
"id": "e4",
|
||||
"from": "implemented",
|
||||
"to": "sync",
|
||||
"label": "代码小幅重构",
|
||||
"variant": "default"
|
||||
},
|
||||
{
|
||||
"id": "e5",
|
||||
"from": "sync",
|
||||
"to": "implemented",
|
||||
"label": "就地更新事实",
|
||||
"variant": "default"
|
||||
},
|
||||
{
|
||||
"id": "e6",
|
||||
"from": "implemented",
|
||||
"to": "superseded",
|
||||
"label": "新架构出现",
|
||||
"variant": "emphasis"
|
||||
},
|
||||
{
|
||||
"id": "e7",
|
||||
"from": "superseded",
|
||||
"to": "archived",
|
||||
"label": "归档封存",
|
||||
"variant": "security"
|
||||
}
|
||||
],
|
||||
"cards": [
|
||||
{
|
||||
"dot": "emerald",
|
||||
"title": "状态机铁律",
|
||||
"items": [
|
||||
"implemented 状态严禁出现 Plan/Proposal 词汇,全篇必须是现在时事实",
|
||||
"rejected 仅当其理由能避免重蹈覆辙时保留,否则彻底删除"
|
||||
]
|
||||
},
|
||||
{
|
||||
"dot": "rose",
|
||||
"title": "冻结与防腐",
|
||||
"items": [
|
||||
"进入 archived/ 的文件永久计算 SHA-256 封印在 manifest.json",
|
||||
"归档文件跳过日常 CI 语法扫描,释放团队日常维护心智负担"
|
||||
]
|
||||
}
|
||||
]
|
||||
}
|
||||