ARCHITECTURE_OVERVIEW.html 23 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579
  1. <!DOCTYPE html>
  2. <html lang="zh-CN">
  3. <head>
  4. <meta charset="UTF-8">
  5. <meta name="viewport" content="width=device-width, initial-scale=1.0">
  6. <title>auto_put_ad_mini · 整体架构</title>
  7. <link rel="preconnect" href="https://fonts.googleapis.com">
  8. <link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
  9. <link href="https://fonts.googleapis.com/css2?family=Newsreader:opsz,wght,SOFT@6..72,300..800,0..100&family=IBM+Plex+Sans:wght@300;400;500;600&family=JetBrains+Mono:wght@400;500&family=Noto+Sans+SC:wght@300;400;500&family=Noto+Serif+SC:wght@300;400;500&display=swap" rel="stylesheet">
  10. <style>
  11. :root {
  12. --paper: #F2EDE3;
  13. --paper-warm: #EFE8DA;
  14. --paper-line: #D4CDB8;
  15. --ink: #0F1F2E;
  16. --ink-2: #2D3D52;
  17. --ink-3: #4A5870;
  18. --ink-mute: #7A8294;
  19. --accent: #C75D3F;
  20. --moss: #5C7A52;
  21. --gold: #B8902F;
  22. --serif: "Newsreader", "Noto Serif SC", Georgia, serif;
  23. --sans: "IBM Plex Sans", "Noto Sans SC", system-ui, sans-serif;
  24. --mono: "JetBrains Mono", monospace;
  25. }
  26. * { box-sizing: border-box; margin: 0; padding: 0; }
  27. body {
  28. background: var(--paper);
  29. color: var(--ink);
  30. font-family: var(--sans);
  31. line-height: 1.5;
  32. min-height: 100vh;
  33. background-image:
  34. repeating-linear-gradient(0deg, transparent 0, transparent 39px, var(--paper-line) 39px, var(--paper-line) 40px),
  35. repeating-linear-gradient(90deg, transparent 0, transparent 39px, var(--paper-line) 39px, var(--paper-line) 40px);
  36. background-blend-mode: multiply;
  37. position: relative;
  38. }
  39. body::before {
  40. content: "";
  41. position: fixed; inset: 0;
  42. pointer-events: none;
  43. opacity: 0.5;
  44. background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' /%3E%3CfeColorMatrix values='0 0 0 0 0.06 0 0 0 0 0.12 0 0 0 0 0.18 0 0 0 0.04 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  45. mix-blend-mode: multiply;
  46. z-index: 1;
  47. }
  48. main {
  49. position: relative; z-index: 2;
  50. max-width: 1280px;
  51. margin: 0 auto;
  52. padding: 56px 48px 64px;
  53. }
  54. .head {
  55. display: flex;
  56. justify-content: space-between;
  57. align-items: baseline;
  58. margin-bottom: 16px;
  59. padding-bottom: 24px;
  60. border-bottom: 1px solid var(--ink);
  61. flex-wrap: wrap;
  62. gap: 24px;
  63. }
  64. .eyebrow {
  65. font-family: var(--mono);
  66. font-size: 11px;
  67. letter-spacing: 0.3em;
  68. color: var(--accent);
  69. margin-bottom: 12px;
  70. text-transform: uppercase;
  71. }
  72. h1 {
  73. font-family: var(--serif);
  74. font-size: clamp(40px, 5.5vw, 72px);
  75. font-weight: 300;
  76. line-height: 0.95;
  77. letter-spacing: -0.025em;
  78. font-variation-settings: "opsz" 72, "SOFT" 30;
  79. }
  80. h1 em {
  81. font-style: italic;
  82. color: var(--accent);
  83. font-variation-settings: "opsz" 72, "SOFT" 100;
  84. }
  85. .tagline {
  86. font-family: var(--mono);
  87. font-size: 11px;
  88. letter-spacing: 0.15em;
  89. color: var(--ink-mute);
  90. text-align: right;
  91. line-height: 1.7;
  92. }
  93. .subtitle {
  94. font-family: var(--serif);
  95. font-size: 18px;
  96. font-style: italic;
  97. color: var(--ink-2);
  98. font-weight: 300;
  99. margin: 16px 0 48px;
  100. font-variation-settings: "opsz" 18, "SOFT" 60;
  101. max-width: 820px;
  102. }
  103. .diagram-wrap {
  104. background: var(--paper-warm);
  105. border: 1px solid var(--ink);
  106. padding: 36px 24px;
  107. margin-bottom: 32px;
  108. position: relative;
  109. }
  110. .diagram-wrap::before {
  111. content: "图 · 系统架构";
  112. position: absolute;
  113. top: -12px;
  114. left: 24px;
  115. background: var(--paper);
  116. padding: 0 12px;
  117. font-family: var(--mono);
  118. font-size: 11px;
  119. letter-spacing: 0.2em;
  120. text-transform: uppercase;
  121. color: var(--ink-3);
  122. border: 1px solid var(--ink);
  123. height: 24px;
  124. display: flex;
  125. align-items: center;
  126. }
  127. svg.arch {
  128. display: block;
  129. width: 100%;
  130. height: auto;
  131. }
  132. svg.arch text {
  133. font-family: var(--sans);
  134. fill: var(--ink-2);
  135. font-size: 13px;
  136. }
  137. svg.arch .title {
  138. font-family: var(--serif);
  139. font-weight: 500;
  140. fill: var(--ink);
  141. font-size: 18px;
  142. font-variation-settings: "opsz" 18;
  143. }
  144. svg.arch .title-en {
  145. font-family: var(--mono);
  146. font-size: 10px;
  147. fill: var(--ink-mute);
  148. letter-spacing: 0.15em;
  149. }
  150. svg.arch .body { font-size: 12px; fill: var(--ink-3); }
  151. svg.arch .body-strong { font-size: 12.5px; fill: var(--ink-2); font-weight: 500; }
  152. svg.arch .layer-bg {
  153. fill: var(--paper);
  154. stroke: var(--ink);
  155. stroke-width: 1;
  156. }
  157. svg.arch .agent-bg {
  158. fill: var(--paper-warm);
  159. stroke: var(--ink);
  160. stroke-width: 1.5;
  161. }
  162. svg.arch .core-bg-llm {
  163. fill: var(--ink);
  164. stroke: var(--ink);
  165. }
  166. svg.arch .core-bg {
  167. fill: var(--paper);
  168. stroke: var(--ink);
  169. }
  170. svg.arch .core-bg-accent {
  171. fill: var(--paper);
  172. stroke: var(--accent);
  173. stroke-width: 2;
  174. }
  175. svg.arch .llm-text { fill: var(--paper); }
  176. svg.arch .llm-text-mute { fill: var(--paper-warm); opacity: 0.7; }
  177. svg.arch .arrow-data {
  178. stroke: var(--moss);
  179. stroke-width: 1.5;
  180. fill: none;
  181. }
  182. svg.arch .arrow-act {
  183. stroke: var(--accent);
  184. stroke-width: 1.5;
  185. fill: none;
  186. }
  187. svg.arch .arrow-internal {
  188. stroke: var(--ink);
  189. stroke-width: 1;
  190. fill: none;
  191. stroke-dasharray: 3 3;
  192. }
  193. svg.arch .arrow-loop {
  194. stroke: var(--ink-3);
  195. stroke-width: 1;
  196. fill: none;
  197. }
  198. svg.arch .arrow-label {
  199. font-family: var(--mono);
  200. font-size: 10px;
  201. fill: var(--ink-mute);
  202. letter-spacing: 0.05em;
  203. }
  204. svg.arch .agent-label {
  205. font-family: var(--serif);
  206. font-style: italic;
  207. font-size: 14px;
  208. fill: var(--ink-2);
  209. font-variation-settings: "opsz" 14, "SOFT" 80;
  210. }
  211. .legend {
  212. display: grid;
  213. grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  214. gap: 12px 32px;
  215. margin-top: 24px;
  216. font-size: 13px;
  217. }
  218. .legend-item {
  219. display: flex;
  220. align-items: center;
  221. gap: 12px;
  222. color: var(--ink-2);
  223. }
  224. .legend-line {
  225. width: 32px;
  226. height: 2px;
  227. flex-shrink: 0;
  228. }
  229. .legend-line.data { background: var(--moss); }
  230. .legend-line.act { background: var(--accent); }
  231. .legend-line.internal { background: repeating-linear-gradient(to right, var(--ink) 0 4px, transparent 4px 7px); height: 1px; }
  232. footer {
  233. margin-top: 32px;
  234. padding-top: 16px;
  235. border-top: 1px dashed var(--paper-line);
  236. font-family: var(--mono);
  237. font-size: 11px;
  238. color: var(--ink-mute);
  239. letter-spacing: 0.1em;
  240. display: flex;
  241. justify-content: space-between;
  242. flex-wrap: wrap;
  243. gap: 12px;
  244. }
  245. footer .stamp {
  246. font-family: var(--serif);
  247. font-style: italic;
  248. letter-spacing: 0.02em;
  249. }
  250. @keyframes drawIn {
  251. from { opacity: 0; transform: translateY(8px); }
  252. to { opacity: 1; transform: translateY(0); }
  253. }
  254. .head, .subtitle, .diagram-wrap, .legend, footer {
  255. animation: drawIn 0.6s ease-out backwards;
  256. }
  257. .head { animation-delay: 0.05s; }
  258. .subtitle { animation-delay: 0.15s; }
  259. .diagram-wrap { animation-delay: 0.25s; }
  260. .legend { animation-delay: 0.5s; }
  261. footer { animation-delay: 0.6s; }
  262. @media (max-width: 700px) {
  263. main { padding: 32px 20px; }
  264. .head { flex-direction: column; }
  265. .tagline { text-align: left; }
  266. }
  267. </style>
  268. </head>
  269. <body>
  270. <main>
  271. <header class="head">
  272. <div>
  273. <div class="eyebrow">微信小程序投流 · 整体架构</div>
  274. <h1>广告 ROI <em>调控官</em></h1>
  275. </div>
  276. <div class="tagline">
  277. 项目代号 auto_put_ad_mini<br>
  278. v0.4.27 · 2026-04-28
  279. </div>
  280. </header>
  281. <p class="subtitle">
  282. 一个广告调控智能体由<strong style="color:var(--ink);font-style:normal">大脑、知识、能力、调度</strong>四件事组成。每天定时从数仓读数 → 用投手经验思考 → 产出决策 → 飞书等运营审批 → 调腾讯接口执行;运营反馈可触发<strong style="color:var(--accent);font-style:normal">协商重审</strong>。
  283. </p>
  284. <div class="diagram-wrap">
  285. <svg class="arch" viewBox="0 0 1260 940" xmlns="http://www.w3.org/2000/svg">
  286. <defs>
  287. <marker id="arr-data" viewBox="0 0 10 10" refX="9" refY="5" markerWidth="6" markerHeight="6" orient="auto">
  288. <path d="M 0 0 L 10 5 L 0 10 z" fill="#5C7A52"/>
  289. </marker>
  290. <marker id="arr-act" viewBox="0 0 10 10" refX="9" refY="5" markerWidth="6" markerHeight="6" orient="auto">
  291. <path d="M 0 0 L 10 5 L 0 10 z" fill="#C75D3F"/>
  292. </marker>
  293. <marker id="arr-int" viewBox="0 0 10 10" refX="9" refY="5" markerWidth="5" markerHeight="5" orient="auto">
  294. <path d="M 0 0 L 10 5 L 0 10 z" fill="#0F1F2E"/>
  295. </marker>
  296. </defs>
  297. <!-- ================ LEFT: 数据世界 (Inputs) ================ -->
  298. <g>
  299. <text x="100" y="30" class="title-en" text-anchor="middle">INPUT</text>
  300. <text x="100" y="56" class="agent-label" text-anchor="middle">数据世界</text>
  301. <rect x="20" y="80" width="160" height="60" class="layer-bg"/>
  302. <text x="100" y="108" class="title" text-anchor="middle">广告数据</text>
  303. <text x="100" y="128" class="body" text-anchor="middle">投放消耗 · 用户回流</text>
  304. <rect x="20" y="160" width="160" height="60" class="layer-bg"/>
  305. <text x="100" y="188" class="title" text-anchor="middle">广告状态</text>
  306. <text x="100" y="208" class="body" text-anchor="middle">出价 · 投放开关 · 定向</text>
  307. <rect x="20" y="240" width="160" height="60" class="layer-bg"/>
  308. <text x="100" y="268" class="title" text-anchor="middle">运营配置</text>
  309. <text x="100" y="288" class="body" text-anchor="middle">阈值 · 白名单 · 开关</text>
  310. </g>
  311. <!-- ================ AGENT BOX (Center) ================ -->
  312. <g>
  313. <rect x="240" y="60" width="700" height="820" class="agent-bg" rx="2"/>
  314. <text x="590" y="40" class="title-en" text-anchor="middle">AGENT INTERNAL</text>
  315. <text x="590" y="86" class="agent-label" text-anchor="middle" font-size="18" style="font-style:italic">智能体内部</text>
  316. <!-- 大脑 (LLM) - center top -->
  317. <rect x="430" y="120" width="320" height="76" class="core-bg-llm" rx="2"/>
  318. <text x="590" y="148" class="title llm-text" text-anchor="middle">大脑 · 推理</text>
  319. <text x="590" y="170" class="body llm-text-mute" text-anchor="middle">读懂数据 · 综合判断</text>
  320. <text x="590" y="186" class="body llm-text-mute" text-anchor="middle">写出决策 · 解释理由</text>
  321. <!-- 调度 (Runner) -->
  322. <rect x="450" y="220" width="280" height="56" class="core-bg-accent" rx="2"/>
  323. <text x="590" y="244" class="title" text-anchor="middle" fill="#C75D3F">调度 · 循环</text>
  324. <text x="590" y="263" class="body" text-anchor="middle">看 → 想 → 做 → 看,反复直到任务完成</text>
  325. <!-- =========== 知识 (Skills) - bottom left =========== -->
  326. <rect x="270" y="310" width="290" height="540" class="core-bg" rx="2"/>
  327. <text x="415" y="338" class="title" text-anchor="middle">知识 · 投手经验</text>
  328. <text x="415" y="358" class="body" text-anchor="middle" style="font-style:italic;font-family:var(--serif)">4 份手册,注入大脑提示让它"懂行"</text>
  329. <line x1="290" y1="372" x2="540" y2="372" stroke="#D4CDB8" stroke-width="0.5"/>
  330. <!-- skill rows -->
  331. <!-- ad_domain -->
  332. <text x="290" y="402" class="body-strong" style="font-family:var(--mono);font-size:12px">ad_domain</text>
  333. <text x="290" y="420" class="body">业务模型 · 解释为什么 R500 当日 ROI 偏低</text>
  334. <text x="290" y="436" class="body">裂变变现 · R 值人群 · 动态 ROI 公式</text>
  335. <line x1="290" y1="452" x2="540" y2="452" stroke="#EFE8DA" stroke-width="0.5"/>
  336. <!-- platform_rules -->
  337. <text x="290" y="478" class="body-strong" style="font-family:var(--mono);font-size:12px">platform_rules</text>
  338. <text x="290" y="496" class="body">平台硬约束 · 优先级最高,违反必掉量</text>
  339. <text x="290" y="512" class="body">学习期保护 · 调价上限 · 数据口径</text>
  340. <line x1="290" y1="528" x2="540" y2="528" stroke="#EFE8DA" stroke-width="0.5"/>
  341. <!-- decision_strategy (CORE) -->
  342. <text x="290" y="554" class="body-strong" style="font-family:var(--mono);font-size:12px;fill:#C75D3F">★ decision_strategy</text>
  343. <text x="290" y="572" class="body" style="fill:#0F1F2E">决策核心 · 真正的"作战手册"</text>
  344. <text x="290" y="588" class="body">7 种动作 · 阈值参考 · reason 5 元组</text>
  345. <line x1="290" y1="604" x2="540" y2="604" stroke="#EFE8DA" stroke-width="0.5"/>
  346. <!-- posterior_wisdom -->
  347. <text x="290" y="630" class="body-strong" style="font-family:var(--mono);font-size:12px">posterior_wisdom</text>
  348. <text x="290" y="648" class="body">后验经验入口 · 待积累实战案例</text>
  349. <text x="290" y="664" class="body">历史降价恢复 · 创意冷启动 等</text>
  350. <!-- =========== 能力 (Tools) - 工具流水线 =========== -->
  351. <rect x="620" y="310" width="290" height="540" class="core-bg" rx="2"/>
  352. <text x="765" y="338" class="title" text-anchor="middle">能力 · 工具流水线</text>
  353. <text x="765" y="358" class="body" text-anchor="middle" style="font-style:italic;font-family:var(--serif)">12 个工具,大脑通过调度按序调用</text>
  354. <line x1="640" y1="372" x2="890" y2="372" stroke="#D4CDB8" stroke-width="0.5"/>
  355. <!-- ① 取数 -->
  356. <rect x="635" y="385" width="260" height="50" class="layer-bg" rx="1"/>
  357. <text x="643" y="402" class="body" style="font-size:10.5px;fill:#7A8294;letter-spacing:0.06em">① 取数</text>
  358. <text x="643" y="418" class="body-strong" style="font-family:var(--mono);font-size:11.5px">data_query</text>
  359. <text x="643" y="431" class="body" style="font-size:11px">拉创意级数据 + 广告状态</text>
  360. <path d="M 765 435 L 765 449" stroke="#0F1F2E" stroke-width="1" fill="none" marker-end="url(#arr-int)"/>
  361. <text x="772" y="446" class="arrow-label" style="font-size:9px">CSV 落盘</text>
  362. <!-- ② 算指标 -->
  363. <rect x="635" y="455" width="260" height="50" class="layer-bg" rx="1"/>
  364. <text x="643" y="472" class="body" style="font-size:10.5px;fill:#7A8294;letter-spacing:0.06em">② 算指标</text>
  365. <text x="643" y="488" class="body-strong" style="font-family:var(--mono);font-size:11.5px">roi_calculator + portfolio_metrics</text>
  366. <text x="643" y="501" class="body" style="font-size:11px">动态 ROI + 渠道/分群基线</text>
  367. <path d="M 765 505 L 765 519" stroke="#0F1F2E" stroke-width="1" fill="none" marker-end="url(#arr-int)"/>
  368. <text x="772" y="516" class="arrow-label" style="font-size:9px">metrics 表</text>
  369. <!-- ③ 筛 + LLM 决策 (核心,描红边) -->
  370. <rect x="635" y="525" width="260" height="50" class="layer-bg" rx="1" style="stroke:#C75D3F;stroke-width:1.5"/>
  371. <text x="643" y="542" class="body" style="font-size:10.5px;fill:#C75D3F;letter-spacing:0.06em">③ 筛 + LLM 决策(核心)</text>
  372. <text x="643" y="558" class="body-strong" style="font-family:var(--mono);font-size:11.5px">ad_decision</text>
  373. <text x="643" y="571" class="body" style="font-size:11px">候选标记 → LLM 综合 → 决策</text>
  374. <path d="M 765 575 L 765 589" stroke="#0F1F2E" stroke-width="1" fill="none" marker-end="url(#arr-int)"/>
  375. <text x="772" y="586" class="arrow-label" style="font-size:9px">决策 JSON</text>
  376. <!-- ④ 护栏 -->
  377. <rect x="635" y="595" width="260" height="50" class="layer-bg" rx="1"/>
  378. <text x="643" y="612" class="body" style="font-size:10.5px;fill:#7A8294;letter-spacing:0.06em">④ 护栏</text>
  379. <text x="643" y="628" class="body-strong" style="font-family:var(--mono);font-size:11.5px">guardrails</text>
  380. <text x="643" y="641" class="body" style="font-size:11px">冷启动 / 出价 / 频率 / 新鲜度</text>
  381. <path d="M 765 645 L 765 659" stroke="#0F1F2E" stroke-width="1" fill="none" marker-end="url(#arr-int)"/>
  382. <text x="772" y="656" class="arrow-label" style="font-size:9px">已校验</text>
  383. <!-- ⑤ 送审 -->
  384. <rect x="635" y="665" width="260" height="50" class="layer-bg" rx="1"/>
  385. <text x="643" y="682" class="body" style="font-size:10.5px;fill:#7A8294;letter-spacing:0.06em">⑤ 送审 · 阻塞 120 min</text>
  386. <text x="643" y="698" class="body-strong" style="font-family:var(--mono);font-size:11.5px">im_approval + feishu_doc</text>
  387. <text x="643" y="711" class="body" style="font-size:11px">表 + 卡片推送 · 等运营回复</text>
  388. <path d="M 765 715 L 765 729" stroke="#0F1F2E" stroke-width="1" fill="none" marker-end="url(#arr-int)"/>
  389. <text x="772" y="726" class="arrow-label" style="font-size:9px">通过 / 拒绝</text>
  390. <!-- ⑥ 执行 -->
  391. <rect x="635" y="735" width="260" height="50" class="layer-bg" rx="1"/>
  392. <text x="643" y="752" class="body" style="font-size:10.5px;fill:#7A8294;letter-spacing:0.06em">⑥ 执行</text>
  393. <text x="643" y="768" class="body-strong" style="font-family:var(--mono);font-size:11.5px">execution_engine + ad_api</text>
  394. <text x="643" y="781" class="body" style="font-size:11px">调腾讯接口 OR 仅 log(开关)</text>
  395. <!-- 报告生成 (尾部说明) -->
  396. <text x="765" y="810" class="body" text-anchor="middle" style="font-size:10.5px;font-family:var(--serif);font-style:italic;fill:#7A8294">+ report_generator 生成 Excel 报告 · 全程审计</text>
  397. <!-- =========== Internal arrows =========== -->
  398. <!-- 知识 → 大脑 -->
  399. <path class="arrow-internal" d="M 415 310 L 415 200 L 470 196" marker-end="url(#arr-int)"/>
  400. <text x="370" y="260" class="arrow-label" transform="rotate(-90 370 260)">注入提示词</text>
  401. <!-- 能力 → 大脑 -->
  402. <path class="arrow-internal" d="M 765 310 L 765 200 L 710 196" marker-end="url(#arr-int)"/>
  403. <text x="810" y="260" class="arrow-label" transform="rotate(-90 810 260)">返回观测</text>
  404. <!-- 大脑 → 调度 -->
  405. <path class="arrow-internal" d="M 590 196 L 590 220" marker-end="url(#arr-int)"/>
  406. <!-- 调度 → 能力 -->
  407. <path class="arrow-internal" d="M 690 276 Q 765 295 765 310" marker-end="url(#arr-int)"/>
  408. <text x="710" y="298" class="arrow-label">调用</text>
  409. </g>
  410. <!-- ================ RIGHT: 决策出口 + 运营人 ================ -->
  411. <g>
  412. <text x="1080" y="30" class="title-en" text-anchor="middle">OUTPUT</text>
  413. <text x="1080" y="56" class="agent-label" text-anchor="middle">决策落地</text>
  414. <rect x="1000" y="80" width="160" height="60" class="layer-bg" style="stroke-width:1.5"/>
  415. <text x="1080" y="106" class="title" text-anchor="middle">飞书审批表</text>
  416. <text x="1080" y="126" class="body" text-anchor="middle">表 + 卡片消息</text>
  417. <rect x="1000" y="160" width="160" height="60" class="layer-bg"/>
  418. <text x="1080" y="186" class="title" text-anchor="middle">广告变更</text>
  419. <text x="1080" y="206" class="body" text-anchor="middle">调出价 / 暂停</text>
  420. <rect x="1000" y="240" width="160" height="60" class="layer-bg"/>
  421. <text x="1080" y="266" class="title" text-anchor="middle">报告归档</text>
  422. <text x="1080" y="286" class="body" text-anchor="middle">Excel + 审计日志</text>
  423. <!-- 运营人 actor -->
  424. <rect x="1000" y="380" width="160" height="80" class="layer-bg" style="fill:#EFE8DA;stroke-width:2;stroke:#C75D3F"/>
  425. <text x="1080" y="406" class="title" text-anchor="middle" style="fill:#C75D3F">运营人</text>
  426. <text x="1080" y="426" class="body" text-anchor="middle">飞书查表</text>
  427. <text x="1080" y="442" class="body" text-anchor="middle">通过 / 拒绝 / 协商</text>
  428. </g>
  429. <!-- ================ Cross-cutting arrows ================ -->
  430. <!-- 数据进入 → ① 取数 stage -->
  431. <path class="arrow-data" d="M 180 110 Q 380 110 635 405" marker-end="url(#arr-data)"/>
  432. <path class="arrow-data" d="M 180 190 Q 380 190 635 410" marker-end="url(#arr-data)"/>
  433. <text x="380" y="155" class="arrow-label" style="fill:#5C7A52">取数</text>
  434. <!-- 配置 → 调度 (虚线影响) -->
  435. <path d="M 180 270 Q 320 270 470 248" stroke="#5C7A52" stroke-width="1.2" fill="none" stroke-dasharray="3 3" marker-end="url(#arr-data)"/>
  436. <text x="280" y="262" class="arrow-label" style="fill:#5C7A52">阈值/白名单</text>
  437. <!-- ⑤ 送审 → 飞书审批表 -->
  438. <path class="arrow-act" d="M 895 690 Q 970 400 1000 110" marker-end="url(#arr-act)"/>
  439. <text x="952" y="380" class="arrow-label" style="fill:#C75D3F" transform="rotate(-72 952 380)">送审</text>
  440. <!-- 飞书审批表 ↔ 运营 (双向) -->
  441. <path class="arrow-act" d="M 1075 140 L 1075 380" marker-end="url(#arr-act)"/>
  442. <path class="arrow-act" d="M 1090 380 L 1090 140" marker-end="url(#arr-act)"/>
  443. <text x="1175" y="265" class="arrow-label" style="fill:#C75D3F" text-anchor="end">看 / 回</text>
  444. <!-- 运营 → ad_decision (协商反馈,虚线) -->
  445. <path d="M 1000 420 Q 945 420 945 555 L 895 555" stroke="#C75D3F" stroke-width="1.4" fill="none" stroke-dasharray="4 3" marker-end="url(#arr-act)"/>
  446. <text x="932" y="495" class="arrow-label" style="fill:#C75D3F" transform="rotate(-90 932 495)">协商反馈 · 重审</text>
  447. <!-- ⑥ 执行 → 广告变更 -->
  448. <path class="arrow-act" d="M 895 760 Q 980 480 1000 190" marker-end="url(#arr-act)"/>
  449. <text x="993" y="500" class="arrow-label" style="fill:#C75D3F" transform="rotate(-78 993 500)">执行写入</text>
  450. <!-- 报告 → 报告归档 -->
  451. <path d="M 895 815 Q 998 530 1000 270" stroke="#7A8294" stroke-width="0.8" fill="none" stroke-dasharray="2 3" marker-end="url(#arr-int)"/>
  452. <text x="1011" y="600" class="arrow-label" style="fill:#7A8294" transform="rotate(-78 1011 600)">归档</text>
  453. <!-- ================ Persistence (bottom strip) ================ -->
  454. <g>
  455. <line x1="240" y1="900" x2="940" y2="900" stroke="#0F1F2E" stroke-width="0.5" stroke-dasharray="2 4"/>
  456. <rect x="475" y="908" width="230" height="24" class="layer-bg" rx="2"/>
  457. <text x="590" y="924" class="body-strong" text-anchor="middle" font-size="11">审计 · 记忆 · 全程留痕(.trace/)</text>
  458. <line x1="415" y1="850" x2="415" y2="900" stroke="#7A8294" stroke-width="0.5" stroke-dasharray="1 3"/>
  459. <line x1="765" y1="785" x2="765" y2="900" stroke="#7A8294" stroke-width="0.5" stroke-dasharray="1 3"/>
  460. <line x1="590" y1="276" x2="590" y2="900" stroke="#7A8294" stroke-width="0.5" stroke-dasharray="1 3"/>
  461. </g>
  462. <!-- 主流程标签 -->
  463. <text x="100" y="380" class="arrow-label" text-anchor="middle" style="fill:#5C7A52">外部 → 智能体</text>
  464. <text x="1080" y="500" class="arrow-label" text-anchor="middle" style="fill:#C75D3F">智能体 ⇄ 运营</text>
  465. </svg>
  466. </div>
  467. <div class="legend">
  468. <div class="legend-item">
  469. <span class="legend-line data"></span>
  470. <span><strong>苔绿实线 · 数据流</strong> · 外部 → 智能体(取数)</span>
  471. </div>
  472. <div class="legend-item">
  473. <span class="legend-line act"></span>
  474. <span><strong>陶土橙实线 · 行动流</strong> · 智能体 → 外部(送审 / 写入)</span>
  475. </div>
  476. <div class="legend-item">
  477. <span class="legend-line internal"></span>
  478. <span><strong>黑色虚线 · 内部协作</strong> · 注入提示 / 调用工具 / 返回观测</span>
  479. </div>
  480. <div class="legend-item">
  481. <span class="legend-line" style="background: repeating-linear-gradient(to right, #C75D3F 0 4px, transparent 4px 7px); height: 1.5px;"></span>
  482. <span><strong>橙色虚线 · 协商反馈</strong> · 运营回复 → 智能体重新评估</span>
  483. </div>
  484. </div>
  485. <footer>
  486. <div>auto_put_ad_mini · 整体架构 · 概念层一图概览</div>
  487. <div class="stamp">examples/auto_put_ad_mini/</div>
  488. </footer>
  489. </main>
  490. </body>
  491. </html>