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
Polish lifecycle diagram composition
tt-a1i64dfaeaecb8e
diff --git a/archify.zip b/archify.zipindex 1345ca05..ba67657b 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 8f61b60b..2393a22a 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, 530]+ "viewBox": [980, 610]},"lanes": [{ "id": "main", "label": "Active lifecycle" },@@ -18,25 +18,24 @@{ "id": "planning", "type": "active", "label": "Planning", "sublabel": "build task graph", "lane": "main", "col": 1, "tag": "model" },{ "id": "executing", "type": "active", "label": "Executing", "sublabel": "tool calls", "lane": "main", "col": 2, "tag": "work" },{ "id": "reviewing", "type": "decision", "label": "Reviewing", "sublabel": "quality gate", "lane": "main", "col": 3, "tag": "check" },- { "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": "approval", "type": "waiting", "label": "Needs Approval", "sublabel": "human gate", "lane": "waiting", "col": 4, "tag": "pause" },+ { "id": "blocked", "type": "waiting", "label": "Blocked", "sublabel": "missing input", "lane": "waiting", "col": 5, "tag": "wait" },{ "id": "failed", "type": "failure", "label": "Failed", "sublabel": "recoverable error", "lane": "exceptions", "col": 2, "tag": "retryable" },- { "id": "completed", "type": "success", "label": "Completed", "sublabel": "final response", "lane": "terminal", "col": 5, "tag": "success" },- { "id": "cancelled", "type": "failure", "label": "Cancelled", "sublabel": "user stopped", "lane": "terminal", "col": 3, "tag": "terminal" },- { "id": "expired", "type": "failure", "label": "Expired", "sublabel": "timeout", "lane": "terminal", "col": 4, "tag": "terminal" }+ { "id": "completed", "type": "success", "label": "Completed", "sublabel": "final response", "lane": "terminal", "col": 3, "tag": "success" },+ { "id": "cancelled", "type": "failure", "label": "Cancelled", "sublabel": "user stopped", "lane": "terminal", "col": 4, "tag": "terminal" },+ { "id": "expired", "type": "failure", "label": "Expired", "sublabel": "timeout", "lane": "terminal", "col": 5, "tag": "terminal" }],"transitions": [{ "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", "fromSide": "right", "toSide": "top", "via": [[846, 99], [846, 371]] },- { "from": "executing", "to": "approval", "variant": "security", "fromSide": "bottom", "toSide": "left", "via": [[396, 180], [490, 180]] },- { "from": "approval", "to": "reviewing", "variant": "dashed", "fromSide": "top", "toSide": "bottom", "route": "straight" },+ { "from": "reviewing", "to": "completed", "variant": "emphasis", "fromSide": "bottom", "toSide": "top", "route": "straight" },+ { "from": "executing", "to": "approval", "variant": "security", "fromSide": "bottom", "toSide": "left", "via": [[396, 192], [640, 192]] },{ "from": "reviewing", "to": "blocked", "variant": "default", "route": "drop" },- { "from": "executing", "to": "failed", "label": "tool error", "variant": "security", "fromSide": "bottom", "toSide": "top", "route": "straight", "labelAt": [426, 258] },- { "from": "failed", "to": "planning", "label": "retry", "note": "bounded", "variant": "dashed", "fromSide": "left", "toSide": "bottom", "route": "left-channel", "channelX": 236, "labelAt": [236, 326] },- { "from": "blocked", "to": "expired", "label": "timeout", "variant": "security", "fromSide": "bottom", "toSide": "top", "route": "straight", "labelAt": [728, 340] },- { "from": "approval", "to": "cancelled", "label": "cancel", "variant": "security", "fromSide": "bottom", "toSide": "top", "route": "straight", "labelAt": [578, 340] }+ { "from": "executing", "to": "failed", "label": "tool error", "variant": "security", "fromSide": "bottom", "toSide": "top", "route": "straight", "labelAt": [424, 290] },+ { "from": "failed", "to": "planning", "label": "retry", "note": "bounded", "variant": "dashed", "fromSide": "left", "toSide": "bottom", "route": "left-channel", "channelX": 236, "labelAt": [236, 358] },+ { "from": "blocked", "to": "expired", "label": "timeout", "variant": "security", "fromSide": "bottom", "toSide": "top", "route": "straight", "labelAt": [846, 396] },+ { "from": "approval", "to": "cancelled", "label": "cancel", "variant": "security", "fromSide": "bottom", "toSide": "top", "route": "straight", "labelAt": [696, 396] }],"cards": [{diff --git a/archify/renderers/lifecycle/render-lifecycle.mjs b/archify/renderers/lifecycle/render-lifecycle.mjsindex e22f9aaf..9f435e70 100644--- a/archify/renderers/lifecycle/render-lifecycle.mjs+++ b/archify/renderers/lifecycle/render-lifecycle.mjs@@ -16,9 +16,9 @@ const layout = {laneX: 32,laneY: 44,laneW: 914,- laneGap: 10,+ laneGap: 16,laneTitleH: 20,- laneH: 92,+ laneH: 104,colXs: [96, 246, 396, 546, 696, 846],nodeW: 112,nodeH: 54@@ -244,11 +244,38 @@ function pathFor(transition) {const end = anchor(to, transition.toSide || defaultToSide(from, to));const points = [start, ...routeVia(transition, from, to, start, end), end];return {- d: points.map(([x, y], index) => `${index === 0 ? 'M' : 'L'} ${x} ${y}`).join(' '),+ d: roundedPath(points, transition.cornerRadius ?? 10),points};}+function roundedPath(points, radius) {+ if (points.length < 3 || radius <= 0) {+ return points.map(([x, y], index) => `${index === 0 ? 'M' : 'L'} ${x} ${y}`).join(' ');+ }++ const commands = [`M ${points[0][0]} ${points[0][1]}`];+ for (let i = 1; i < points.length - 1; i += 1) {+ const [px, py] = points[i - 1];+ const [cx, cy] = points[i];+ const [nx, ny] = points[i + 1];+ const prevLen = Math.hypot(cx - px, cy - py);+ const nextLen = Math.hypot(nx - cx, ny - cy);+ const r = Math.min(radius, prevLen / 2, nextLen / 2);+ if (r < 1) {+ commands.push(`L ${cx} ${cy}`);+ continue;+ }+ const before = [cx - ((cx - px) / prevLen) * r, cy - ((cy - py) / prevLen) * r];+ const after = [cx + ((nx - cx) / nextLen) * r, cy + ((ny - cy) / nextLen) * r];+ commands.push(`L ${before[0]} ${before[1]}`);+ commands.push(`Q ${cx} ${cy} ${after[0]} ${after[1]}`);+ }+ const [endX, endY] = points[points.length - 1];+ commands.push(`L ${endX} ${endY}`);+ return commands.join(' ');+}+function labelPoint(transition, points) {if (transition.labelAt) return transition.labelAt;if (points.length === 2) {@@ -315,7 +342,7 @@ function transitionAccent(transition) {function renderTransitionPath(transition) {const [cls, marker] = arrowClass[transition.variant || 'default'] || arrowClass.default;const routed = pathFor(transition);- const strokeWidth = transition.width || (transition.variant === 'emphasis' ? 1.8 : 1.4);+ const strokeWidth = transition.width || (transition.variant === 'emphasis' ? 1.8 : 1.2);return ` <path d="${routed.d}" class="${cls}" stroke-width="${strokeWidth}" marker-end="url(#${marker})"/>`;}diff --git a/examples/images/archify-lifecycle.png b/examples/images/archify-lifecycle.pngindex 0bbf04e4..3b7dc368 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 93254cbd..3c11654d 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 530">+ <svg viewBox="0 0 980 610"><!-- Definitions --><defs><marker id="arrowhead" markerWidth="10" markerHeight="7" refX="9" refY="3.5" orient="auto">@@ -475,88 +475,87 @@<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 / Active lifecycle</text>- <path d="M 32 166 L 946 166" class="a-default" stroke-width="0.8" stroke-dasharray="3,8"/>- <text x="32" y="160" class="t-dim" font-size="10" font-weight="600">02 / Suspended states</text>+ <path d="M 32 184 L 946 184" class="a-default" stroke-width="0.8" stroke-dasharray="3,8"/>+ <text x="32" y="178" class="t-dim" font-size="10" font-weight="600">02 / Suspended states</text>- <path d="M 32 268 L 946 268" class="a-default" stroke-width="0.8" stroke-dasharray="3,8"/>- <text x="32" y="262" class="t-dim" font-size="10" font-weight="600">03 / Recovery loop</text>+ <path d="M 32 304 L 946 304" class="a-default" stroke-width="0.8" stroke-dasharray="3,8"/>+ <text x="32" y="298" class="t-dim" font-size="10" font-weight="600">03 / Recovery loop</text>- <path d="M 32 370 L 946 370" class="a-default" stroke-width="0.8" stroke-dasharray="3,8"/>- <text x="32" y="364" class="t-dim" font-size="10" font-weight="600">04 / Terminal outcomes</text>+ <path d="M 32 424 L 946 424" class="a-default" stroke-width="0.8" stroke-dasharray="3,8"/>+ <text x="32" y="418" class="t-dim" font-size="10" font-weight="600">04 / Terminal outcomes</text><!-- Transition paths -->- <path d="M 152 100 L 190 100" class="a-emphasis" stroke-width="1.8" marker-end="url(#arrowhead-emphasis)"/>- <path d="M 302 100 L 340 100" class="a-emphasis" stroke-width="1.8" marker-end="url(#arrowhead-emphasis)"/>- <path d="M 452 100 L 490 100" class="a-emphasis" stroke-width="1.8" marker-end="url(#arrowhead-emphasis)"/>- <path d="M 602 100 L 846 99 L 846 371 L 846 379" class="a-emphasis" stroke-width="1.8" marker-end="url(#arrowhead-emphasis)"/>- <path d="M 396 127 L 396 180 L 490 180 L 490 202" class="a-security" stroke-width="1.4" marker-end="url(#arrowhead-security)"/>- <path d="M 546 175 L 546 127" class="a-dashed" stroke-width="1.4" marker-end="url(#arrowhead-dashed)"/>- <path d="M 602 100 L 602 141 L 640 141 L 640 202" class="a-default" stroke-width="1.4" marker-end="url(#arrowhead)"/>- <path d="M 396 127 L 396 277" class="a-security" stroke-width="1.4" marker-end="url(#arrowhead-security)"/>- <path d="M 340 304 L 236 304 L 236 127 L 246 127" class="a-dashed" stroke-width="1.4" marker-end="url(#arrowhead-dashed)"/>- <path d="M 696 229 L 696 379" class="a-security" stroke-width="1.4" marker-end="url(#arrowhead-security)"/>- <path d="M 546 229 L 546 379" class="a-security" stroke-width="1.4" marker-end="url(#arrowhead-security)"/>+ <path d="M 152 106 L 190 106" class="a-emphasis" stroke-width="1.8" marker-end="url(#arrowhead-emphasis)"/>+ <path d="M 302 106 L 340 106" class="a-emphasis" stroke-width="1.8" marker-end="url(#arrowhead-emphasis)"/>+ <path d="M 452 106 L 490 106" class="a-emphasis" stroke-width="1.8" marker-end="url(#arrowhead-emphasis)"/>+ <path d="M 546 133 L 546 439" class="a-emphasis" stroke-width="1.8" marker-end="url(#arrowhead-emphasis)"/>+ <path d="M 396 133 L 396 182 Q 396 192 406 192 L 630 192 Q 640 192 640 202 L 640 226" class="a-security" stroke-width="1.2" marker-end="url(#arrowhead-security)"/>+ <path d="M 602 106 L 602 146 Q 602 156 612 156 L 780 156 Q 790 156 790 166 L 790 226" class="a-default" stroke-width="1.2" marker-end="url(#arrowhead)"/>+ <path d="M 396 133 L 396 319" class="a-security" stroke-width="1.2" marker-end="url(#arrowhead-security)"/>+ <path d="M 340 346 L 246 346 Q 236 346 236 336 L 236 138 Q 236 133 241 133 L 246 133" class="a-dashed" stroke-width="1.2" marker-end="url(#arrowhead-dashed)"/>+ <path d="M 846 253 L 846 439" class="a-security" stroke-width="1.2" marker-end="url(#arrowhead-security)"/>+ <path d="M 696 253 L 696 439" class="a-security" stroke-width="1.2" marker-end="url(#arrowhead-security)"/><!-- States -->- <rect x="40" y="73" width="112" height="54" rx="6" class="c-mask"/>- <rect x="40" y="73" width="112" height="54" rx="6" class="c-frontend" stroke-width="1.5"/>- <text x="96" y="94" class="t-primary" font-size="10" font-weight="600" text-anchor="middle">Queued</text>- <text x="96" y="110" class="t-muted" font-size="7" text-anchor="middle">request accepted</text>- <text x="96" y="116" class="t-frontend" font-size="7" text-anchor="middle">entry</text>-- <rect x="190" y="73" width="112" height="54" rx="6" class="c-mask"/>- <rect x="190" y="73" width="112" height="54" rx="6" class="c-backend" stroke-width="1.5"/>- <text x="246" y="94" class="t-primary" font-size="10" font-weight="600" text-anchor="middle">Planning</text>- <text x="246" y="110" class="t-muted" font-size="7" text-anchor="middle">build task graph</text>- <text x="246" y="116" class="t-backend" font-size="7" text-anchor="middle">model</text>-- <rect x="340" y="73" width="112" height="54" rx="6" class="c-mask"/>- <rect x="340" y="73" width="112" height="54" rx="6" class="c-backend" stroke-width="1.5"/>- <text x="396" y="94" class="t-primary" font-size="10" font-weight="600" text-anchor="middle">Executing</text>- <text x="396" y="110" class="t-muted" font-size="7" text-anchor="middle">tool calls</text>- <text x="396" y="116" class="t-backend" font-size="7" text-anchor="middle">work</text>-- <rect x="490" y="73" width="112" height="54" rx="6" class="c-mask"/>- <rect x="490" y="73" width="112" height="54" rx="6" class="c-security" stroke-width="1.5"/>- <text x="546" y="94" class="t-primary" font-size="10" font-weight="600" text-anchor="middle">Reviewing</text>- <text x="546" y="110" class="t-muted" font-size="7" text-anchor="middle">quality gate</text>- <text x="546" y="116" class="t-security" font-size="7" text-anchor="middle">check</text>-- <rect x="490" y="175" width="112" height="54" rx="6" class="c-mask"/>- <rect x="490" y="175" width="112" height="54" rx="6" class="c-cloud" stroke-width="1.5"/>- <text x="546" y="196" class="t-primary" font-size="10" font-weight="600" text-anchor="middle">Needs Approval</text>- <text x="546" y="212" class="t-muted" font-size="7" text-anchor="middle">human gate</text>- <text x="546" y="218" class="t-cloud" font-size="7" text-anchor="middle">pause</text>-- <rect x="640" y="175" width="112" height="54" rx="6" class="c-mask"/>- <rect x="640" y="175" width="112" height="54" rx="6" class="c-cloud" stroke-width="1.5"/>- <text x="696" y="196" class="t-primary" font-size="10" font-weight="600" text-anchor="middle">Blocked</text>- <text x="696" y="212" class="t-muted" font-size="7" text-anchor="middle">missing input</text>- <text x="696" y="218" class="t-cloud" font-size="7" text-anchor="middle">wait</text>-- <rect x="340" y="277" width="112" height="54" rx="6" class="c-mask"/>- <rect x="340" y="277" width="112" height="54" rx="6" class="c-security" stroke-width="1.5"/>- <text x="396" y="298" class="t-primary" font-size="10" font-weight="600" text-anchor="middle">Failed</text>- <text x="396" y="314" class="t-muted" font-size="7" text-anchor="middle">recoverable error</text>- <text x="396" y="320" class="t-security" font-size="7" text-anchor="middle">retryable</text>-- <rect x="790" y="379" width="112" height="54" rx="6" class="c-mask"/>- <rect x="790" y="379" width="112" height="54" rx="6" class="c-database" stroke-width="1.5"/>- <text x="846" y="400" class="t-primary" font-size="10" font-weight="600" text-anchor="middle">Completed</text>- <text x="846" y="416" class="t-muted" font-size="7" text-anchor="middle">final response</text>- <text x="846" y="422" class="t-database" font-size="7" text-anchor="middle">success</text>-- <rect x="490" y="379" width="112" height="54" rx="6" class="c-mask"/>- <rect x="490" y="379" width="112" height="54" rx="6" class="c-security" stroke-width="1.5"/>- <text x="546" y="400" class="t-primary" font-size="10" font-weight="600" text-anchor="middle">Cancelled</text>- <text x="546" y="416" class="t-muted" font-size="7" text-anchor="middle">user stopped</text>- <text x="546" y="422" class="t-security" font-size="7" text-anchor="middle">terminal</text>-- <rect x="640" y="379" width="112" height="54" rx="6" class="c-mask"/>- <rect x="640" y="379" width="112" height="54" rx="6" class="c-security" stroke-width="1.5"/>- <text x="696" y="400" class="t-primary" font-size="10" font-weight="600" text-anchor="middle">Expired</text>- <text x="696" y="416" class="t-muted" font-size="7" text-anchor="middle">timeout</text>- <text x="696" y="422" class="t-security" font-size="7" text-anchor="middle">terminal</text>+ <rect x="40" y="79" width="112" height="54" rx="6" class="c-mask"/>+ <rect x="40" y="79" width="112" height="54" rx="6" class="c-frontend" stroke-width="1.5"/>+ <text x="96" y="100" class="t-primary" font-size="10" font-weight="600" text-anchor="middle">Queued</text>+ <text x="96" y="116" class="t-muted" font-size="7" text-anchor="middle">request accepted</text>+ <text x="96" y="122" class="t-frontend" font-size="7" text-anchor="middle">entry</text>++ <rect x="190" y="79" width="112" height="54" rx="6" class="c-mask"/>+ <rect x="190" y="79" width="112" height="54" rx="6" class="c-backend" stroke-width="1.5"/>+ <text x="246" y="100" class="t-primary" font-size="10" font-weight="600" text-anchor="middle">Planning</text>+ <text x="246" y="116" class="t-muted" font-size="7" text-anchor="middle">build task graph</text>+ <text x="246" y="122" class="t-backend" font-size="7" text-anchor="middle">model</text>++ <rect x="340" y="79" width="112" height="54" rx="6" class="c-mask"/>+ <rect x="340" y="79" width="112" height="54" rx="6" class="c-backend" stroke-width="1.5"/>+ <text x="396" y="100" class="t-primary" font-size="10" font-weight="600" text-anchor="middle">Executing</text>+ <text x="396" y="116" class="t-muted" font-size="7" text-anchor="middle">tool calls</text>+ <text x="396" y="122" class="t-backend" font-size="7" text-anchor="middle">work</text>++ <rect x="490" y="79" width="112" height="54" rx="6" class="c-mask"/>+ <rect x="490" y="79" width="112" height="54" rx="6" class="c-security" stroke-width="1.5"/>+ <text x="546" y="100" class="t-primary" font-size="10" font-weight="600" text-anchor="middle">Reviewing</text>+ <text x="546" y="116" class="t-muted" font-size="7" text-anchor="middle">quality gate</text>+ <text x="546" y="122" class="t-security" font-size="7" text-anchor="middle">check</text>++ <rect x="640" y="199" width="112" height="54" rx="6" class="c-mask"/>+ <rect x="640" y="199" width="112" height="54" rx="6" class="c-cloud" stroke-width="1.5"/>+ <text x="696" y="220" class="t-primary" font-size="10" font-weight="600" text-anchor="middle">Needs Approval</text>+ <text x="696" y="236" class="t-muted" font-size="7" text-anchor="middle">human gate</text>+ <text x="696" y="242" class="t-cloud" font-size="7" text-anchor="middle">pause</text>++ <rect x="790" y="199" width="112" height="54" rx="6" class="c-mask"/>+ <rect x="790" y="199" width="112" height="54" rx="6" class="c-cloud" stroke-width="1.5"/>+ <text x="846" y="220" class="t-primary" font-size="10" font-weight="600" text-anchor="middle">Blocked</text>+ <text x="846" y="236" class="t-muted" font-size="7" text-anchor="middle">missing input</text>+ <text x="846" y="242" class="t-cloud" font-size="7" text-anchor="middle">wait</text>++ <rect x="340" y="319" width="112" height="54" rx="6" class="c-mask"/>+ <rect x="340" y="319" width="112" height="54" rx="6" class="c-security" stroke-width="1.5"/>+ <text x="396" y="340" class="t-primary" font-size="10" font-weight="600" text-anchor="middle">Failed</text>+ <text x="396" y="356" class="t-muted" font-size="7" text-anchor="middle">recoverable error</text>+ <text x="396" y="362" class="t-security" font-size="7" text-anchor="middle">retryable</text>++ <rect x="490" y="439" width="112" height="54" rx="6" class="c-mask"/>+ <rect x="490" y="439" width="112" height="54" rx="6" class="c-database" stroke-width="1.5"/>+ <text x="546" y="460" class="t-primary" font-size="10" font-weight="600" text-anchor="middle">Completed</text>+ <text x="546" y="476" class="t-muted" font-size="7" text-anchor="middle">final response</text>+ <text x="546" y="482" class="t-database" font-size="7" text-anchor="middle">success</text>++ <rect x="640" y="439" width="112" height="54" rx="6" class="c-mask"/>+ <rect x="640" y="439" width="112" height="54" rx="6" class="c-security" stroke-width="1.5"/>+ <text x="696" y="460" class="t-primary" font-size="10" font-weight="600" text-anchor="middle">Cancelled</text>+ <text x="696" y="476" class="t-muted" font-size="7" text-anchor="middle">user stopped</text>+ <text x="696" y="482" class="t-security" font-size="7" text-anchor="middle">terminal</text>++ <rect x="790" y="439" width="112" height="54" rx="6" class="c-mask"/>+ <rect x="790" y="439" width="112" height="54" rx="6" class="c-security" stroke-width="1.5"/>+ <text x="846" y="460" class="t-primary" font-size="10" font-weight="600" text-anchor="middle">Expired</text>+ <text x="846" y="476" class="t-muted" font-size="7" text-anchor="middle">timeout</text>+ <text x="846" y="482" class="t-security" font-size="7" text-anchor="middle">terminal</text><!-- Transition labels -->@@ -565,29 +564,28 @@-- <rect x="395.5" y="247" width="61" height="16" rx="4" class="c-mask"/>- <text x="426" y="258" class="t-security" font-size="8" text-anchor="middle">tool error</text>- <rect x="212.85" y="315" width="46.300000000000004" height="27" rx="4" class="c-mask"/>- <text x="236" y="326" class="t-messagebus" font-size="8" text-anchor="middle">retry</text>- <text x="236" y="337" class="t-dim" font-size="7" text-anchor="middle">bounded</text>- <rect x="704.85" y="329" width="46.300000000000004" height="16" rx="4" class="c-mask"/>- <text x="728" y="340" class="t-security" font-size="8" text-anchor="middle">timeout</text>- <rect x="557.3" y="329" width="41.400000000000006" height="16" rx="4" class="c-mask"/>- <text x="578" y="340" class="t-security" font-size="8" text-anchor="middle">cancel</text>+ <rect x="393.5" y="279" width="61" height="16" rx="4" class="c-mask"/>+ <text x="424" y="290" class="t-security" font-size="8" text-anchor="middle">tool error</text>+ <rect x="212.85" y="347" width="46.300000000000004" height="27" rx="4" class="c-mask"/>+ <text x="236" y="358" class="t-messagebus" font-size="8" text-anchor="middle">retry</text>+ <text x="236" y="369" class="t-dim" font-size="7" text-anchor="middle">bounded</text>+ <rect x="822.85" y="385" width="46.300000000000004" height="16" rx="4" class="c-mask"/>+ <text x="846" y="396" class="t-security" font-size="8" text-anchor="middle">timeout</text>+ <rect x="675.3" y="385" width="41.400000000000006" height="16" rx="4" class="c-mask"/>+ <text x="696" y="396" class="t-security" font-size="8" text-anchor="middle">cancel</text><!-- Legend -->- <text x="220" y="466" class="t-primary" font-size="10" font-weight="600">Legend</text>- <rect x="220" y="478" width="14" height="9" rx="2" class="c-backend" stroke-width="1"/>- <text x="240" y="486" class="t-muted" font-size="7">active state</text>- <rect x="325" y="478" width="14" height="9" rx="2" class="c-cloud" stroke-width="1"/>- <text x="345" y="486" class="t-muted" font-size="7">waiting</text>- <rect x="415" y="478" width="14" height="9" rx="2" class="c-database" stroke-width="1"/>- <text x="435" y="486" class="t-muted" font-size="7">terminal success</text>- <rect x="560" y="478" width="14" height="9" rx="2" class="c-security" stroke-width="1"/>- <text x="580" y="486" class="t-muted" font-size="7">failure / gate</text>- <path d="M 690 486 L 724 486" class="a-dashed" stroke-width="1.4" marker-end="url(#arrowhead-dashed)"/>- <text x="733" y="489" class="t-muted" font-size="7">retry / async</text>+ <text x="220" y="532" class="t-primary" font-size="10" font-weight="600">Legend</text>+ <rect x="220" y="544" width="14" height="9" rx="2" class="c-backend" stroke-width="1"/>+ <text x="240" y="552" class="t-muted" font-size="7">active state</text>+ <rect x="325" y="544" width="14" height="9" rx="2" class="c-cloud" stroke-width="1"/>+ <text x="345" y="552" class="t-muted" font-size="7">waiting</text>+ <rect x="415" y="544" width="14" height="9" rx="2" class="c-database" stroke-width="1"/>+ <text x="435" y="552" class="t-muted" font-size="7">terminal success</text>+ <rect x="560" y="544" width="14" height="9" rx="2" class="c-security" stroke-width="1"/>+ <text x="580" y="552" class="t-muted" font-size="7">failure / gate</text>+ <path d="M 690 552 L 724 552" class="a-dashed" stroke-width="1.4" marker-end="url(#arrowhead-dashed)"/>+ <text x="733" y="555" class="t-muted" font-size="7">retry / async</text></svg></div>