Skip to content

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

fix(workflow): complete group containment

sunsunsun804b001f05d1
diff --git a/archify.zip b/archify.zip
index 7df7d98c..551e34dd 100644
Binary files a/archify.zip and b/archify.zip differ
diff --git a/archify/assets/template.html b/archify/assets/template.html
index 29bec4c0..28c151c1 100644
--- a/archify/assets/template.html
+++ b/archify/assets/template.html
@@ -10859,7 +10859,7 @@
}
function eligible() {
return Boolean(
- shell && diagram && svg && ratio > 0 &&
+ shell && diagram && svg && ratio >= WIDE_RATIO &&
window.innerWidth >= MIN_DESKTOP_WIDTH &&
html.getAttribute('data-embed') !== 'true' &&
html.getAttribute('data-present') !== 'true' &&
@@ -10919,10 +10919,7 @@
}
var chrome = chromeMetrics();
var viewportCap = Math.max(0, window.innerWidth - chrome.bodyX);
- var sourceWidth = viewBox && viewBox.width > 0
- ? viewBox.width + chrome.diagramX
- : MIN_READER_WIDTH;
- var minWidth = Math.min(MIN_READER_WIDTH, sourceWidth, viewportCap);
+ var minWidth = Math.min(MIN_READER_WIDTH, viewportCap);
var maxWidth = Math.min(MAX_READER_WIDTH, viewportCap);
var fixedHeight = chrome.bodyY + chrome.diagramY + SAFE_BOTTOM_GAP +
outerHeight(header) + outerHeight(guided) + outerHeight(cards);
diff --git a/archify/examples/dataflow-product-analytics.html b/archify/examples/dataflow-product-analytics.html
index 4907b39b..e56dd1bb 100644
--- a/archify/examples/dataflow-product-analytics.html
+++ b/archify/examples/dataflow-product-analytics.html
@@ -10970,7 +10970,7 @@
}
function eligible() {
return Boolean(
- shell && diagram && svg && ratio > 0 &&
+ shell && diagram && svg && ratio >= WIDE_RATIO &&
window.innerWidth >= MIN_DESKTOP_WIDTH &&
html.getAttribute('data-embed') !== 'true' &&
html.getAttribute('data-present') !== 'true' &&
@@ -11030,10 +11030,7 @@
}
var chrome = chromeMetrics();
var viewportCap = Math.max(0, window.innerWidth - chrome.bodyX);
- var sourceWidth = viewBox && viewBox.width > 0
- ? viewBox.width + chrome.diagramX
- : MIN_READER_WIDTH;
- var minWidth = Math.min(MIN_READER_WIDTH, sourceWidth, viewportCap);
+ var minWidth = Math.min(MIN_READER_WIDTH, viewportCap);
var maxWidth = Math.min(MAX_READER_WIDTH, viewportCap);
var fixedHeight = chrome.bodyY + chrome.diagramY + SAFE_BOTTOM_GAP +
outerHeight(header) + outerHeight(guided) + outerHeight(cards);
diff --git a/archify/examples/lifecycle-agent-run.html b/archify/examples/lifecycle-agent-run.html
index 60e55be7..141719b5 100644
--- a/archify/examples/lifecycle-agent-run.html
+++ b/archify/examples/lifecycle-agent-run.html
@@ -10919,7 +10919,7 @@
}
function eligible() {
return Boolean(
- shell && diagram && svg && ratio > 0 &&
+ shell && diagram && svg && ratio >= WIDE_RATIO &&
window.innerWidth >= MIN_DESKTOP_WIDTH &&
html.getAttribute('data-embed') !== 'true' &&
html.getAttribute('data-present') !== 'true' &&
@@ -10979,10 +10979,7 @@
}
var chrome = chromeMetrics();
var viewportCap = Math.max(0, window.innerWidth - chrome.bodyX);
- var sourceWidth = viewBox && viewBox.width > 0
- ? viewBox.width + chrome.diagramX
- : MIN_READER_WIDTH;
- var minWidth = Math.min(MIN_READER_WIDTH, sourceWidth, viewportCap);
+ var minWidth = Math.min(MIN_READER_WIDTH, viewportCap);
var maxWidth = Math.min(MAX_READER_WIDTH, viewportCap);
var fixedHeight = chrome.bodyY + chrome.diagramY + SAFE_BOTTOM_GAP +
outerHeight(header) + outerHeight(guided) + outerHeight(cards);
diff --git a/archify/examples/sequence-cache-miss-request.html b/archify/examples/sequence-cache-miss-request.html
index 46a581ea..d3e2c1e3 100644
--- a/archify/examples/sequence-cache-miss-request.html
+++ b/archify/examples/sequence-cache-miss-request.html
@@ -10985,7 +10985,7 @@
}
function eligible() {
return Boolean(
- shell && diagram && svg && ratio > 0 &&
+ shell && diagram && svg && ratio >= WIDE_RATIO &&
window.innerWidth >= MIN_DESKTOP_WIDTH &&
html.getAttribute('data-embed') !== 'true' &&
html.getAttribute('data-present') !== 'true' &&
@@ -11045,10 +11045,7 @@
}
var chrome = chromeMetrics();
var viewportCap = Math.max(0, window.innerWidth - chrome.bodyX);
- var sourceWidth = viewBox && viewBox.width > 0
- ? viewBox.width + chrome.diagramX
- : MIN_READER_WIDTH;
- var minWidth = Math.min(MIN_READER_WIDTH, sourceWidth, viewportCap);
+ var minWidth = Math.min(MIN_READER_WIDTH, viewportCap);
var maxWidth = Math.min(MAX_READER_WIDTH, viewportCap);
var fixedHeight = chrome.bodyY + chrome.diagramY + SAFE_BOTTOM_GAP +
outerHeight(header) + outerHeight(guided) + outerHeight(cards);
diff --git a/archify/examples/web-app-rendered.html b/archify/examples/web-app-rendered.html
index a20e4a67..d6d45a50 100644
--- a/archify/examples/web-app-rendered.html
+++ b/archify/examples/web-app-rendered.html
@@ -10934,7 +10934,7 @@
}
function eligible() {
return Boolean(
- shell && diagram && svg && ratio > 0 &&
+ shell && diagram && svg && ratio >= WIDE_RATIO &&
window.innerWidth >= MIN_DESKTOP_WIDTH &&
html.getAttribute('data-embed') !== 'true' &&
html.getAttribute('data-present') !== 'true' &&
@@ -10994,10 +10994,7 @@
}
var chrome = chromeMetrics();
var viewportCap = Math.max(0, window.innerWidth - chrome.bodyX);
- var sourceWidth = viewBox && viewBox.width > 0
- ? viewBox.width + chrome.diagramX
- : MIN_READER_WIDTH;
- var minWidth = Math.min(MIN_READER_WIDTH, sourceWidth, viewportCap);
+ var minWidth = Math.min(MIN_READER_WIDTH, viewportCap);
var maxWidth = Math.min(MAX_READER_WIDTH, viewportCap);
var fixedHeight = chrome.bodyY + chrome.diagramY + SAFE_BOTTOM_GAP +
outerHeight(header) + outerHeight(guided) + outerHeight(cards);
diff --git a/archify/examples/workflow-agent-tool-call-rendered.html b/archify/examples/workflow-agent-tool-call-rendered.html
index b981e450..0fb6bb9a 100644
--- a/archify/examples/workflow-agent-tool-call-rendered.html
+++ b/archify/examples/workflow-agent-tool-call-rendered.html
@@ -10976,7 +10976,7 @@
}
function eligible() {
return Boolean(
- shell && diagram && svg && ratio > 0 &&
+ shell && diagram && svg && ratio >= WIDE_RATIO &&
window.innerWidth >= MIN_DESKTOP_WIDTH &&
html.getAttribute('data-embed') !== 'true' &&
html.getAttribute('data-present') !== 'true' &&
@@ -11036,10 +11036,7 @@
}
var chrome = chromeMetrics();
var viewportCap = Math.max(0, window.innerWidth - chrome.bodyX);
- var sourceWidth = viewBox && viewBox.width > 0
- ? viewBox.width + chrome.diagramX
- : MIN_READER_WIDTH;
- var minWidth = Math.min(MIN_READER_WIDTH, sourceWidth, viewportCap);
+ var minWidth = Math.min(MIN_READER_WIDTH, viewportCap);
var maxWidth = Math.min(MAX_READER_WIDTH, viewportCap);
var fixedHeight = chrome.bodyY + chrome.diagramY + SAFE_BOTTOM_GAP +
outerHeight(header) + outerHeight(guided) + outerHeight(cards);
diff --git a/archify/renderers/workflow/workflow-compiler.mjs b/archify/renderers/workflow/workflow-compiler.mjs
index 8e4def38..b628b19c 100644
--- a/archify/renderers/workflow/workflow-compiler.mjs
+++ b/archify/renderers/workflow/workflow-compiler.mjs
@@ -610,15 +610,26 @@ function compilerFailure(contract, diagnostics, error = diagnostics.map(({ messa
};
}
-function workflowSchemaSupportedFixes(diagnostic) {
+function workflowSchemaSupportedFixes(diagnostic, {
+ workflow,
+ qualityProfile,
+ discoverFixes,
+}) {
+ if (!discoverFixes) return [];
const path = diagnostic?.subject?.path;
const limit = diagnostic?.evidence?.limit;
- if (diagnostic?.code === 'schema/minimum'
- && /^\/lanes\/\d+\/height$/.test(path || '')
- && Number.isFinite(limit)) {
- return [`set ${path} to at least ${limit}`];
- }
- return [];
+ const match = String(path || '').match(/^\/lanes\/(\d+)\/height$/);
+ if (diagnostic?.code !== 'schema/minimum' || !match || !Number.isFinite(limit)) return [];
+ const lanePosition = Number(match[1]);
+ if (!workflow?.lanes?.[lanePosition]) return [];
+ const candidate = cloneWorkflow(workflow);
+ candidate.lanes[lanePosition].height = limit;
+ const accepted = withDiagnosticRecordingSuppressed(() => compileWorkflowWithFeedback({
+ workflow: candidate,
+ qualityProfile,
+ discoverFixes: false,
+ }).ok);
+ return accepted ? [`set ${path} to at least ${limit}`] : [];
}
function workflowEdgeName(edge) {
@@ -827,7 +838,11 @@ function compileWorkflowInternal({
inputDiagnostics = Array.isArray(error?.archifyDiagnostics)
? error.archifyDiagnostics.map((diagnostic) => ({
...diagnostic,
- supportedFixes: workflowSchemaSupportedFixes(diagnostic),
+ supportedFixes: workflowSchemaSupportedFixes(diagnostic, {
+ workflow: qualityResolvedWorkflow,
+ qualityProfile: resolvedQualityProfile,
+ discoverFixes,
+ }),
}))
: [{
code: 'workflow/input-contract',
@@ -854,6 +869,7 @@ function compileWorkflowInternal({
}
const sourceIndexes = {
lanes: new Map(asArray(qualityResolvedWorkflow.lanes).map((lane, index) => [lane, index])),
+ groups: new Map(asArray(qualityResolvedWorkflow.groups).map((group, index) => [group, index])),
nodes: new Map(asArray(qualityResolvedWorkflow.nodes).map((node, index) => [node, index])),
edges: new Map(asArray(qualityResolvedWorkflow.edges).map((edge, index) => [edge, index])),
};
@@ -946,6 +962,20 @@ function groupFrameRect(group) {
};
}
+function groupLabelRect(group) {
+ const frame = groupFrameRect(group);
+ const baseline = workflow.schema_version === 2
+ ? frame.y + GROUP_LABEL_BASELINE_OFFSET
+ : frame.y + 14;
+ return {
+ x: frame.x + 10,
+ y: baseline - GROUP_LABEL_MASK_ASCENT,
+ width: textUnits(group.label) * 5.6,
+ height: GROUP_LABEL_MASK_H,
+ baseline,
+ };
+}
+
function laneGroupHeaderH(idOrIndex) {
const index = typeof idOrIndex === 'number' ? idOrIndex : laneIndex.get(idOrIndex);
return layout.groupHeaderHeights?.[index] ?? 0;
@@ -1089,15 +1119,14 @@ function workflowSceneLabelObstacles() {
if (!laneIndex.has(group.lane)
|| !Number.isInteger(group.fromCol) || !Number.isInteger(group.toCol)
|| group.fromCol < 0 || group.toCol >= layout.colXs.length || group.fromCol > group.toCol) continue;
- const frame = groupFrameRect(group);
- const labelBaseline = frame.y + GROUP_LABEL_BASELINE_OFFSET;
+ const label = groupLabelRect(group);
obstacles.push({
kind: 'group-label',
id: group.id ?? null,
- x: frame.x + 10,
- y: labelBaseline - GROUP_LABEL_MASK_ASCENT,
- width: textUnits(group.label) * 5.6,
- height: GROUP_LABEL_MASK_H,
+ x: label.x,
+ y: label.y,
+ width: label.width,
+ height: label.height,
});
}
return obstacles;
@@ -1127,7 +1156,8 @@ function nodeStep(node) {
}
function validateGroupFrameContainment() {
- for (const group of asArray(workflow.groups)) {
+ const violations = [];
+ for (const [groupPosition, group] of asArray(workflow.groups).entries()) {
const lanePosition = laneIndex.get(group.lane);
if (!Number.isInteger(lanePosition)
|| !Number.isInteger(group.fromCol) || !Number.isInteger(group.toCol)
@@ -1138,58 +1168,163 @@ function nodeStep(node) {
if (workflow.schema_version === 1 && !hasCustomLegacyHeight) continue;
const frame = groupFrameRect(group);
- const violations = [...nodes.values()].flatMap((node) => {
+ const label = groupLabelRect(group);
+ for (const node of nodes.values()) {
if (node.lane !== group.lane || node.col < group.fromCol || node.col > group.toCol
- || !isFinitePoint(node.x, node.y, node.width, node.height)) return [];
- const topPx = Math.max(0, frame.y - node.y);
+ || !isFinitePoint(node.x, node.y, node.width, node.height)) continue;
+ const labelOverlapsHorizontally = node.x < label.x + label.width
+ && label.x < node.x + node.width;
+ const labelOverlapsVertically = node.y < label.y + label.height
+ && label.y < node.y + node.height;
+ const labelClearancePx = labelOverlapsHorizontally && labelOverlapsVertically
+ ? Math.max(0, label.y + label.height - node.y)
+ : 0;
+ const leftPx = Math.max(0, frame.x - node.x);
+ const rightPx = Math.max(0, node.x + node.width - (frame.x + frame.width));
+ const topPx = Math.max(0, frame.y - node.y, labelClearancePx);
const bottomPx = Math.max(0, node.y + node.height - (frame.y + frame.height));
- const maximumPx = Math.max(topPx, bottomPx);
- return maximumPx > 0.0001 ? [{ node, topPx, bottomPx, maximumPx }] : [];
- }).sort((left, right) => right.maximumPx - left.maximumPx
- || stableCompare(left.node.id, right.node.id));
- if (!violations.length) continue;
-
- const violation = violations[0];
- const currentHeight = laneHeight(lanePosition);
- const candidateHeight = Math.max(
+ const verticalPx = Math.max(topPx, bottomPx);
+ const horizontalPx = Math.max(leftPx, rightPx);
+ const maximumPx = Math.max(verticalPx, horizontalPx);
+ if (maximumPx <= 0.0001) continue;
+ violations.push({
+ group,
+ groupPosition,
+ lane,
+ lanePosition,
+ frame,
+ label,
+ node,
+ leftPx,
+ rightPx,
+ topPx,
+ bottomPx,
+ labelClearancePx,
+ verticalPx,
+ horizontalPx,
+ maximumPx,
+ });
+ }
+ }
+ if (!violations.length) return;
+
+ violations.sort((left, right) => left.groupPosition - right.groupPosition
+ || right.maximumPx - left.maximumPx
+ || stableCompare(left.node.id, right.node.id));
+ const laneTargets = new Map();
+ for (const violation of violations) {
+ if (violation.verticalPx <= 0.0001) continue;
+ const current = laneTargets.get(violation.lanePosition) || {
+ lane: violation.lane,
+ sourceIndex: sourceIndexes.lanes.get(violation.lane) ?? violation.lanePosition,
+ overflowPx: 0,
+ };
+ current.overflowPx = Math.max(current.overflowPx, violation.verticalPx);
+ laneTargets.set(violation.lanePosition, current);
+ }
+ const serializedPixel = (value) => Math.round(value * 1e9) / 1e9;
+ for (const [lanePosition, target] of laneTargets) {
+ target.height = serializedPixel(Math.max(
104,
- Math.ceil(currentHeight + violation.maximumPx * 2),
- );
- const sourceLaneIndex = sourceIndexes.lanes.get(lane) ?? lanePosition;
- const supportedFixes = acceptsFix((document) => {
- document.lanes[lanePosition].height = candidateHeight;
- }) ? [`set /lanes/${sourceLaneIndex}/height to verified minimum ${candidateHeight}px`] : [];
- const message = `Workflow node "${violation.node.id}" extends outside group "${group.id}" in lane "${lane.id}".`;
- throwDiagnosticError(message, [{
- code: 'workflow/group-containment',
- severity: 'error',
- message,
- subject: {
- diagramType: 'workflow',
- lane: lane.id,
- group: group.id,
- node: violation.node.id,
- path: `/lanes/${sourceLaneIndex}/height`,
+ laneHeight(lanePosition) + target.overflowPx * 2,
+ ));
+ }
+
+ const groupTargets = new Map();
+ for (const violation of violations) {
+ if (violation.horizontalPx <= 0.0001 || groupTargets.has(violation.group)) continue;
+ const horizontalViolations = violations.filter((candidate) => (
+ candidate.group === violation.group && candidate.horizontalPx > 0.0001
+ ));
+ const ranges = [];
+ for (let fromCol = 0; fromCol <= violation.group.fromCol; fromCol += 1) {
+ for (let toCol = violation.group.toCol; toCol < layout.colXs.length; toCol += 1) {
+ const frame = groupFrameRect({ ...violation.group, fromCol, toCol });
+ if (!horizontalViolations.every(({ node }) => (
+ node.x >= frame.x - 0.0001
+ && node.x + node.width <= frame.x + frame.width + 0.0001
+ ))) continue;
+ ranges.push({
+ fromCol,
+ toCol,
+ expansion: violation.group.fromCol - fromCol + toCol - violation.group.toCol,
+ });
+ }
+ }
+ ranges.sort((left, right) => left.expansion - right.expansion
+ || left.toCol - left.fromCol - (right.toCol - right.fromCol)
+ || left.fromCol - right.fromCol);
+ if (!ranges.length) continue;
+ groupTargets.set(violation.group, {
+ ...ranges[0],
+ canonicalIndex: violation.groupPosition,
+ sourceIndex: sourceIndexes.groups.get(violation.group) ?? violation.groupPosition,
+ });
+ }
+
+ const repairParts = [
+ ...[...laneTargets.values()]
+ .sort((left, right) => left.sourceIndex - right.sourceIndex)
+ .map(({ sourceIndex, height }) => (
+ `set /lanes/${sourceIndex}/height to verified sufficient height ${height}px`
+ )),
+ ...[...groupTargets.values()]
+ .sort((left, right) => left.sourceIndex - right.sourceIndex)
+ .map(({ sourceIndex, fromCol, toCol }) => (
+ `set /groups/${sourceIndex} column span to ${fromCol}..${toCol}`
+ )),
+ ];
+ const accepted = repairParts.length > 0 && acceptsFix((document) => {
+ for (const [lanePosition, { height }] of laneTargets) {
+ document.lanes[lanePosition].height = height;
+ }
+ for (const { canonicalIndex, fromCol, toCol } of groupTargets.values()) {
+ document.groups[canonicalIndex].fromCol = fromCol;
+ document.groups[canonicalIndex].toCol = toCol;
+ }
+ });
+
+ const violation = violations[0];
+ const sourceLaneIndex = sourceIndexes.lanes.get(violation.lane) ?? violation.lanePosition;
+ const sourceGroupIndex = sourceIndexes.groups.get(violation.group) ?? violation.groupPosition;
+ const message = `Workflow node "${violation.node.id}" does not fit inside group "${violation.group.id}" in lane "${violation.lane.id}".`;
+ throwDiagnosticError(message, [{
+ code: 'workflow/group-containment',
+ severity: 'error',
+ message,
+ subject: {
+ diagramType: 'workflow',
+ lane: violation.lane.id,
+ group: violation.group.id,
+ node: violation.node.id,
+ path: violation.verticalPx > 0.0001
+ ? `/lanes/${sourceLaneIndex}/height`
+ : `/groups/${sourceGroupIndex}`,
+ },
+ evidence: {
+ groupRect: {
+ x: violation.frame.x,
+ y: violation.frame.y,
+ width: violation.frame.width,
+ height: violation.frame.height,
},
- evidence: {
- groupRect: {
- x: frame.x, y: frame.y, width: frame.width, height: frame.height,
- },
- nodeRect: {
- x: violation.node.x,
- y: violation.node.y,
- width: violation.node.width,
- height: violation.node.height,
- },
- overflow: {
- topPx: violation.topPx,
- bottomPx: violation.bottomPx,
- },
- authoredLaneHeightPx: authoredLaneHeight(lane),
+ nodeRect: {
+ x: violation.node.x,
+ y: violation.node.y,
+ width: violation.node.width,
+ height: violation.node.height,
},
- supportedFixes,
- }]);
- }
+ overflow: {
+ leftPx: violation.leftPx,
+ rightPx: violation.rightPx,
+ topPx: violation.topPx,
+ bottomPx: violation.bottomPx,
+ },
+ labelClearancePx: violation.labelClearancePx,
+ authoredLaneHeightPx: authoredLaneHeight(violation.lane),
+ },
+ supportedFixes: accepted ? [repairParts.join('; ')] : [],
+ }]);
}
function verifiedLegacyAlternative(edge, from, to, requiredClearance) {
@@ -2350,7 +2485,6 @@ function validateWorkflow() {
}
enforceLegacyColumnCapacity();
- validateGroupFrameContainment();
const laneIds = new Set(workflow.lanes.map((lane) => lane.id));
if (laneIds.size !== workflow.lanes.length) {
@@ -2612,6 +2746,7 @@ function validateWorkflow() {
subject: { diagramType: 'workflow' },
});
}
+ validateGroupFrameContainment();
}
function validateReadableInputsBeforeRouting() {
@@ -4176,13 +4311,7 @@ function measuredContentBounds() {
const frame = groupFrameRect(group);
includeRect(frame, `group ${group.id}`);
if (workflow.schema_version === 2) {
- const labelBaseline = frame.y + GROUP_LABEL_BASELINE_OFFSET;
- includeRect({
- x: frame.x + 10,
- y: labelBaseline - GROUP_LABEL_MASK_ASCENT,
- width: textUnits(group.label) * 5.6,
- height: GROUP_LABEL_MASK_H,
- }, `group ${group.id} label`);
+ includeRect(groupLabelRect(group), `group ${group.id} label`);
}
}
if (workflowLegendEntries.length) {
@@ -4291,13 +4420,11 @@ function renderPhase(phase) {
function renderGroup(group, index) {
const frame = groupFrameRect(group);
+ const label = groupLabelRect(group);
const cls = group.variant === 'security' ? 'c-security-group' : 'c-lane';
const textClass = variantAccent(group.variant);
- const labelY = workflow.schema_version === 2
- ? frame.y + GROUP_LABEL_BASELINE_OFFSET
- : frame.y + 14;
return ` <rect data-graph-role="structural-frame" data-composition-frame-kind="group" data-composition-frame-id="group-${index}" x="${frame.x}" y="${frame.y}" width="${frame.width}" height="${frame.height}" rx="9" class="${cls}" stroke-width="1"/>
- <text x="${frame.x + 10}" y="${labelY}" class="${textClass}" font-size="7" font-weight="600">${esc(group.label)}</text>`;
+ <text x="${label.x}" y="${label.baseline}" class="${textClass}" font-size="7" font-weight="600">${esc(group.label)}</text>`;
}
function renderNode(node) {
diff --git a/archify/test/adaptive-reader-layout.test.mjs b/archify/test/adaptive-reader-layout.test.mjs
index 6e6aefc9..6a8fa7a1 100644
--- a/archify/test/adaptive-reader-layout.test.mjs
+++ b/archify/test/adaptive-reader-layout.test.mjs
@@ -22,7 +22,7 @@ const reader = template.slice(
template.indexOf('Archify.view = (function ()'),
);
-test('desktop diagrams use one height-budgeted reader shell instead of breakpoint jumps', () => {
+test('wide desktop diagrams use one height-budgeted reader shell instead of breakpoint jumps', () => {
assert.match(template, /max-width: var\(--archify-reader-width, 1440px\)/);
assert.doesNotMatch(template, /@media \(min-width: 1680px\)[\s\S]{0,180}\.container/);
assert.doesNotMatch(template, /@media \(min-width: 1920px\)[\s\S]{0,180}\.container/);
@@ -30,7 +30,6 @@ test('desktop diagrams use one height-budgeted reader shell instead of breakpoin
assert.match(reader, /var MAX_READER_WIDTH = 1920/);
assert.match(reader, /var availableSvgHeight = Math\.max\(1, window\.innerHeight - fixedHeight\)/);
assert.match(reader, /var desiredWidth = availableSvgHeight \* ratio \+ chrome\.diagramX/);
- assert.match(reader, /var minWidth = Math\.min\(MIN_READER_WIDTH, sourceWidth, viewportCap\)/);
assert.match(reader, /html\.style\.setProperty\('--archify-reader-width', rounded \+ 'px'\)/);
});
@@ -56,8 +55,6 @@ test('desktop readability source floor is the inverse of the projected-size gate
});
test('adaptive width preserves canonical SVG geometry and yields to specialized viewer modes', () => {
- assert.match(reader, /shell && diagram && svg && ratio > 0/);
- assert.doesNotMatch(reader, /shell && diagram && svg && ratio >= WIDE_RATIO/);
assert.match(reader, /window\.innerWidth >= MIN_DESKTOP_WIDTH/);
assert.match(reader, /html\.getAttribute\('data-embed'\) !== 'true'/);
assert.match(reader, /html\.getAttribute\('data-present'\) !== 'true'/);
diff --git a/archify/test/desktop-reader-browser.test.mjs b/archify/test/desktop-reader-browser.test.mjs
index 88b9a032..867a7cb4 100644
--- a/archify/test/desktop-reader-browser.test.mjs
+++ b/archify/test/desktop-reader-browser.test.mjs
@@ -56,51 +56,3 @@ test('production showcase is readable in the real 1440 by 900 adaptive reader',
fs.rmSync(tmp, { recursive: true, force: true });
}
});
-
-test('a tall stacked workflow stays in the first desktop screen without shrinking below its SVG width', {
- skip: chromePath ? false : 'Set ARCHIFY_CHROME to run the real browser regression.',
-}, async () => {
- const tmp = fs.mkdtempSync(path.join(os.tmpdir(), 'archify-stacked-reader-'));
- const input = path.join(tmp, 'stacked.workflow.json');
- const artifact = path.join(tmp, 'stacked.html');
- try {
- fs.writeFileSync(input, JSON.stringify({
- schema_version: 2,
- diagram_type: 'workflow',
- meta: { title: 'Stacked stages', legend: { mode: 'hidden' } },
- lanes: [{ id: 'cage', label: 'One cage', height: 104 }],
- groups: [{
- id: 'group', label: 'Cage', lane: 'cage', fromCol: 1, toCol: 3, variant: 'security',
- }],
- nodes: [0, 90, 180].map((yOffset, index) => ({
- id: `stage-${index}`,
- lane: 'cage',
- col: 2,
- type: 'security',
- label: `Stage ${index + 1}`,
- yOffset,
- })),
- edges: [],
- }));
- execFileSync(process.execPath, [
- path.join(skillRoot, 'bin', 'archify.mjs'),
- 'render',
- 'workflow',
- input,
- artifact,
- ], { cwd: skillRoot, encoding: 'utf8' });
-
- const result = await runVisualCheck({ artifactPath: artifact, chromePath });
- assert.equal(result.exitCode, 0, JSON.stringify(result.receipt, null, 2));
- const desktop = result.receipt.containment.viewports.find(({ width, height }) => (
- width === DESKTOP_READABILITY_VIEWPORT.width
- && height === DESKTOP_READABILITY_VIEWPORT.height
- ));
- assert.ok(desktop, JSON.stringify(result.receipt, null, 2));
- assert.ok(desktop.diagramWidth >= 768, JSON.stringify(desktop));
- assert.ok(desktop.scrollHeight <= desktop.innerHeight, JSON.stringify(desktop));
- assert.equal(desktop.readabilityOk, true, JSON.stringify(desktop));
- } finally {
- fs.rmSync(tmp, { recursive: true, force: true });
- }
-});
diff --git a/archify/test/workflow-compiler.test.mjs b/archify/test/workflow-compiler.test.mjs
index f60c81c0..f270ddc3 100644
--- a/archify/test/workflow-compiler.test.mjs
+++ b/archify/test/workflow-compiler.test.mjs
@@ -402,7 +402,7 @@ for (const { name, offsets } of [
JSON.stringify(diagnostic.evidence, null, 2),
);
assert.deepEqual(diagnostic.supportedFixes, [
- 'set /lanes/0/height to verified minimum 458px',
+ 'set /lanes/0/height to verified sufficient height 458px',
]);
});
@@ -449,6 +449,106 @@ test('workflow lane.height is schema-validated as a 104px minimum', () => {
]);
});
+test('lane.height schema repairs are advertised only when the complete candidate recompiles', () => {
+ const workflow = stackedGroupWorkflow({ laneHeight: 103 });
+ const result = compileWorkflow({ workflow });
+
+ assert.equal(result.ok, false);
+ assert.equal(result.diagnostics[0].code, 'schema/minimum');
+ assert.deepEqual(result.diagnostics[0].supportedFixes, []);
+ const repaired = clone(workflow);
+ repaired.lanes[0].height = 104;
+ assert.equal(compileWorkflow({ workflow: repaired }).ok, false);
+});
+
+test('group containment rejects horizontal member overflow with a verified span repair', () => {
+ const workflow = stackedGroupWorkflow({ laneHeight: 200, offsets: [0] });
+ workflow.groups[0].fromCol = 2;
+ workflow.groups[0].toCol = 2;
+ workflow.nodes[0].width = 160;
+
+ const result = compileWorkflow({ workflow });
+ assert.equal(result.ok, false);
+ const [diagnostic] = result.diagnostics;
+ assert.equal(diagnostic.code, 'workflow/group-containment');
+ assert.ok(diagnostic.evidence.overflow.leftPx > 0);
+ assert.ok(diagnostic.evidence.overflow.rightPx > 0);
+ assert.deepEqual(diagnostic.supportedFixes, [
+ 'set /groups/0 column span to 1..3',
+ ]);
+});
+
+test('group containment keeps a negative exact-fit member clear of its v1 label', () => {
+ const workflow = stackedGroupWorkflow({ laneHeight: 458, offsets: [-180, -90, 0] });
+ workflow.groups[0].fromCol = 2;
+ workflow.groups[0].toCol = 2;
+
+ const result = compileWorkflow({ workflow });
+ assert.equal(result.ok, false);
+ const [diagnostic] = result.diagnostics;
+ assert.equal(diagnostic.code, 'workflow/group-containment');
+ assert.ok(diagnostic.evidence.labelClearancePx > 0);
+ assert.deepEqual(diagnostic.supportedFixes, [
+ 'set /lanes/0/height to verified sufficient height 494px',
+ ]);
+
+ workflow.lanes[0].height = 494;
+ const repaired = compileSuccessfully(workflow);
+ assert.equal(
+ rectsOverlap(nodeRect(repaired.svg, 'a'), asciiGroupLabelTextRect(repaired.svg, 'Cage')),
+ false,
+ );
+});
+
+test('group containment aggregates every group in a lane before verifying a height repair', () => {
+ const workflow = stackedGroupWorkflow({ laneHeight: 200, offsets: [55, 59] });
+ workflow.groups = [
+ { id: 'small', label: 'Small', lane: 'cage', fromCol: 1, toCol: 1 },
+ { id: 'large', label: 'Large', lane: 'cage', fromCol: 3, toCol: 3 },
+ ];
+ workflow.nodes[0].col = 1;
+ workflow.nodes[1].col = 3;
+
+ const result = compileWorkflow({ workflow });
+ assert.equal(result.ok, false);
+ assert.equal(result.diagnostics[0].subject.group, 'small');
+ assert.deepEqual(result.diagnostics[0].supportedFixes, [
+ 'set /lanes/0/height to verified sufficient height 216px',
+ ]);
+});
+
+test('group containment preserves an exact decimal repair inside explicit viewBox capacity', () => {
+ const workflow = stackedGroupWorkflow({ laneHeight: 442, offsets: [0, 90, 172.1] });
+ workflow.meta.viewBox = [720, 556.5];
+
+ const result = compileWorkflow({ workflow });
+ assert.equal(result.ok, false);
+ assert.deepEqual(result.diagnostics[0].supportedFixes, [
+ 'set /lanes/0/height to verified sufficient height 442.2px',
+ ]);
+
+ workflow.lanes[0].height = 442.2;
+ assert.equal(compileWorkflow({ workflow }).ok, true);
+ workflow.lanes[0].height = 443;
+ assert.equal(compileWorkflow({ workflow }).ok, false);
+});
+
+test('structural identity errors remain primary over derivative group containment', () => {
+ const workflow = stackedGroupWorkflow({ laneHeight: 442 });
+ workflow.groups.push({
+ ...workflow.groups[0],
+ label: 'Duplicate identity',
+ });
+
+ const result = compileWorkflow({ workflow });
+ assert.equal(result.ok, false);
+ assert.match(result.error, /Group ids must be unique/);
+ assert.equal(
+ result.diagnostics.some(({ code }) => code === 'workflow/group-containment'),
+ false,
+ );
+});
+
test('fixed-v1 reports one causal column-capacity diagnostic for issue #126', () => {
const workflow = {
schema_version: 1,
diff --git a/docs/assets/archify-live-proof.gif b/docs/assets/archify-live-proof.gif
index 054758c0..c4482fde 100644
Binary files a/docs/assets/archify-live-proof.gif and b/docs/assets/archify-live-proof.gif differ
diff --git a/docs/assets/archify-live-proof.json b/docs/assets/archify-live-proof.json
index 366ca1c6..9239205b 100644
--- a/docs/assets/archify-live-proof.json
+++ b/docs/assets/archify-live-proof.json
@@ -7,13 +7,13 @@
"fps": 10,
"frameCount": 54,
"durationSeconds": 5.4,
- "bytes": 1720151,
- "sha256": "1f1e9d1f9ab4dcdb165f63198864b46596ca0b432ddf5b01a3b69517754ca0cc",
+ "bytes": 1542193,
+ "sha256": "e0fe704e5d230c0478bc5a48b7668815b5790eed496da87ce7a5f8e5b2416c28",
"scenes": [
{
"id": "signal-flow",
"artifact": "docs/gallery/artifacts/agent-tool-call.workflow.html",
- "artifactSha256": "62cba5873a30e131d0407c6ac3761ab07c5e33bf1190acfa7ec095b02c7c9db8",
+ "artifactSha256": "e083cfe2d35701472374910e922ebdf8b30fdd3d5547d0e2cabd05094d033c66",
"view": "happy-path",
"eyebrow": "WORKFLOW · SIGNAL FLOW",
"title": "Agent Tool Call",
@@ -22,7 +22,7 @@
{
"id": "blueprint",
"artifact": "docs/gallery/artifacts/production-deployment.architecture.html",
- "artifactSha256": "4fe21218427901b98c3d5fdf3e02f46b0d661f706fe0a4d2d204f773bfcc74b1",
+ "artifactSha256": "dbf6d1b3cffa610f2e538cca3b9aa1c65eb45f580154f316d97c157d90916faa",
"view": "request-boundary",
"eyebrow": "ARCHITECTURE · BLUEPRINT",
"title": "Production Deployment",
@@ -31,7 +31,7 @@
{
"id": "classic",
"artifact": "docs/gallery/artifacts/cache-miss.sequence.html",
- "artifactSha256": "462036eee61a4dc7bc622afc22038e93738f55c2a47c04f7f50e1863d7c684d9",
+ "artifactSha256": "6bf688c8577049973ace979ac73292eda0cc8f349934c6ba4452720853ced84c",
"view": "cache-fallback",
"eyebrow": "SEQUENCE · CLASSIC",
"title": "Cache Miss Request",
diff --git a/docs/gallery.html b/docs/gallery.html
index b9972501..7c2e6aa3 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="62cba5873a30e131d0407c6ac3761ab07c5e33bf1190acfa7ec095b02c7c9db8">62cba5873a30</span></div>
+ <div class="receipt-cell"><span class="receipt-label">SHA-256</span><span class="receipt-value" title="e083cfe2d35701472374910e922ebdf8b30fdd3d5547d0e2cabd05094d033c66">e083cfe2d357</span></div>
</div>
<div class="card-actions">
<a class="card-link primary" href="gallery/artifacts/agent-tool-call.workflow.html?present=1&amp;play=1#view=happy-path" target="_blank" rel="noopener" data-en="Play named chapter ↗" data-zh="播放命名章节 ↗">Play named chapter ↗</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="4fe21218427901b98c3d5fdf3e02f46b0d661f706fe0a4d2d204f773bfcc74b1">4fe212184279</span></div>
+ <div class="receipt-cell"><span class="receipt-label">SHA-256</span><span class="receipt-value" title="dbf6d1b3cffa610f2e538cca3b9aa1c65eb45f580154f316d97c157d90916faa">dbf6d1b3cffa</span></div>
</div>
<div class="card-actions">
<a class="card-link primary" href="gallery/artifacts/production-deployment.architecture.html?present=1&amp;play=1#view=request-boundary" target="_blank" rel="noopener" data-en="Play named chapter ↗" data-zh="播放命名章节 ↗">Play named chapter ↗</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="462036eee61a4dc7bc622afc22038e93738f55c2a47c04f7f50e1863d7c684d9">462036eee61a</span></div>
+ <div class="receipt-cell"><span class="receipt-label">SHA-256</span><span class="receipt-value" title="6bf688c8577049973ace979ac73292eda0cc8f349934c6ba4452720853ced84c">6bf688c85770</span></div>
</div>
<div class="card-actions">
<a class="card-link primary" href="gallery/artifacts/cache-miss.sequence.html?present=1&amp;play=1#view=cache-fallback" target="_blank" rel="noopener" data-en="Play named chapter ↗" data-zh="播放命名章节 ↗">Play named chapter ↗</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="5097a37523223246afd0efb3006424fd28449ae78d3fe3e7095b35a8307aa694">5097a3752322</span></div>
+ <div class="receipt-cell"><span class="receipt-label">SHA-256</span><span class="receipt-value" title="358289f1aee93c3bf1075ce95372325ea415c0178f76ce62c868bdc3683cc5f4">358289f1aee9</span></div>
</div>
<div class="card-actions">
<a class="card-link primary" href="gallery/artifacts/release-delivery.workflow.html?present=1&amp;play=1#view=approval-to-production" target="_blank" rel="noopener" data-en="Play named chapter ↗" data-zh="播放命名章节 ↗">Play named chapter ↗</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="9b0a84d190e2fb328db39e7c1ac17b0a7be5e0172ff51091a4e0e37a55af9d9e">9b0a84d190e2</span></div>
+ <div class="receipt-cell"><span class="receipt-label">SHA-256</span><span class="receipt-value" title="d50feba56cbba1bf62a19b45f142bc1f964bf6831730a79d2760aadcf106542a">d50feba56cbb</span></div>
</div>
<div class="card-actions">
<a class="card-link primary" href="gallery/artifacts/incident-response.workflow.html?present=1&amp;play=1#view=mitigate-and-verify" target="_blank" rel="noopener" data-en="Play named chapter ↗" data-zh="播放命名章节 ↗">Play named chapter ↗</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="ae8cf9c105d065b89e5276d43ab9a8d695e745bf1ec374f8313339f6ab41398f">ae8cf9c105d0</span></div>
+ <div class="receipt-cell"><span class="receipt-label">SHA-256</span><span class="receipt-value" title="d66d70595448044a92d032738e2437980d2160462f974a1de8cfa82c5e148d54">d66d70595448</span></div>
</div>
<div class="card-actions">
<a class="card-link primary" href="gallery/artifacts/product-analytics.dataflow.html?present=1&amp;play=1#view=consent-boundary" target="_blank" rel="noopener" data-en="Play named chapter ↗" data-zh="播放命名章节 ↗">Play named chapter ↗</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="ea5bea440e2e548f816f9fc10462ebc2100206ebb0205b47354a54973c698082">ea5bea440e2e</span></div>
+ <div class="receipt-cell"><span class="receipt-label">SHA-256</span><span class="receipt-value" title="c4d7cb0eaecfeff4d713b8f3b36b916840d6530f08e9b698ded308effd3ff59b">c4d7cb0eaecf</span></div>
</div>
<div class="card-actions">
<a class="card-link primary" href="gallery/artifacts/async-job-roundtrip.sequence.html?present=1&amp;play=1#view=work-and-retry" target="_blank" rel="noopener" data-en="Play named chapter ↗" data-zh="播放命名章节 ↗">Play named chapter ↗</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="21161a483d44d4c15412801bdaa9e5b94703ba128a299c338278894070f9201b">21161a483d44</span></div>
+ <div class="receipt-cell"><span class="receipt-label">SHA-256</span><span class="receipt-value" title="cab32bd06250fdc18f7d25e7562407af9b2e2a37f9ca65c6a852716f7faf1892">cab32bd06250</span></div>
</div>
<div class="card-actions">
<a class="card-link primary" href="gallery/artifacts/event-stream.dataflow.html?present=1&amp;play=1#view=order-transit" target="_blank" rel="noopener" data-en="Play named chapter ↗" data-zh="播放命名章节 ↗">Play named chapter ↗</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="f93704ccc7942c3c28f22e97b1851c0013b2067f487f08720660107fa9a5e7d9">f93704ccc794</span></div>
+ <div class="receipt-cell"><span class="receipt-label">SHA-256</span><span class="receipt-value" title="d15306112803fe6ac1050c6fd5d943545a5bc6a72a0407cd0751d0d8794f6429">d15306112803</span></div>
</div>
<div class="card-actions">
<a class="card-link primary" href="gallery/artifacts/agent-run.lifecycle.html?present=1&amp;play=1#view=main-lifecycle" target="_blank" rel="noopener" data-en="Play named chapter ↗" data-zh="播放命名章节 ↗">Play named chapter ↗</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 · 6E</span></div>
- <div class="receipt-cell"><span class="receipt-label">SHA-256</span><span class="receipt-value" title="10ec812d3cefcfbd1785220ac100760db19fbcbb17e251c18df4504d9ce7eae9">10ec812d3cef</span></div>
+ <div class="receipt-cell"><span class="receipt-label">SHA-256</span><span class="receipt-value" title="2b41af0f84ff5cdbe21f0d672d1d9825eab246b3e7fbaa0237c49042bf28547d">2b41af0f84ff</span></div>
</div>
<div class="card-actions">
<a class="card-link primary" href="gallery/artifacts/deployment-release.lifecycle.html?present=1&amp;play=1#view=rollback-outcomes" target="_blank" rel="noopener" data-en="Play named chapter ↗" data-zh="播放命名章节 ↗">Play named chapter ↗</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="3c819aed6f26477e51b4d2d453d4d8f82c7c430b3bed9289c0937914ec440242">3c819aed6f26</span></div>
+ <div class="receipt-cell"><span class="receipt-label">SHA-256</span><span class="receipt-value" title="26784b847623e79727e44eb5fabfbedc2c47289bf877703eee78787a3eb5bee5">26784b847623</span></div>
</div>
<div class="card-actions">
<a class="card-link primary" href="gallery/artifacts/web-app.architecture.html?present=1&amp;play=1#view=request-path" target="_blank" rel="noopener" data-en="Play named chapter ↗" data-zh="播放命名章节 ↗">Play named chapter ↗</a>
@@ -675,8 +675,8 @@ receipt 99 checks / 11 artifacts / deterministic hashes</pre>
"engineeringProfile": null,
"nodeCount": 12,
"edgeCount": 11,
- "artifactBytes": 723170,
- "artifactSha256": "62cba5873a30e131d0407c6ac3761ab07c5e33bf1190acfa7ec095b02c7c9db8",
+ "artifactBytes": 723038,
+ "artifactSha256": "e083cfe2d35701472374910e922ebdf8b30fdd3d5547d0e2cabd05094d033c66",
"sourceBytes": 5687,
"sourceSha256": "4d3f6c23de2ca7d306e05d0041a9506833bb5a164a2bddc2d1984cf4da3ee90c",
"checks": [
@@ -775,8 +775,8 @@ receipt 99 checks / 11 artifacts / deterministic hashes</pre>
"engineeringProfile": "deployment-ownership",
"nodeCount": 12,
"edgeCount": 12,
- "artifactBytes": 725004,
- "artifactSha256": "4fe21218427901b98c3d5fdf3e02f46b0d661f706fe0a4d2d204f773bfcc74b1",
+ "artifactBytes": 724872,
+ "artifactSha256": "dbf6d1b3cffa610f2e538cca3b9aa1c65eb45f580154f316d97c157d90916faa",
"sourceBytes": 5476,
"sourceSha256": "ec484aa8576664fdb207b543fa49486b23273faccb7a5071e1a0becfb48c22eb",
"checks": [
@@ -875,8 +875,8 @@ receipt 99 checks / 11 artifacts / deterministic hashes</pre>
"engineeringProfile": null,
"nodeCount": 7,
"edgeCount": 12,
- "artifactBytes": 716974,
- "artifactSha256": "462036eee61a4dc7bc622afc22038e93738f55c2a47c04f7f50e1863d7c684d9",
+ "artifactBytes": 716842,
+ "artifactSha256": "6bf688c8577049973ace979ac73292eda0cc8f349934c6ba4452720853ced84c",
"sourceBytes": 4345,
"sourceSha256": "4bbaa6ca3cd4036002fd5d0f3a332eb922cec69d09bac3d7925f95beb4308389",
"checks": [
@@ -975,8 +975,8 @@ receipt 99 checks / 11 artifacts / deterministic hashes</pre>
"engineeringProfile": null,
"nodeCount": 10,
"edgeCount": 10,
- "artifactBytes": 719370,
- "artifactSha256": "5097a37523223246afd0efb3006424fd28449ae78d3fe3e7095b35a8307aa694",
+ "artifactBytes": 719238,
+ "artifactSha256": "358289f1aee93c3bf1075ce95372325ea415c0178f76ce62c868bdc3683cc5f4",
"sourceBytes": 5164,
"sourceSha256": "e5c880417eac1623923c3dd5461e0c78acd762e1621a28bd53fc14a84cad6a91",
"checks": [
@@ -1075,8 +1075,8 @@ receipt 99 checks / 11 artifacts / deterministic hashes</pre>
"engineeringProfile": null,
"nodeCount": 11,
"edgeCount": 10,
- "artifactBytes": 716699,
- "artifactSha256": "9b0a84d190e2fb328db39e7c1ac17b0a7be5e0172ff51091a4e0e37a55af9d9e",
+ "artifactBytes": 716567,
+ "artifactSha256": "d50feba56cbba1bf62a19b45f142bc1f964bf6831730a79d2760aadcf106542a",
"sourceBytes": 5375,
"sourceSha256": "5c760c82eee545dfb7da38a4e628059d7891af4cfbfc13c8a7009ea64f69aa1b",
"checks": [
@@ -1175,8 +1175,8 @@ receipt 99 checks / 11 artifacts / deterministic hashes</pre>
"engineeringProfile": null,
"nodeCount": 10,
"edgeCount": 10,
- "artifactBytes": 720628,
- "artifactSha256": "ae8cf9c105d065b89e5276d43ab9a8d695e745bf1ec374f8313339f6ab41398f",
+ "artifactBytes": 720496,
+ "artifactSha256": "d66d70595448044a92d032738e2437980d2160462f974a1de8cfa82c5e148d54",
"sourceBytes": 5627,
"sourceSha256": "6fa38a7ccedf96da592d60b392783b846188eaa3ec9136c6dc06ca020e43a110",
"checks": [
@@ -1275,8 +1275,8 @@ receipt 99 checks / 11 artifacts / deterministic hashes</pre>
"engineeringProfile": null,
"nodeCount": 7,
"edgeCount": 14,
- "artifactBytes": 717384,
- "artifactSha256": "ea5bea440e2e548f816f9fc10462ebc2100206ebb0205b47354a54973c698082",
+ "artifactBytes": 717252,
+ "artifactSha256": "c4d7cb0eaecfeff4d713b8f3b36b916840d6530f08e9b698ded308effd3ff59b",
"sourceBytes": 4370,
"sourceSha256": "545f20920c89b69c2bb1f15508d5543fddbeb15cffba61e102206e04bd5a5cd9",
"checks": [
@@ -1375,8 +1375,8 @@ receipt 99 checks / 11 artifacts / deterministic hashes</pre>
"engineeringProfile": null,
"nodeCount": 12,
"edgeCount": 12,
- "artifactBytes": 724591,
- "artifactSha256": "21161a483d44d4c15412801bdaa9e5b94703ba128a299c338278894070f9201b",
+ "artifactBytes": 724459,
+ "artifactSha256": "cab32bd06250fdc18f7d25e7562407af9b2e2a37f9ca65c6a852716f7faf1892",
"sourceBytes": 5433,
"sourceSha256": "a92d6597ddbe164f395da32a7d4b33cfae08edd7d9600a6fb45a2058e5bbb43e",
"checks": [
@@ -1475,8 +1475,8 @@ receipt 99 checks / 11 artifacts / deterministic hashes</pre>
"engineeringProfile": null,
"nodeCount": 10,
"edgeCount": 6,
- "artifactBytes": 714263,
- "artifactSha256": "f93704ccc7942c3c28f22e97b1851c0013b2067f487f08720660107fa9a5e7d9",
+ "artifactBytes": 714131,
+ "artifactSha256": "d15306112803fe6ac1050c6fd5d943545a5bc6a72a0407cd0751d0d8794f6429",
"sourceBytes": 4417,
"sourceSha256": "af939579dcafc8b4c49f09594591577994398aee57a57369d4c791dfc0d85a42",
"checks": [
@@ -1575,8 +1575,8 @@ receipt 99 checks / 11 artifacts / deterministic hashes</pre>
"engineeringProfile": null,
"nodeCount": 11,
"edgeCount": 6,
- "artifactBytes": 715255,
- "artifactSha256": "10ec812d3cefcfbd1785220ac100760db19fbcbb17e251c18df4504d9ce7eae9",
+ "artifactBytes": 715123,
+ "artifactSha256": "2b41af0f84ff5cdbe21f0d672d1d9825eab246b3e7fbaa0237c49042bf28547d",
"sourceBytes": 4274,
"sourceSha256": "735c2c5819266e6ea2a71775b6eefce98b53030ce90cb721dc8e1d022ce5be71",
"checks": [
@@ -1675,8 +1675,8 @@ receipt 99 checks / 11 artifacts / deterministic hashes</pre>
"engineeringProfile": null,
"nodeCount": 10,
"edgeCount": 9,
- "artifactBytes": 715348,
- "artifactSha256": "3c819aed6f26477e51b4d2d453d4d8f82c7c430b3bed9289c0937914ec440242",
+ "artifactBytes": 715216,
+ "artifactSha256": "26784b847623e79727e44eb5fabfbedc2c47289bf877703eee78787a3eb5bee5",
"sourceBytes": 3793,
"sourceSha256": "483350f5297df682aba4e4a0fa491307ce3d3abd725ae4df07fab177490752cf",
"checks": [
diff --git a/docs/gallery/artifacts/agent-run.lifecycle.html b/docs/gallery/artifacts/agent-run.lifecycle.html
index 60e55be7..141719b5 100644
--- a/docs/gallery/artifacts/agent-run.lifecycle.html
+++ b/docs/gallery/artifacts/agent-run.lifecycle.html
@@ -10919,7 +10919,7 @@
}
function eligible() {
return Boolean(
- shell && diagram && svg && ratio > 0 &&
+ shell && diagram && svg && ratio >= WIDE_RATIO &&
window.innerWidth >= MIN_DESKTOP_WIDTH &&
html.getAttribute('data-embed') !== 'true' &&
html.getAttribute('data-present') !== 'true' &&
@@ -10979,10 +10979,7 @@
}
var chrome = chromeMetrics();
var viewportCap = Math.max(0, window.innerWidth - chrome.bodyX);
- var sourceWidth = viewBox && viewBox.width > 0
- ? viewBox.width + chrome.diagramX
- : MIN_READER_WIDTH;
- var minWidth = Math.min(MIN_READER_WIDTH, sourceWidth, viewportCap);
+ var minWidth = Math.min(MIN_READER_WIDTH, viewportCap);
var maxWidth = Math.min(MAX_READER_WIDTH, viewportCap);
var fixedHeight = chrome.bodyY + chrome.diagramY + SAFE_BOTTOM_GAP +
outerHeight(header) + outerHeight(guided) + outerHeight(cards);
diff --git a/docs/gallery/artifacts/agent-tool-call.workflow.html b/docs/gallery/artifacts/agent-tool-call.workflow.html
index b981e450..0fb6bb9a 100644
--- a/docs/gallery/artifacts/agent-tool-call.workflow.html
+++ b/docs/gallery/artifacts/agent-tool-call.workflow.html
@@ -10976,7 +10976,7 @@
}
function eligible() {
return Boolean(
- shell && diagram && svg && ratio > 0 &&
+ shell && diagram && svg && ratio >= WIDE_RATIO &&
window.innerWidth >= MIN_DESKTOP_WIDTH &&
html.getAttribute('data-embed') !== 'true' &&
html.getAttribute('data-present') !== 'true' &&
@@ -11036,10 +11036,7 @@
}
var chrome = chromeMetrics();
var viewportCap = Math.max(0, window.innerWidth - chrome.bodyX);
- var sourceWidth = viewBox && viewBox.width > 0
- ? viewBox.width + chrome.diagramX
- : MIN_READER_WIDTH;
- var minWidth = Math.min(MIN_READER_WIDTH, sourceWidth, viewportCap);
+ var minWidth = Math.min(MIN_READER_WIDTH, viewportCap);
var maxWidth = Math.min(MAX_READER_WIDTH, viewportCap);
var fixedHeight = chrome.bodyY + chrome.diagramY + SAFE_BOTTOM_GAP +
outerHeight(header) + outerHeight(guided) + outerHeight(cards);
diff --git a/docs/gallery/artifacts/async-job-roundtrip.sequence.html b/docs/gallery/artifacts/async-job-roundtrip.sequence.html
index cb34a704..6fe7fb58 100644
--- a/docs/gallery/artifacts/async-job-roundtrip.sequence.html
+++ b/docs/gallery/artifacts/async-job-roundtrip.sequence.html
@@ -10997,7 +10997,7 @@
}
function eligible() {
return Boolean(
- shell && diagram && svg && ratio > 0 &&
+ shell && diagram && svg && ratio >= WIDE_RATIO &&
window.innerWidth >= MIN_DESKTOP_WIDTH &&
html.getAttribute('data-embed') !== 'true' &&
html.getAttribute('data-present') !== 'true' &&
@@ -11057,10 +11057,7 @@
}
var chrome = chromeMetrics();
var viewportCap = Math.max(0, window.innerWidth - chrome.bodyX);
- var sourceWidth = viewBox && viewBox.width > 0
- ? viewBox.width + chrome.diagramX
- : MIN_READER_WIDTH;
- var minWidth = Math.min(MIN_READER_WIDTH, sourceWidth, viewportCap);
+ var minWidth = Math.min(MIN_READER_WIDTH, viewportCap);
var maxWidth = Math.min(MAX_READER_WIDTH, viewportCap);
var fixedHeight = chrome.bodyY + chrome.diagramY + SAFE_BOTTOM_GAP +
outerHeight(header) + outerHeight(guided) + outerHeight(cards);
diff --git a/docs/gallery/artifacts/cache-miss.sequence.html b/docs/gallery/artifacts/cache-miss.sequence.html
index 46a581ea..d3e2c1e3 100644
--- a/docs/gallery/artifacts/cache-miss.sequence.html
+++ b/docs/gallery/artifacts/cache-miss.sequence.html
@@ -10985,7 +10985,7 @@
}
function eligible() {
return Boolean(
- shell && diagram && svg && ratio > 0 &&
+ shell && diagram && svg && ratio >= WIDE_RATIO &&
window.innerWidth >= MIN_DESKTOP_WIDTH &&
html.getAttribute('data-embed') !== 'true' &&
html.getAttribute('data-present') !== 'true' &&
@@ -11045,10 +11045,7 @@
}
var chrome = chromeMetrics();
var viewportCap = Math.max(0, window.innerWidth - chrome.bodyX);
- var sourceWidth = viewBox && viewBox.width > 0
- ? viewBox.width + chrome.diagramX
- : MIN_READER_WIDTH;
- var minWidth = Math.min(MIN_READER_WIDTH, sourceWidth, viewportCap);
+ var minWidth = Math.min(MIN_READER_WIDTH, viewportCap);
var maxWidth = Math.min(MAX_READER_WIDTH, viewportCap);
var fixedHeight = chrome.bodyY + chrome.diagramY + SAFE_BOTTOM_GAP +
outerHeight(header) + outerHeight(guided) + outerHeight(cards);
diff --git a/docs/gallery/artifacts/deployment-release.lifecycle.html b/docs/gallery/artifacts/deployment-release.lifecycle.html
index 33b00f33..c9ce3189 100644
--- a/docs/gallery/artifacts/deployment-release.lifecycle.html
+++ b/docs/gallery/artifacts/deployment-release.lifecycle.html
@@ -10931,7 +10931,7 @@
}
function eligible() {
return Boolean(
- shell && diagram && svg && ratio > 0 &&
+ shell && diagram && svg && ratio >= WIDE_RATIO &&
window.innerWidth >= MIN_DESKTOP_WIDTH &&
html.getAttribute('data-embed') !== 'true' &&
html.getAttribute('data-present') !== 'true' &&
@@ -10991,10 +10991,7 @@
}
var chrome = chromeMetrics();
var viewportCap = Math.max(0, window.innerWidth - chrome.bodyX);
- var sourceWidth = viewBox && viewBox.width > 0
- ? viewBox.width + chrome.diagramX
- : MIN_READER_WIDTH;
- var minWidth = Math.min(MIN_READER_WIDTH, sourceWidth, viewportCap);
+ var minWidth = Math.min(MIN_READER_WIDTH, viewportCap);
var maxWidth = Math.min(MAX_READER_WIDTH, viewportCap);
var fixedHeight = chrome.bodyY + chrome.diagramY + SAFE_BOTTOM_GAP +
outerHeight(header) + outerHeight(guided) + outerHeight(cards);
diff --git a/docs/gallery/artifacts/event-stream.dataflow.html b/docs/gallery/artifacts/event-stream.dataflow.html
index 849b007d..b5ef2a6e 100644
--- a/docs/gallery/artifacts/event-stream.dataflow.html
+++ b/docs/gallery/artifacts/event-stream.dataflow.html
@@ -11009,7 +11009,7 @@
}
function eligible() {
return Boolean(
- shell && diagram && svg && ratio > 0 &&
+ shell && diagram && svg && ratio >= WIDE_RATIO &&
window.innerWidth >= MIN_DESKTOP_WIDTH &&
html.getAttribute('data-embed') !== 'true' &&
html.getAttribute('data-present') !== 'true' &&
@@ -11069,10 +11069,7 @@
}
var chrome = chromeMetrics();
var viewportCap = Math.max(0, window.innerWidth - chrome.bodyX);
- var sourceWidth = viewBox && viewBox.width > 0
- ? viewBox.width + chrome.diagramX
- : MIN_READER_WIDTH;
- var minWidth = Math.min(MIN_READER_WIDTH, sourceWidth, viewportCap);
+ var minWidth = Math.min(MIN_READER_WIDTH, viewportCap);
var maxWidth = Math.min(MAX_READER_WIDTH, viewportCap);
var fixedHeight = chrome.bodyY + chrome.diagramY + SAFE_BOTTOM_GAP +
outerHeight(header) + outerHeight(guided) + outerHeight(cards);
diff --git a/docs/gallery/artifacts/incident-response.workflow.html b/docs/gallery/artifacts/incident-response.workflow.html
index abd7e157..0215d14a 100644
--- a/docs/gallery/artifacts/incident-response.workflow.html
+++ b/docs/gallery/artifacts/incident-response.workflow.html
@@ -10936,7 +10936,7 @@
}
function eligible() {
return Boolean(
- shell && diagram && svg && ratio > 0 &&
+ shell && diagram && svg && ratio >= WIDE_RATIO &&
window.innerWidth >= MIN_DESKTOP_WIDTH &&
html.getAttribute('data-embed') !== 'true' &&
html.getAttribute('data-present') !== 'true' &&
@@ -10996,10 +10996,7 @@
}
var chrome = chromeMetrics();
var viewportCap = Math.max(0, window.innerWidth - chrome.bodyX);
- var sourceWidth = viewBox && viewBox.width > 0
- ? viewBox.width + chrome.diagramX
- : MIN_READER_WIDTH;
- var minWidth = Math.min(MIN_READER_WIDTH, sourceWidth, viewportCap);
+ var minWidth = Math.min(MIN_READER_WIDTH, viewportCap);
var maxWidth = Math.min(MAX_READER_WIDTH, viewportCap);
var fixedHeight = chrome.bodyY + chrome.diagramY + SAFE_BOTTOM_GAP +
outerHeight(header) + outerHeight(guided) + outerHeight(cards);
diff --git a/docs/gallery/artifacts/product-analytics.dataflow.html b/docs/gallery/artifacts/product-analytics.dataflow.html
index 4907b39b..e56dd1bb 100644
--- a/docs/gallery/artifacts/product-analytics.dataflow.html
+++ b/docs/gallery/artifacts/product-analytics.dataflow.html
@@ -10970,7 +10970,7 @@
}
function eligible() {
return Boolean(
- shell && diagram && svg && ratio > 0 &&
+ shell && diagram && svg && ratio >= WIDE_RATIO &&
window.innerWidth >= MIN_DESKTOP_WIDTH &&
html.getAttribute('data-embed') !== 'true' &&
html.getAttribute('data-present') !== 'true' &&
@@ -11030,10 +11030,7 @@
}
var chrome = chromeMetrics();
var viewportCap = Math.max(0, window.innerWidth - chrome.bodyX);
- var sourceWidth = viewBox && viewBox.width > 0
- ? viewBox.width + chrome.diagramX
- : MIN_READER_WIDTH;
- var minWidth = Math.min(MIN_READER_WIDTH, sourceWidth, viewportCap);
+ var minWidth = Math.min(MIN_READER_WIDTH, viewportCap);
var maxWidth = Math.min(MAX_READER_WIDTH, viewportCap);
var fixedHeight = chrome.bodyY + chrome.diagramY + SAFE_BOTTOM_GAP +
outerHeight(header) + outerHeight(guided) + outerHeight(cards);
diff --git a/docs/gallery/artifacts/production-deployment.architecture.html b/docs/gallery/artifacts/production-deployment.architecture.html
index f4245219..1401b6d6 100644
--- a/docs/gallery/artifacts/production-deployment.architecture.html
+++ b/docs/gallery/artifacts/production-deployment.architecture.html
@@ -11001,7 +11001,7 @@
}
function eligible() {
return Boolean(
- shell && diagram && svg && ratio > 0 &&
+ shell && diagram && svg && ratio >= WIDE_RATIO &&
window.innerWidth >= MIN_DESKTOP_WIDTH &&
html.getAttribute('data-embed') !== 'true' &&
html.getAttribute('data-present') !== 'true' &&
@@ -11061,10 +11061,7 @@
}
var chrome = chromeMetrics();
var viewportCap = Math.max(0, window.innerWidth - chrome.bodyX);
- var sourceWidth = viewBox && viewBox.width > 0
- ? viewBox.width + chrome.diagramX
- : MIN_READER_WIDTH;
- var minWidth = Math.min(MIN_READER_WIDTH, sourceWidth, viewportCap);
+ var minWidth = Math.min(MIN_READER_WIDTH, viewportCap);
var maxWidth = Math.min(MAX_READER_WIDTH, viewportCap);
var fixedHeight = chrome.bodyY + chrome.diagramY + SAFE_BOTTOM_GAP +
outerHeight(header) + outerHeight(guided) + outerHeight(cards);
diff --git a/docs/gallery/artifacts/release-delivery.workflow.html b/docs/gallery/artifacts/release-delivery.workflow.html
index 7c594cb9..83c0fbf7 100644
--- a/docs/gallery/artifacts/release-delivery.workflow.html
+++ b/docs/gallery/artifacts/release-delivery.workflow.html
@@ -10962,7 +10962,7 @@
}
function eligible() {
return Boolean(
- shell && diagram && svg && ratio > 0 &&
+ shell && diagram && svg && ratio >= WIDE_RATIO &&
window.innerWidth >= MIN_DESKTOP_WIDTH &&
html.getAttribute('data-embed') !== 'true' &&
html.getAttribute('data-present') !== 'true' &&
@@ -11022,10 +11022,7 @@
}
var chrome = chromeMetrics();
var viewportCap = Math.max(0, window.innerWidth - chrome.bodyX);
- var sourceWidth = viewBox && viewBox.width > 0
- ? viewBox.width + chrome.diagramX
- : MIN_READER_WIDTH;
- var minWidth = Math.min(MIN_READER_WIDTH, sourceWidth, viewportCap);
+ var minWidth = Math.min(MIN_READER_WIDTH, viewportCap);
var maxWidth = Math.min(MAX_READER_WIDTH, viewportCap);
var fixedHeight = chrome.bodyY + chrome.diagramY + SAFE_BOTTOM_GAP +
outerHeight(header) + outerHeight(guided) + outerHeight(cards);
diff --git a/docs/gallery/artifacts/web-app.architecture.html b/docs/gallery/artifacts/web-app.architecture.html
index a20e4a67..d6d45a50 100644
--- a/docs/gallery/artifacts/web-app.architecture.html
+++ b/docs/gallery/artifacts/web-app.architecture.html
@@ -10934,7 +10934,7 @@
}
function eligible() {
return Boolean(
- shell && diagram && svg && ratio > 0 &&
+ shell && diagram && svg && ratio >= WIDE_RATIO &&
window.innerWidth >= MIN_DESKTOP_WIDTH &&
html.getAttribute('data-embed') !== 'true' &&
html.getAttribute('data-present') !== 'true' &&
@@ -10994,10 +10994,7 @@
}
var chrome = chromeMetrics();
var viewportCap = Math.max(0, window.innerWidth - chrome.bodyX);
- var sourceWidth = viewBox && viewBox.width > 0
- ? viewBox.width + chrome.diagramX
- : MIN_READER_WIDTH;
- var minWidth = Math.min(MIN_READER_WIDTH, sourceWidth, viewportCap);
+ var minWidth = Math.min(MIN_READER_WIDTH, viewportCap);
var maxWidth = Math.min(MAX_READER_WIDTH, viewportCap);
var fixedHeight = chrome.bodyY + chrome.diagramY + SAFE_BOTTOM_GAP +
outerHeight(header) + outerHeight(guided) + outerHeight(cards);
diff --git a/docs/gallery/manifest.json b/docs/gallery/manifest.json
index 834381fe..d75d682f 100644
--- a/docs/gallery/manifest.json
+++ b/docs/gallery/manifest.json
@@ -27,8 +27,8 @@
"engineeringProfile": null,
"nodeCount": 12,
"edgeCount": 11,
- "artifactBytes": 723170,
- "artifactSha256": "62cba5873a30e131d0407c6ac3761ab07c5e33bf1190acfa7ec095b02c7c9db8",
+ "artifactBytes": 723038,
+ "artifactSha256": "e083cfe2d35701472374910e922ebdf8b30fdd3d5547d0e2cabd05094d033c66",
"sourceBytes": 5687,
"sourceSha256": "4d3f6c23de2ca7d306e05d0041a9506833bb5a164a2bddc2d1984cf4da3ee90c",
"checks": [
@@ -127,8 +127,8 @@
"engineeringProfile": "deployment-ownership",
"nodeCount": 12,
"edgeCount": 12,
- "artifactBytes": 725004,
- "artifactSha256": "4fe21218427901b98c3d5fdf3e02f46b0d661f706fe0a4d2d204f773bfcc74b1",
+ "artifactBytes": 724872,
+ "artifactSha256": "dbf6d1b3cffa610f2e538cca3b9aa1c65eb45f580154f316d97c157d90916faa",
"sourceBytes": 5476,
"sourceSha256": "ec484aa8576664fdb207b543fa49486b23273faccb7a5071e1a0becfb48c22eb",
"checks": [
@@ -227,8 +227,8 @@
"engineeringProfile": null,
"nodeCount": 7,
"edgeCount": 12,
- "artifactBytes": 716974,
- "artifactSha256": "462036eee61a4dc7bc622afc22038e93738f55c2a47c04f7f50e1863d7c684d9",
+ "artifactBytes": 716842,
+ "artifactSha256": "6bf688c8577049973ace979ac73292eda0cc8f349934c6ba4452720853ced84c",
"sourceBytes": 4345,
"sourceSha256": "4bbaa6ca3cd4036002fd5d0f3a332eb922cec69d09bac3d7925f95beb4308389",
"checks": [
@@ -327,8 +327,8 @@
"engineeringProfile": null,
"nodeCount": 10,
"edgeCount": 10,
- "artifactBytes": 719370,
- "artifactSha256": "5097a37523223246afd0efb3006424fd28449ae78d3fe3e7095b35a8307aa694",
+ "artifactBytes": 719238,
+ "artifactSha256": "358289f1aee93c3bf1075ce95372325ea415c0178f76ce62c868bdc3683cc5f4",
"sourceBytes": 5164,
"sourceSha256": "e5c880417eac1623923c3dd5461e0c78acd762e1621a28bd53fc14a84cad6a91",
"checks": [
@@ -427,8 +427,8 @@
"engineeringProfile": null,
"nodeCount": 11,
"edgeCount": 10,
- "artifactBytes": 716699,
- "artifactSha256": "9b0a84d190e2fb328db39e7c1ac17b0a7be5e0172ff51091a4e0e37a55af9d9e",
+ "artifactBytes": 716567,
+ "artifactSha256": "d50feba56cbba1bf62a19b45f142bc1f964bf6831730a79d2760aadcf106542a",
"sourceBytes": 5375,
"sourceSha256": "5c760c82eee545dfb7da38a4e628059d7891af4cfbfc13c8a7009ea64f69aa1b",
"checks": [
@@ -527,8 +527,8 @@
"engineeringProfile": null,
"nodeCount": 10,
"edgeCount": 10,
- "artifactBytes": 720628,
- "artifactSha256": "ae8cf9c105d065b89e5276d43ab9a8d695e745bf1ec374f8313339f6ab41398f",
+ "artifactBytes": 720496,
+ "artifactSha256": "d66d70595448044a92d032738e2437980d2160462f974a1de8cfa82c5e148d54",
"sourceBytes": 5627,
"sourceSha256": "6fa38a7ccedf96da592d60b392783b846188eaa3ec9136c6dc06ca020e43a110",
"checks": [
@@ -627,8 +627,8 @@
"engineeringProfile": null,
"nodeCount": 7,
"edgeCount": 14,
- "artifactBytes": 717384,
- "artifactSha256": "ea5bea440e2e548f816f9fc10462ebc2100206ebb0205b47354a54973c698082",
+ "artifactBytes": 717252,
+ "artifactSha256": "c4d7cb0eaecfeff4d713b8f3b36b916840d6530f08e9b698ded308effd3ff59b",
"sourceBytes": 4370,
"sourceSha256": "545f20920c89b69c2bb1f15508d5543fddbeb15cffba61e102206e04bd5a5cd9",
"checks": [
@@ -727,8 +727,8 @@
"engineeringProfile": null,
"nodeCount": 12,
"edgeCount": 12,
- "artifactBytes": 724591,
- "artifactSha256": "21161a483d44d4c15412801bdaa9e5b94703ba128a299c338278894070f9201b",
+ "artifactBytes": 724459,
+ "artifactSha256": "cab32bd06250fdc18f7d25e7562407af9b2e2a37f9ca65c6a852716f7faf1892",
"sourceBytes": 5433,
"sourceSha256": "a92d6597ddbe164f395da32a7d4b33cfae08edd7d9600a6fb45a2058e5bbb43e",
"checks": [
@@ -827,8 +827,8 @@
"engineeringProfile": null,
"nodeCount": 10,
"edgeCount": 6,
- "artifactBytes": 714263,
- "artifactSha256": "f93704ccc7942c3c28f22e97b1851c0013b2067f487f08720660107fa9a5e7d9",
+ "artifactBytes": 714131,
+ "artifactSha256": "d15306112803fe6ac1050c6fd5d943545a5bc6a72a0407cd0751d0d8794f6429",
"sourceBytes": 4417,
"sourceSha256": "af939579dcafc8b4c49f09594591577994398aee57a57369d4c791dfc0d85a42",
"checks": [
@@ -927,8 +927,8 @@
"engineeringProfile": null,
"nodeCount": 11,
"edgeCount": 6,
- "artifactBytes": 715255,
- "artifactSha256": "10ec812d3cefcfbd1785220ac100760db19fbcbb17e251c18df4504d9ce7eae9",
+ "artifactBytes": 715123,
+ "artifactSha256": "2b41af0f84ff5cdbe21f0d672d1d9825eab246b3e7fbaa0237c49042bf28547d",
"sourceBytes": 4274,
"sourceSha256": "735c2c5819266e6ea2a71775b6eefce98b53030ce90cb721dc8e1d022ce5be71",
"checks": [
@@ -1027,8 +1027,8 @@
"engineeringProfile": null,
"nodeCount": 10,
"edgeCount": 9,
- "artifactBytes": 715348,
- "artifactSha256": "3c819aed6f26477e51b4d2d453d4d8f82c7c430b3bed9289c0937914ec440242",
+ "artifactBytes": 715216,
+ "artifactSha256": "26784b847623e79727e44eb5fabfbedc2c47289bf877703eee78787a3eb5bee5",
"sourceBytes": 3793,
"sourceSha256": "483350f5297df682aba4e4a0fa491307ce3d3abd725ae4df07fab177490752cf",
"checks": [
diff --git a/examples/checkout-platform-delta.html b/examples/checkout-platform-delta.html
index 45824907..7e28ead9 100644
--- a/examples/checkout-platform-delta.html
+++ b/examples/checkout-platform-delta.html
@@ -15693,7 +15693,7 @@ html[data-theme="dark"] body{background:#071019!important;background-image:none!
}
function eligible() {
return Boolean(
- shell &amp;&amp; diagram &amp;&amp; svg &amp;&amp; ratio &gt; 0 &amp;&amp;
+ shell &amp;&amp; diagram &amp;&amp; svg &amp;&amp; ratio &gt;= WIDE_RATIO &amp;&amp;
window.innerWidth &gt;= MIN_DESKTOP_WIDTH &amp;&amp;
html.getAttribute(&#39;data-embed&#39;) !== &#39;true&#39; &amp;&amp;
html.getAttribute(&#39;data-present&#39;) !== &#39;true&#39; &amp;&amp;
@@ -15753,10 +15753,7 @@ html[data-theme="dark"] body{background:#071019!important;background-image:none!
}
var chrome = chromeMetrics();
var viewportCap = Math.max(0, window.innerWidth - chrome.bodyX);
- var sourceWidth = viewBox &amp;&amp; viewBox.width &gt; 0
- ? viewBox.width + chrome.diagramX
- : MIN_READER_WIDTH;
- var minWidth = Math.min(MIN_READER_WIDTH, sourceWidth, viewportCap);
+ var minWidth = Math.min(MIN_READER_WIDTH, viewportCap);
var maxWidth = Math.min(MAX_READER_WIDTH, viewportCap);
var fixedHeight = chrome.bodyY + chrome.diagramY + SAFE_BOTTOM_GAP +
outerHeight(header) + outerHeight(guided) + outerHeight(cards);
@@ -30776,7 +30773,7 @@ html[data-theme="dark"] body{background:#071019!important;background-image:none!
}
function eligible() {
return Boolean(
- shell &amp;&amp; diagram &amp;&amp; svg &amp;&amp; ratio &gt; 0 &amp;&amp;
+ shell &amp;&amp; diagram &amp;&amp; svg &amp;&amp; ratio &gt;= WIDE_RATIO &amp;&amp;
window.innerWidth &gt;= MIN_DESKTOP_WIDTH &amp;&amp;
html.getAttribute(&#39;data-embed&#39;) !== &#39;true&#39; &amp;&amp;
html.getAttribute(&#39;data-present&#39;) !== &#39;true&#39; &amp;&amp;
@@ -30836,10 +30833,7 @@ html[data-theme="dark"] body{background:#071019!important;background-image:none!
}
var chrome = chromeMetrics();
var viewportCap = Math.max(0, window.innerWidth - chrome.bodyX);
- var sourceWidth = viewBox &amp;&amp; viewBox.width &gt; 0
- ? viewBox.width + chrome.diagramX
- : MIN_READER_WIDTH;
- var minWidth = Math.min(MIN_READER_WIDTH, sourceWidth, viewportCap);
+ var minWidth = Math.min(MIN_READER_WIDTH, viewportCap);
var maxWidth = Math.min(MAX_READER_WIDTH, viewportCap);
var fixedHeight = chrome.bodyY + chrome.diagramY + SAFE_BOTTOM_GAP +
outerHeight(header) + outerHeight(guided) + outerHeight(cards);
diff --git a/examples/checkout-platform-delta.receipt.json b/examples/checkout-platform-delta.receipt.json
index 1e46fde1..1e37e685 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": "16e997f6039faecc263015bd78dd247f06fb1b580dc9e94f952ddde02832c8c6",
- "bytes": 2024127
+ "sha256": "b509920b635dc816d7b0f9848bec5bbbf0b77a049ccb50225afbd1dae7a62e39",
+ "bytes": 2023841
},
"validation": {
"checksPassed": 28,
diff --git a/examples/dataflow-product-analytics.html b/examples/dataflow-product-analytics.html
index 4907b39b..e56dd1bb 100644
--- a/examples/dataflow-product-analytics.html
+++ b/examples/dataflow-product-analytics.html
@@ -10970,7 +10970,7 @@
}
function eligible() {
return Boolean(
- shell && diagram && svg && ratio > 0 &&
+ shell && diagram && svg && ratio >= WIDE_RATIO &&
window.innerWidth >= MIN_DESKTOP_WIDTH &&
html.getAttribute('data-embed') !== 'true' &&
html.getAttribute('data-present') !== 'true' &&
@@ -11030,10 +11030,7 @@
}
var chrome = chromeMetrics();
var viewportCap = Math.max(0, window.innerWidth - chrome.bodyX);
- var sourceWidth = viewBox && viewBox.width > 0
- ? viewBox.width + chrome.diagramX
- : MIN_READER_WIDTH;
- var minWidth = Math.min(MIN_READER_WIDTH, sourceWidth, viewportCap);
+ var minWidth = Math.min(MIN_READER_WIDTH, viewportCap);
var maxWidth = Math.min(MAX_READER_WIDTH, viewportCap);
var fixedHeight = chrome.bodyY + chrome.diagramY + SAFE_BOTTOM_GAP +
outerHeight(header) + outerHeight(guided) + outerHeight(cards);
diff --git a/examples/lifecycle-agent-run.html b/examples/lifecycle-agent-run.html
index 60e55be7..141719b5 100644
--- a/examples/lifecycle-agent-run.html
+++ b/examples/lifecycle-agent-run.html
@@ -10919,7 +10919,7 @@
}
function eligible() {
return Boolean(
- shell && diagram && svg && ratio > 0 &&
+ shell && diagram && svg && ratio >= WIDE_RATIO &&
window.innerWidth >= MIN_DESKTOP_WIDTH &&
html.getAttribute('data-embed') !== 'true' &&
html.getAttribute('data-present') !== 'true' &&
@@ -10979,10 +10979,7 @@
}
var chrome = chromeMetrics();
var viewportCap = Math.max(0, window.innerWidth - chrome.bodyX);
- var sourceWidth = viewBox && viewBox.width > 0
- ? viewBox.width + chrome.diagramX
- : MIN_READER_WIDTH;
- var minWidth = Math.min(MIN_READER_WIDTH, sourceWidth, viewportCap);
+ var minWidth = Math.min(MIN_READER_WIDTH, viewportCap);
var maxWidth = Math.min(MAX_READER_WIDTH, viewportCap);
var fixedHeight = chrome.bodyY + chrome.diagramY + SAFE_BOTTOM_GAP +
outerHeight(header) + outerHeight(guided) + outerHeight(cards);
diff --git a/examples/sequence-cache-miss-request.html b/examples/sequence-cache-miss-request.html
index 46a581ea..d3e2c1e3 100644
--- a/examples/sequence-cache-miss-request.html
+++ b/examples/sequence-cache-miss-request.html
@@ -10985,7 +10985,7 @@
}
function eligible() {
return Boolean(
- shell && diagram && svg && ratio > 0 &&
+ shell && diagram && svg && ratio >= WIDE_RATIO &&
window.innerWidth >= MIN_DESKTOP_WIDTH &&
html.getAttribute('data-embed') !== 'true' &&
html.getAttribute('data-present') !== 'true' &&
@@ -11045,10 +11045,7 @@
}
var chrome = chromeMetrics();
var viewportCap = Math.max(0, window.innerWidth - chrome.bodyX);
- var sourceWidth = viewBox && viewBox.width > 0
- ? viewBox.width + chrome.diagramX
- : MIN_READER_WIDTH;
- var minWidth = Math.min(MIN_READER_WIDTH, sourceWidth, viewportCap);
+ var minWidth = Math.min(MIN_READER_WIDTH, viewportCap);
var maxWidth = Math.min(MAX_READER_WIDTH, viewportCap);
var fixedHeight = chrome.bodyY + chrome.diagramY + SAFE_BOTTOM_GAP +
outerHeight(header) + outerHeight(guided) + outerHeight(cards);
diff --git a/examples/web-app-rendered.html b/examples/web-app-rendered.html
index a20e4a67..d6d45a50 100644
--- a/examples/web-app-rendered.html
+++ b/examples/web-app-rendered.html
@@ -10934,7 +10934,7 @@
}
function eligible() {
return Boolean(
- shell && diagram && svg && ratio > 0 &&
+ shell && diagram && svg && ratio >= WIDE_RATIO &&
window.innerWidth >= MIN_DESKTOP_WIDTH &&
html.getAttribute('data-embed') !== 'true' &&
html.getAttribute('data-present') !== 'true' &&
@@ -10994,10 +10994,7 @@
}
var chrome = chromeMetrics();
var viewportCap = Math.max(0, window.innerWidth - chrome.bodyX);
- var sourceWidth = viewBox && viewBox.width > 0
- ? viewBox.width + chrome.diagramX
- : MIN_READER_WIDTH;
- var minWidth = Math.min(MIN_READER_WIDTH, sourceWidth, viewportCap);
+ var minWidth = Math.min(MIN_READER_WIDTH, viewportCap);
var maxWidth = Math.min(MAX_READER_WIDTH, viewportCap);
var fixedHeight = chrome.bodyY + chrome.diagramY + SAFE_BOTTOM_GAP +
outerHeight(header) + outerHeight(guided) + outerHeight(cards);
diff --git a/examples/web-app.html b/examples/web-app.html
index a20e4a67..d6d45a50 100644
--- a/examples/web-app.html
+++ b/examples/web-app.html
@@ -10934,7 +10934,7 @@
}
function eligible() {
return Boolean(
- shell && diagram && svg && ratio > 0 &&
+ shell && diagram && svg && ratio >= WIDE_RATIO &&
window.innerWidth >= MIN_DESKTOP_WIDTH &&
html.getAttribute('data-embed') !== 'true' &&
html.getAttribute('data-present') !== 'true' &&
@@ -10994,10 +10994,7 @@
}
var chrome = chromeMetrics();
var viewportCap = Math.max(0, window.innerWidth - chrome.bodyX);
- var sourceWidth = viewBox && viewBox.width > 0
- ? viewBox.width + chrome.diagramX
- : MIN_READER_WIDTH;
- var minWidth = Math.min(MIN_READER_WIDTH, sourceWidth, viewportCap);
+ var minWidth = Math.min(MIN_READER_WIDTH, viewportCap);
var maxWidth = Math.min(MAX_READER_WIDTH, viewportCap);
var fixedHeight = chrome.bodyY + chrome.diagramY + SAFE_BOTTOM_GAP +
outerHeight(header) + outerHeight(guided) + outerHeight(cards);
diff --git a/examples/workflow-agent-tool-call-rendered.html b/examples/workflow-agent-tool-call-rendered.html
index b981e450..0fb6bb9a 100644
--- a/examples/workflow-agent-tool-call-rendered.html
+++ b/examples/workflow-agent-tool-call-rendered.html
@@ -10976,7 +10976,7 @@
}
function eligible() {
return Boolean(
- shell && diagram && svg && ratio > 0 &&
+ shell && diagram && svg && ratio >= WIDE_RATIO &&
window.innerWidth >= MIN_DESKTOP_WIDTH &&
html.getAttribute('data-embed') !== 'true' &&
html.getAttribute('data-present') !== 'true' &&
@@ -11036,10 +11036,7 @@
}
var chrome = chromeMetrics();
var viewportCap = Math.max(0, window.innerWidth - chrome.bodyX);
- var sourceWidth = viewBox && viewBox.width > 0
- ? viewBox.width + chrome.diagramX
- : MIN_READER_WIDTH;
- var minWidth = Math.min(MIN_READER_WIDTH, sourceWidth, viewportCap);
+ var minWidth = Math.min(MIN_READER_WIDTH, viewportCap);
var maxWidth = Math.min(MAX_READER_WIDTH, viewportCap);
var fixedHeight = chrome.bodyY + chrome.diagramY + SAFE_BOTTOM_GAP +
outerHeight(header) + outerHeight(guided) + outerHeight(cards);