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
fix(viewer): cap a narrow SVG to its share beside a docked rail
tt-a1iaa9a27eeb7dc
diff --git a/archify.zip b/archify.zipindex 55904a95..521489b5 100644Binary files a/archify.zip and b/archify.zip differdiff --git a/archify/assets/template.html b/archify/assets/template.htmlindex 65e53821..5799f6eb 100644--- a/archify/assets/template.html+++ b/archify/assets/template.html@@ -9547,7 +9547,10 @@ OTHER DEALINGS IN THE FONT SOFTWARE.var shellFloor = Math.min(MIN_READER_WIDTH, Math.max(0, window.innerWidth - chromeMetrics().bodyX));html.style.setProperty('--archify-reader-width', Math.max(rounded, shellFloor) + 'px');if (rounded < shellFloor) {- html.style.setProperty('--archify-diagram-max-width', Math.max(1, rounded - chromeMetrics().diagramX) + 'px');+ // `rounded` already includes a docked rail and its gap; the SVG cap+ // is only the diagram's share, not the space beside it.+ var railShare = html.getAttribute('data-reader-rail') === 'true' ? RAIL_WIDTH + RAIL_GAP : 0;+ html.style.setProperty('--archify-diagram-max-width', Math.max(1, rounded - railShare - chromeMetrics().diagramX) + 'px');html.setAttribute('data-reader-narrow', 'true');} else {html.style.removeProperty('--archify-diagram-max-width');diff --git a/archify/examples/dataflow-product-analytics.html b/archify/examples/dataflow-product-analytics.htmlindex ac1d6fca..a527814c 100644--- a/archify/examples/dataflow-product-analytics.html+++ b/archify/examples/dataflow-product-analytics.html@@ -9658,7 +9658,10 @@ OTHER DEALINGS IN THE FONT SOFTWARE.var shellFloor = Math.min(MIN_READER_WIDTH, Math.max(0, window.innerWidth - chromeMetrics().bodyX));html.style.setProperty('--archify-reader-width', Math.max(rounded, shellFloor) + 'px');if (rounded < shellFloor) {- html.style.setProperty('--archify-diagram-max-width', Math.max(1, rounded - chromeMetrics().diagramX) + 'px');+ // `rounded` already includes a docked rail and its gap; the SVG cap+ // is only the diagram's share, not the space beside it.+ var railShare = html.getAttribute('data-reader-rail') === 'true' ? RAIL_WIDTH + RAIL_GAP : 0;+ html.style.setProperty('--archify-diagram-max-width', Math.max(1, rounded - railShare - chromeMetrics().diagramX) + 'px');html.setAttribute('data-reader-narrow', 'true');} else {html.style.removeProperty('--archify-diagram-max-width');diff --git a/archify/examples/lifecycle-agent-run.html b/archify/examples/lifecycle-agent-run.htmlindex 19b70312..d54090ed 100644--- a/archify/examples/lifecycle-agent-run.html+++ b/archify/examples/lifecycle-agent-run.html@@ -9603,7 +9603,10 @@ OTHER DEALINGS IN THE FONT SOFTWARE.var shellFloor = Math.min(MIN_READER_WIDTH, Math.max(0, window.innerWidth - chromeMetrics().bodyX));html.style.setProperty('--archify-reader-width', Math.max(rounded, shellFloor) + 'px');if (rounded < shellFloor) {- html.style.setProperty('--archify-diagram-max-width', Math.max(1, rounded - chromeMetrics().diagramX) + 'px');+ // `rounded` already includes a docked rail and its gap; the SVG cap+ // is only the diagram's share, not the space beside it.+ var railShare = html.getAttribute('data-reader-rail') === 'true' ? RAIL_WIDTH + RAIL_GAP : 0;+ html.style.setProperty('--archify-diagram-max-width', Math.max(1, rounded - railShare - chromeMetrics().diagramX) + 'px');html.setAttribute('data-reader-narrow', 'true');} else {html.style.removeProperty('--archify-diagram-max-width');diff --git a/archify/examples/sequence-cache-miss-request.html b/archify/examples/sequence-cache-miss-request.htmlindex 980545e8..87486713 100644--- a/archify/examples/sequence-cache-miss-request.html+++ b/archify/examples/sequence-cache-miss-request.html@@ -9673,7 +9673,10 @@ OTHER DEALINGS IN THE FONT SOFTWARE.var shellFloor = Math.min(MIN_READER_WIDTH, Math.max(0, window.innerWidth - chromeMetrics().bodyX));html.style.setProperty('--archify-reader-width', Math.max(rounded, shellFloor) + 'px');if (rounded < shellFloor) {- html.style.setProperty('--archify-diagram-max-width', Math.max(1, rounded - chromeMetrics().diagramX) + 'px');+ // `rounded` already includes a docked rail and its gap; the SVG cap+ // is only the diagram's share, not the space beside it.+ var railShare = html.getAttribute('data-reader-rail') === 'true' ? RAIL_WIDTH + RAIL_GAP : 0;+ html.style.setProperty('--archify-diagram-max-width', Math.max(1, rounded - railShare - chromeMetrics().diagramX) + 'px');html.setAttribute('data-reader-narrow', 'true');} else {html.style.removeProperty('--archify-diagram-max-width');diff --git a/archify/examples/web-app-rendered.html b/archify/examples/web-app-rendered.htmlindex fdc9292b..56dacb75 100644--- a/archify/examples/web-app-rendered.html+++ b/archify/examples/web-app-rendered.html@@ -9646,7 +9646,10 @@ OTHER DEALINGS IN THE FONT SOFTWARE.var shellFloor = Math.min(MIN_READER_WIDTH, Math.max(0, window.innerWidth - chromeMetrics().bodyX));html.style.setProperty('--archify-reader-width', Math.max(rounded, shellFloor) + 'px');if (rounded < shellFloor) {- html.style.setProperty('--archify-diagram-max-width', Math.max(1, rounded - chromeMetrics().diagramX) + 'px');+ // `rounded` already includes a docked rail and its gap; the SVG cap+ // is only the diagram's share, not the space beside it.+ var railShare = html.getAttribute('data-reader-rail') === 'true' ? RAIL_WIDTH + RAIL_GAP : 0;+ html.style.setProperty('--archify-diagram-max-width', Math.max(1, rounded - railShare - chromeMetrics().diagramX) + 'px');html.setAttribute('data-reader-narrow', 'true');} else {html.style.removeProperty('--archify-diagram-max-width');diff --git a/archify/examples/workflow-agent-tool-call-rendered.html b/archify/examples/workflow-agent-tool-call-rendered.htmlindex b638951b..effbf24d 100644--- a/archify/examples/workflow-agent-tool-call-rendered.html+++ b/archify/examples/workflow-agent-tool-call-rendered.html@@ -9664,7 +9664,10 @@ OTHER DEALINGS IN THE FONT SOFTWARE.var shellFloor = Math.min(MIN_READER_WIDTH, Math.max(0, window.innerWidth - chromeMetrics().bodyX));html.style.setProperty('--archify-reader-width', Math.max(rounded, shellFloor) + 'px');if (rounded < shellFloor) {- html.style.setProperty('--archify-diagram-max-width', Math.max(1, rounded - chromeMetrics().diagramX) + 'px');+ // `rounded` already includes a docked rail and its gap; the SVG cap+ // is only the diagram's share, not the space beside it.+ var railShare = html.getAttribute('data-reader-rail') === 'true' ? RAIL_WIDTH + RAIL_GAP : 0;+ html.style.setProperty('--archify-diagram-max-width', Math.max(1, rounded - railShare - chromeMetrics().diagramX) + 'px');html.setAttribute('data-reader-narrow', 'true');} else {html.style.removeProperty('--archify-diagram-max-width');diff --git a/archify/test/architecture-reading-size-browser.test.mjs b/archify/test/architecture-reading-size-browser.test.mjsindex 69b3635f..417b9186 100644--- a/archify/test/architecture-reading-size-browser.test.mjs+++ b/archify/test/architecture-reading-size-browser.test.mjs@@ -156,6 +156,32 @@ test('a first-screen fit never pushes relationship labels below the 6px floor',assert.ok(edges.every(size => size >= 6), JSON.stringify(edges));// This graph is taller than the floor allows, so it scrolls as authored.assert.equal(overflow, 'authored');++ // Moving the notes beside the diagram docks the rail. The shell keeps its+ // desktop floor, but the SVG gets only the diagram's share: its primary+ // labels return to the docked comfort size instead of doubling.+ const docked = await browser.cdp.send('Runtime.evaluate', { returnByValue: true, awaitPromise: true, expression: `(async () => {+ document.getElementById('rail-placement').click();+ await Archify.layoutStability.whenStable();+ const svg = document.querySelector('.diagram-container > svg');+ const svgRect = svg.getBoundingClientRect();+ const railRect = document.querySelector('.reader-rail').getBoundingClientRect();+ const scale = svgRect.width / svg.viewBox.baseVal.width;+ const result = {+ rail: document.documentElement.getAttribute('data-reader-rail'),+ shellWidth: document.querySelector('.container').getBoundingClientRect().width,+ primary: Math.max(...[...svg.querySelectorAll('text[data-node-label]')].map(text => Number(text.getAttribute('font-size')) * scale)),+ svgRight: svgRect.right, railLeft: railRect.left,+ };+ localStorage.removeItem('archify-rail-placement');+ return result;+ })()` }, session);+ assert.equal(docked.exceptionDetails, undefined);+ const rail = docked.result.value;+ assert.equal(rail.rail, 'true', JSON.stringify(rail));+ assert.ok(rail.shellWidth >= 960, JSON.stringify(rail));+ assert.ok(rail.primary >= 13.5 && rail.primary <= 14.2, JSON.stringify(rail));+ assert.ok(rail.svgRight <= rail.railLeft, JSON.stringify(rail));} finally {await browser.close();fs.rmSync(dir, { recursive: true, force: true });diff --git a/docs/assets/archify-live-proof.json b/docs/assets/archify-live-proof.jsonindex 80d811f9..a2b16711 100644--- a/docs/assets/archify-live-proof.json+++ b/docs/assets/archify-live-proof.json@@ -13,7 +13,7 @@{"id": "signal-flow","artifact": "docs/gallery/artifacts/agent-tool-call.workflow.html",- "artifactSha256": "b1782672eaf42be1cd727ffc680a640ca80d6ac8a34f06df9fb378d812749f81",+ "artifactSha256": "547616757791698b1f52ea3f9addf3fc86004bc56494226a8832722dee1655bb","hash": "#focus=planner&reach=downstream","eyebrow": "WORKFLOW · SIGNAL FLOW","title": "Agent Tool Call",@@ -22,7 +22,7 @@{"id": "blueprint","artifact": "docs/gallery/artifacts/production-deployment.architecture.html",- "artifactSha256": "9519f52cb31452614de1eb8c038439109795512ad85afefae2330f884dcfce70",+ "artifactSha256": "718299eae00d36d9e5dd2c6ba49b1908ddcb60104c6833551e4faf2506bfd316","hash": "#lens=backend~database","eyebrow": "ARCHITECTURE · BLUEPRINT","title": "Production Deployment",@@ -31,7 +31,7 @@{"id": "classic","artifact": "docs/gallery/artifacts/cache-miss.sequence.html",- "artifactSha256": "cee1dc2aa4b5a00d086c97c4de4276642f51ede49a686882489bdb947f241307",+ "artifactSha256": "fe36c24489b62bcef53a24f4a577d46276e9badfcaa6a0d00b506fb9dcecd496","hash": "#route=web~db","eyebrow": "SEQUENCE · CLASSIC","title": "Cache Miss Request",diff --git a/docs/cases/mco-runtime.architecture.html b/docs/cases/mco-runtime.architecture.htmlindex c740a7c4..6443829c 100644--- a/docs/cases/mco-runtime.architecture.html+++ b/docs/cases/mco-runtime.architecture.html@@ -9708,7 +9708,10 @@ OTHER DEALINGS IN THE FONT SOFTWARE.var shellFloor = Math.min(MIN_READER_WIDTH, Math.max(0, window.innerWidth - chromeMetrics().bodyX));html.style.setProperty('--archify-reader-width', Math.max(rounded, shellFloor) + 'px');if (rounded < shellFloor) {- html.style.setProperty('--archify-diagram-max-width', Math.max(1, rounded - chromeMetrics().diagramX) + 'px');+ // `rounded` already includes a docked rail and its gap; the SVG cap+ // is only the diagram's share, not the space beside it.+ var railShare = html.getAttribute('data-reader-rail') === 'true' ? RAIL_WIDTH + RAIL_GAP : 0;+ html.style.setProperty('--archify-diagram-max-width', Math.max(1, rounded - railShare - chromeMetrics().diagramX) + 'px');html.setAttribute('data-reader-narrow', 'true');} else {html.style.removeProperty('--archify-diagram-max-width');diff --git a/docs/gallery.html b/docs/gallery.htmlindex 10e5dc2e..94081443 100644--- a/docs/gallery.html+++ b/docs/gallery.html@@ -298,7 +298,7 @@<div class="receipt-cell"><span class="receipt-label">Artifact</span><span class="receipt-value ok">9/9 pass</span></div><div class="receipt-cell"><span class="receipt-label">Composition</span><span class="receipt-value ok" title="0 crossings · 0 border runs · 0 micro segments · 0 cramped turns">SHOWCASE · PASS</span></div><div class="receipt-cell"><span class="receipt-label">Graph</span><span class="receipt-value">12N · 11E</span></div>- <div class="receipt-cell"><span class="receipt-label">SHA-256</span><span class="receipt-value" title="b1782672eaf42be1cd727ffc680a640ca80d6ac8a34f06df9fb378d812749f81">b1782672eaf4</span></div>+ <div class="receipt-cell"><span class="receipt-label">SHA-256</span><span class="receipt-value" title="547616757791698b1f52ea3f9addf3fc86004bc56494226a8832722dee1655bb">547616757791</span></div></div><div class="card-actions"><a class="card-link primary" href="gallery/artifacts/agent-tool-call.workflow.html#focus=planner" target="_blank" rel="noopener" data-en="Explore focus ↗" data-zh="探索聚焦路径 ↗">Explore focus ↗</a>@@ -328,7 +328,7 @@<div class="receipt-cell"><span class="receipt-label">Artifact</span><span class="receipt-value ok">9/9 pass</span></div><div class="receipt-cell"><span class="receipt-label">Composition</span><span class="receipt-value ok" title="0 crossings · 0 border runs · 0 micro segments · 0 cramped turns">SHOWCASE · PASS</span></div><div class="receipt-cell"><span class="receipt-label">Graph</span><span class="receipt-value">12N · 12E</span></div>- <div class="receipt-cell"><span class="receipt-label">SHA-256</span><span class="receipt-value" title="9519f52cb31452614de1eb8c038439109795512ad85afefae2330f884dcfce70">9519f52cb314</span></div>+ <div class="receipt-cell"><span class="receipt-label">SHA-256</span><span class="receipt-value" title="718299eae00d36d9e5dd2c6ba49b1908ddcb60104c6833551e4faf2506bfd316">718299eae00d</span></div></div><div class="card-actions"><a class="card-link primary" href="gallery/artifacts/production-deployment.architecture.html#focus=gateway" target="_blank" rel="noopener" data-en="Explore focus ↗" data-zh="探索聚焦路径 ↗">Explore focus ↗</a>@@ -357,7 +357,7 @@<div class="receipt-cell"><span class="receipt-label">Artifact</span><span class="receipt-value ok">9/9 pass</span></div><div class="receipt-cell"><span class="receipt-label">Composition</span><span class="receipt-value ok" title="0 crossings · 0 border runs · 0 micro segments · 0 cramped turns">SHOWCASE · PASS</span></div><div class="receipt-cell"><span class="receipt-label">Graph</span><span class="receipt-value">7N · 12E</span></div>- <div class="receipt-cell"><span class="receipt-label">SHA-256</span><span class="receipt-value" title="cee1dc2aa4b5a00d086c97c4de4276642f51ede49a686882489bdb947f241307">cee1dc2aa4b5</span></div>+ <div class="receipt-cell"><span class="receipt-label">SHA-256</span><span class="receipt-value" title="fe36c24489b62bcef53a24f4a577d46276e9badfcaa6a0d00b506fb9dcecd496">fe36c24489b6</span></div></div><div class="card-actions"><a class="card-link primary" href="gallery/artifacts/cache-miss.sequence.html#focus=redis" target="_blank" rel="noopener" data-en="Explore focus ↗" data-zh="探索聚焦路径 ↗">Explore focus ↗</a>@@ -386,7 +386,7 @@<div class="receipt-cell"><span class="receipt-label">Artifact</span><span class="receipt-value ok">9/9 pass</span></div><div class="receipt-cell"><span class="receipt-label">Composition</span><span class="receipt-value ok" title="0 crossings · 0 border runs · 0 micro segments · 0 cramped turns">SHOWCASE · PASS</span></div><div class="receipt-cell"><span class="receipt-label">Graph</span><span class="receipt-value">10N · 10E</span></div>- <div class="receipt-cell"><span class="receipt-label">SHA-256</span><span class="receipt-value" title="aeb0e57d564dbd09beac61069f44baab1cbd5b719ff006dc544902377d962af8">aeb0e57d564d</span></div>+ <div class="receipt-cell"><span class="receipt-label">SHA-256</span><span class="receipt-value" title="be2d94d95e2880fc420a0c4f1f1e587a9b56bea061174db0a04c421f9c20a4db">be2d94d95e28</span></div></div><div class="card-actions"><a class="card-link primary" href="gallery/artifacts/release-delivery.workflow.html#focus=approval" target="_blank" rel="noopener" data-en="Explore focus ↗" data-zh="探索聚焦路径 ↗">Explore focus ↗</a>@@ -415,7 +415,7 @@<div class="receipt-cell"><span class="receipt-label">Artifact</span><span class="receipt-value ok">9/9 pass</span></div><div class="receipt-cell"><span class="receipt-label">Composition</span><span class="receipt-value ok" title="0 crossings · 0 border runs · 0 micro segments · 0 cramped turns">SHOWCASE · PASS</span></div><div class="receipt-cell"><span class="receipt-label">Graph</span><span class="receipt-value">11N · 10E</span></div>- <div class="receipt-cell"><span class="receipt-label">SHA-256</span><span class="receipt-value" title="e0bc1abe26183623e4932c60ec046317b05d203402e7cb705bf527a47ba146e5">e0bc1abe2618</span></div>+ <div class="receipt-cell"><span class="receipt-label">SHA-256</span><span class="receipt-value" title="5828bebe770e893a1ef1552568da2370d713e8b66f8869ab9578e91f3e22c7d0">5828bebe770e</span></div></div><div class="card-actions"><a class="card-link primary" href="gallery/artifacts/incident-response.workflow.html#focus=triage" target="_blank" rel="noopener" data-en="Explore focus ↗" data-zh="探索聚焦路径 ↗">Explore focus ↗</a>@@ -444,7 +444,7 @@<div class="receipt-cell"><span class="receipt-label">Artifact</span><span class="receipt-value ok">9/9 pass</span></div><div class="receipt-cell"><span class="receipt-label">Composition</span><span class="receipt-value ok" title="0 crossings · 0 border runs · 0 micro segments · 0 cramped turns">SHOWCASE · PASS</span></div><div class="receipt-cell"><span class="receipt-label">Graph</span><span class="receipt-value">10N · 10E</span></div>- <div class="receipt-cell"><span class="receipt-label">SHA-256</span><span class="receipt-value" title="003f222205f3d7f755df5cb5d3056c24b276670f13ae8e73569865e2afc24857">003f222205f3</span></div>+ <div class="receipt-cell"><span class="receipt-label">SHA-256</span><span class="receipt-value" title="b2d4cff4a3f2815dd31faf0f840acd32636929d9d59bd8327a10af78f29e25e2">b2d4cff4a3f2</span></div></div><div class="card-actions"><a class="card-link primary" href="gallery/artifacts/product-analytics.dataflow.html#focus=consent" target="_blank" rel="noopener" data-en="Explore focus ↗" data-zh="探索聚焦路径 ↗">Explore focus ↗</a>@@ -473,7 +473,7 @@<div class="receipt-cell"><span class="receipt-label">Artifact</span><span class="receipt-value ok">9/9 pass</span></div><div class="receipt-cell"><span class="receipt-label">Composition</span><span class="receipt-value ok" title="0 crossings · 0 border runs · 0 micro segments · 0 cramped turns">SHOWCASE · PASS</span></div><div class="receipt-cell"><span class="receipt-label">Graph</span><span class="receipt-value">7N · 14E</span></div>- <div class="receipt-cell"><span class="receipt-label">SHA-256</span><span class="receipt-value" title="5ed60d29979165950a59d9cab3d9544f9be65990c85657b3c97b02eabbc02393">5ed60d299791</span></div>+ <div class="receipt-cell"><span class="receipt-label">SHA-256</span><span class="receipt-value" title="ffdadc88df38bfedf37b60a865d1af4fc719dbeaded50e3d57e59bf3cc4f3d41">ffdadc88df38</span></div></div><div class="card-actions"><a class="card-link primary" href="gallery/artifacts/async-job-roundtrip.sequence.html#focus=queue" target="_blank" rel="noopener" data-en="Explore focus ↗" data-zh="探索聚焦路径 ↗">Explore focus ↗</a>@@ -502,7 +502,7 @@<div class="receipt-cell"><span class="receipt-label">Artifact</span><span class="receipt-value ok">9/9 pass</span></div><div class="receipt-cell"><span class="receipt-label">Composition</span><span class="receipt-value ok" title="0 crossings · 0 border runs · 0 micro segments · 0 cramped turns">SHOWCASE · PASS</span></div><div class="receipt-cell"><span class="receipt-label">Graph</span><span class="receipt-value">12N · 12E</span></div>- <div class="receipt-cell"><span class="receipt-label">SHA-256</span><span class="receipt-value" title="1ec4a5f9a031fd12ea147466ffd5272702d40d18d3d24a6500e34a808656c54d">1ec4a5f9a031</span></div>+ <div class="receipt-cell"><span class="receipt-label">SHA-256</span><span class="receipt-value" title="66ccf103dc7cb7516a8719acc693d86b5c3334d4d90a327cecb7efc0836569d9">66ccf103dc7c</span></div></div><div class="card-actions"><a class="card-link primary" href="gallery/artifacts/event-stream.dataflow.html#focus=orders" target="_blank" rel="noopener" data-en="Explore focus ↗" data-zh="探索聚焦路径 ↗">Explore focus ↗</a>@@ -531,7 +531,7 @@<div class="receipt-cell"><span class="receipt-label">Artifact</span><span class="receipt-value ok">9/9 pass</span></div><div class="receipt-cell"><span class="receipt-label">Composition</span><span class="receipt-value ok" title="0 crossings · 0 border runs · 0 micro segments · 0 cramped turns">SHOWCASE · PASS</span></div><div class="receipt-cell"><span class="receipt-label">Graph</span><span class="receipt-value">10N · 6E</span></div>- <div class="receipt-cell"><span class="receipt-label">SHA-256</span><span class="receipt-value" title="3c73655d1c1972288f0ec6a3fcd20e6a8f87310012726785f8c4a44e24bdca33">3c73655d1c19</span></div>+ <div class="receipt-cell"><span class="receipt-label">SHA-256</span><span class="receipt-value" title="ccdf424337985d2b33920e877a05c9e60d5095d2559db4c22f9625f8f0a90c58">ccdf42433798</span></div></div><div class="card-actions"><a class="card-link primary" href="gallery/artifacts/agent-run.lifecycle.html#focus=approval" target="_blank" rel="noopener" data-en="Explore focus ↗" data-zh="探索聚焦路径 ↗">Explore focus ↗</a>@@ -560,7 +560,7 @@<div class="receipt-cell"><span class="receipt-label">Artifact</span><span class="receipt-value ok">9/9 pass</span></div><div class="receipt-cell"><span class="receipt-label">Composition</span><span class="receipt-value ok" title="0 crossings · 0 border runs · 0 micro segments · 0 cramped turns">SHOWCASE · PASS</span></div><div class="receipt-cell"><span class="receipt-label">Graph</span><span class="receipt-value">11N · 11E</span></div>- <div class="receipt-cell"><span class="receipt-label">SHA-256</span><span class="receipt-value" title="5b4203d7824bd7877f79857634d2daa220e7e7ca6a1fc3688cdc8fccbcd79546">5b4203d7824b</span></div>+ <div class="receipt-cell"><span class="receipt-label">SHA-256</span><span class="receipt-value" title="2b0075864aa796392c9dd507569e0f1e3a05d16d921cb5c15153ae83bb2e450f">2b0075864aa7</span></div></div><div class="card-actions"><a class="card-link primary" href="gallery/artifacts/deployment-release.lifecycle.html#focus=live" target="_blank" rel="noopener" data-en="Explore focus ↗" data-zh="探索聚焦路径 ↗">Explore focus ↗</a>@@ -589,7 +589,7 @@<div class="receipt-cell"><span class="receipt-label">Artifact</span><span class="receipt-value ok">9/9 pass</span></div><div class="receipt-cell"><span class="receipt-label">Composition</span><span class="receipt-value ok" title="0 crossings · 0 border runs · 0 micro segments · 0 cramped turns">SHOWCASE · PASS</span></div><div class="receipt-cell"><span class="receipt-label">Graph</span><span class="receipt-value">10N · 9E</span></div>- <div class="receipt-cell"><span class="receipt-label">SHA-256</span><span class="receipt-value" title="47596a8d853f7763fbc287dbcebbf47c81781de5b2c80afa0fdbd83f26cd82f8">47596a8d853f</span></div>+ <div class="receipt-cell"><span class="receipt-label">SHA-256</span><span class="receipt-value" title="4ffd3028ca685ea49b1abaf6794edb1b5f344c3e691aa2c65effd9c65f0fc9ba">4ffd3028ca68</span></div></div><div class="card-actions"><a class="card-link primary" href="gallery/artifacts/web-app.architecture.html#focus=api" target="_blank" rel="noopener" data-en="Explore focus ↗" data-zh="探索聚焦路径 ↗">Explore focus ↗</a>@@ -667,8 +667,8 @@ receipt 99 checks / 11 artifacts / deterministic hashes</pre>"engineeringProfile": null,"nodeCount": 12,"edgeCount": 11,- "artifactBytes": 767515,- "artifactSha256": "b1782672eaf42be1cd727ffc680a640ca80d6ac8a34f06df9fb378d812749f81",+ "artifactBytes": 767777,+ "artifactSha256": "547616757791698b1f52ea3f9addf3fc86004bc56494226a8832722dee1655bb","sourceBytes": 4939,"sourceSha256": "d67965d50872c97e4ff3476271e645bf19fab6b3ab44e111bdb44b063e3aa36f","checks": [@@ -802,8 +802,8 @@ receipt 99 checks / 11 artifacts / deterministic hashes</pre>"engineeringProfile": "deployment-ownership","nodeCount": 12,"edgeCount": 12,- "artifactBytes": 770242,- "artifactSha256": "9519f52cb31452614de1eb8c038439109795512ad85afefae2330f884dcfce70",+ "artifactBytes": 770504,+ "artifactSha256": "718299eae00d36d9e5dd2c6ba49b1908ddcb60104c6833551e4faf2506bfd316","sourceBytes": 4734,"sourceSha256": "cb54bad2dfd0c2d02aa5b496bde6839789a0f07f23062343c4458b8d38806c13","checks": [@@ -935,8 +935,8 @@ receipt 99 checks / 11 artifacts / deterministic hashes</pre>"engineeringProfile": null,"nodeCount": 7,"edgeCount": 12,- "artifactBytes": 762009,- "artifactSha256": "cee1dc2aa4b5a00d086c97c4de4276642f51ede49a686882489bdb947f241307",+ "artifactBytes": 762271,+ "artifactSha256": "fe36c24489b62bcef53a24f4a577d46276e9badfcaa6a0d00b506fb9dcecd496","sourceBytes": 3805,"sourceSha256": "f5c2e44f9a44000adc7c3b3040c4fcd88fe50b7cf8761302c21eb0c184e5780a","checks": [@@ -1057,8 +1057,8 @@ receipt 99 checks / 11 artifacts / deterministic hashes</pre>"engineeringProfile": null,"nodeCount": 10,"edgeCount": 10,- "artifactBytes": 763029,- "artifactSha256": "aeb0e57d564dbd09beac61069f44baab1cbd5b719ff006dc544902377d962af8",+ "artifactBytes": 763291,+ "artifactSha256": "be2d94d95e2880fc420a0c4f1f1e587a9b56bea061174db0a04c421f9c20a4db","sourceBytes": 4510,"sourceSha256": "dbd5c174af66296caec372e7214cf4df7158b50a563508e16826b95ab8d1cd6c","checks": [@@ -1197,8 +1197,8 @@ receipt 99 checks / 11 artifacts / deterministic hashes</pre>"engineeringProfile": null,"nodeCount": 11,"edgeCount": 10,- "artifactBytes": 760349,- "artifactSha256": "e0bc1abe26183623e4932c60ec046317b05d203402e7cb705bf527a47ba146e5",+ "artifactBytes": 760611,+ "artifactSha256": "5828bebe770e893a1ef1552568da2370d713e8b66f8869ab9578e91f3e22c7d0","sourceBytes": 4723,"sourceSha256": "630be98449925d2716ecb8439f404b2bff5fe65ba905b0ad0baea6d96890c526","checks": [@@ -1383,8 +1383,8 @@ receipt 99 checks / 11 artifacts / deterministic hashes</pre>"engineeringProfile": null,"nodeCount": 10,"edgeCount": 10,- "artifactBytes": 764349,- "artifactSha256": "003f222205f3d7f755df5cb5d3056c24b276670f13ae8e73569865e2afc24857",+ "artifactBytes": 764611,+ "artifactSha256": "b2d4cff4a3f2815dd31faf0f840acd32636929d9d59bd8327a10af78f29e25e2","sourceBytes": 5035,"sourceSha256": "8a635db9e51a5b1a8d2955b9d66f5b9a450e0a298432ce8f2e2f0be11f372e05","checks": [@@ -1518,8 +1518,8 @@ receipt 99 checks / 11 artifacts / deterministic hashes</pre>"engineeringProfile": null,"nodeCount": 7,"edgeCount": 14,- "artifactBytes": 761090,- "artifactSha256": "5ed60d29979165950a59d9cab3d9544f9be65990c85657b3c97b02eabbc02393",+ "artifactBytes": 761352,+ "artifactSha256": "ffdadc88df38bfedf37b60a865d1af4fc719dbeaded50e3d57e59bf3cc4f3d41","sourceBytes": 3766,"sourceSha256": "b8c6c52f1763ede2933c77deb8da59b3e06917bc41d27e66df896136456b859a","checks": [@@ -1658,8 +1658,8 @@ receipt 99 checks / 11 artifacts / deterministic hashes</pre>"engineeringProfile": null,"nodeCount": 12,"edgeCount": 12,- "artifactBytes": 768269,- "artifactSha256": "1ec4a5f9a031fd12ea147466ffd5272702d40d18d3d24a6500e34a808656c54d",+ "artifactBytes": 768531,+ "artifactSha256": "66ccf103dc7cb7516a8719acc693d86b5c3334d4d90a327cecb7efc0836569d9","sourceBytes": 4769,"sourceSha256": "3bdd77674282009c7c68d588cf8a3c495bc98a3be1b9c45327fd1801a6f83a23","checks": [@@ -1810,8 +1810,8 @@ receipt 99 checks / 11 artifacts / deterministic hashes</pre>"engineeringProfile": null,"nodeCount": 10,"edgeCount": 6,- "artifactBytes": 758659,- "artifactSha256": "3c73655d1c1972288f0ec6a3fcd20e6a8f87310012726785f8c4a44e24bdca33",+ "artifactBytes": 758921,+ "artifactSha256": "ccdf424337985d2b33920e877a05c9e60d5095d2559db4c22f9625f8f0a90c58","sourceBytes": 3405,"sourceSha256": "230242a7557663877766c43a9fe7cffe8b4fb66e4866457dccd24c63175b4917","checks": [@@ -1981,8 +1981,8 @@ receipt 99 checks / 11 artifacts / deterministic hashes</pre>"engineeringProfile": null,"nodeCount": 11,"edgeCount": 11,- "artifactBytes": 765714,- "artifactSha256": "5b4203d7824bd7877f79857634d2daa220e7e7ca6a1fc3688cdc8fccbcd79546",+ "artifactBytes": 765976,+ "artifactSha256": "2b0075864aa796392c9dd507569e0f1e3a05d16d921cb5c15153ae83bb2e450f","sourceBytes": 3507,"sourceSha256": "f565a8acfebdb21453e2bccd82d3760b4736e38fe194fb2f0804b57817eba813","checks": [@@ -2103,8 +2103,8 @@ receipt 99 checks / 11 artifacts / deterministic hashes</pre>"engineeringProfile": null,"nodeCount": 10,"edgeCount": 9,- "artifactBytes": 762055,- "artifactSha256": "47596a8d853f7763fbc287dbcebbf47c81781de5b2c80afa0fdbd83f26cd82f8",+ "artifactBytes": 762317,+ "artifactSha256": "4ffd3028ca685ea49b1abaf6794edb1b5f344c3e691aa2c65effd9c65f0fc9ba","sourceBytes": 3197,"sourceSha256": "95e051b27a9e4a3307e194c0f666fca4af51470be7e2228d400ff48aea5b353b","checks": [diff --git a/docs/gallery/artifacts/agent-run.lifecycle.html b/docs/gallery/artifacts/agent-run.lifecycle.htmlindex 19b70312..d54090ed 100644--- a/docs/gallery/artifacts/agent-run.lifecycle.html+++ b/docs/gallery/artifacts/agent-run.lifecycle.html@@ -9603,7 +9603,10 @@ OTHER DEALINGS IN THE FONT SOFTWARE.var shellFloor = Math.min(MIN_READER_WIDTH, Math.max(0, window.innerWidth - chromeMetrics().bodyX));html.style.setProperty('--archify-reader-width', Math.max(rounded, shellFloor) + 'px');if (rounded < shellFloor) {- html.style.setProperty('--archify-diagram-max-width', Math.max(1, rounded - chromeMetrics().diagramX) + 'px');+ // `rounded` already includes a docked rail and its gap; the SVG cap+ // is only the diagram's share, not the space beside it.+ var railShare = html.getAttribute('data-reader-rail') === 'true' ? RAIL_WIDTH + RAIL_GAP : 0;+ html.style.setProperty('--archify-diagram-max-width', Math.max(1, rounded - railShare - chromeMetrics().diagramX) + 'px');html.setAttribute('data-reader-narrow', 'true');} else {html.style.removeProperty('--archify-diagram-max-width');diff --git a/docs/gallery/artifacts/agent-tool-call.workflow.html b/docs/gallery/artifacts/agent-tool-call.workflow.htmlindex b638951b..effbf24d 100644--- a/docs/gallery/artifacts/agent-tool-call.workflow.html+++ b/docs/gallery/artifacts/agent-tool-call.workflow.html@@ -9664,7 +9664,10 @@ OTHER DEALINGS IN THE FONT SOFTWARE.var shellFloor = Math.min(MIN_READER_WIDTH, Math.max(0, window.innerWidth - chromeMetrics().bodyX));html.style.setProperty('--archify-reader-width', Math.max(rounded, shellFloor) + 'px');if (rounded < shellFloor) {- html.style.setProperty('--archify-diagram-max-width', Math.max(1, rounded - chromeMetrics().diagramX) + 'px');+ // `rounded` already includes a docked rail and its gap; the SVG cap+ // is only the diagram's share, not the space beside it.+ var railShare = html.getAttribute('data-reader-rail') === 'true' ? RAIL_WIDTH + RAIL_GAP : 0;+ html.style.setProperty('--archify-diagram-max-width', Math.max(1, rounded - railShare - chromeMetrics().diagramX) + 'px');html.setAttribute('data-reader-narrow', 'true');} else {html.style.removeProperty('--archify-diagram-max-width');diff --git a/docs/gallery/artifacts/async-job-roundtrip.sequence.html b/docs/gallery/artifacts/async-job-roundtrip.sequence.htmlindex 974302c2..a2f6e636 100644--- a/docs/gallery/artifacts/async-job-roundtrip.sequence.html+++ b/docs/gallery/artifacts/async-job-roundtrip.sequence.html@@ -9685,7 +9685,10 @@ OTHER DEALINGS IN THE FONT SOFTWARE.var shellFloor = Math.min(MIN_READER_WIDTH, Math.max(0, window.innerWidth - chromeMetrics().bodyX));html.style.setProperty('--archify-reader-width', Math.max(rounded, shellFloor) + 'px');if (rounded < shellFloor) {- html.style.setProperty('--archify-diagram-max-width', Math.max(1, rounded - chromeMetrics().diagramX) + 'px');+ // `rounded` already includes a docked rail and its gap; the SVG cap+ // is only the diagram's share, not the space beside it.+ var railShare = html.getAttribute('data-reader-rail') === 'true' ? RAIL_WIDTH + RAIL_GAP : 0;+ html.style.setProperty('--archify-diagram-max-width', Math.max(1, rounded - railShare - chromeMetrics().diagramX) + 'px');html.setAttribute('data-reader-narrow', 'true');} else {html.style.removeProperty('--archify-diagram-max-width');diff --git a/docs/gallery/artifacts/cache-miss.sequence.html b/docs/gallery/artifacts/cache-miss.sequence.htmlindex 980545e8..87486713 100644--- a/docs/gallery/artifacts/cache-miss.sequence.html+++ b/docs/gallery/artifacts/cache-miss.sequence.html@@ -9673,7 +9673,10 @@ OTHER DEALINGS IN THE FONT SOFTWARE.var shellFloor = Math.min(MIN_READER_WIDTH, Math.max(0, window.innerWidth - chromeMetrics().bodyX));html.style.setProperty('--archify-reader-width', Math.max(rounded, shellFloor) + 'px');if (rounded < shellFloor) {- html.style.setProperty('--archify-diagram-max-width', Math.max(1, rounded - chromeMetrics().diagramX) + 'px');+ // `rounded` already includes a docked rail and its gap; the SVG cap+ // is only the diagram's share, not the space beside it.+ var railShare = html.getAttribute('data-reader-rail') === 'true' ? RAIL_WIDTH + RAIL_GAP : 0;+ html.style.setProperty('--archify-diagram-max-width', Math.max(1, rounded - railShare - chromeMetrics().diagramX) + 'px');html.setAttribute('data-reader-narrow', 'true');} else {html.style.removeProperty('--archify-diagram-max-width');diff --git a/docs/gallery/artifacts/deployment-release.lifecycle.html b/docs/gallery/artifacts/deployment-release.lifecycle.htmlindex 918455b4..5d29cc8c 100644--- a/docs/gallery/artifacts/deployment-release.lifecycle.html+++ b/docs/gallery/artifacts/deployment-release.lifecycle.html@@ -9676,7 +9676,10 @@ OTHER DEALINGS IN THE FONT SOFTWARE.var shellFloor = Math.min(MIN_READER_WIDTH, Math.max(0, window.innerWidth - chromeMetrics().bodyX));html.style.setProperty('--archify-reader-width', Math.max(rounded, shellFloor) + 'px');if (rounded < shellFloor) {- html.style.setProperty('--archify-diagram-max-width', Math.max(1, rounded - chromeMetrics().diagramX) + 'px');+ // `rounded` already includes a docked rail and its gap; the SVG cap+ // is only the diagram's share, not the space beside it.+ var railShare = html.getAttribute('data-reader-rail') === 'true' ? RAIL_WIDTH + RAIL_GAP : 0;+ html.style.setProperty('--archify-diagram-max-width', Math.max(1, rounded - railShare - chromeMetrics().diagramX) + 'px');html.setAttribute('data-reader-narrow', 'true');} else {html.style.removeProperty('--archify-diagram-max-width');diff --git a/docs/gallery/artifacts/event-stream.dataflow.html b/docs/gallery/artifacts/event-stream.dataflow.htmlindex fe51ee7d..e50e9641 100644--- a/docs/gallery/artifacts/event-stream.dataflow.html+++ b/docs/gallery/artifacts/event-stream.dataflow.html@@ -9697,7 +9697,10 @@ OTHER DEALINGS IN THE FONT SOFTWARE.var shellFloor = Math.min(MIN_READER_WIDTH, Math.max(0, window.innerWidth - chromeMetrics().bodyX));html.style.setProperty('--archify-reader-width', Math.max(rounded, shellFloor) + 'px');if (rounded < shellFloor) {- html.style.setProperty('--archify-diagram-max-width', Math.max(1, rounded - chromeMetrics().diagramX) + 'px');+ // `rounded` already includes a docked rail and its gap; the SVG cap+ // is only the diagram's share, not the space beside it.+ var railShare = html.getAttribute('data-reader-rail') === 'true' ? RAIL_WIDTH + RAIL_GAP : 0;+ html.style.setProperty('--archify-diagram-max-width', Math.max(1, rounded - railShare - chromeMetrics().diagramX) + 'px');html.setAttribute('data-reader-narrow', 'true');} else {html.style.removeProperty('--archify-diagram-max-width');diff --git a/docs/gallery/artifacts/incident-response.workflow.html b/docs/gallery/artifacts/incident-response.workflow.htmlindex ea584c51..3c4df00a 100644--- a/docs/gallery/artifacts/incident-response.workflow.html+++ b/docs/gallery/artifacts/incident-response.workflow.html@@ -9624,7 +9624,10 @@ OTHER DEALINGS IN THE FONT SOFTWARE.var shellFloor = Math.min(MIN_READER_WIDTH, Math.max(0, window.innerWidth - chromeMetrics().bodyX));html.style.setProperty('--archify-reader-width', Math.max(rounded, shellFloor) + 'px');if (rounded < shellFloor) {- html.style.setProperty('--archify-diagram-max-width', Math.max(1, rounded - chromeMetrics().diagramX) + 'px');+ // `rounded` already includes a docked rail and its gap; the SVG cap+ // is only the diagram's share, not the space beside it.+ var railShare = html.getAttribute('data-reader-rail') === 'true' ? RAIL_WIDTH + RAIL_GAP : 0;+ html.style.setProperty('--archify-diagram-max-width', Math.max(1, rounded - railShare - chromeMetrics().diagramX) + 'px');html.setAttribute('data-reader-narrow', 'true');} else {html.style.removeProperty('--archify-diagram-max-width');diff --git a/docs/gallery/artifacts/product-analytics.dataflow.html b/docs/gallery/artifacts/product-analytics.dataflow.htmlindex ac1d6fca..a527814c 100644--- a/docs/gallery/artifacts/product-analytics.dataflow.html+++ b/docs/gallery/artifacts/product-analytics.dataflow.html@@ -9658,7 +9658,10 @@ OTHER DEALINGS IN THE FONT SOFTWARE.var shellFloor = Math.min(MIN_READER_WIDTH, Math.max(0, window.innerWidth - chromeMetrics().bodyX));html.style.setProperty('--archify-reader-width', Math.max(rounded, shellFloor) + 'px');if (rounded < shellFloor) {- html.style.setProperty('--archify-diagram-max-width', Math.max(1, rounded - chromeMetrics().diagramX) + 'px');+ // `rounded` already includes a docked rail and its gap; the SVG cap+ // is only the diagram's share, not the space beside it.+ var railShare = html.getAttribute('data-reader-rail') === 'true' ? RAIL_WIDTH + RAIL_GAP : 0;+ html.style.setProperty('--archify-diagram-max-width', Math.max(1, rounded - railShare - chromeMetrics().diagramX) + 'px');html.setAttribute('data-reader-narrow', 'true');} else {html.style.removeProperty('--archify-diagram-max-width');diff --git a/docs/gallery/artifacts/production-deployment.architecture.html b/docs/gallery/artifacts/production-deployment.architecture.htmlindex f330848d..f107a78b 100644--- a/docs/gallery/artifacts/production-deployment.architecture.html+++ b/docs/gallery/artifacts/production-deployment.architecture.html@@ -9701,7 +9701,10 @@ OTHER DEALINGS IN THE FONT SOFTWARE.var shellFloor = Math.min(MIN_READER_WIDTH, Math.max(0, window.innerWidth - chromeMetrics().bodyX));html.style.setProperty('--archify-reader-width', Math.max(rounded, shellFloor) + 'px');if (rounded < shellFloor) {- html.style.setProperty('--archify-diagram-max-width', Math.max(1, rounded - chromeMetrics().diagramX) + 'px');+ // `rounded` already includes a docked rail and its gap; the SVG cap+ // is only the diagram's share, not the space beside it.+ var railShare = html.getAttribute('data-reader-rail') === 'true' ? RAIL_WIDTH + RAIL_GAP : 0;+ html.style.setProperty('--archify-diagram-max-width', Math.max(1, rounded - railShare - chromeMetrics().diagramX) + 'px');html.setAttribute('data-reader-narrow', 'true');} else {html.style.removeProperty('--archify-diagram-max-width');diff --git a/docs/gallery/artifacts/release-delivery.workflow.html b/docs/gallery/artifacts/release-delivery.workflow.htmlindex c996f294..0aff29e0 100644--- a/docs/gallery/artifacts/release-delivery.workflow.html+++ b/docs/gallery/artifacts/release-delivery.workflow.html@@ -9650,7 +9650,10 @@ OTHER DEALINGS IN THE FONT SOFTWARE.var shellFloor = Math.min(MIN_READER_WIDTH, Math.max(0, window.innerWidth - chromeMetrics().bodyX));html.style.setProperty('--archify-reader-width', Math.max(rounded, shellFloor) + 'px');if (rounded < shellFloor) {- html.style.setProperty('--archify-diagram-max-width', Math.max(1, rounded - chromeMetrics().diagramX) + 'px');+ // `rounded` already includes a docked rail and its gap; the SVG cap+ // is only the diagram's share, not the space beside it.+ var railShare = html.getAttribute('data-reader-rail') === 'true' ? RAIL_WIDTH + RAIL_GAP : 0;+ html.style.setProperty('--archify-diagram-max-width', Math.max(1, rounded - railShare - chromeMetrics().diagramX) + 'px');html.setAttribute('data-reader-narrow', 'true');} else {html.style.removeProperty('--archify-diagram-max-width');diff --git a/docs/gallery/artifacts/web-app.architecture.html b/docs/gallery/artifacts/web-app.architecture.htmlindex fdc9292b..56dacb75 100644--- a/docs/gallery/artifacts/web-app.architecture.html+++ b/docs/gallery/artifacts/web-app.architecture.html@@ -9646,7 +9646,10 @@ OTHER DEALINGS IN THE FONT SOFTWARE.var shellFloor = Math.min(MIN_READER_WIDTH, Math.max(0, window.innerWidth - chromeMetrics().bodyX));html.style.setProperty('--archify-reader-width', Math.max(rounded, shellFloor) + 'px');if (rounded < shellFloor) {- html.style.setProperty('--archify-diagram-max-width', Math.max(1, rounded - chromeMetrics().diagramX) + 'px');+ // `rounded` already includes a docked rail and its gap; the SVG cap+ // is only the diagram's share, not the space beside it.+ var railShare = html.getAttribute('data-reader-rail') === 'true' ? RAIL_WIDTH + RAIL_GAP : 0;+ html.style.setProperty('--archify-diagram-max-width', Math.max(1, rounded - railShare - chromeMetrics().diagramX) + 'px');html.setAttribute('data-reader-narrow', 'true');} else {html.style.removeProperty('--archify-diagram-max-width');diff --git a/docs/gallery/manifest.json b/docs/gallery/manifest.jsonindex 50f2c4c1..e0caadb4 100644--- a/docs/gallery/manifest.json+++ b/docs/gallery/manifest.json@@ -19,8 +19,8 @@"engineeringProfile": null,"nodeCount": 12,"edgeCount": 11,- "artifactBytes": 767515,- "artifactSha256": "b1782672eaf42be1cd727ffc680a640ca80d6ac8a34f06df9fb378d812749f81",+ "artifactBytes": 767777,+ "artifactSha256": "547616757791698b1f52ea3f9addf3fc86004bc56494226a8832722dee1655bb","sourceBytes": 4939,"sourceSha256": "d67965d50872c97e4ff3476271e645bf19fab6b3ab44e111bdb44b063e3aa36f","checks": [@@ -154,8 +154,8 @@"engineeringProfile": "deployment-ownership","nodeCount": 12,"edgeCount": 12,- "artifactBytes": 770242,- "artifactSha256": "9519f52cb31452614de1eb8c038439109795512ad85afefae2330f884dcfce70",+ "artifactBytes": 770504,+ "artifactSha256": "718299eae00d36d9e5dd2c6ba49b1908ddcb60104c6833551e4faf2506bfd316","sourceBytes": 4734,"sourceSha256": "cb54bad2dfd0c2d02aa5b496bde6839789a0f07f23062343c4458b8d38806c13","checks": [@@ -287,8 +287,8 @@"engineeringProfile": null,"nodeCount": 7,"edgeCount": 12,- "artifactBytes": 762009,- "artifactSha256": "cee1dc2aa4b5a00d086c97c4de4276642f51ede49a686882489bdb947f241307",+ "artifactBytes": 762271,+ "artifactSha256": "fe36c24489b62bcef53a24f4a577d46276e9badfcaa6a0d00b506fb9dcecd496","sourceBytes": 3805,"sourceSha256": "f5c2e44f9a44000adc7c3b3040c4fcd88fe50b7cf8761302c21eb0c184e5780a","checks": [@@ -409,8 +409,8 @@"engineeringProfile": null,"nodeCount": 10,"edgeCount": 10,- "artifactBytes": 763029,- "artifactSha256": "aeb0e57d564dbd09beac61069f44baab1cbd5b719ff006dc544902377d962af8",+ "artifactBytes": 763291,+ "artifactSha256": "be2d94d95e2880fc420a0c4f1f1e587a9b56bea061174db0a04c421f9c20a4db","sourceBytes": 4510,"sourceSha256": "dbd5c174af66296caec372e7214cf4df7158b50a563508e16826b95ab8d1cd6c","checks": [@@ -549,8 +549,8 @@"engineeringProfile": null,"nodeCount": 11,"edgeCount": 10,- "artifactBytes": 760349,- "artifactSha256": "e0bc1abe26183623e4932c60ec046317b05d203402e7cb705bf527a47ba146e5",+ "artifactBytes": 760611,+ "artifactSha256": "5828bebe770e893a1ef1552568da2370d713e8b66f8869ab9578e91f3e22c7d0","sourceBytes": 4723,"sourceSha256": "630be98449925d2716ecb8439f404b2bff5fe65ba905b0ad0baea6d96890c526","checks": [@@ -735,8 +735,8 @@"engineeringProfile": null,"nodeCount": 10,"edgeCount": 10,- "artifactBytes": 764349,- "artifactSha256": "003f222205f3d7f755df5cb5d3056c24b276670f13ae8e73569865e2afc24857",+ "artifactBytes": 764611,+ "artifactSha256": "b2d4cff4a3f2815dd31faf0f840acd32636929d9d59bd8327a10af78f29e25e2","sourceBytes": 5035,"sourceSha256": "8a635db9e51a5b1a8d2955b9d66f5b9a450e0a298432ce8f2e2f0be11f372e05","checks": [@@ -870,8 +870,8 @@"engineeringProfile": null,"nodeCount": 7,"edgeCount": 14,- "artifactBytes": 761090,- "artifactSha256": "5ed60d29979165950a59d9cab3d9544f9be65990c85657b3c97b02eabbc02393",+ "artifactBytes": 761352,+ "artifactSha256": "ffdadc88df38bfedf37b60a865d1af4fc719dbeaded50e3d57e59bf3cc4f3d41","sourceBytes": 3766,"sourceSha256": "b8c6c52f1763ede2933c77deb8da59b3e06917bc41d27e66df896136456b859a","checks": [@@ -1010,8 +1010,8 @@"engineeringProfile": null,"nodeCount": 12,"edgeCount": 12,- "artifactBytes": 768269,- "artifactSha256": "1ec4a5f9a031fd12ea147466ffd5272702d40d18d3d24a6500e34a808656c54d",+ "artifactBytes": 768531,+ "artifactSha256": "66ccf103dc7cb7516a8719acc693d86b5c3334d4d90a327cecb7efc0836569d9","sourceBytes": 4769,"sourceSha256": "3bdd77674282009c7c68d588cf8a3c495bc98a3be1b9c45327fd1801a6f83a23","checks": [@@ -1162,8 +1162,8 @@"engineeringProfile": null,"nodeCount": 10,"edgeCount": 6,- "artifactBytes": 758659,- "artifactSha256": "3c73655d1c1972288f0ec6a3fcd20e6a8f87310012726785f8c4a44e24bdca33",+ "artifactBytes": 758921,+ "artifactSha256": "ccdf424337985d2b33920e877a05c9e60d5095d2559db4c22f9625f8f0a90c58","sourceBytes": 3405,"sourceSha256": "230242a7557663877766c43a9fe7cffe8b4fb66e4866457dccd24c63175b4917","checks": [@@ -1333,8 +1333,8 @@"engineeringProfile": null,"nodeCount": 11,"edgeCount": 11,- "artifactBytes": 765714,- "artifactSha256": "5b4203d7824bd7877f79857634d2daa220e7e7ca6a1fc3688cdc8fccbcd79546",+ "artifactBytes": 765976,+ "artifactSha256": "2b0075864aa796392c9dd507569e0f1e3a05d16d921cb5c15153ae83bb2e450f","sourceBytes": 3507,"sourceSha256": "f565a8acfebdb21453e2bccd82d3760b4736e38fe194fb2f0804b57817eba813","checks": [@@ -1455,8 +1455,8 @@"engineeringProfile": null,"nodeCount": 10,"edgeCount": 9,- "artifactBytes": 762055,- "artifactSha256": "47596a8d853f7763fbc287dbcebbf47c81781de5b2c80afa0fdbd83f26cd82f8",+ "artifactBytes": 762317,+ "artifactSha256": "4ffd3028ca685ea49b1abaf6794edb1b5f344c3e691aa2c65effd9c65f0fc9ba","sourceBytes": 3197,"sourceSha256": "95e051b27a9e4a3307e194c0f666fca4af51470be7e2228d400ff48aea5b353b","checks": [diff --git a/examples/checkout-platform-delta.html b/examples/checkout-platform-delta.htmlindex fe5e5a78..e9bd4aa0 100644--- a/examples/checkout-platform-delta.html+++ b/examples/checkout-platform-delta.html@@ -14297,7 +14297,10 @@ OTHER DEALINGS IN THE FONT SOFTWARE.var shellFloor = Math.min(MIN_READER_WIDTH, Math.max(0, window.innerWidth - chromeMetrics().bodyX));html.style.setProperty('--archify-reader-width', Math.max(rounded, shellFloor) + 'px');if (rounded < shellFloor) {- html.style.setProperty('--archify-diagram-max-width', Math.max(1, rounded - chromeMetrics().diagramX) + 'px');+ // `rounded` already includes a docked rail and its gap; the SVG cap+ // is only the diagram's share, not the space beside it.+ var railShare = html.getAttribute('data-reader-rail') === 'true' ? RAIL_WIDTH + RAIL_GAP : 0;+ html.style.setProperty('--archify-diagram-max-width', Math.max(1, rounded - railShare - chromeMetrics().diagramX) + 'px');html.setAttribute('data-reader-narrow', 'true');} else {html.style.removeProperty('--archify-diagram-max-width');@@ -28348,7 +28351,10 @@ OTHER DEALINGS IN THE FONT SOFTWARE.var shellFloor = Math.min(MIN_READER_WIDTH, Math.max(0, window.innerWidth - chromeMetrics().bodyX));html.style.setProperty('--archify-reader-width', Math.max(rounded, shellFloor) + 'px');if (rounded < shellFloor) {- html.style.setProperty('--archify-diagram-max-width', Math.max(1, rounded - chromeMetrics().diagramX) + 'px');+ // `rounded` already includes a docked rail and its gap; the SVG cap+ // is only the diagram's share, not the space beside it.+ var railShare = html.getAttribute('data-reader-rail') === 'true' ? RAIL_WIDTH + RAIL_GAP : 0;+ html.style.setProperty('--archify-diagram-max-width', Math.max(1, rounded - railShare - chromeMetrics().diagramX) + 'px');html.setAttribute('data-reader-narrow', 'true');} else {html.style.removeProperty('--archify-diagram-max-width');diff --git a/examples/checkout-platform-delta.receipt.json b/examples/checkout-platform-delta.receipt.jsonindex 7d9a22cc..0f054da0 100644--- a/examples/checkout-platform-delta.receipt.json+++ b/examples/checkout-platform-delta.receipt.json@@ -219,8 +219,8 @@"Boundary identity is conservatively derived from kind + label."],"artifact": {- "sha256": "ccf83bec59edc2c57834e2c8c7c00e73c60ab1088ba98e617e832b37548a2192",- "bytes": 2123343+ "sha256": "2e02050cb5f3103bf54830cdc335c1cdb667455f16d4366230b89c2f2ef727fd",+ "bytes": 2123907},"validation": {"checksPassed": 28,diff --git a/examples/dataflow-product-analytics.html b/examples/dataflow-product-analytics.htmlindex ac1d6fca..a527814c 100644--- a/examples/dataflow-product-analytics.html+++ b/examples/dataflow-product-analytics.html@@ -9658,7 +9658,10 @@ OTHER DEALINGS IN THE FONT SOFTWARE.var shellFloor = Math.min(MIN_READER_WIDTH, Math.max(0, window.innerWidth - chromeMetrics().bodyX));html.style.setProperty('--archify-reader-width', Math.max(rounded, shellFloor) + 'px');if (rounded < shellFloor) {- html.style.setProperty('--archify-diagram-max-width', Math.max(1, rounded - chromeMetrics().diagramX) + 'px');+ // `rounded` already includes a docked rail and its gap; the SVG cap+ // is only the diagram's share, not the space beside it.+ var railShare = html.getAttribute('data-reader-rail') === 'true' ? RAIL_WIDTH + RAIL_GAP : 0;+ html.style.setProperty('--archify-diagram-max-width', Math.max(1, rounded - railShare - chromeMetrics().diagramX) + 'px');html.setAttribute('data-reader-narrow', 'true');} else {html.style.removeProperty('--archify-diagram-max-width');diff --git a/examples/lifecycle-agent-run.html b/examples/lifecycle-agent-run.htmlindex 19b70312..d54090ed 100644--- a/examples/lifecycle-agent-run.html+++ b/examples/lifecycle-agent-run.html@@ -9603,7 +9603,10 @@ OTHER DEALINGS IN THE FONT SOFTWARE.var shellFloor = Math.min(MIN_READER_WIDTH, Math.max(0, window.innerWidth - chromeMetrics().bodyX));html.style.setProperty('--archify-reader-width', Math.max(rounded, shellFloor) + 'px');if (rounded < shellFloor) {- html.style.setProperty('--archify-diagram-max-width', Math.max(1, rounded - chromeMetrics().diagramX) + 'px');+ // `rounded` already includes a docked rail and its gap; the SVG cap+ // is only the diagram's share, not the space beside it.+ var railShare = html.getAttribute('data-reader-rail') === 'true' ? RAIL_WIDTH + RAIL_GAP : 0;+ html.style.setProperty('--archify-diagram-max-width', Math.max(1, rounded - railShare - chromeMetrics().diagramX) + 'px');html.setAttribute('data-reader-narrow', 'true');} else {html.style.removeProperty('--archify-diagram-max-width');diff --git a/examples/sequence-cache-miss-request.html b/examples/sequence-cache-miss-request.htmlindex 980545e8..87486713 100644--- a/examples/sequence-cache-miss-request.html+++ b/examples/sequence-cache-miss-request.html@@ -9673,7 +9673,10 @@ OTHER DEALINGS IN THE FONT SOFTWARE.var shellFloor = Math.min(MIN_READER_WIDTH, Math.max(0, window.innerWidth - chromeMetrics().bodyX));html.style.setProperty('--archify-reader-width', Math.max(rounded, shellFloor) + 'px');if (rounded < shellFloor) {- html.style.setProperty('--archify-diagram-max-width', Math.max(1, rounded - chromeMetrics().diagramX) + 'px');+ // `rounded` already includes a docked rail and its gap; the SVG cap+ // is only the diagram's share, not the space beside it.+ var railShare = html.getAttribute('data-reader-rail') === 'true' ? RAIL_WIDTH + RAIL_GAP : 0;+ html.style.setProperty('--archify-diagram-max-width', Math.max(1, rounded - railShare - chromeMetrics().diagramX) + 'px');html.setAttribute('data-reader-narrow', 'true');} else {html.style.removeProperty('--archify-diagram-max-width');diff --git a/examples/web-app-rendered.html b/examples/web-app-rendered.htmlindex fdc9292b..56dacb75 100644--- a/examples/web-app-rendered.html+++ b/examples/web-app-rendered.html@@ -9646,7 +9646,10 @@ OTHER DEALINGS IN THE FONT SOFTWARE.var shellFloor = Math.min(MIN_READER_WIDTH, Math.max(0, window.innerWidth - chromeMetrics().bodyX));html.style.setProperty('--archify-reader-width', Math.max(rounded, shellFloor) + 'px');if (rounded < shellFloor) {- html.style.setProperty('--archify-diagram-max-width', Math.max(1, rounded - chromeMetrics().diagramX) + 'px');+ // `rounded` already includes a docked rail and its gap; the SVG cap+ // is only the diagram's share, not the space beside it.+ var railShare = html.getAttribute('data-reader-rail') === 'true' ? RAIL_WIDTH + RAIL_GAP : 0;+ html.style.setProperty('--archify-diagram-max-width', Math.max(1, rounded - railShare - chromeMetrics().diagramX) + 'px');html.setAttribute('data-reader-narrow', 'true');} else {html.style.removeProperty('--archify-diagram-max-width');diff --git a/examples/web-app.html b/examples/web-app.htmlindex fdc9292b..56dacb75 100644--- a/examples/web-app.html+++ b/examples/web-app.html@@ -9646,7 +9646,10 @@ OTHER DEALINGS IN THE FONT SOFTWARE.var shellFloor = Math.min(MIN_READER_WIDTH, Math.max(0, window.innerWidth - chromeMetrics().bodyX));html.style.setProperty('--archify-reader-width', Math.max(rounded, shellFloor) + 'px');if (rounded < shellFloor) {- html.style.setProperty('--archify-diagram-max-width', Math.max(1, rounded - chromeMetrics().diagramX) + 'px');+ // `rounded` already includes a docked rail and its gap; the SVG cap+ // is only the diagram's share, not the space beside it.+ var railShare = html.getAttribute('data-reader-rail') === 'true' ? RAIL_WIDTH + RAIL_GAP : 0;+ html.style.setProperty('--archify-diagram-max-width', Math.max(1, rounded - railShare - chromeMetrics().diagramX) + 'px');html.setAttribute('data-reader-narrow', 'true');} else {html.style.removeProperty('--archify-diagram-max-width');diff --git a/examples/workflow-agent-tool-call-rendered.html b/examples/workflow-agent-tool-call-rendered.htmlindex b638951b..effbf24d 100644--- a/examples/workflow-agent-tool-call-rendered.html+++ b/examples/workflow-agent-tool-call-rendered.html@@ -9664,7 +9664,10 @@ OTHER DEALINGS IN THE FONT SOFTWARE.var shellFloor = Math.min(MIN_READER_WIDTH, Math.max(0, window.innerWidth - chromeMetrics().bodyX));html.style.setProperty('--archify-reader-width', Math.max(rounded, shellFloor) + 'px');if (rounded < shellFloor) {- html.style.setProperty('--archify-diagram-max-width', Math.max(1, rounded - chromeMetrics().diagramX) + 'px');+ // `rounded` already includes a docked rail and its gap; the SVG cap+ // is only the diagram's share, not the space beside it.+ var railShare = html.getAttribute('data-reader-rail') === 'true' ? RAIL_WIDTH + RAIL_GAP : 0;+ html.style.setProperty('--archify-diagram-max-width', Math.max(1, rounded - railShare - chromeMetrics().diagramX) + 'px');html.setAttribute('data-reader-narrow', 'true');} else {html.style.removeProperty('--archify-diagram-max-width');diff --git a/experiments/mco-showcase/mco-runtime.html b/experiments/mco-showcase/mco-runtime.htmlindex 50a08bff..aa09bb89 100644--- a/experiments/mco-showcase/mco-runtime.html+++ b/experiments/mco-showcase/mco-runtime.html@@ -9671,7 +9671,10 @@ OTHER DEALINGS IN THE FONT SOFTWARE.var shellFloor = Math.min(MIN_READER_WIDTH, Math.max(0, window.innerWidth - chromeMetrics().bodyX));html.style.setProperty('--archify-reader-width', Math.max(rounded, shellFloor) + 'px');if (rounded < shellFloor) {- html.style.setProperty('--archify-diagram-max-width', Math.max(1, rounded - chromeMetrics().diagramX) + 'px');+ // `rounded` already includes a docked rail and its gap; the SVG cap+ // is only the diagram's share, not the space beside it.+ var railShare = html.getAttribute('data-reader-rail') === 'true' ? RAIL_WIDTH + RAIL_GAP : 0;+ html.style.setProperty('--archify-diagram-max-width', Math.max(1, rounded - railShare - chromeMetrics().diagramX) + 'px');html.setAttribute('data-reader-narrow', 'true');} else {html.style.removeProperty('--archify-diagram-max-width');diff --git a/viewer/reader-layout.js b/viewer/reader-layout.jsindex 4b99e1a2..beada7c3 100644--- a/viewer/reader-layout.js+++ b/viewer/reader-layout.js@@ -204,7 +204,10 @@var shellFloor = Math.min(MIN_READER_WIDTH, Math.max(0, window.innerWidth - chromeMetrics().bodyX));html.style.setProperty('--archify-reader-width', Math.max(rounded, shellFloor) + 'px');if (rounded < shellFloor) {- html.style.setProperty('--archify-diagram-max-width', Math.max(1, rounded - chromeMetrics().diagramX) + 'px');+ // `rounded` already includes a docked rail and its gap; the SVG cap+ // is only the diagram's share, not the space beside it.+ var railShare = html.getAttribute('data-reader-rail') === 'true' ? RAIL_WIDTH + RAIL_GAP : 0;+ html.style.setProperty('--archify-diagram-max-width', Math.max(1, rounded - railShare - chromeMetrics().diagramX) + 'px');html.setAttribute('data-reader-narrow', 'true');} else {html.style.removeProperty('--archify-diagram-max-width');