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(class): keep hierarchy buses clear of other relationship routes
To3akaRin3da52ba51e5c
diff --git a/CHANGELOG.md b/CHANGELOG.mdindex 53255b84..36f98910 100644--- a/CHANGELOG.md+++ b/CHANGELOG.md@@ -12,6 +12,7 @@ All notable changes are documented here. Format loosely follows [Keep a Changelo### Fixed+- **类图混合关系的主干冲突(#791)。** 自动继承/实现主干会检查组外路线的端口、走廊和交叉;冲突组回退到独立路由,避免依赖箭头被继承三角覆盖或实线覆盖实现虚线。无冲突主干、显式几何及关系语义保持不变。- **SVG 路径检查(#641)。** 统一解析关系线和结构边界的 `M/L/H/V/Q/Z` 路径,正确保留子路径与闭合语义;截断参数、非法数值和不支持的命令现在有限失败并给出定位诊断,避免检查挂起、漏检或虚构跨子路径线段。非共线 `Q` 前后的直线保留真实连续性,避免虚假交叉、标签遮挡和漏检;曲线采样点不会增加微线段预算。普通有效产物的 9 项检查保持不变。- **Inactive brand icon declarations.** Capture ignores icon markup in comments, raw text (including `noscript` for `text/html`), quoted attributes and templates, so inactive page edits cannot replace the selected image or break its pinned digest. Complete link attributes keep quoted delimiters and distinguish `href` from `data-href`; XHTML `noscript` discovery and links after empty elements are preserved. Old pins to inactive markup may require inspecting and explicitly recapturing the intended icon; digest checking remains enforced.- **Brand ICO data bounds (#585).** Capture and pinned re-fetches reject empty, directory-overlapping or out-of-bounds image ranges in ICO directory entries, while preserving valid PNG/DIB payloads and normal icon fallback.diff --git a/archify.zip b/archify.zipindex d3da6b28..08ce737f 100644Binary files a/archify.zip and b/archify.zip differdiff --git a/archify/renderers/class/README.md b/archify/renderers/class/README.mdindex e4f5454d..c0733deb 100644--- a/archify/renderers/class/README.md+++ b/archify/renderers/class/README.md@@ -93,6 +93,15 @@ bus is drawn from the supertype outward so a dashed realization bus keeps onedash phase. Its `data-motion-path` carries the source-to-target route so Viewertokens and flow overlays follow the relationship's semantic direction. A busthat would cross another type falls back to ordinary routes.++主干还会与完整场景中的其他关系共同检查:同一个主干组可以共享端口和线段。+主干候选若与其他组或普通关系争用标记空间、重叠走廊或形成内部交叉,+整组关系回退到现有路由器,以独立端口和走廊重新规划;无冲突的+其他主干保留。每轮回退后重新检查剩余主干,且只删除冲突组,不反复恢复尝试。+类型位置、关系种类和方向、显式 `via`、端口、路由及标签位置保持作者的控制。+此检查决定是否保留自动主干,不承诺固定路线周围满足全部自动间距或任意布局都能成功。+固定路线之间的冲突和无法绕开的复杂交叉仍遵循现有路由约束,不会修改作者指定的几何。+All other relationships use the shared orthogonal router(`../architecture/routing.mjs`) and the shared Clean Flow, crossing, corridor,rhythm, and label-clearance gates.diff --git a/archify/renderers/class/render-class.mjs b/archify/renderers/class/render-class.mjsindex 3a7afe63..22537ce9 100644--- a/archify/renderers/class/render-class.mjs+++ b/archify/renderers/class/render-class.mjs@@ -30,8 +30,10 @@ import {cleanFlowProblems,cleanLabelRouteClearanceProblems,cleanRouteRhythmProblems,+ collectAmbiguousCorridors,legacyDefaultFromSide,legacyDefaultToSide,+ properSegmentIntersection,rectsOverlap,roundedPath,routePointsValue,@@ -400,6 +402,7 @@ function autoRouted(relationship) {}const busPaths = new Map();+const busGroups = new Map();{const groups = new Map();for (const relationship of routable) {@@ -430,23 +433,80 @@ const busPaths = new Map();.every((type) => !segmentIntersectsRect({ start: points[index], end: point }, type)));});if (!clear) continue;- members.forEach((relationship, index) => busPaths.set(relationship, paths[index]));+ members.forEach((relationship, index) => {+ busPaths.set(relationship, paths[index]);+ busGroups.set(relationship, members);+ });}}-const router = createRouter(types, routable.filter((relationship) => !busPaths.has(relationship)), {- sideFor,- maxPortSpacing: PORT_SPACING,- // As for the ERD: re-plan a route against the complete scene when it crosses- // or bends needlessly, and look for a detour that crosses nothing before the- // obstacle search that may cross earlier routes. The showcase gate rejects- // any proper crossing, so the shorter crossing route only buys a repair.- preferReadableRoutes: true,- crossingFreeGridFirst: true,- // A detour keeps a readable gap from every type it only passes instead of- // running along its border at the grid's 2-unit clearance.- componentGapPx: 10,-});+let separateFallbackRoutes = false;+function ordinaryRouter() {+ return createRouter(types, routable.filter((relationship) => !busPaths.has(relationship)), {+ sideFor,+ maxPortSpacing: PORT_SPACING,+ distinctAutomaticPorts: separateFallbackRoutes,+ // As for the ERD: re-plan a route against the complete scene when it crosses+ // or bends needlessly, and look for a detour that crosses nothing before the+ // obstacle search that may cross earlier routes. The showcase gate rejects+ // any proper crossing, so the shorter crossing route only buys a repair.+ preferReadableRoutes: true,+ crossingFreeGridFirst: true,+ // A detour keeps a readable gap from every type it only passes instead of+ // running along its border at the grid's 2-unit clearance.+ componentGapPx: 10,+ });+}++function busRouteConflict(left, right) {+ for (const [leftField, leftPoint] of [['from', left.points[0]], ['to', left.points.at(-1)]]) {+ for (const [rightField, rightPoint] of [['from', right.points[0]], ['to', right.points.at(-1)]]) {+ if (left.relation[leftField] === right.relation[rightField]+ && Math.hypot(leftPoint[0] - rightPoint[0], leftPoint[1] - rightPoint[1]) < MARKER_HEIGHT - 0.0001) return true;+ }+ }+ if (collectAmbiguousCorridors({+ routedRelations: [left, right],+ includeSharedEndpoints: () => true,+ }).length) return true;+ return left.points.slice(1).some((end, index) => right.points.slice(1)+ .some((otherEnd, otherIndex) => properSegmentIntersection(+ left.points[index], end, right.points[otherIndex], otherEnd,+ )));+}++let router;+for (;;) {+ router = ordinaryRouter();+ if (!busPaths.size) break;+ const routes = routable.map((relation) => ({+ relation, points: busPaths.get(relation) || router.pathFor(relation).points,+ }));+ const rejected = new Set();+ for (let leftIndex = 0; leftIndex < routes.length; leftIndex += 1) {+ const left = routes[leftIndex];+ const leftGroup = busGroups.get(left.relation);+ for (let rightIndex = leftIndex + 1; rightIndex < routes.length; rightIndex += 1) {+ const right = routes[rightIndex];+ const rightGroup = busGroups.get(right.relation);+ // 只有同一主干组可以共享端口和线段;其他路线仍保留各自的关系符号。+ if ((!leftGroup && !rightGroup) || leftGroup === rightGroup) continue;+ if (!busRouteConflict(left, right)) continue;+ if (leftGroup) rejected.add(leftGroup);+ if (rightGroup) rejected.add(rightGroup);+ }+ }+ if (!rejected.size) break;+ // 回退后的独立关系即使共享目标,也不能重新合并成没有语义归属的走廊。+ separateFallbackRoutes = true;+ // 整组回退后重新规划,避免新路线撞到剩余主干;每轮只删除组,次数有界。+ for (const group of rejected) {+ for (const relationship of group) {+ busPaths.delete(relationship);+ busGroups.delete(relationship);+ }+ }+}function pathFor(relationship) {const points = busPaths.get(relationship);return points ? { points, d: roundedPath(points, 8) } : router.pathFor(relationship);diff --git a/docs/evidence/class-bus-routing/README.md b/docs/evidence/class-bus-routing/README.mdnew file mode 100644index 00000000..601f0e42--- /dev/null+++ b/docs/evidence/class-bus-routing/README.md@@ -0,0 +1,74 @@+# 类图主干与组外路由协调:#791 证据++## 版本和观察范围++比较基线:`9ef09617bd9ed2fe7bb4ad17fba7c8fce6b0ce76`。+候选运行时的 SHA-256、输入和输出摘要见 [comparison.json](comparison.json);提交前以相同运行时代码采集。环境为 macOS 15.7.7、官方 Node 22.23.1、Chrome 154.0.8037.98。++核心修复位于 Class renderer。共享 Router、其他 renderer、schema 和发布身份未修改。规格与边界见[验收规格](../../specs/class-bus-routing-validation.md)。++## 已复现并修复的行为++- 四类型、三关系:继承主干和普通 realization/dependency 共享目标中心。依赖的开放箭头被继承三角覆盖;修复后使用不同端口。+- 两种 hierarchy bus:继承和实现仍共享实线主干;冲突后两组均回退,保留各自线型。+- 等高交错排列:只移除主干仍会让普通路线共享 115px 走廊;回退后开启已有独立端口模式,修复该边界。+- 已有 shapes 案例:继承主干的横段与 Group → Shape 的组合关系在 `(593,206)` 交叉。修复后取消该主干并重排自动关系;节点和成员文本不变。++## 验证结果++| 检查 | 结果 |+| --- | --- |+| 新旧 Class 专项 | 34 通过,0 失败,0 跳过 |+| 核心产品 smoke(npm test) | 18 通过,0 失败,0 跳过 |+| Class 真实 Chrome | 2 通过,0 失败,0 跳过 |+| generated 检查 | 通过,包括现有样例与权威源一致性 |+| 固定输入前后比较 | 18/18 均 validate/render/check 成功 |+| 完整 HTML/SVG 不变 | 13 个:4 个 Class 控制及其余 9 类图 |+| 预期改变 | 4 个复现、1 个已有 shapes 案例 |+| Class 图事实与类型布局 | 9/9 的类型位置、尺寸、文字及关系身份/种类不变 |++TDD 原始版本的 6 项核心回归失败;第一版局部回退又被 2 项等高交错回归阻止,最终 15 项新增 Class 回归全部通过。关系顺序、同类主干、独立主干、显式几何、路径有限性和画布范围均由行为测试覆盖。++浏览器测试真实执行 Focus 和 SVG 序列化,只截取下载边界;light/dark 中验证路径与标记保留。原有同类主干检查继续验证移动 token、聚焦脉冲及 WebM 采样的语义方向。++没有运行本地完整 test:full。最终远端 CI 的修订与结果记录在 PR,不将本地或历史结果冒充新的远端运行。++## 前后截图++统一使用 1440×900、Classic、100% zoom、页面顶部、字体与布局稳定后的状态。以下 12 张截图均已实际目视检查:依赖箭头与继承三角可区分,交错关系保留线型,节点、成员及标签无新增裁切或遮挡。观察只覆盖这些案例。++| 案例与主题 | 基线 | 修复后 |+| --- | --- | --- |+| 依赖 / light | [前](bus-with-dependency-before-light.png) | [后](bus-with-dependency-after-light.png) |+| 依赖 / dark | [前](bus-with-dependency-before-dark.png) | [后](bus-with-dependency-after-dark.png) |+| 等高交错 / light | [前](interleaved-before-light.png) | [后](interleaved-after-light.png) |+| 等高交错 / dark | [前](interleaved-before-dark.png) | [后](interleaved-after-dark.png) |+| Shapes / light | [前](first-draft-shapes-before-light.png) | [后](first-draft-shapes-after-light.png) |+| Shapes / dark | [前](first-draft-shapes-before-dark.png) | [后](first-draft-shapes-after-dark.png) |++对比记录中的单次 render 耗时仅是诊断样本,部分采集时有专项测试并行执行,不作为性能提升或无回退的基准证明。++## 复现++在基线或候选 checkout 的根目录,使用本目录中的同一输入:++```sh+node archify/bin/archify.mjs validate class docs/evidence/class-bus-routing/fixtures/bus-with-dependency.class.json --quality showcase --json+node archify/bin/archify.mjs render class docs/evidence/class-bus-routing/fixtures/bus-with-dependency.class.json /tmp/class-bus-review.html --quality showcase+node archify/bin/archify.mjs check /tmp/class-bus-review.html --json+```++基线 checkout 没有此目录时,先将候选的 fixtures 复制到单独目录,并在上述命令中使用该目录的绝对输入路径。其余复现为 `bus-with-ordinary.class.json`、`mixedbus.class.json`、`interleaved.class.json`;Shapes 使用仓库已有的 `test/fixtures/class-first-draft/shapes.class.json`。++```sh+npm ci+npm --prefix archify ci+npm run test:focus -- test/class-bus-routing.test.mjs test/class-rendering.test.mjs test/class-first-draft-layout.test.mjs+npm test+npm run test:generated+ARCHIFY_CHROME="/path/to/chrome" npm run test:browser -- test/class-motion-browser.test.mjs+scripts/build-zip.sh /tmp/class-bus-archify.zip+node scripts/package-smoke.mjs /path/to/extracted/archify+```++两次 canonical ZIP 构建逐字节一致,149 个文件。SHA-256:`fc4cc8d7e88a6532ab110d39104994f70f91ccb6bef6a1c05ceb74fd95e2a2ef`。解包 smoke 在仓库外、无已安装包依赖的环境下验证,结果见 PR;未进行 live Skill 安装、发布或部署。diff --git a/docs/evidence/class-bus-routing/bus-with-dependency-after-dark.png b/docs/evidence/class-bus-routing/bus-with-dependency-after-dark.pngnew file mode 100644index 00000000..0cdbb741Binary files /dev/null and b/docs/evidence/class-bus-routing/bus-with-dependency-after-dark.png differdiff --git a/docs/evidence/class-bus-routing/bus-with-dependency-after-light.png b/docs/evidence/class-bus-routing/bus-with-dependency-after-light.pngnew file mode 100644index 00000000..bf5dc256Binary files /dev/null and b/docs/evidence/class-bus-routing/bus-with-dependency-after-light.png differdiff --git a/docs/evidence/class-bus-routing/bus-with-dependency-before-dark.png b/docs/evidence/class-bus-routing/bus-with-dependency-before-dark.pngnew file mode 100644index 00000000..cd73e9fcBinary files /dev/null and b/docs/evidence/class-bus-routing/bus-with-dependency-before-dark.png differdiff --git a/docs/evidence/class-bus-routing/bus-with-dependency-before-light.png b/docs/evidence/class-bus-routing/bus-with-dependency-before-light.pngnew file mode 100644index 00000000..7cedabd5Binary files /dev/null and b/docs/evidence/class-bus-routing/bus-with-dependency-before-light.png differdiff --git a/docs/evidence/class-bus-routing/comparison.json b/docs/evidence/class-bus-routing/comparison.jsonnew file mode 100644index 00000000..9ae6a703--- /dev/null+++ b/docs/evidence/class-bus-routing/comparison.json@@ -0,0 +1,1607 @@+{+ "base": "9ef09617bd9ed2fe7bb4ad17fba7c8fce6b0ce76",+ "candidateRuntimeSha256": "ed09f7a2224227e59f64be1ab70c7497fe451178c951a0f0a0f48d0140257c55",+ "node": "v22.23.1",+ "cases": [+ {+ "name": "bus-with-ordinary",+ "type": "class",+ "expectedChange": true,+ "inputSha256": "6a3c4764a34b0d568ecb5c7843a3240cab70c0e007d285b57e9ba2a1c6ef3c2d",+ "before": {+ "validate": true,+ "check": true,+ "renderMs": 117.7,+ "htmlSha256": "db1d2c95a563d0577767e61746a4da5d474a194e3244f41ca6c96001b30de0d2",+ "svgSha256": "27e22f8868a46ea6dac9488368d84ae83556797bf7a76b75355b50d65a982260"+ },+ "after": {+ "validate": true,+ "check": true,+ "renderMs": 119.67,+ "htmlSha256": "8ea8ecdac71264ee95670234c7456f587c7414b5e5d78c79a2a5971a2c2855f5",+ "svgSha256": "b86c76f73c8102273428cab9cb3aa9228613541a0f08d864c547955b6e1d3c56"+ },+ "htmlIdentical": false,+ "svgIdentical": false,+ "typeGeometryAndTextIdentical": true,+ "relationshipIdentityAndKindIdentical": true+ },+ {+ "name": "bus-with-dependency",+ "type": "class",+ "expectedChange": true,+ "inputSha256": "0dfdd7022b67d0d095c87c1f100e96179cffec95fd3eabc85fcad5a4cbe1e0b3",+ "before": {+ "validate": true,+ "check": true,+ "renderMs": 118.04,+ "htmlSha256": "42c31c7132489705f2123a9cc404de6860429baa4424e5e36a3dc30c09a271f2",+ "svgSha256": "95364da77b13a96e300d72bba2cb3f281cee96f7d7e82f796e4c3fce96e22119"+ },+ "after": {+ "validate": true,+ "check": true,+ "renderMs": 138.85,+ "htmlSha256": "2a8c67aa69b72ecbbabff6a2c14874bd30b86c16590caa781eba4b7ff0a851c2",+ "svgSha256": "597281f85da19e1627607875fef4001539fa64e6eea8ac24f956a10fe4dab1d7"+ },+ "htmlIdentical": false,+ "svgIdentical": false,+ "typeGeometryAndTextIdentical": true,+ "relationshipIdentityAndKindIdentical": true+ },+ {+ "name": "mixedbus",+ "type": "class",+ "expectedChange": true,+ "inputSha256": "fb16f2ba68ca13988b9b56e59d376ae8931ea844043979dc3a460f9377d1598a",+ "before": {+ "validate": true,+ "check": true,+ "renderMs": 125.88,+ "htmlSha256": "02ecc2782d81de49b863d71cba392da7bd2510592a69b29fa83786e722380a01",+ "svgSha256": "d2ec6aef2b160274f5088608e4b600a9e00885f42dafd8a17369229b677c935c"+ },+ "after": {+ "validate": true,+ "check": true,+ "renderMs": 141.68,+ "htmlSha256": "b516afc04117ca8e7a99df4059ac4ed9b6bae33689f77b1a4f5437d53bfc7426",+ "svgSha256": "7e21f7f7f7381bd32b7378f4856b1556bc7bd751755f93693cc5e4665c746e83"+ },+ "htmlIdentical": false,+ "svgIdentical": false,+ "typeGeometryAndTextIdentical": true,+ "relationshipIdentityAndKindIdentical": true+ },+ {+ "name": "interleaved",+ "type": "class",+ "expectedChange": true,+ "inputSha256": "ec09e455b15cbb2d5215e45fcf03040677cccdd77043f505dfc4cd8acb45e3b1",+ "before": {+ "validate": true,+ "check": true,+ "renderMs": 133.49,+ "htmlSha256": "e40fed4e575f0095724ddb7e92bf20177a428debb11c7467f1604e6d53b50dd0",+ "svgSha256": "dc0fdef3c02cafcbae579c4cb981539c47149bb25de5076e2946da98a39bc00a"+ },+ "after": {+ "validate": true,+ "check": true,+ "renderMs": 134.85,+ "htmlSha256": "ccb33246fec6b8434a07e38d8b1bfd9dd7c486eaabc53996b0f5f2c78284c09c",+ "svgSha256": "93f3bc5db4c511f23bffcb55fa606746e127d0b9df4aeb4a5b6371de62f7d899"+ },+ "htmlIdentical": false,+ "svgIdentical": false,+ "typeGeometryAndTextIdentical": true,+ "relationshipIdentityAndKindIdentical": true+ },+ {+ "name": "payments.class",+ "type": "class",+ "expectedChange": false,+ "inputSha256": "afba837f97a041e14687cbe8893523232c4afad7afd922d9b128606d1b3f12c8",+ "before": {+ "validate": true,+ "check": true,+ "renderMs": 127.02,+ "htmlSha256": "f029ebdc68271f80b47ee423fc2b7deccee9f17aebf4b9dc7a93effc386640e8",+ "svgSha256": "3ef3511cc0eee8064cccd894f04cb809cc152d5ddd048694917b250dfee2a268"+ },+ "after": {+ "validate": true,+ "check": true,+ "renderMs": 128.6,+ "htmlSha256": "f029ebdc68271f80b47ee423fc2b7deccee9f17aebf4b9dc7a93effc386640e8",+ "svgSha256": "3ef3511cc0eee8064cccd894f04cb809cc152d5ddd048694917b250dfee2a268"+ },+ "htmlIdentical": true,+ "svgIdentical": true,+ "typeGeometryAndTextIdentical": true,+ "relationshipIdentityAndKindIdentical": true+ },+ {+ "name": "payment-processors.class",+ "type": "class",+ "expectedChange": false,+ "inputSha256": "98742b997db4782981460e8110e5fba899d8500c92c086aa867c5c62c3b89222",+ "before": {+ "validate": true,+ "check": true,+ "renderMs": 132.26,+ "htmlSha256": "dfd08e5216cdf56fd85b2c42e8b76bc2ff13d4c8042be48676242323b819cebf",+ "svgSha256": "aa93d1985b91db9c7ce30c7bcad07e96a243e2c080c64fd8bebcc83a2c2b2004"+ },+ "after": {+ "validate": true,+ "check": true,+ "renderMs": 133.17,+ "htmlSha256": "dfd08e5216cdf56fd85b2c42e8b76bc2ff13d4c8042be48676242323b819cebf",+ "svgSha256": "aa93d1985b91db9c7ce30c7bcad07e96a243e2c080c64fd8bebcc83a2c2b2004"+ },+ "htmlIdentical": true,+ "svgIdentical": true,+ "typeGeometryAndTextIdentical": true,+ "relationshipIdentityAndKindIdentical": true+ },+ {+ "name": "first-draft-notifications",+ "type": "class",+ "expectedChange": false,+ "inputSha256": "46a167626026ff9ad41117a15ac5f7dd78d6162057b4dcc7cd50042e4d1e2df1",+ "before": {+ "validate": true,+ "check": true,+ "renderMs": 141.69,+ "htmlSha256": "b732cd828a7cf76d17b1bba6da29c70fba03570e34fc5ba5d23c94723286977d",+ "svgSha256": "05c413902cdf8ba64226099dd7b9c789398499a955e504df94c759d59e39ba2c"+ },+ "after": {+ "validate": true,+ "check": true,+ "renderMs": 143.29,+ "htmlSha256": "b732cd828a7cf76d17b1bba6da29c70fba03570e34fc5ba5d23c94723286977d",+ "svgSha256": "05c413902cdf8ba64226099dd7b9c789398499a955e504df94c759d59e39ba2c"+ },+ "htmlIdentical": true,+ "svgIdentical": true,+ "typeGeometryAndTextIdentical": true,+ "relationshipIdentityAndKindIdentical": true+ },+ {+ "name": "first-draft-repository",+ "type": "class",+ "expectedChange": false,+ "inputSha256": "d89d998866abd61ed4dd52f0ebfde7de7aaf4e40e23308d6344e0448daea62cb",+ "before": {+ "validate": true,+ "check": true,+ "renderMs": 135.37,+ "htmlSha256": "1ca170f539ecb8fa27ad0d9535fae014f041c246f38dbbd49f297771c4c1fb25",+ "svgSha256": "6f91502a6a37d782df11112e6a2347d5928d9173656c377bcdef418d20f45d83"+ },+ "after": {+ "validate": true,+ "check": true,+ "renderMs": 134.73,+ "htmlSha256": "1ca170f539ecb8fa27ad0d9535fae014f041c246f38dbbd49f297771c4c1fb25",+ "svgSha256": "6f91502a6a37d782df11112e6a2347d5928d9173656c377bcdef418d20f45d83"+ },+ "htmlIdentical": true,+ "svgIdentical": true,+ "typeGeometryAndTextIdentical": true,+ "relationshipIdentityAndKindIdentical": true+ },+ {+ "name": "first-draft-shapes",+ "type": "class",+ "expectedChange": true,+ "inputSha256": "fc18a7d3a82f968aaa715c9834c7eaa23dd1110142610b64ac8e55254e9b760e",+ "before": {+ "validate": true,+ "check": true,+ "renderMs": 134.42,+ "htmlSha256": "2027a1d328f0491fa14d863f1343626b8f19fe6888a25ba0ab6aee4bedd6f411",+ "svgSha256": "9b09fd3f08f939a565d65cea0a0b6b2bfbd93e1e3404df2e6055f68d73bf547f"+ },+ "after": {+ "validate": true,+ "check": true,+ "renderMs": 148.55,+ "htmlSha256": "3ff3cb4858e74bde814f3f29563e1b91cf50374e8fb6a66f9574460565de2b91",+ "svgSha256": "9e7a97087d01d27e1fd5d26cd7b07a5613a889c90980c82a110d1306656d4739"+ },+ "htmlIdentical": false,+ "svgIdentical": false,+ "typeGeometryAndTextIdentical": true,+ "relationshipIdentityAndKindIdentical": true+ },+ {+ "name": "web-app.architecture",+ "type": "architecture",+ "expectedChange": false,+ "inputSha256": "95e051b27a9e4a3307e194c0f666fca4af51470be7e2228d400ff48aea5b353b",+ "before": {+ "validate": true,+ "check": true,+ "renderMs": 124.1,+ "htmlSha256": "747dbf4a3de9ebd096f585ce431e52019557989b3d4fa197f8d88e54aab8e233",+ "svgSha256": "5217c876d6e1419feb789b4ec4ccab3326bd3aacc224e41180c021756f30b9f0"+ },+ "after": {+ "validate": true,+ "check": true,+ "renderMs": 125,+ "htmlSha256": "747dbf4a3de9ebd096f585ce431e52019557989b3d4fa197f8d88e54aab8e233",+ "svgSha256": "5217c876d6e1419feb789b4ec4ccab3326bd3aacc224e41180c021756f30b9f0"+ },+ "htmlIdentical": true,+ "svgIdentical": true+ },+ {+ "name": "agent-tool-call.workflow",+ "type": "workflow",+ "expectedChange": false,+ "inputSha256": "d67965d50872c97e4ff3476271e645bf19fab6b3ab44e111bdb44b063e3aa36f",+ "before": {+ "validate": true,+ "check": true,+ "renderMs": 197.42,+ "htmlSha256": "9e9d633be97f552d402895216ee622e469cd04709da0dfc8d24ee6af363ca124",+ "svgSha256": "90e440dd16bbfd8534103e9da26332cc95ea973c18c7616df3783b3c61ef3625"+ },+ "after": {+ "validate": true,+ "check": true,+ "renderMs": 192.32,+ "htmlSha256": "9e9d633be97f552d402895216ee622e469cd04709da0dfc8d24ee6af363ca124",+ "svgSha256": "90e440dd16bbfd8534103e9da26332cc95ea973c18c7616df3783b3c61ef3625"+ },+ "htmlIdentical": true,+ "svgIdentical": true+ },+ {+ "name": "cache-miss-request.sequence",+ "type": "sequence",+ "expectedChange": false,+ "inputSha256": "f8486daa803fff6c295cecca4604c561fbbf9acb2e83326022b5a87639e8afe6",+ "before": {+ "validate": true,+ "check": true,+ "renderMs": 115.43,+ "htmlSha256": "1a65397a6450427a4a9d51f1087917d9709181a2ccea99a1199fd1559be3fd71",+ "svgSha256": "5b9ebf371555a9f8a89336ac21375d70e215fbc793dad5eb06e271ae632e8a1d"+ },+ "after": {+ "validate": true,+ "check": true,+ "renderMs": 115.56,+ "htmlSha256": "1a65397a6450427a4a9d51f1087917d9709181a2ccea99a1199fd1559be3fd71",+ "svgSha256": "5b9ebf371555a9f8a89336ac21375d70e215fbc793dad5eb06e271ae632e8a1d"+ },+ "htmlIdentical": true,+ "svgIdentical": true+ },+ {+ "name": "product-analytics.dataflow",+ "type": "dataflow",+ "expectedChange": false,+ "inputSha256": "8a635db9e51a5b1a8d2955b9d66f5b9a450e0a298432ce8f2e2f0be11f372e05",+ "before": {+ "validate": true,+ "check": true,+ "renderMs": 111.01,+ "htmlSha256": "8896e6da9307ab452bcf8e0d478f708f0ea4ae517efd330d322bfbec5ce7b9f5",+ "svgSha256": "786d073a61be6fce60dd0260b4c3fe0a97ec7006562d0117d5b316ed8415b9d3"+ },+ "after": {+ "validate": true,+ "check": true,+ "renderMs": 124.75,+ "htmlSha256": "8896e6da9307ab452bcf8e0d478f708f0ea4ae517efd330d322bfbec5ce7b9f5",+ "svgSha256": "786d073a61be6fce60dd0260b4c3fe0a97ec7006562d0117d5b316ed8415b9d3"+ },+ "htmlIdentical": true,+ "svgIdentical": true+ },+ {+ "name": "agent-run.lifecycle",+ "type": "lifecycle",+ "expectedChange": false,+ "inputSha256": "5ba36f5ce91ed428cb48b599e275424916d82b619b9a3231cbd1bbc3966fc54b",+ "before": {+ "validate": true,+ "check": true,+ "renderMs": 120.55,+ "htmlSha256": "88e481d8a20d726c1123e616ac4d3ab48a18b482ef8e43ee8754ac66115c5b39",+ "svgSha256": "f1c17f62f73d71796e0fff81bd55bc338fc9e9527f7725448456daffe86f7174"+ },+ "after": {+ "validate": true,+ "check": true,+ "renderMs": 117.42,+ "htmlSha256": "88e481d8a20d726c1123e616ac4d3ab48a18b482ef8e43ee8754ac66115c5b39",+ "svgSha256": "f1c17f62f73d71796e0fff81bd55bc338fc9e9527f7725448456daffe86f7174"+ },+ "htmlIdentical": true,+ "svgIdentical": true+ },+ {+ "name": "orders.erd",+ "type": "erd",+ "expectedChange": false,+ "inputSha256": "1777a374647084466f4d7ce3a968004be6ab70ac9cf82459b96bed7c556cdfdd",+ "before": {+ "validate": true,+ "check": true,+ "renderMs": 128,+ "htmlSha256": "d1f3bd878a9af715e4db96732a4f2b5b191f3cfc8bb1ba57ef6d8a09b2057bfd",+ "svgSha256": "190b78ab7f698fe0cf526c19452e9e29f1bc39cafea2382febaa6db913aebf85"+ },+ "after": {+ "validate": true,+ "check": true,+ "renderMs": 122.85,+ "htmlSha256": "d1f3bd878a9af715e4db96732a4f2b5b191f3cfc8bb1ba57ef6d8a09b2057bfd",+ "svgSha256": "190b78ab7f698fe0cf526c19452e9e29f1bc39cafea2382febaa6db913aebf85"+ },+ "htmlIdentical": true,+ "svgIdentical": true+ },+ {+ "name": "payment-platform.tree",+ "type": "tree",+ "expectedChange": false,+ "inputSha256": "1e99f37b3845d67fa97c9a2ff33109981c23bfdb0d03ba05b7d92944dcdfc61f",+ "before": {+ "validate": true,+ "check": true,+ "renderMs": 109.48,+ "htmlSha256": "7c0b26eea2e3278cd235ff9629b52653b87b7e68bc4d4b57ecacec9cf2676a67",+ "svgSha256": "bcbedf0ab18cdccc2b453d5500ed9e0883d4c08e22d534d6580384a1a1762dda"+ },+ "after": {+ "validate": true,+ "check": true,+ "renderMs": 114.7,+ "htmlSha256": "7c0b26eea2e3278cd235ff9629b52653b87b7e68bc4d4b57ecacec9cf2676a67",+ "svgSha256": "bcbedf0ab18cdccc2b453d5500ed9e0883d4c08e22d534d6580384a1a1762dda"+ },+ "htmlIdentical": true,+ "svgIdentical": true+ },+ {+ "name": "payment-incident.timeline",+ "type": "timeline",+ "expectedChange": false,+ "inputSha256": "c1f535b3cc915ddd47ecd7df4e3ef02c441c8c3191daced5cf4422cff8dec95f",+ "before": {+ "validate": true,+ "check": true,+ "renderMs": 120.8,+ "htmlSha256": "57a6fc41ab05091dd5ad6a4088be93398745c673691713b3abd6599094da838a",+ "svgSha256": "5ad20f8d24316a024d3e935fe3a14404f24a84f6d6578983f05ead2954d01b3f"+ },+ "after": {+ "validate": true,+ "check": true,+ "renderMs": 121.06,+ "htmlSha256": "57a6fc41ab05091dd5ad6a4088be93398745c673691713b3abd6599094da838a",+ "svgSha256": "5ad20f8d24316a024d3e935fe3a14404f24a84f6d6578983f05ead2954d01b3f"+ },+ "htmlIdentical": true,+ "svgIdentical": true+ },+ {+ "name": "checkout-request.waterfall",+ "type": "waterfall",+ "expectedChange": false,+ "inputSha256": "55a5f74699a0f0e44018a4a000556d43c90430b95f39accac6141af8318b5133",+ "before": {+ "validate": true,+ "check": true,+ "renderMs": 121.4,+ "htmlSha256": "cb4e88162469e555f11af3d8bdff11509f4cf4b9ec9e00c0736513684d6aaa60",+ "svgSha256": "84d32276374668f7e205a03821832098242d3f6a176246ee7dd4bc9032738518"+ },+ "after": {+ "validate": true,+ "check": true,+ "renderMs": 121.28,+ "htmlSha256": "cb4e88162469e555f11af3d8bdff11509f4cf4b9ec9e00c0736513684d6aaa60",+ "svgSha256": "84d32276374668f7e205a03821832098242d3f6a176246ee7dd4bc9032738518"+ },+ "htmlIdentical": true,+ "svgIdentical": true+ }+ ],+ "browser": [+ {+ "name": "bus-with-dependency",+ "version": "before",+ "theme": "light",+ "screenshot": "bus-with-dependency-before-light.png",+ "pageWidth": 1440,+ "scrollWidth": 1440,+ "viewBox": "0 0 852 388",+ "routes": [+ {+ "from": "left",+ "to": "base",+ "kind": "inheritance",+ "points": "122,168;122,126;430,126;430,84",+ "marker": "url(#cl-triangle-start)",+ "dash": "none"+ },+ {+ "from": "right",+ "to": "base",+ "kind": "inheritance",+ "points": "738,168;738,126;430,126;430,84",+ "marker": "url(#cl-triangle-start)",+ "dash": "none"+ },+ {+ "from": "impl",+ "to": "base",+ "kind": "dependency",+ "points": "430,296;430,84",+ "marker": "url(#cl-open)",+ "dash": "6px, 4px"+ },+ {+ "kind": "inheritance",+ "points": "122,168;122,126;430,126;430,84",+ "marker": null,+ "dash": "none"+ },+ {+ "kind": "inheritance",+ "points": "122,168;122,126;430,126;430,84",+ "marker": null,+ "dash": "2px, 4px"+ },+ {+ "kind": "inheritance",+ "points": "738,168;738,126;430,126;430,84",+ "marker": null,+ "dash": "none"+ },+ {+ "kind": "inheritance",+ "points": "738,168;738,126;430,126;430,84",+ "marker": null,+ "dash": "2px, 4px"+ },+ {+ "kind": "dependency",+ "points": "430,296;430,84",+ "marker": null,+ "dash": "none"+ },+ {+ "kind": "dependency",+ "points": "430,296;430,84",+ "marker": null,+ "dash": "2px, 4px"+ }+ ]+ },+ {+ "name": "bus-with-dependency",+ "version": "after",+ "theme": "light",+ "screenshot": "bus-with-dependency-after-light.png",+ "pageWidth": 1440,+ "scrollWidth": 1440,+ "viewBox": "0 0 852 388",+ "routes": [+ {+ "from": "left",+ "to": "base",+ "kind": "inheritance",+ "points": "122,168;122,126;404,126;404,84",+ "marker": "url(#cl-triangle)",+ "dash": "none"+ },+ {+ "from": "right",+ "to": "base",+ "kind": "inheritance",+ "points": "738,168;738,126;456,126;456,84",+ "marker": "url(#cl-triangle)",+ "dash": "none"+ },+ {+ "from": "impl",+ "to": "base",+ "kind": "dependency",+ "points": "430,296;430,84",+ "marker": "url(#cl-open)",+ "dash": "6px, 4px"+ },+ {+ "kind": "inheritance",+ "points": "122,168;122,126;404,126;404,84",+ "marker": null,+ "dash": "none"+ },+ {+ "kind": "inheritance",+ "points": "122,168;122,126;404,126;404,84",+ "marker": null,+ "dash": "2px, 4px"+ },+ {+ "kind": "inheritance",+ "points": "738,168;738,126;456,126;456,84",+ "marker": null,+ "dash": "none"+ },+ {+ "kind": "inheritance",+ "points": "738,168;738,126;456,126;456,84",+ "marker": null,+ "dash": "2px, 4px"+ },+ {+ "kind": "dependency",+ "points": "430,296;430,84",+ "marker": null,+ "dash": "none"+ },+ {+ "kind": "dependency",+ "points": "430,296;430,84",+ "marker": null,+ "dash": "2px, 4px"+ }+ ]+ },+ {+ "name": "bus-with-dependency",+ "version": "before",+ "theme": "dark",+ "screenshot": "bus-with-dependency-before-dark.png",+ "pageWidth": 1440,+ "scrollWidth": 1440,+ "viewBox": "0 0 852 388",+ "routes": [+ {+ "from": "left",+ "to": "base",+ "kind": "inheritance",+ "points": "122,168;122,126;430,126;430,84",+ "marker": "url(#cl-triangle-start)",+ "dash": "none"+ },+ {+ "from": "right",+ "to": "base",+ "kind": "inheritance",+ "points": "738,168;738,126;430,126;430,84",+ "marker": "url(#cl-triangle-start)",+ "dash": "none"+ },+ {+ "from": "impl",+ "to": "base",+ "kind": "dependency",+ "points": "430,296;430,84",+ "marker": "url(#cl-open)",+ "dash": "6px, 4px"+ },+ {+ "kind": "inheritance",+ "points": "122,168;122,126;430,126;430,84",+ "marker": null,+ "dash": "none"+ },+ {+ "kind": "inheritance",+ "points": "122,168;122,126;430,126;430,84",+ "marker": null,+ "dash": "2px, 4px"+ },+ {+ "kind": "inheritance",+ "points": "738,168;738,126;430,126;430,84",+ "marker": null,+ "dash": "none"+ },+ {+ "kind": "inheritance",+ "points": "738,168;738,126;430,126;430,84",+ "marker": null,+ "dash": "2px, 4px"+ },+ {+ "kind": "dependency",+ "points": "430,296;430,84",+ "marker": null,+ "dash": "none"+ },+ {+ "kind": "dependency",+ "points": "430,296;430,84",+ "marker": null,+ "dash": "2px, 4px"+ }+ ]+ },+ {+ "name": "bus-with-dependency",+ "version": "after",+ "theme": "dark",+ "screenshot": "bus-with-dependency-after-dark.png",+ "pageWidth": 1440,+ "scrollWidth": 1440,+ "viewBox": "0 0 852 388",+ "routes": [+ {+ "from": "left",+ "to": "base",+ "kind": "inheritance",+ "points": "122,168;122,126;404,126;404,84",+ "marker": "url(#cl-triangle)",+ "dash": "none"+ },+ {+ "from": "right",+ "to": "base",+ "kind": "inheritance",+ "points": "738,168;738,126;456,126;456,84",+ "marker": "url(#cl-triangle)",+ "dash": "none"+ },+ {+ "from": "impl",+ "to": "base",+ "kind": "dependency",+ "points": "430,296;430,84",+ "marker": "url(#cl-open)",+ "dash": "6px, 4px"+ },+ {+ "kind": "inheritance",+ "points": "122,168;122,126;404,126;404,84",+ "marker": null,+ "dash": "none"+ },+ {+ "kind": "inheritance",+ "points": "122,168;122,126;404,126;404,84",+ "marker": null,+ "dash": "2px, 4px"+ },+ {+ "kind": "inheritance",+ "points": "738,168;738,126;456,126;456,84",+ "marker": null,+ "dash": "none"+ },+ {+ "kind": "inheritance",+ "points": "738,168;738,126;456,126;456,84",+ "marker": null,+ "dash": "2px, 4px"+ },+ {+ "kind": "dependency",+ "points": "430,296;430,84",+ "marker": null,+ "dash": "none"+ },+ {+ "kind": "dependency",+ "points": "430,296;430,84",+ "marker": null,+ "dash": "2px, 4px"+ }+ ]+ },+ {+ "name": "interleaved",+ "version": "before",+ "theme": "light",+ "screenshot": "interleaved-before-light.png",+ "pageWidth": 1440,+ "scrollWidth": 1440,+ "viewBox": "0 0 1160 270",+ "routes": [+ {+ "from": "left",+ "to": "base",+ "kind": "inheritance",+ "points": "122,168;122,126;584,126;584,84",+ "marker": "url(#cl-triangle-start)",+ "dash": "none"+ },+ {+ "from": "right",+ "to": "base",+ "kind": "inheritance",+ "points": "738,168;738,126;584,126;584,84",+ "marker": "url(#cl-triangle-start)",+ "dash": "none"+ },+ {+ "from": "impl",+ "to": "base",+ "kind": "realization",+ "points": "430,168;430,126;584,126;584,84",+ "marker": "url(#cl-triangle-start)",+ "dash": "6px, 4px"+ },+ {+ "from": "other",+ "to": "base",+ "kind": "realization",+ "points": "1046,168;1046,126;584,126;584,84",+ "marker": "url(#cl-triangle-start)",+ "dash": "6px, 4px"+ },+ {+ "kind": "inheritance",+ "points": "122,168;122,126;584,126;584,84",+ "marker": null,+ "dash": "none"+ },+ {+ "kind": "inheritance",+ "points": "122,168;122,126;584,126;584,84",+ "marker": null,+ "dash": "2px, 4px"+ },+ {+ "kind": "inheritance",+ "points": "738,168;738,126;584,126;584,84",+ "marker": null,+ "dash": "none"+ },+ {+ "kind": "inheritance",+ "points": "738,168;738,126;584,126;584,84",+ "marker": null,+ "dash": "2px, 4px"+ },+ {+ "kind": "realization",+ "points": "430,168;430,126;584,126;584,84",+ "marker": null,+ "dash": "none"+ },+ {+ "kind": "realization",+ "points": "430,168;430,126;584,126;584,84",+ "marker": null,+ "dash": "2px, 4px"+ },+ {+ "kind": "realization",+ "points": "1046,168;1046,126;584,126;584,84",+ "marker": null,+ "dash": "none"+ },+ {+ "kind": "realization",+ "points": "1046,168;1046,126;584,126;584,84",+ "marker": null,+ "dash": "2px, 4px"+ }+ ]+ },+ {+ "name": "interleaved",+ "version": "after",+ "theme": "light",+ "screenshot": "interleaved-after-light.png",+ "pageWidth": 1440,+ "scrollWidth": 1440,+ "viewBox": "0 0 1160 270",+ "routes": [+ {+ "from": "left",+ "to": "base",+ "kind": "inheritance",+ "points": "122,168;122,108;545,108;545,84",+ "marker": "url(#cl-triangle)",+ "dash": "none"+ },+ {+ "from": "right",+ "to": "base",+ "kind": "inheritance",+ "points": "738,168;738,126;597,126;597,84",+ "marker": "url(#cl-triangle)",+ "dash": "none"+ },+ {+ "from": "impl",+ "to": "base",+ "kind": "realization",+ "points": "430,168;430,126;571,126;571,84",+ "marker": "url(#cl-triangle)",+ "dash": "6px, 4px"+ },+ {+ "from": "other",+ "to": "base",+ "kind": "realization",+ "points": "1046,168;1046,108;623,108;623,84",+ "marker": "url(#cl-triangle)",+ "dash": "6px, 4px"+ },+ {+ "kind": "inheritance",+ "points": "122,168;122,108;545,108;545,84",+ "marker": null,+ "dash": "none"+ },+ {+ "kind": "inheritance",+ "points": "122,168;122,108;545,108;545,84",+ "marker": null,+ "dash": "2px, 4px"+ },+ {+ "kind": "inheritance",+ "points": "738,168;738,126;597,126;597,84",+ "marker": null,+ "dash": "none"+ },+ {+ "kind": "inheritance",+ "points": "738,168;738,126;597,126;597,84",+ "marker": null,+ "dash": "2px, 4px"+ },+ {+ "kind": "realization",+ "points": "430,168;430,126;571,126;571,84",+ "marker": null,+ "dash": "none"+ },+ {+ "kind": "realization",+ "points": "430,168;430,126;571,126;571,84",+ "marker": null,+ "dash": "2px, 4px"+ },+ {+ "kind": "realization",+ "points": "1046,168;1046,108;623,108;623,84",+ "marker": null,+ "dash": "none"+ },+ {+ "kind": "realization",+ "points": "1046,168;1046,108;623,108;623,84",+ "marker": null,+ "dash": "2px, 4px"+ }+ ]+ },+ {+ "name": "interleaved",+ "version": "before",+ "theme": "dark",+ "screenshot": "interleaved-before-dark.png",+ "pageWidth": 1440,+ "scrollWidth": 1440,+ "viewBox": "0 0 1160 270",+ "routes": [+ {+ "from": "left",+ "to": "base",+ "kind": "inheritance",+ "points": "122,168;122,126;584,126;584,84",+ "marker": "url(#cl-triangle-start)",+ "dash": "none"+ },+ {+ "from": "right",+ "to": "base",+ "kind": "inheritance",+ "points": "738,168;738,126;584,126;584,84",+ "marker": "url(#cl-triangle-start)",+ "dash": "none"+ },+ {+ "from": "impl",+ "to": "base",+ "kind": "realization",+ "points": "430,168;430,126;584,126;584,84",+ "marker": "url(#cl-triangle-start)",+ "dash": "6px, 4px"+ },+ {+ "from": "other",+ "to": "base",+ "kind": "realization",+ "points": "1046,168;1046,126;584,126;584,84",+ "marker": "url(#cl-triangle-start)",+ "dash": "6px, 4px"+ },+ {+ "kind": "inheritance",+ "points": "122,168;122,126;584,126;584,84",+ "marker": null,+ "dash": "none"+ },+ {+ "kind": "inheritance",+ "points": "122,168;122,126;584,126;584,84",+ "marker": null,+ "dash": "2px, 4px"+ },+ {+ "kind": "inheritance",+ "points": "738,168;738,126;584,126;584,84",+ "marker": null,+ "dash": "none"+ },+ {+ "kind": "inheritance",+ "points": "738,168;738,126;584,126;584,84",+ "marker": null,+ "dash": "2px, 4px"+ },+ {+ "kind": "realization",+ "points": "430,168;430,126;584,126;584,84",+ "marker": null,+ "dash": "none"+ },+ {+ "kind": "realization",+ "points": "430,168;430,126;584,126;584,84",+ "marker": null,+ "dash": "2px, 4px"+ },+ {+ "kind": "realization",+ "points": "1046,168;1046,126;584,126;584,84",+ "marker": null,+ "dash": "none"+ },+ {+ "kind": "realization",+ "points": "1046,168;1046,126;584,126;584,84",+ "marker": null,+ "dash": "2px, 4px"+ }+ ]+ },+ {+ "name": "interleaved",+ "version": "after",+ "theme": "dark",+ "screenshot": "interleaved-after-dark.png",+ "pageWidth": 1440,+ "scrollWidth": 1440,+ "viewBox": "0 0 1160 270",+ "routes": [+ {+ "from": "left",+ "to": "base",+ "kind": "inheritance",+ "points": "122,168;122,108;545,108;545,84",+ "marker": "url(#cl-triangle)",+ "dash": "none"+ },+ {+ "from": "right",+ "to": "base",+ "kind": "inheritance",+ "points": "738,168;738,126;597,126;597,84",+ "marker": "url(#cl-triangle)",+ "dash": "none"+ },+ {+ "from": "impl",+ "to": "base",+ "kind": "realization",+ "points": "430,168;430,126;571,126;571,84",+ "marker": "url(#cl-triangle)",+ "dash": "6px, 4px"+ },+ {+ "from": "other",+ "to": "base",+ "kind": "realization",+ "points": "1046,168;1046,108;623,108;623,84",+ "marker": "url(#cl-triangle)",+ "dash": "6px, 4px"+ },+ {+ "kind": "inheritance",+ "points": "122,168;122,108;545,108;545,84",+ "marker": null,+ "dash": "none"+ },+ {+ "kind": "inheritance",+ "points": "122,168;122,108;545,108;545,84",+ "marker": null,+ "dash": "2px, 4px"+ },+ {+ "kind": "inheritance",+ "points": "738,168;738,126;597,126;597,84",+ "marker": null,+ "dash": "none"+ },+ {+ "kind": "inheritance",+ "points": "738,168;738,126;597,126;597,84",+ "marker": null,+ "dash": "2px, 4px"+ },+ {+ "kind": "realization",+ "points": "430,168;430,126;571,126;571,84",+ "marker": null,+ "dash": "none"+ },+ {+ "kind": "realization",+ "points": "430,168;430,126;571,126;571,84",+ "marker": null,+ "dash": "2px, 4px"+ },+ {+ "kind": "realization",+ "points": "1046,168;1046,108;623,108;623,84",+ "marker": null,+ "dash": "none"+ },+ {+ "kind": "realization",+ "points": "1046,168;1046,108;623,108;623,84",+ "marker": null,+ "dash": "2px, 4px"+ }+ ]+ },+ {+ "name": "first-draft-shapes",+ "version": "before",+ "theme": "light",+ "screenshot": "first-draft-shapes-before-light.png",+ "pageWidth": 1440,+ "scrollWidth": 1440,+ "viewBox": "0 0 861 400",+ "routes": [+ {+ "from": "rect",+ "to": "shape",+ "kind": "inheritance",+ "points": "122,253;122,206;434.5,206;434.5,164",+ "marker": "url(#cl-triangle-start)",+ "dash": "none"+ },+ {+ "from": "circle",+ "to": "shape",+ "kind": "inheritance",+ "points": "434.5,263;434.5,164",+ "marker": "url(#cl-triangle-start)",+ "dash": "none"+ },+ {+ "from": "group",+ "to": "shape",+ "kind": "inheritance",+ "points": "747,248;747,206;434.5,206;434.5,164",+ "marker": "url(#cl-triangle-start)",+ "dash": "none"+ },+ {+ "from": "group",+ "to": "shape",+ "kind": "composition",+ "points": "657,295;593,295;593,102;529,102",+ "marker": "url(#cl-diamond-filled)",+ "dash": "none"+ },+ {+ "from": "doc",+ "to": "shape",+ "kind": "aggregation",+ "points": "212,115;340,115",+ "marker": "url(#cl-diamond-hollow)",+ "dash": "none"+ },+ {+ "from": "doc",+ "to": "history",+ "kind": "composition",+ "points": "122,55;122,31;747,31;747,55",+ "marker": "url(#cl-diamond-filled)",+ "dash": "none"+ },+ {+ "kind": "inheritance",+ "points": "122,253;122,206;434.5,206;434.5,164",+ "marker": null,+ "dash": "none"+ },+ {+ "kind": "inheritance",+ "points": "122,253;122,206;434.5,206;434.5,164",+ "marker": null,+ "dash": "2px, 4px"+ },+ {+ "kind": "inheritance",+ "points": "434.5,263;434.5,164",+ "marker": null,+ "dash": "none"+ },+ {+ "kind": "inheritance",+ "points": "434.5,263;434.5,164",+ "marker": null,+ "dash": "2px, 4px"+ },+ {+ "kind": "inheritance",+ "points": "747,248;747,206;434.5,206;434.5,164",+ "marker": null,+ "dash": "none"+ },+ {+ "kind": "inheritance",+ "points": "747,248;747,206;434.5,206;434.5,164",+ "marker": null,+ "dash": "2px, 4px"+ },+ {+ "kind": "composition",+ "points": "657,295;593,295;593,102;529,102",+ "marker": null,+ "dash": "none"+ },+ {+ "kind": "composition",+ "points": "657,295;593,295;593,102;529,102",+ "marker": null,+ "dash": "2px, 4px"+ },+ {+ "kind": "aggregation",+ "points": "212,115;340,115",+ "marker": null,+ "dash": "none"+ },+ {+ "kind": "aggregation",+ "points": "212,115;340,115",+ "marker": null,+ "dash": "2px, 4px"+ },+ {+ "kind": "composition",+ "points": "122,55;122,31;747,31;747,55",+ "marker": null,+ "dash": "none"+ },+ {+ "kind": "composition",+ "points": "122,55;122,31;747,31;747,55",+ "marker": null,+ "dash": "2px, 4px"+ }+ ]+ },+ {+ "name": "first-draft-shapes",+ "version": "after",+ "theme": "light",+ "screenshot": "first-draft-shapes-after-light.png",+ "pageWidth": 1440,+ "scrollWidth": 1440,+ "viewBox": "0 0 861 400",+ "routes": [+ {+ "from": "rect",+ "to": "shape",+ "kind": "inheritance",+ "points": "122,253;122,208.5;408.5,208.5;408.5,164",+ "marker": "url(#cl-triangle)",+ "dash": "none"+ },+ {+ "from": "circle",+ "to": "shape",+ "kind": "inheritance",+ "points": "434.5,263;434.5,164",+ "marker": "url(#cl-triangle)",+ "dash": "none"+ },+ {+ "from": "group",+ "to": "shape",+ "kind": "inheritance",+ "points": "657,281;593,281;593,88;529,88",+ "marker": "url(#cl-triangle)",+ "dash": "none"+ },+ {+ "from": "group",+ "to": "shape",+ "kind": "composition",+ "points": "657,295;553,295;553,102;529,102",+ "marker": "url(#cl-diamond-filled)",+ "dash": "none"+ },+ {+ "from": "doc",+ "to": "shape",+ "kind": "aggregation",+ "points": "212,115;340,115",+ "marker": "url(#cl-diamond-hollow)",+ "dash": "none"+ },+ {+ "from": "doc",+ "to": "history",+ "kind": "composition",+ "points": "212,89;236,89;236,31;747,31;747,55",+ "marker": "url(#cl-diamond-filled)",+ "dash": "none"+ },+ {+ "kind": "inheritance",+ "points": "122,253;122,208.5;408.5,208.5;408.5,164",+ "marker": null,+ "dash": "none"+ },+ {+ "kind": "inheritance",+ "points": "122,253;122,208.5;408.5,208.5;408.5,164",+ "marker": null,+ "dash": "2px, 4px"+ },+ {+ "kind": "inheritance",+ "points": "434.5,263;434.5,164",+ "marker": null,+ "dash": "none"+ },+ {+ "kind": "inheritance",+ "points": "434.5,263;434.5,164",+ "marker": null,+ "dash": "2px, 4px"+ },+ {+ "kind": "inheritance",+ "points": "657,281;593,281;593,88;529,88",+ "marker": null,+ "dash": "none"+ },+ {+ "kind": "inheritance",+ "points": "657,281;593,281;593,88;529,88",+ "marker": null,+ "dash": "2px, 4px"+ },+ {+ "kind": "composition",+ "points": "657,295;553,295;553,102;529,102",+ "marker": null,+ "dash": "none"+ },+ {+ "kind": "composition",+ "points": "657,295;553,295;553,102;529,102",+ "marker": null,+ "dash": "2px, 4px"+ },+ {+ "kind": "aggregation",+ "points": "212,115;340,115",+ "marker": null,+ "dash": "none"+ },+ {+ "kind": "aggregation",+ "points": "212,115;340,115",+ "marker": null,+ "dash": "2px, 4px"+ },+ {+ "kind": "composition",+ "points": "212,89;236,89;236,31;747,31;747,55",+ "marker": null,+ "dash": "none"+ },+ {+ "kind": "composition",+ "points": "212,89;236,89;236,31;747,31;747,55",+ "marker": null,+ "dash": "2px, 4px"+ }+ ]+ },+ {+ "name": "first-draft-shapes",+ "version": "before",+ "theme": "dark",+ "screenshot": "first-draft-shapes-before-dark.png",+ "pageWidth": 1440,+ "scrollWidth": 1440,+ "viewBox": "0 0 861 400",+ "routes": [+ {+ "from": "rect",+ "to": "shape",+ "kind": "inheritance",+ "points": "122,253;122,206;434.5,206;434.5,164",+ "marker": "url(#cl-triangle-start)",+ "dash": "none"+ },+ {+ "from": "circle",+ "to": "shape",+ "kind": "inheritance",+ "points": "434.5,263;434.5,164",+ "marker": "url(#cl-triangle-start)",+ "dash": "none"+ },+ {+ "from": "group",+ "to": "shape",+ "kind": "inheritance",+ "points": "747,248;747,206;434.5,206;434.5,164",+ "marker": "url(#cl-triangle-start)",+ "dash": "none"+ },+ {+ "from": "group",+ "to": "shape",+ "kind": "composition",+ "points": "657,295;593,295;593,102;529,102",+ "marker": "url(#cl-diamond-filled)",+ "dash": "none"+ },+ {+ "from": "doc",+ "to": "shape",+ "kind": "aggregation",+ "points": "212,115;340,115",+ "marker": "url(#cl-diamond-hollow)",+ "dash": "none"+ },+ {+ "from": "doc",+ "to": "history",+ "kind": "composition",+ "points": "122,55;122,31;747,31;747,55",+ "marker": "url(#cl-diamond-filled)",+ "dash": "none"+ },+ {+ "kind": "inheritance",+ "points": "122,253;122,206;434.5,206;434.5,164",+ "marker": null,+ "dash": "none"+ },+ {+ "kind": "inheritance",+ "points": "122,253;122,206;434.5,206;434.5,164",+ "marker": null,+ "dash": "2px, 4px"+ },+ {+ "kind": "inheritance",+ "points": "434.5,263;434.5,164",+ "marker": null,+ "dash": "none"+ },+ {+ "kind": "inheritance",+ "points": "434.5,263;434.5,164",+ "marker": null,+ "dash": "2px, 4px"+ },+ {+ "kind": "inheritance",+ "points": "747,248;747,206;434.5,206;434.5,164",+ "marker": null,+ "dash": "none"+ },+ {+ "kind": "inheritance",+ "points": "747,248;747,206;434.5,206;434.5,164",+ "marker": null,+ "dash": "2px, 4px"+ },+ {+ "kind": "composition",+ "points": "657,295;593,295;593,102;529,102",+ "marker": null,+ "dash": "none"+ },+ {+ "kind": "composition",+ "points": "657,295;593,295;593,102;529,102",+ "marker": null,+ "dash": "2px, 4px"+ },+ {+ "kind": "aggregation",+ "points": "212,115;340,115",+ "marker": null,+ "dash": "none"+ },+ {+ "kind": "aggregation",+ "points": "212,115;340,115",+ "marker": null,+ "dash": "2px, 4px"+ },+ {+ "kind": "composition",+ "points": "122,55;122,31;747,31;747,55",+ "marker": null,+ "dash": "none"+ },+ {+ "kind": "composition",+ "points": "122,55;122,31;747,31;747,55",+ "marker": null,+ "dash": "2px, 4px"+ }+ ]+ },+ {+ "name": "first-draft-shapes",+ "version": "after",+ "theme": "dark",+ "screenshot": "first-draft-shapes-after-dark.png",+ "pageWidth": 1440,+ "scrollWidth": 1440,+ "viewBox": "0 0 861 400",+ "routes": [+ {+ "from": "rect",+ "to": "shape",+ "kind": "inheritance",+ "points": "122,253;122,208.5;408.5,208.5;408.5,164",+ "marker": "url(#cl-triangle)",+ "dash": "none"+ },+ {+ "from": "circle",+ "to": "shape",+ "kind": "inheritance",+ "points": "434.5,263;434.5,164",+ "marker": "url(#cl-triangle)",+ "dash": "none"+ },+ {+ "from": "group",+ "to": "shape",+ "kind": "inheritance",+ "points": "657,281;593,281;593,88;529,88",+ "marker": "url(#cl-triangle)",+ "dash": "none"+ },+ {+ "from": "group",+ "to": "shape",+ "kind": "composition",+ "points": "657,295;553,295;553,102;529,102",+ "marker": "url(#cl-diamond-filled)",+ "dash": "none"+ },+ {+ "from": "doc",+ "to": "shape",+ "kind": "aggregation",+ "points": "212,115;340,115",+ "marker": "url(#cl-diamond-hollow)",+ "dash": "none"+ },+ {+ "from": "doc",+ "to": "history",+ "kind": "composition",+ "points": "212,89;236,89;236,31;747,31;747,55",+ "marker": "url(#cl-diamond-filled)",+ "dash": "none"+ },+ {+ "kind": "inheritance",+ "points": "122,253;122,208.5;408.5,208.5;408.5,164",+ "marker": null,+ "dash": "none"+ },+ {+ "kind": "inheritance",+ "points": "122,253;122,208.5;408.5,208.5;408.5,164",+ "marker": null,+ "dash": "2px, 4px"+ },+ {+ "kind": "inheritance",+ "points": "434.5,263;434.5,164",+ "marker": null,+ "dash": "none"+ },+ {+ "kind": "inheritance",+ "points": "434.5,263;434.5,164",+ "marker": null,+ "dash": "2px, 4px"+ },+ {+ "kind": "inheritance",+ "points": "657,281;593,281;593,88;529,88",+ "marker": null,+ "dash": "none"+ },+ {+ "kind": "inheritance",+ "points": "657,281;593,281;593,88;529,88",+ "marker": null,+ "dash": "2px, 4px"+ },+ {+ "kind": "composition",+ "points": "657,295;553,295;553,102;529,102",+ "marker": null,+ "dash": "none"+ },+ {+ "kind": "composition",+ "points": "657,295;553,295;553,102;529,102",+ "marker": null,+ "dash": "2px, 4px"+ },+ {+ "kind": "aggregation",+ "points": "212,115;340,115",+ "marker": null,+ "dash": "none"+ },+ {+ "kind": "aggregation",+ "points": "212,115;340,115",+ "marker": null,+ "dash": "2px, 4px"+ },+ {+ "kind": "composition",+ "points": "212,89;236,89;236,31;747,31;747,55",+ "marker": null,+ "dash": "none"+ },+ {+ "kind": "composition",+ "points": "212,89;236,89;236,31;747,31;747,55",+ "marker": null,+ "dash": "2px, 4px"+ }+ ]+ }+ ],+ "visualReview": {+ "status": "passed",+ "screenshotsInspected": 12,+ "conditions": "1440x900, Classic, light/dark, 100% zoom, page top, settled fonts/layout",+ "observations": {+ "bus-with-dependency": "Open dependency arrow and inheritance triangles have distinct ports; the dependency remains dashed.",+ "interleaved": "Solid and dashed paths and their triangles remain distinct through the equal-height interleaving.",+ "first-draft-shapes": "The inheritance bus/composition crossing is removed; type placement and member content are unchanged."+ },+ "limits": "These three paired cases were inspected; this is not exhaustive visual acceptance."+ },+ "timingQualification": "Single render wall times are diagnostic samples; focused tests were running concurrently during parts of collection. They are not a controlled performance comparison."+}diff --git a/docs/evidence/class-bus-routing/first-draft-shapes-after-dark.png b/docs/evidence/class-bus-routing/first-draft-shapes-after-dark.pngnew file mode 100644index 00000000..17aa46e6Binary files /dev/null and b/docs/evidence/class-bus-routing/first-draft-shapes-after-dark.png differdiff --git a/docs/evidence/class-bus-routing/first-draft-shapes-after-light.png b/docs/evidence/class-bus-routing/first-draft-shapes-after-light.pngnew file mode 100644index 00000000..c174c261Binary files /dev/null and b/docs/evidence/class-bus-routing/first-draft-shapes-after-light.png differdiff --git a/docs/evidence/class-bus-routing/first-draft-shapes-before-dark.png b/docs/evidence/class-bus-routing/first-draft-shapes-before-dark.pngnew file mode 100644index 00000000..83ea9a3fBinary files /dev/null and b/docs/evidence/class-bus-routing/first-draft-shapes-before-dark.png differdiff --git a/docs/evidence/class-bus-routing/first-draft-shapes-before-light.png b/docs/evidence/class-bus-routing/first-draft-shapes-before-light.pngnew file mode 100644index 00000000..be5917cbBinary files /dev/null and b/docs/evidence/class-bus-routing/first-draft-shapes-before-light.png differdiff --git a/docs/evidence/class-bus-routing/fixtures/bus-with-dependency.class.json b/docs/evidence/class-bus-routing/fixtures/bus-with-dependency.class.jsonnew file mode 100644index 00000000..5ee3b159--- /dev/null+++ b/docs/evidence/class-bus-routing/fixtures/bus-with-dependency.class.json@@ -0,0 +1,54 @@+{+ "schema_version": 1,+ "diagram_type": "class",+ "meta": {+ "title": "Interface extension and dependency"+ },+ "types": [+ {+ "id": "base",+ "label": "Base",+ "kind": "interface",+ "row": 0,+ "col": 1+ },+ {+ "id": "left",+ "label": "Left",+ "kind": "interface",+ "row": 1,+ "col": 0+ },+ {+ "id": "right",+ "label": "Right",+ "kind": "interface",+ "row": 1,+ "col": 2+ },+ {+ "id": "impl",+ "label": "Impl",+ "kind": "class",+ "row": 2,+ "col": 1+ }+ ],+ "relationships": [+ {+ "from": "left",+ "to": "base",+ "kind": "inheritance"+ },+ {+ "from": "right",+ "to": "base",+ "kind": "inheritance"+ },+ {+ "from": "impl",+ "to": "base",+ "kind": "dependency"+ }+ ]+}\ No newline at end of filediff --git a/docs/evidence/class-bus-routing/fixtures/bus-with-ordinary.class.json b/docs/evidence/class-bus-routing/fixtures/bus-with-ordinary.class.jsonnew file mode 100644index 00000000..fed34b10--- /dev/null+++ b/docs/evidence/class-bus-routing/fixtures/bus-with-ordinary.class.json@@ -0,0 +1,54 @@+{+ "schema_version": 1,+ "diagram_type": "class",+ "meta": {+ "title": "Interface extension and implementation"+ },+ "types": [+ {+ "id": "base",+ "label": "Base",+ "kind": "interface",+ "row": 0,+ "col": 1+ },+ {+ "id": "left",+ "label": "Left",+ "kind": "interface",+ "row": 1,+ "col": 0+ },+ {+ "id": "right",+ "label": "Right",+ "kind": "interface",+ "row": 1,+ "col": 2+ },+ {+ "id": "impl",+ "label": "Impl",+ "kind": "class",+ "row": 2,+ "col": 1+ }+ ],+ "relationships": [+ {+ "from": "left",+ "to": "base",+ "kind": "inheritance"+ },+ {+ "from": "right",+ "to": "base",+ "kind": "inheritance"+ },+ {+ "from": "impl",+ "to": "base",+ "kind": "realization"+ }+ ]+}\ No newline at end of filediff --git a/docs/evidence/class-bus-routing/fixtures/interleaved.class.json b/docs/evidence/class-bus-routing/fixtures/interleaved.class.jsonnew file mode 100644index 00000000..db44c0c6--- /dev/null+++ b/docs/evidence/class-bus-routing/fixtures/interleaved.class.json@@ -0,0 +1,72 @@+{+ "schema_version": 1,+ "diagram_type": "class",+ "meta": {+ "title": "Interleaved hierarchies",+ "output": "diagram.html",+ "quality_profile": "showcase"+ },+ "types": [+ {+ "id": "base",+ "label": "Base",+ "kind": "interface",+ "row": 0,+ "col": 1.5+ },+ {+ "id": "left",+ "label": "Left",+ "kind": "interface",+ "row": 1,+ "col": 0+ },+ {+ "id": "right",+ "label": "Right",+ "kind": "interface",+ "row": 1,+ "col": 2+ },+ {+ "id": "impl",+ "label": "Impl",+ "kind": "abstract",+ "row": 1,+ "col": 1+ },+ {+ "id": "other",+ "label": "Other",+ "kind": "abstract",+ "row": 1,+ "col": 3+ }+ ],+ "relationships": [+ {+ "id": "left_extends",+ "from": "left",+ "to": "base",+ "kind": "inheritance"+ },+ {+ "id": "right_extends",+ "from": "right",+ "to": "base",+ "kind": "inheritance"+ },+ {+ "id": "impl_realizes",+ "from": "impl",+ "to": "base",+ "kind": "realization"+ },+ {+ "id": "other_realizes",+ "from": "other",+ "to": "base",+ "kind": "realization"+ }+ ]+}\ No newline at end of filediff --git a/docs/evidence/class-bus-routing/fixtures/mixedbus.class.json b/docs/evidence/class-bus-routing/fixtures/mixedbus.class.jsonnew file mode 100644index 00000000..9f7afb88--- /dev/null+++ b/docs/evidence/class-bus-routing/fixtures/mixedbus.class.json@@ -0,0 +1,66 @@+{+ "schema_version": 1,+ "diagram_type": "class",+ "meta": {+ "title": "Mixed interface inheritance and implementation"+ },+ "types": [+ {+ "id": "base",+ "label": "Root",+ "kind": "interface",+ "row": 0,+ "col": 1.5+ },+ {+ "id": "left1",+ "label": "LeftOne",+ "kind": "interface",+ "row": 1,+ "col": 0+ },+ {+ "id": "left2",+ "label": "LeftTwo",+ "kind": "interface",+ "row": 1,+ "col": 1+ },+ {+ "id": "right1",+ "label": "RightOne",+ "kind": "class",+ "row": 1,+ "col": 2+ },+ {+ "id": "right2",+ "label": "RightTwo",+ "kind": "class",+ "row": 1,+ "col": 3+ }+ ],+ "relationships": [+ {+ "from": "left1",+ "to": "base",+ "kind": "inheritance"+ },+ {+ "from": "left2",+ "to": "base",+ "kind": "inheritance"+ },+ {+ "from": "right1",+ "to": "base",+ "kind": "realization"+ },+ {+ "from": "right2",+ "to": "base",+ "kind": "realization"+ }+ ]+}\ No newline at end of filediff --git a/docs/evidence/class-bus-routing/interleaved-after-dark.png b/docs/evidence/class-bus-routing/interleaved-after-dark.pngnew file mode 100644index 00000000..91baf82bBinary files /dev/null and b/docs/evidence/class-bus-routing/interleaved-after-dark.png differdiff --git a/docs/evidence/class-bus-routing/interleaved-after-light.png b/docs/evidence/class-bus-routing/interleaved-after-light.pngnew file mode 100644index 00000000..74385a63Binary files /dev/null and b/docs/evidence/class-bus-routing/interleaved-after-light.png differdiff --git a/docs/evidence/class-bus-routing/interleaved-before-dark.png b/docs/evidence/class-bus-routing/interleaved-before-dark.pngnew file mode 100644index 00000000..88018e82Binary files /dev/null and b/docs/evidence/class-bus-routing/interleaved-before-dark.png differdiff --git a/docs/evidence/class-bus-routing/interleaved-before-light.png b/docs/evidence/class-bus-routing/interleaved-before-light.pngnew file mode 100644index 00000000..a7cd9be1Binary files /dev/null and b/docs/evidence/class-bus-routing/interleaved-before-light.png differdiff --git a/docs/evidence/class-bus-routing/screenshot-hashes.json b/docs/evidence/class-bus-routing/screenshot-hashes.jsonnew file mode 100644index 00000000..add17374--- /dev/null+++ b/docs/evidence/class-bus-routing/screenshot-hashes.json@@ -0,0 +1,14 @@+{+ "bus-with-dependency-after-light.png": "6baf5ae9ba680a905e547179373b564fa59328d000d1e8d9287f8f410e7ec575",+ "bus-with-dependency-before-light.png": "316b86c585a530a7d21c8fb1fc0e633d873e9e2eed4074cf5ad74432aeb673d1",+ "interleaved-before-dark.png": "901ca4a59bb8a43944a3905cbbfcd30db6e8652497a72eb5660034a46789dd28",+ "bus-with-dependency-after-dark.png": "dc570e8d56fd988a10b1b49b1fafc0442def2d045a7f311d4ccb1e9c4bdb87ff",+ "first-draft-shapes-after-dark.png": "6fd920e10900efa3fd54f593d151c80d4250debff25db64d8f7acb1803a866a2",+ "first-draft-shapes-before-dark.png": "2549715c5ef05d42c4d826685625946bf4767544783a6aa955793928ce562c13",+ "first-draft-shapes-before-light.png": "92c181f53589849c8a0f8de741cd0caddaf01d3168587f212ba48d7cbaae46b4",+ "interleaved-after-dark.png": "e43abd6e09d2a95d2e22d2a23899889833d9282354a599081fe45dfda4c111dc",+ "first-draft-shapes-after-light.png": "fd29c86f43efde9e2be7568a1b824e300ac2297e8a21aaa6e56b9b014b1f886f",+ "interleaved-after-light.png": "74af72ef77bf4d74c834bc55d90b2237a0733d7eb284f9d6226b6f5473b53b46",+ "interleaved-before-light.png": "e71b66dd96629323f3fd487fa73238dfa1d5e35c95a38dfd283c7e88f51e2653",+ "bus-with-dependency-before-dark.png": "50c051d7d4aefe15651f8a3d7cc44ffb62e7c26f376f6d06f42fe74f6a215eae"+}diff --git a/docs/specs/class-bus-routing-validation.md b/docs/specs/class-bus-routing-validation.mdnew file mode 100644index 00000000..35703322--- /dev/null+++ b/docs/specs/class-bus-routing-validation.md@@ -0,0 +1,43 @@+# 类图公共主干冲突修复验收(#791)++## 范围与完成定义++修复接口继承、接口实现或普通关系共享同一个目标端口、覆盖对方线型/端点符号的问题。目标是让合法的自动关系保留正确的 UML 语义,并保留原有同类公共主干的阅读价值。++本轮按用户确认直接推进局部修复和 PR。范围以 [Issue #791](https://github.com/tt-a1i/archify/issues/791) 的复现为起点;不新增 schema、配置、关系种类,也不改共享 Router 接口。++## 实现约束++1. 主干候选仍按目标与关系种类分组,先保留原有节点障碍检查。+2. 只允许同一候选组共享端口和走廊;检查本组与完整场景中组外路线的端点间距、重叠走廊及内部交叉。+3. 有冲突时整组回退,通过现有普通路由器重新分配;仅发生回退后启用已有的独立端口模式,防止等高交错关系重新共享走廊。+4. 每轮只删除冲突组,再检查剩余主干。候选集合单调缩小,最多候选组数次回退;不增加无界重试。+5. 节点位置、文本、关系身份和方向不变。保留显式 via、侧边、直线路由及 labelAt;不增加对所有固定路线间距或任意布局成功的保证。+6. 正常同类主干保留反向绘制和 source-to-target 的 data-motion-path,Focus 与独立 SVG 导出继续使用正确语义。++## 验收记录++基线为 `9ef09617bd9ed2fe7bb4ad17fba7c8fce6b0ce76`,运行时代码的内容摘要记录在[比较证据](../evidence/class-bus-routing/comparison.json)中。++| 行为 | 检查及结果 |+| --- | --- |+| 主干+实现/依赖、混合双主干 | standard/showcase,原序与逆序,公开 validate/render/check 及 SVG 几何通过 |+| 等高、交错的继承/实现 | 首次 fallback 实现仍失败;开启已有独立端口模式后通过 |+| 同类、独立 Storage 主干 | 保留共享主干;另一组回退不取消它 |+| 显式几何 | via、侧边、straight 和 labelAt 保留 |+| 图与画布 | 关系身份、方向、节点边界及所有路径点的有限性/画布范围通过 |+| 浏览器交互与导出 | light/dark 的 Focus 与 SVG 导出通过;原有同类主干的运动方向检查通过 |+| 兼容样例 | 18 个固定输入前后都通过公开命令;13 个完整 HTML/SVG 相同;4 个复现和已有 shapes 案例的路线改变 |+| 类型与成员信息 | 全部 9 个 Class 对比输入的节点位置、尺寸、文字与关系身份/种类一致 |+| 实际视觉观察 | 3 个案例、light/dark、前后共 12 张截图检查通过 |++34 项 Class 专项、18 项核心 smoke、2 项真实 Chrome 检查及 generated 检查通过。无需改写其他图类型的黄金结果;本轮没有执行本地 test:full,远端最终提交的适用 CI 另行验证并记录于 PR。++## 边界++- 这是主干协调与局部回退,不是通用图布局保证。不同目标的复杂交错层次仍可能被现有 crossing 约束拒绝。+- 固定几何保持原值,既有 Router 对固定与自动端点的全部间距边界不在本次修复范围。+- 自动路线允许变化;测试保护关系语义、真实冲突和作者控制,不冻结自动坐标。+- 实现与本地验收完成;维护者审查、合并、发布和安装各自独立。++详细截图、复现命令和包证据见[验收证据](../evidence/class-bus-routing/README.md)。diff --git a/test/class-bus-routing.test.mjs b/test/class-bus-routing.test.mjsnew file mode 100644index 00000000..80426792--- /dev/null+++ b/test/class-bus-routing.test.mjs@@ -0,0 +1,231 @@+import { test } from 'node:test';+import assert from 'node:assert/strict';+import fs from 'node:fs';+import os from 'node:os';+import path from 'node:path';+import { spawnSync } from 'node:child_process';+import { fileURLToPath } from 'node:url';++const cli = fileURLToPath(new URL('../archify/bin/archify.mjs', import.meta.url));+const epsilon = 0.0001;+const attrs = (tag) => Object.fromEntries([...tag.matchAll(/([\w-]+)="([^"]*)"/g)].map((match) => [match[1], match[2]]));++function diagram(ordinaryKind = 'realization', mixedBuses = false) {+ return {+ schema_version: 1,+ diagram_type: 'class',+ meta: { title: 'Interface extension and use' },+ types: mixedBuses ? [+ { id: 'base', label: 'Base', kind: 'interface', row: 0, col: 1.5 },+ { id: 'left', label: 'Left', kind: 'interface', row: 1, col: 0 },+ { id: 'right', label: 'Right', kind: 'interface', row: 1, col: 1 },+ { id: 'impl', label: 'Impl', kind: 'class', row: 1, col: 2 },+ { id: 'other', label: 'Other', kind: 'class', row: 1, col: 3 },+ ] : [+ { id: 'base', label: 'Base', kind: 'interface', row: 0, col: 1 },+ { id: 'left', label: 'Left', kind: 'interface', row: 1, col: 0 },+ { id: 'right', label: 'Right', kind: 'interface', row: 1, col: 2 },+ { id: 'impl', label: 'Impl', kind: 'class', row: 2, col: 1 },+ ],+ relationships: [+ { id: 'left_extends', from: 'left', to: 'base', kind: 'inheritance' },+ { id: 'right_extends', from: 'right', to: 'base', kind: 'inheritance' },+ { id: 'impl_relation', from: 'impl', to: 'base', kind: ordinaryKind },+ ...(mixedBuses ? [{ id: 'other_relation', from: 'other', to: 'base', kind: 'realization' }] : []),+ ],+ };+}++function interleavedHierarchy() {+ const document = diagram('realization', true);+ document.types.find(({ id }) => id === 'right').col = 2;+ document.types.find(({ id }) => id === 'impl').col = 1;+ // 抽象实现与接口同高,不能依赖两组节点的高度差来区分继承和实现线路。+ document.types.filter(({ id }) => id === 'impl' || id === 'other')+ .forEach((type) => { type.kind = 'abstract'; });+ return document;+}++function run(args, cwd) {+ const result = spawnSync(process.execPath, [cli, ...args], {+ cwd, encoding: 'utf8', timeout: 20_000,+ env: { ...process.env, ARCHIFY_UPDATE_CHECK_DISABLED: '1' },+ });+ assert.equal(result.status, 0, `${args.join(' ')}\n${result.error || ''}\n${result.stdout}\n${result.stderr}`);+ return result.stdout;+}++function render(t, document, quality = 'showcase') {+ const directory = fs.mkdtempSync(path.join(os.tmpdir(), 'archify-class-bus-'));+ t.after(() => fs.rmSync(directory, { recursive: true, force: true }));+ const input = path.join(directory, 'input.class.json');+ const output = path.join(directory, 'output.html');+ fs.writeFileSync(input, JSON.stringify(document));+ const validation = JSON.parse(run(['validate', 'class', input, '--quality', quality, '--json'], directory));+ assert.equal(validation.ok, true);+ run(['render', 'class', input, output, '--quality', quality], directory);+ const check = JSON.parse(run(['check', output, '--json'], directory));+ assert.equal(check.ok, true);+ assert.equal(check.composition.summary.errors, 0);+ const svg = fs.readFileSync(output, 'utf8').match(/<svg\b[\s\S]*?<\/svg>/)?.[0];+ assert.ok(svg, '渲染结果应包含 SVG');+ const viewBox = attrs(svg.match(/<svg\b[^>]*>/)[0]).viewBox.split(/[\s,]+/).map(Number);+ assert.equal(viewBox.length, 4);+ assert.ok(viewBox.every(Number.isFinite) && viewBox[2] > 0 && viewBox[3] > 0, '画布范围必须有效');+ const [minX, minY, width, height] = viewBox;+ const routes = [...svg.matchAll(/<path\b[^>]*data-class-relationship=[^>]*>/g)]+ .map((match) => attrs(match[0])).filter((route) => route['data-edge-id'])+ .map((route) => ({+ id: route['data-edge-id'], from: route['data-edge-from'], to: route['data-edge-to'],+ kind: route['data-class-relationship'], attrs: route,+ points: route['data-composition-points'].split(';').map((pair) => pair.split(',').map(Number)),+ }));+ const boxes = new Map([...svg.matchAll(/<g\b[^>]*data-node-id="([^"]+)"[^>]*>[\s\S]*?<rect\b([^>]*)>/g)]+ .map((match) => {+ const rect = attrs(match[2]);+ return [match[1], Object.fromEntries(['x', 'y', 'width', 'height'].map((key) => [key, Number(rect[key])]))];+ }));+ assert.equal(routes.length, document.relationships.length, '所有作者关系都必须保留');+ for (const authored of document.relationships) {+ const route = routes.find(({ id }) => id === authored.id);+ assert.ok(route, authored.id);+ assert.deepEqual([route.from, route.to, route.kind], [authored.from, authored.to, authored.kind]);+ for (const [x, y] of route.points) {+ assert.ok(Number.isFinite(x) && Number.isFinite(y), `${route.id} 路径点必须有限`);+ assert.ok(x >= minX - epsilon && x <= minX + width + epsilon+ && y >= minY - epsilon && y <= minY + height + epsilon,+ `${route.id} 的路径点 [${x}, ${y}] 必须位于画布内,避免绕行被裁切`);+ }+ assert.ok(onSide(route.points[0], boxes.get(route.from)), `${route.id} 必须从来源类型出发`);+ assert.ok(onSide(route.points.at(-1), boxes.get(route.to)), `${route.id} 必须到达目标类型`);+ const marker = route.attrs['marker-end'] || route.attrs['marker-start'];+ assert.match(marker, authored.kind === 'dependency' ? /cl-open/ : /cl-triangle/);+ assert.equal(/\bcl-dashed\b/.test(route.attrs.class), authored.kind !== 'inheritance');+ }+ return { svg, routes, boxes };+}++function onSide([x, y], box, side) {+ const withinX = x >= box.x - epsilon && x <= box.x + box.width + epsilon;+ const withinY = y >= box.y - epsilon && y <= box.y + box.height + epsilon;+ const sides = {+ left: withinY && Math.abs(x - box.x) < epsilon,+ right: withinY && Math.abs(x - box.x - box.width) < epsilon,+ top: withinX && Math.abs(y - box.y) < epsilon,+ bottom: withinX && Math.abs(y - box.y - box.height) < epsilon,+ };+ return side ? sides[side] : Object.values(sides).some(Boolean);+}++// 只量同一条直线上的正长度重叠;正交交叉和一个公共点不算共享走廊。+function overlapLength([a, b], [c, d]) {+ const horizontal = Math.abs(a[1] - b[1]) < epsilon && Math.abs(c[1] - d[1]) < epsilon;+ const vertical = Math.abs(a[0] - b[0]) < epsilon && Math.abs(c[0] - d[0]) < epsilon;+ if (!horizontal && !vertical) return 0;+ const axis = horizontal ? 0 : 1;+ if (Math.abs(a[1 - axis] - c[1 - axis]) >= epsilon) return 0;+ return Math.max(0, Math.min(Math.max(a[axis], b[axis]), Math.max(c[axis], d[axis]))+ - Math.max(Math.min(a[axis], b[axis]), Math.min(c[axis], d[axis])));+}++function assertDistinctNotation(routes) {+ for (const [index, left] of routes.entries()) {+ for (const right of routes.slice(index + 1)) {+ if (left.kind === right.kind) continue;+ if (left.to === right.to) {+ const a = left.points.at(-1);+ const b = right.points.at(-1);+ assert.ok(Math.hypot(a[0] - b[0], a[1] - b[1]) >= 16 - epsilon,+ `${left.id} 和 ${right.id} 的不同关系标记不可重叠`);+ }+ for (let i = 1; i < left.points.length; i += 1) {+ for (let j = 1; j < right.points.length; j += 1) {+ assert.ok(overlapLength([left.points[i - 1], left.points[i]], [right.points[j - 1], right.points[j]]) <= epsilon,+ `${left.id} 和 ${right.id} 不可共用正长度线段而混淆关系种类`);+ }+ }+ }+ }+}++for (const quality of ['standard', 'showcase']) {+ for (const [name, document] of [+ ['bus plus realization', diagram('realization')],+ ['bus plus dependency', diagram('dependency')],+ ['inheritance and realization buses', diagram('realization', true)],+ ['interleaved interfaces and abstract implementations', interleavedHierarchy()],+ ]) {+ test(`class ${quality}: ${name} keeps different relationship notations distinct in either authored order`, (t) => {+ for (const reverse of [false, true]) {+ const candidate = structuredClone(document);+ if (reverse) candidate.relationships.reverse();+ const result = render(t, candidate, quality);+ assertDistinctNotation(result.routes);+ }+ });+ }+}++for (const kind of ['inheritance', 'realization']) {+ test(`class: an isolated ${kind} hierarchy retains its shared bus`, (t) => {+ const document = diagram();+ document.types = document.types.filter(({ id }) => id !== 'impl');+ document.relationships = document.relationships.slice(0, 2).map((relation) => ({ ...relation, kind }));+ if (kind === 'realization') document.types.filter(({ id }) => id !== 'base').forEach((type) => { type.kind = 'class'; });+ const { routes } = render(t, document);+ assert.ok(routes.every((route) => route.attrs['data-class-bus'] === 'base'), '无冲突的同类关系仍应共用总线');+ assert.deepEqual(routes[0].points.at(-1), routes[1].points.at(-1), '同类总线保留同一个三角标记落点');+ });+}++test('class: a separate storage hierarchy keeps its bus while another hierarchy is repaired', (t) => {+ const document = diagram('dependency');+ document.types.push(+ { id: 'storage', label: 'StoragePort', kind: 'interface', row: 3, col: 0.5 },+ { id: 'disk', label: 'DiskStore', kind: 'class', row: 4, col: 0 },+ { id: 'cloud', label: 'CloudStore', kind: 'class', row: 4, col: 1 },+ );+ document.relationships.push(+ { id: 'disk_storage', from: 'disk', to: 'storage', kind: 'realization' },+ { id: 'cloud_storage', from: 'cloud', to: 'storage', kind: 'realization' },+ );+ for (const reverse of [false, true]) {+ const candidate = structuredClone(document);+ if (reverse) candidate.relationships.reverse();+ const { routes } = render(t, candidate);+ assertDistinctNotation(routes);+ const storage = routes.filter(({ to }) => to === 'storage');+ assert.ok(storage.every((route) => route.attrs['data-class-bus'] === 'storage'),+ '独立的同类总线不应因别处的线路冲突而拆散');+ assert.deepEqual(storage[0].points.at(-1), storage[1].points.at(-1));+ }+});++for (const control of ['via', 'sides', 'route', 'labelAt']) {+ test(`class: bus coordination preserves authored ${control}`, (t) => {+ const document = diagram('dependency');+ const relation = document.relationships.at(-1);+ if (control === 'via') {+ Object.assign(relation, { fromSide: 'right', toSide: 'right', via: [[584, 313], [584, 62]] });+ } else if (control === 'sides') {+ Object.assign(relation, { fromSide: 'right', toSide: 'right' });+ } else if (control === 'route') {+ Object.assign(relation, { route: 'straight', fromSide: 'top', toSide: 'bottom' });+ } else {+ Object.assign(relation, { label: 'uses', labelAt: [600, 300] });+ }+ const { svg, routes, boxes } = render(t, document);+ const route = routes.find(({ id }) => id === relation.id);+ if (relation.fromSide) assert.ok(onSide(route.points[0], boxes.get(relation.from), relation.fromSide));+ if (relation.toSide) assert.ok(onSide(route.points.at(-1), boxes.get(relation.to), relation.toSide));+ if (relation.via) assert.deepEqual(route.points.slice(1, -1), relation.via, '作者 via 点必须原样保留');+ if (relation.route === 'straight') assert.equal(route.points.length, 2, '作者要求的直线路由不能被自动绕行替代');+ if (relation.labelAt) {+ const labelGroup = [...svg.matchAll(/<g\b[^>]*data-edge-id="impl_relation"[^>]*>[\s\S]*?<\/g>/g)]+ .map((match) => match[0]).find((group) => group.includes('<text'));+ assert.ok(labelGroup, '作者关系标签必须保留');+ const label = attrs(labelGroup.match(/<text\b[^>]*>/)[0]);+ assert.deepEqual([Number(label.x), Number(label.y)], relation.labelAt);+ }+ });+}diff --git a/test/class-motion-browser.test.mjs b/test/class-motion-browser.test.mjsindex fb603beb..f751b920 100644--- a/test/class-motion-browser.test.mjs+++ b/test/class-motion-browser.test.mjs@@ -93,3 +93,88 @@ test('class: hierarchy bus motion follows from-to while retaining aligned visualassert.deepEqual([recording.samples[0].x, recording.samples[0].y], result.semanticEnds[0]);assert.deepEqual([recording.samples.at(-1).x, recording.samples.at(-1).y], result.semanticEnds[1]);});++test('class: mixed hierarchy fallback keeps dependency notation in focus and SVG export', {+ skip: chrome ? false : 'Set ARCHIFY_CHROME to run class motion browser checks.',+ timeout: 60000,+}, async (t) => {+ const scratch = fs.mkdtempSync(path.join(os.tmpdir(), 'archify-class-bus-browser-'));+ t.after(() => fs.rmSync(scratch, { recursive: true, force: true }));+ const input = path.join(scratch, 'mixed.class.json');+ const output = path.join(scratch, 'mixed.html');+ fs.writeFileSync(input, JSON.stringify({+ schema_version: 1, diagram_type: 'class',+ meta: { title: 'Interface extension and use', animation: 'trace' },+ types: [+ { id: 'base', label: 'Base', kind: 'interface', row: 0, col: 1 },+ { id: 'left', label: 'Left', kind: 'interface', row: 1, col: 0 },+ { id: 'right', label: 'Right', kind: 'interface', row: 1, col: 2 },+ { id: 'client', label: 'Client', kind: 'class', row: 2, col: 1 },+ ],+ relationships: [+ { id: 'left_extends', from: 'left', to: 'base', kind: 'inheritance' },+ { id: 'right_extends', from: 'right', to: 'base', kind: 'inheritance' },+ { id: 'client_uses', from: 'client', to: 'base', kind: 'dependency' },+ ],+ }));+ execFileSync(process.execPath, [path.join(skillRoot, 'bin/archify.mjs'), 'render', 'class', input, output, '--quality', 'showcase'], { timeout: 20000 });+ const browser = desktopBrowser(chrome);+ t.after(() => browser.close());+ const session = await browser.sessionPromise;+ const send = (method, params = {}) => browser.cdp.send(method, params, session);+ const run = async (expression) => {+ const result = await send('Runtime.evaluate', { expression, awaitPromise: true, returnByValue: true });+ assert.equal(result.exceptionDetails, undefined, result.exceptionDetails?.exception?.description);+ return result.result?.value;+ };+ await send('Emulation.setDeviceMetricsOverride', { width: 1440, height: 900, deviceScaleFactor: 1, mobile: false });+ // 只截取下载边界,SVG 序列化和关系交互仍执行产品实现。+ await send('Page.addScriptToEvaluateOnNewDocument', { source: `+ window.classExports = [];+ const urls = new Map(), create = URL.createObjectURL.bind(URL);+ URL.createObjectURL = blob => { const url = create(blob); urls.set(url, blob); return url; };+ const click = HTMLAnchorElement.prototype.click;+ HTMLAnchorElement.prototype.click = function() {+ if (this.download) { classExports.push(urls.get(this.href)); return; }+ return click.call(this);+ };+ ` });+ for (const theme of ['light', 'dark']) {+ const loaded = browser.cdp.waitFor('Page.loadEventFired', session);+ await send('Page.navigate', { url: pathToFileURL(output).href + '?theme=' + theme });+ await loaded;+ await run('document.fonts.ready');+ await run('Archify.layoutStability.whenStable()');+ const result = await run(`(async () => {+ const svg = document.querySelector('.diagram-container svg');+ const paths = root => [...root.querySelectorAll('path[data-edge-id]')].map(path => ({+ id: path.dataset.edgeId, d: path.getAttribute('d'), kind: path.dataset.classRelationship,+ dashed: path.classList.contains('cl-dashed'),+ marker: (path.getAttribute('marker-end') || path.getAttribute('marker-start') || '').match(/#(cl-[\\w-]+)/)?.[1],+ end: path.getAttribute('data-composition-points').split(';').at(-1).split(',').map(Number),+ }));+ const live = paths(svg);+ const dependency = svg.querySelector('path[data-edge-id="client_uses"]');+ Archify.focus.inspectRelationshipById('client_uses', { toggle: false });+ const pulse = document.querySelector('.relationship-flow-pulse')?.getAttribute('d');+ Archify.focus.clear();+ Archify.exportMenu.run('svg');+ const deadline = performance.now() + 5000;+ while (!classExports.length && performance.now() < deadline) await new Promise(resolve => setTimeout(resolve, 20));+ if (!classExports.length) throw new Error('Class SVG export did not complete');+ const exported = new DOMParser().parseFromString(await classExports[0].text(), 'image/svg+xml');+ return { live, exported: paths(exported), pulse, dependency: dependency.getAttribute('d') };+ })()`);+ assert.equal(result.live.length, 3);+ assert.deepEqual(result.exported, result.live, `${theme}: 独立 SVG 保留关系路径与符号`);+ const dependency = result.live.find(({ id }) => id === 'client_uses');+ assert.equal(dependency.marker, 'cl-open');+ assert.equal(dependency.dashed, true);+ assert.equal(result.pulse, result.dependency, `${theme}: 聚焦脉冲沿依赖方向运行`);+ for (const inherited of result.live.filter(({ kind }) => kind === 'inheritance')) {+ assert.equal(inherited.marker, 'cl-triangle');+ assert.equal(inherited.dashed, false);+ assert.ok(Math.hypot(inherited.end[0] - dependency.end[0], inherited.end[1] - dependency.end[1]) >= 16);+ }+ }+});