Turn any idea, plan, or codebase into a beautiful interactive diagram. An agent skill for Claude Code, Codex, and more.
HTML agent-skillsai-agentsarchitecture-diagramclaude-codeclaude-skillscodexcoding-agentsdeepseek-harnessdeveloper-toolsdiagramsdiagrams-as-codedsh-pluginflowchartllmmermaidopencodesequence-diagramsoftware-architecturesystem-designvisualization
Redesign lifecycle diagram visual model
tt-a1i692800625a3a
diff --git a/archify.zip b/archify.zipindex acb86d11..6c174b6b 100644Binary files a/archify.zip and b/archify.zip differdiff --git a/archify/examples/agent-run.lifecycle.json b/archify/examples/agent-run.lifecycle.jsonindex 5922ee2e..99390015 100644--- a/archify/examples/agent-run.lifecycle.json+++ b/archify/examples/agent-run.lifecycle.json@@ -5,7 +5,7 @@"title": "Agent Run Lifecycle","subtitle": "State machine for planning, tool execution, human approval, retries, and terminal outcomes","output": "examples/lifecycle-agent-run.html",- "viewBox": [980, 720]+ "viewBox": [980, 500]},"lanes": [{ "id": "main", "label": "Main lifecycle" },@@ -21,21 +21,21 @@{ "id": "approval", "type": "waiting", "label": "Needs Approval", "sublabel": "human gate", "lane": "waiting", "col": 3, "tag": "pause" },{ "id": "blocked", "type": "waiting", "label": "Blocked", "sublabel": "missing input", "lane": "waiting", "col": 4, "tag": "wait" },{ "id": "failed", "type": "failure", "label": "Failed", "sublabel": "recoverable error", "lane": "exceptions", "col": 2, "tag": "retryable" },- { "id": "cancelled", "type": "failure", "label": "Cancelled", "sublabel": "user stopped", "lane": "exceptions", "col": 4, "tag": "terminal" },- { "id": "expired", "type": "failure", "label": "Expired", "sublabel": "timeout", "lane": "exceptions", "col": 5, "tag": "terminal" }+ { "id": "cancelled", "type": "failure", "label": "Cancelled", "sublabel": "user stopped", "lane": "exceptions", "col": 3, "tag": "terminal" },+ { "id": "expired", "type": "failure", "label": "Expired", "sublabel": "timeout", "lane": "exceptions", "col": 4, "tag": "terminal" }],"transitions": [- { "from": "queued", "to": "planning", "label": "start", "variant": "emphasis", "route": "straight" },- { "from": "planning", "to": "executing", "label": "plan ready", "variant": "emphasis", "route": "straight" },- { "from": "executing", "to": "reviewing", "label": "tool results", "variant": "emphasis", "route": "straight" },- { "from": "reviewing", "to": "completed", "label": "passes", "note": "terminal", "variant": "emphasis", "route": "straight", "labelAt": [624, 104] },- { "from": "executing", "to": "approval", "label": "needs approval", "note": "policy gate", "variant": "security", "fromSide": "bottom", "toSide": "left", "via": [[396, 196], [490, 196]], "labelAt": [444, 184] },- { "from": "approval", "to": "reviewing", "label": "approved", "variant": "dashed", "fromSide": "top", "toSide": "bottom", "route": "straight", "labelAt": [572, 224] },- { "from": "reviewing", "to": "blocked", "label": "needs input", "variant": "default", "route": "drop", "labelAt": [618, 190] },- { "from": "executing", "to": "failed", "label": "tool error", "variant": "security", "fromSide": "bottom", "toSide": "top", "route": "straight", "labelAt": [426, 392] },- { "from": "failed", "to": "planning", "label": "retry", "note": "bounded", "variant": "dashed", "fromSide": "left", "toSide": "bottom", "route": "left-channel", "channelX": 188, "labelAt": [188, 446] },- { "from": "blocked", "to": "expired", "label": "timeout", "variant": "security", "fromSide": "right", "toSide": "top", "route": "right-channel", "channelX": 906, "labelAt": [906, 362] },- { "from": "approval", "to": "cancelled", "label": "cancel", "variant": "security", "fromSide": "bottom", "toSide": "top", "route": "drop", "labelAt": [620, 362] }+ { "from": "queued", "to": "planning", "variant": "emphasis", "route": "straight" },+ { "from": "planning", "to": "executing", "variant": "emphasis", "route": "straight" },+ { "from": "executing", "to": "reviewing", "variant": "emphasis", "route": "straight" },+ { "from": "reviewing", "to": "completed", "variant": "emphasis", "route": "straight" },+ { "from": "executing", "to": "approval", "label": "approval required", "note": "policy gate", "variant": "security", "fromSide": "bottom", "toSide": "left", "via": [[396, 196], [490, 196]], "labelAt": [442, 186] },+ { "from": "approval", "to": "reviewing", "label": "approved", "variant": "dashed", "fromSide": "top", "toSide": "bottom", "route": "straight", "labelAt": [578, 202] },+ { "from": "reviewing", "to": "blocked", "label": "needs input", "variant": "default", "route": "drop", "labelAt": [618, 180] },+ { "from": "executing", "to": "failed", "label": "tool error", "variant": "security", "fromSide": "bottom", "toSide": "top", "route": "straight", "labelAt": [426, 290] },+ { "from": "failed", "to": "planning", "label": "retry", "note": "bounded", "variant": "dashed", "fromSide": "left", "toSide": "bottom", "route": "left-channel", "channelX": 236, "labelAt": [236, 382] },+ { "from": "blocked", "to": "expired", "label": "timeout", "variant": "security", "fromSide": "bottom", "toSide": "top", "route": "straight", "labelAt": [728, 318] },+ { "from": "approval", "to": "cancelled", "label": "cancel", "variant": "security", "fromSide": "bottom", "toSide": "top", "route": "straight", "labelAt": [578, 318] }],"cards": [{diff --git a/archify/renderers/lifecycle/render-lifecycle.mjs b/archify/renderers/lifecycle/render-lifecycle.mjsindex 22fb82c9..4c791575 100644--- a/archify/renderers/lifecycle/render-lifecycle.mjs+++ b/archify/renderers/lifecycle/render-lifecycle.mjs@@ -13,15 +13,15 @@ const outPath = path.resolve(process.cwd(), process.argv[3] || lifecycle.meta.ouconst viewBox = lifecycle.meta.viewBox || [980, 720];const layout = {- laneX: 34,- laneY: 48,- laneW: 912,- laneGap: 22,- laneTitleH: 30,- laneH: 150,+ laneX: 32,+ laneY: 44,+ laneW: 914,+ laneGap: 14,+ laneTitleH: 20,+ laneH: 112,colXs: [96, 246, 396, 546, 696, 846],nodeW: 112,- nodeH: 58+ nodeH: 56};const typeClass = {@@ -286,8 +286,8 @@ function renderDefinitions() {function renderLane(lane, index) {const y = layout.laneY + index * (layout.laneH + layout.laneGap);- return ` <rect x="${layout.laneX}" y="${y}" width="${layout.laneW}" height="${layout.laneH}" rx="10" class="c-lane" stroke-width="1"/>- <text x="${layout.laneX + 14}" y="${y + 22}" class="t-dim" font-size="10" font-weight="600">${String(index + 1).padStart(2, '0')} / ${esc(lane.label)}</text>`;+ return ` <path d="M ${layout.laneX} ${y + layout.laneTitleH} L ${layout.laneX + layout.laneW} ${y + layout.laneTitleH}" class="a-default" stroke-width="0.8" stroke-dasharray="3,8"/>+ <text x="${layout.laneX}" y="${y + 14}" class="t-dim" font-size="10" font-weight="600">${String(index + 1).padStart(2, '0')} / ${esc(lane.label)}</text>`;}function renderState(state) {diff --git a/examples/images/archify-lifecycle.png b/examples/images/archify-lifecycle.pngindex 534fb2ee..f9058560 100644Binary files a/examples/images/archify-lifecycle.png and b/examples/images/archify-lifecycle.png differdiff --git a/examples/lifecycle-agent-run.html b/examples/lifecycle-agent-run.htmlindex d7b2a1a8..5bbcec50 100644--- a/examples/lifecycle-agent-run.html+++ b/examples/lifecycle-agent-run.html@@ -448,7 +448,7 @@<!-- Main Diagram --><div class="diagram-container">- <svg viewBox="0 0 980 720">+ <svg viewBox="0 0 980 500"><!-- Definitions --><defs><marker id="arrowhead" markerWidth="10" markerHeight="7" refX="9" refY="3.5" orient="auto">@@ -472,128 +472,123 @@<rect width="100%" height="100%" fill="url(#grid)" /><!-- Lifecycle lanes -->- <rect x="34" y="48" width="912" height="150" rx="10" class="c-lane" stroke-width="1"/>- <text x="48" y="70" class="t-dim" font-size="10" font-weight="600">01 / Main lifecycle</text>+ <path d="M 32 64 L 946 64" class="a-default" stroke-width="0.8" stroke-dasharray="3,8"/>+ <text x="32" y="58" class="t-dim" font-size="10" font-weight="600">01 / Main lifecycle</text>- <rect x="34" y="220" width="912" height="150" rx="10" class="c-lane" stroke-width="1"/>- <text x="48" y="242" class="t-dim" font-size="10" font-weight="600">02 / Wait states</text>+ <path d="M 32 190 L 946 190" class="a-default" stroke-width="0.8" stroke-dasharray="3,8"/>+ <text x="32" y="184" class="t-dim" font-size="10" font-weight="600">02 / Wait states</text>- <rect x="34" y="392" width="912" height="150" rx="10" class="c-lane" stroke-width="1"/>- <text x="48" y="414" class="t-dim" font-size="10" font-weight="600">03 / Exceptions + recovery</text>+ <path d="M 32 316 L 946 316" class="a-default" stroke-width="0.8" stroke-dasharray="3,8"/>+ <text x="32" y="310" class="t-dim" font-size="10" font-weight="600">03 / Exceptions + recovery</text><!-- Transition paths -->- <path d="M 152 138 L 190 138" class="a-emphasis" stroke-width="1.8" marker-end="url(#arrowhead-emphasis)"/>- <path d="M 302 138 L 340 138" class="a-emphasis" stroke-width="1.8" marker-end="url(#arrowhead-emphasis)"/>- <path d="M 452 138 L 490 138" class="a-emphasis" stroke-width="1.8" marker-end="url(#arrowhead-emphasis)"/>- <path d="M 602 138 L 790 138" class="a-emphasis" stroke-width="1.8" marker-end="url(#arrowhead-emphasis)"/>- <path d="M 396 167 L 396 196 L 490 196 L 490 310" class="a-security" stroke-width="1.4" marker-end="url(#arrowhead-security)"/>- <path d="M 546 281 L 546 167" class="a-dashed" stroke-width="1.4" marker-end="url(#arrowhead-dashed)"/>- <path d="M 602 138 L 602 209 L 640 209 L 640 310" class="a-default" stroke-width="1.4" marker-end="url(#arrowhead)"/>- <path d="M 396 167 L 396 453" class="a-security" stroke-width="1.4" marker-end="url(#arrowhead-security)"/>- <path d="M 340 482 L 188 482 L 188 167 L 246 167" class="a-dashed" stroke-width="1.4" marker-end="url(#arrowhead-dashed)"/>- <path d="M 752 310 L 906 310 L 906 453 L 846 453" class="a-security" stroke-width="1.4" marker-end="url(#arrowhead-security)"/>- <path d="M 546 339 L 546 381 L 696 381 L 696 453" class="a-security" stroke-width="1.4" marker-end="url(#arrowhead-security)"/>+ <path d="M 152 110 L 190 110" class="a-emphasis" stroke-width="1.8" marker-end="url(#arrowhead-emphasis)"/>+ <path d="M 302 110 L 340 110" class="a-emphasis" stroke-width="1.8" marker-end="url(#arrowhead-emphasis)"/>+ <path d="M 452 110 L 490 110" class="a-emphasis" stroke-width="1.8" marker-end="url(#arrowhead-emphasis)"/>+ <path d="M 602 110 L 790 110" class="a-emphasis" stroke-width="1.8" marker-end="url(#arrowhead-emphasis)"/>+ <path d="M 396 138 L 396 196 L 490 196 L 490 236" class="a-security" stroke-width="1.4" marker-end="url(#arrowhead-security)"/>+ <path d="M 546 208 L 546 138" class="a-dashed" stroke-width="1.4" marker-end="url(#arrowhead-dashed)"/>+ <path d="M 602 110 L 602 163 L 640 163 L 640 236" class="a-default" stroke-width="1.4" marker-end="url(#arrowhead)"/>+ <path d="M 396 138 L 396 334" class="a-security" stroke-width="1.4" marker-end="url(#arrowhead-security)"/>+ <path d="M 340 362 L 236 362 L 236 138 L 246 138" class="a-dashed" stroke-width="1.4" marker-end="url(#arrowhead-dashed)"/>+ <path d="M 696 264 L 696 334" class="a-security" stroke-width="1.4" marker-end="url(#arrowhead-security)"/>+ <path d="M 546 264 L 546 334" class="a-security" stroke-width="1.4" marker-end="url(#arrowhead-security)"/><!-- States -->- <rect x="40" y="109" width="112" height="58" rx="6" class="c-mask"/>- <rect x="40" y="109" width="112" height="58" rx="6" class="c-frontend" stroke-width="1.5"/>- <text x="96" y="130" class="t-primary" font-size="10" font-weight="600" text-anchor="middle">Queued</text>- <text x="96" y="146" class="t-muted" font-size="7" text-anchor="middle">request accepted</text>- <text x="96" y="156" class="t-frontend" font-size="7" text-anchor="middle">entry</text>-- <rect x="190" y="109" width="112" height="58" rx="6" class="c-mask"/>- <rect x="190" y="109" width="112" height="58" rx="6" class="c-backend" stroke-width="1.5"/>- <text x="246" y="130" class="t-primary" font-size="10" font-weight="600" text-anchor="middle">Planning</text>- <text x="246" y="146" class="t-muted" font-size="7" text-anchor="middle">build task graph</text>- <text x="246" y="156" class="t-backend" font-size="7" text-anchor="middle">model</text>-- <rect x="340" y="109" width="112" height="58" rx="6" class="c-mask"/>- <rect x="340" y="109" width="112" height="58" rx="6" class="c-backend" stroke-width="1.5"/>- <text x="396" y="130" class="t-primary" font-size="10" font-weight="600" text-anchor="middle">Executing</text>- <text x="396" y="146" class="t-muted" font-size="7" text-anchor="middle">tool calls</text>- <text x="396" y="156" class="t-backend" font-size="7" text-anchor="middle">work</text>-- <rect x="490" y="109" width="112" height="58" rx="6" class="c-mask"/>- <rect x="490" y="109" width="112" height="58" rx="6" class="c-security" stroke-width="1.5"/>- <text x="546" y="130" class="t-primary" font-size="10" font-weight="600" text-anchor="middle">Reviewing</text>- <text x="546" y="146" class="t-muted" font-size="7" text-anchor="middle">quality gate</text>- <text x="546" y="156" class="t-security" font-size="7" text-anchor="middle">check</text>-- <rect x="790" y="109" width="112" height="58" rx="6" class="c-mask"/>- <rect x="790" y="109" width="112" height="58" rx="6" class="c-database" stroke-width="1.5"/>- <text x="846" y="130" class="t-primary" font-size="10" font-weight="600" text-anchor="middle">Completed</text>- <text x="846" y="146" class="t-muted" font-size="7" text-anchor="middle">final response</text>- <text x="846" y="156" class="t-database" font-size="7" text-anchor="middle">terminal</text>-- <rect x="490" y="281" width="112" height="58" rx="6" class="c-mask"/>- <rect x="490" y="281" width="112" height="58" rx="6" class="c-cloud" stroke-width="1.5"/>- <text x="546" y="302" class="t-primary" font-size="10" font-weight="600" text-anchor="middle">Needs Approval</text>- <text x="546" y="318" class="t-muted" font-size="7" text-anchor="middle">human gate</text>- <text x="546" y="328" class="t-cloud" font-size="7" text-anchor="middle">pause</text>-- <rect x="640" y="281" width="112" height="58" rx="6" class="c-mask"/>- <rect x="640" y="281" width="112" height="58" rx="6" class="c-cloud" stroke-width="1.5"/>- <text x="696" y="302" class="t-primary" font-size="10" font-weight="600" text-anchor="middle">Blocked</text>- <text x="696" y="318" class="t-muted" font-size="7" text-anchor="middle">missing input</text>- <text x="696" y="328" class="t-cloud" font-size="7" text-anchor="middle">wait</text>-- <rect x="340" y="453" width="112" height="58" rx="6" class="c-mask"/>- <rect x="340" y="453" width="112" height="58" rx="6" class="c-security" stroke-width="1.5"/>- <text x="396" y="474" class="t-primary" font-size="10" font-weight="600" text-anchor="middle">Failed</text>- <text x="396" y="490" class="t-muted" font-size="7" text-anchor="middle">recoverable error</text>- <text x="396" y="500" class="t-security" font-size="7" text-anchor="middle">retryable</text>-- <rect x="640" y="453" width="112" height="58" rx="6" class="c-mask"/>- <rect x="640" y="453" width="112" height="58" rx="6" class="c-security" stroke-width="1.5"/>- <text x="696" y="474" class="t-primary" font-size="10" font-weight="600" text-anchor="middle">Cancelled</text>- <text x="696" y="490" class="t-muted" font-size="7" text-anchor="middle">user stopped</text>- <text x="696" y="500" class="t-security" font-size="7" text-anchor="middle">terminal</text>-- <rect x="790" y="453" width="112" height="58" rx="6" class="c-mask"/>- <rect x="790" y="453" width="112" height="58" rx="6" class="c-security" stroke-width="1.5"/>- <text x="846" y="474" class="t-primary" font-size="10" font-weight="600" text-anchor="middle">Expired</text>- <text x="846" y="490" class="t-muted" font-size="7" text-anchor="middle">timeout</text>- <text x="846" y="500" class="t-security" font-size="7" text-anchor="middle">terminal</text>+ <rect x="40" y="82" width="112" height="56" rx="6" class="c-mask"/>+ <rect x="40" y="82" width="112" height="56" rx="6" class="c-frontend" stroke-width="1.5"/>+ <text x="96" y="103" class="t-primary" font-size="10" font-weight="600" text-anchor="middle">Queued</text>+ <text x="96" y="119" class="t-muted" font-size="7" text-anchor="middle">request accepted</text>+ <text x="96" y="127" class="t-frontend" font-size="7" text-anchor="middle">entry</text>++ <rect x="190" y="82" width="112" height="56" rx="6" class="c-mask"/>+ <rect x="190" y="82" width="112" height="56" rx="6" class="c-backend" stroke-width="1.5"/>+ <text x="246" y="103" class="t-primary" font-size="10" font-weight="600" text-anchor="middle">Planning</text>+ <text x="246" y="119" class="t-muted" font-size="7" text-anchor="middle">build task graph</text>+ <text x="246" y="127" class="t-backend" font-size="7" text-anchor="middle">model</text>++ <rect x="340" y="82" width="112" height="56" rx="6" class="c-mask"/>+ <rect x="340" y="82" width="112" height="56" rx="6" class="c-backend" stroke-width="1.5"/>+ <text x="396" y="103" class="t-primary" font-size="10" font-weight="600" text-anchor="middle">Executing</text>+ <text x="396" y="119" class="t-muted" font-size="7" text-anchor="middle">tool calls</text>+ <text x="396" y="127" class="t-backend" font-size="7" text-anchor="middle">work</text>++ <rect x="490" y="82" width="112" height="56" rx="6" class="c-mask"/>+ <rect x="490" y="82" width="112" height="56" rx="6" class="c-security" stroke-width="1.5"/>+ <text x="546" y="103" class="t-primary" font-size="10" font-weight="600" text-anchor="middle">Reviewing</text>+ <text x="546" y="119" class="t-muted" font-size="7" text-anchor="middle">quality gate</text>+ <text x="546" y="127" class="t-security" font-size="7" text-anchor="middle">check</text>++ <rect x="790" y="82" width="112" height="56" rx="6" class="c-mask"/>+ <rect x="790" y="82" width="112" height="56" rx="6" class="c-database" stroke-width="1.5"/>+ <text x="846" y="103" class="t-primary" font-size="10" font-weight="600" text-anchor="middle">Completed</text>+ <text x="846" y="119" class="t-muted" font-size="7" text-anchor="middle">final response</text>+ <text x="846" y="127" class="t-database" font-size="7" text-anchor="middle">terminal</text>++ <rect x="490" y="208" width="112" height="56" rx="6" class="c-mask"/>+ <rect x="490" y="208" width="112" height="56" rx="6" class="c-cloud" stroke-width="1.5"/>+ <text x="546" y="229" class="t-primary" font-size="10" font-weight="600" text-anchor="middle">Needs Approval</text>+ <text x="546" y="245" class="t-muted" font-size="7" text-anchor="middle">human gate</text>+ <text x="546" y="253" class="t-cloud" font-size="7" text-anchor="middle">pause</text>++ <rect x="640" y="208" width="112" height="56" rx="6" class="c-mask"/>+ <rect x="640" y="208" width="112" height="56" rx="6" class="c-cloud" stroke-width="1.5"/>+ <text x="696" y="229" class="t-primary" font-size="10" font-weight="600" text-anchor="middle">Blocked</text>+ <text x="696" y="245" class="t-muted" font-size="7" text-anchor="middle">missing input</text>+ <text x="696" y="253" class="t-cloud" font-size="7" text-anchor="middle">wait</text>++ <rect x="340" y="334" width="112" height="56" rx="6" class="c-mask"/>+ <rect x="340" y="334" width="112" height="56" rx="6" class="c-security" stroke-width="1.5"/>+ <text x="396" y="355" class="t-primary" font-size="10" font-weight="600" text-anchor="middle">Failed</text>+ <text x="396" y="371" class="t-muted" font-size="7" text-anchor="middle">recoverable error</text>+ <text x="396" y="379" class="t-security" font-size="7" text-anchor="middle">retryable</text>++ <rect x="490" y="334" width="112" height="56" rx="6" class="c-mask"/>+ <rect x="490" y="334" width="112" height="56" rx="6" class="c-security" stroke-width="1.5"/>+ <text x="546" y="355" class="t-primary" font-size="10" font-weight="600" text-anchor="middle">Cancelled</text>+ <text x="546" y="371" class="t-muted" font-size="7" text-anchor="middle">user stopped</text>+ <text x="546" y="379" class="t-security" font-size="7" text-anchor="middle">terminal</text>++ <rect x="640" y="334" width="112" height="56" rx="6" class="c-mask"/>+ <rect x="640" y="334" width="112" height="56" rx="6" class="c-security" stroke-width="1.5"/>+ <text x="696" y="355" class="t-primary" font-size="10" font-weight="600" text-anchor="middle">Expired</text>+ <text x="696" y="371" class="t-muted" font-size="7" text-anchor="middle">timeout</text>+ <text x="696" y="379" class="t-security" font-size="7" text-anchor="middle">terminal</text><!-- Transition labels -->- <rect x="152.75" y="117" width="36.5" height="16" rx="4" class="c-mask"/>- <text x="171" y="128" class="t-backend" font-size="8" text-anchor="middle">start</text>- <rect x="290.5" y="117" width="61" height="16" rx="4" class="c-mask"/>- <text x="321" y="128" class="t-backend" font-size="8" text-anchor="middle">plan ready</text>- <rect x="435.6" y="117" width="70.80000000000001" height="16" rx="4" class="c-mask"/>- <text x="471" y="128" class="t-backend" font-size="8" text-anchor="middle">tool results</text>- <rect x="598.4" y="93" width="51.2" height="27" rx="4" class="c-mask"/>- <text x="624" y="104" class="t-backend" font-size="8" text-anchor="middle">passes</text>- <text x="624" y="115" class="t-dim" font-size="7" text-anchor="middle">terminal</text>- <rect x="403.7" y="173" width="80.60000000000001" height="27" rx="4" class="c-mask"/>- <text x="444" y="184" class="t-security" font-size="8" text-anchor="middle">needs approval</text>- <text x="444" y="195" class="t-dim" font-size="7" text-anchor="middle">policy gate</text>- <rect x="546.4" y="213" width="51.2" height="16" rx="4" class="c-mask"/>- <text x="572" y="224" class="t-messagebus" font-size="8" text-anchor="middle">approved</text>- <rect x="585.05" y="179" width="65.9" height="16" rx="4" class="c-mask"/>- <text x="618" y="190" class="t-muted" font-size="8" text-anchor="middle">needs input</text>- <rect x="395.5" y="381" width="61" height="16" rx="4" class="c-mask"/>- <text x="426" y="392" class="t-security" font-size="8" text-anchor="middle">tool error</text>- <rect x="164.85" y="435" width="46.300000000000004" height="27" rx="4" class="c-mask"/>- <text x="188" y="446" class="t-messagebus" font-size="8" text-anchor="middle">retry</text>- <text x="188" y="457" class="t-dim" font-size="7" text-anchor="middle">bounded</text>- <rect x="882.85" y="351" width="46.300000000000004" height="16" rx="4" class="c-mask"/>- <text x="906" y="362" class="t-security" font-size="8" text-anchor="middle">timeout</text>- <rect x="599.3" y="351" width="41.400000000000006" height="16" rx="4" class="c-mask"/>- <text x="620" y="362" class="t-security" font-size="8" text-anchor="middle">cancel</text>+++++ <rect x="394.35" y="175" width="95.30000000000001" height="27" rx="4" class="c-mask"/>+ <text x="442" y="186" class="t-security" font-size="8" text-anchor="middle">approval required</text>+ <text x="442" y="197" class="t-dim" font-size="7" text-anchor="middle">policy gate</text>+ <rect x="552.4" y="191" width="51.2" height="16" rx="4" class="c-mask"/>+ <text x="578" y="202" class="t-messagebus" font-size="8" text-anchor="middle">approved</text>+ <rect x="585.05" y="169" width="65.9" height="16" rx="4" class="c-mask"/>+ <text x="618" y="180" class="t-muted" font-size="8" text-anchor="middle">needs input</text>+ <rect x="395.5" y="279" width="61" height="16" rx="4" class="c-mask"/>+ <text x="426" y="290" class="t-security" font-size="8" text-anchor="middle">tool error</text>+ <rect x="212.85" y="371" width="46.300000000000004" height="27" rx="4" class="c-mask"/>+ <text x="236" y="382" class="t-messagebus" font-size="8" text-anchor="middle">retry</text>+ <text x="236" y="393" class="t-dim" font-size="7" text-anchor="middle">bounded</text>+ <rect x="704.85" y="307" width="46.300000000000004" height="16" rx="4" class="c-mask"/>+ <text x="728" y="318" class="t-security" font-size="8" text-anchor="middle">timeout</text>+ <rect x="557.3" y="307" width="41.400000000000006" height="16" rx="4" class="c-mask"/>+ <text x="578" y="318" class="t-security" font-size="8" text-anchor="middle">cancel</text><!-- Legend -->- <text x="220" y="566" class="t-primary" font-size="10" font-weight="600">Legend</text>- <rect x="220" y="578" width="14" height="9" rx="2" class="c-backend" stroke-width="1"/>- <text x="240" y="586" class="t-muted" font-size="7">active state</text>- <rect x="325" y="578" width="14" height="9" rx="2" class="c-cloud" stroke-width="1"/>- <text x="345" y="586" class="t-muted" font-size="7">waiting</text>- <rect x="415" y="578" width="14" height="9" rx="2" class="c-database" stroke-width="1"/>- <text x="435" y="586" class="t-muted" font-size="7">terminal success</text>- <rect x="560" y="578" width="14" height="9" rx="2" class="c-security" stroke-width="1"/>- <text x="580" y="586" class="t-muted" font-size="7">failure / gate</text>- <path d="M 690 586 L 724 586" class="a-dashed" stroke-width="1.4" marker-end="url(#arrowhead-dashed)"/>- <text x="733" y="589" class="t-muted" font-size="7">retry / async</text>+ <text x="220" y="432" class="t-primary" font-size="10" font-weight="600">Legend</text>+ <rect x="220" y="444" width="14" height="9" rx="2" class="c-backend" stroke-width="1"/>+ <text x="240" y="452" class="t-muted" font-size="7">active state</text>+ <rect x="325" y="444" width="14" height="9" rx="2" class="c-cloud" stroke-width="1"/>+ <text x="345" y="452" class="t-muted" font-size="7">waiting</text>+ <rect x="415" y="444" width="14" height="9" rx="2" class="c-database" stroke-width="1"/>+ <text x="435" y="452" class="t-muted" font-size="7">terminal success</text>+ <rect x="560" y="444" width="14" height="9" rx="2" class="c-security" stroke-width="1"/>+ <text x="580" y="452" class="t-muted" font-size="7">failure / gate</text>+ <path d="M 690 452 L 724 452" class="a-dashed" stroke-width="1.4" marker-end="url(#arrowhead-dashed)"/>+ <text x="733" y="455" class="t-muted" font-size="7">retry / async</text></svg></div>