Skip to content

Turn any idea, plan, or codebase into a beautiful interactive diagram. An agent skill for Claude Code, Codex, and more.

fix(diagnostics): integrate node identity and measured workflow overflow

tt-a1i621ae34773f0
diff --cc archify.zip
index ee63b2c8,a8cba880..aa43b649
Binary files differ
diff --cc archify/bin/visual-check.mjs
index f9ac1621,8adb154b..607db304
--- a/archify/bin/visual-check.mjs
+++ b/archify/bin/visual-check.mjs
@@@ -432,29 -432,6 +432,29 @@@ export class ChromeVisualBrowser
&& typeof Archify.viewerChromeLayout.receipt === 'function'
? Archify.viewerChromeLayout.receipt()
: null;
+ // Read rendered boxes only; source ownership, offsets and hard pins are unknown.
+ var workflowLanes = svg ? Array.from(svg.querySelectorAll('rect[data-composition-frame-kind="lane"]')).map(function (lane) {
+ var rect = lane.getBoundingClientRect();
+ var members = Array.from(svg.querySelectorAll('g[data-node-id]')).map(function (node) {
+ var box = node.querySelector('rect');
+ if (!box) return null;
+ var bounds = box.getBoundingClientRect();
+ if (bounds.top < rect.top - 1 || bounds.bottom > rect.bottom + 1
+ || bounds.left < rect.left - 1 || bounds.right > rect.right + 1) return null;
+ return { id: node.getAttribute('data-node-id'), top: bounds.top, bottom: bounds.bottom };
+ }).filter(Boolean);
- var top = members.length ? Math.min.apply(null, members.map(function (node) { return node.top; })) : null;
- var bottom = members.length ? Math.max.apply(null, members.map(function (node) { return node.bottom; })) : null;
++ var top = members.length ? members.reduce(function (minimum, node) { return Math.min(minimum, node.top); }, Infinity) : null;
++ var bottom = members.length ? members.reduce(function (maximum, node) { return Math.max(maximum, node.bottom); }, -Infinity) : null;
+ return {
+ frameId: lane.getAttribute('data-composition-frame-id'),
+ heightPx: Math.round(rect.height),
+ nodeCount: members.length,
+ nodeIds: members.slice(0, 12).map(function (node) { return node.id; }),
+ nodeSpanPx: top === null ? null : Math.round(bottom - top),
+ spaceAboveNodesPx: top === null ? null : Math.round(top - rect.top),
+ spaceBelowNodesPx: bottom === null ? null : Math.round(rect.bottom - bottom)
+ };
+ }).sort(function (a, b) { return b.heightPx - a.heightPx; }).slice(0, 6) : [];
return {
innerWidth: window.innerWidth,
innerHeight: window.innerHeight,