Skip to content

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

fix: reject ambiguous relationship corridors (#35)

tt-a1id20de1a93178
diff --git a/CHANGELOG.md b/CHANGELOG.md
index 939b79d0..a98bef4e 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -5,13 +5,14 @@ All notable changes are documented here. Format loosely follows [Keep a Changelo
## [Unreleased]
### Added
+- **Ambiguous Relationship Corridor Gate.** Unrelated relationships that overlap along the same orthogonal lane for at least 8px now produce exact `composition/ambiguous-corridor` evidence instead of silently reading as a false merge or branch. `standard` keeps dense engineering diagrams renderable and records the finding as a warning; `showcase` rejects it before write and in the final artifact check. Relationships sharing a semantic endpoint, point touches, and shorter overlaps remain legal. Two canonical outer-rail routes were repaired without heuristic rerouting, all five renderers share the same detector, and Proof Lab grows to 88/88 checks with zero corridor debt.
- **Artifact-to-install start loop.** The existing viewer footer now offers one restrained, viewer-only `Create yours` link carrying only the typed diagram mode and suppressing its document referrer. A focused bilingual `/start` page turns that mode into canonical install commands, one exact bounded prompt, required evidence, and a verified Proof Lab example without receiving repository content, diagram data, titles, paths, or source JSON; print and canonical exports remain clean.
- **Semantic Story Carrier.** Every unambiguous forward/reverse Story Beat now reuses the same five-kind semantic token vocabulary as Relationship Preview, so calls, data movement, events, security boundaries, and lifecycle transitions remain distinguishable while the guided camera advances. Story first deduplicates path and label fragments by stable authored edge key, preventing one labeled relationship from being misclassified as `multiple`; the carrier then follows only that exact authored geometry for Story's existing finite 780ms pulse. A dedicated viewer overlay keeps it above edges and below nodes, while generation-owned cleanup rejects stale animation callbacks. It runs only in ordinary desktop artifacts and explicit `?play=1` share playback; passive embeds, Still, reduced motion, hidden/print state, and canonical/raster export remain static and clean. No schema, IR, renderer layout, dependency, authored geometry, or mobile product surface was added.
- **Semantic Flow Tokens.** Every exact-edge Relationship Preview now carries one compact inline SVG token along the authored source-to-target geometry: paired chevrons for calls, a framed block for data, a three-car train for events, a checked shield for security boundaries, and a ringed dot for lifecycle state changes. Classification uses only compiled edge variants and renderer-owned endpoint kinds with fail-closed precedence (`security > event > data > state > call`); labels, product names, and pixel geometry never decide meaning. The token shares Relationship Preview's single finite 1.2-second motion owner and cleanup path, rotates with the real line/path/polyline, respects Live/Still and reduced motion, and leaves no embed, print, canonical SVG, raster, schema, IR, dependency, layout, or authored-geometry residue. This is a desktop reading and presentation enhancement; mobile remains only a contained fallback.
- **Semantic Sigils.** Every primary node in all five typed renderers now carries one small, theme-aware inline SVG role stamp: windows for frontend, brackets for backend, cylinder rings for data, a cloud contour, shield, transit rails, external portal, and distinct lifecycle start/active/wait/success/failure/neutral cues. The sigils reuse existing semantic color tokens across Classic, Signal Flow, Blueprint, dark, and light; remain static under trace motion; survive canonical SVG/raster export; and add no brand assets, product-name matching, schema field, layout box, focus target, interaction owner, dependency, or network request. Archify stays desktop-first: mobile remains a basic containment fallback rather than a dedicated product surface.
- **Readable Route Rhythm.** Composition validation now distinguishes cramped turns from harmless endpoint stubs instead of applying one borrowed minimum to every polyline segment. In `showcase`, any segment below 8px and any interior turn segment below 16px fails before write and in the final artifact checker with the exact relationship, segment role/index, coordinates, length, and renderer-specific repair controls; `standard` records the same evidence as warnings. Endpoint stubs from 8–15px remain legal because fixed swimlane gaps can require them. The receipt now separates endpoint/interior shorts and micro segments while bend/stretch stay neutral. Three canonical routes were repaired: the event-stream dead-letter path fell from five bends to three, a deployment route lost its 5px hook and third bend, and lifecycle failure routing now enters through a clean side corridor. Proof Lab grows to 77/77 checks.
- **Clear Container Corridor.** Architecture boundaries, workflow lanes/groups, data-flow stages, and sequence segments now carry typed structural-frame geometry into one shared pre-write gate and the final SVG checker. A semantic relationship may cross a frame perpendicularly, touch it at a point, or meet a rounded corner, but any positive collinear border run fails both `standard` and `showcase` with `composition/container-border-run`, exact relationship/frame/side/segment geometry, and renderer-specific repair controls. Lifecycle separators remain reading guides rather than containers. Two canonical routes were moved into open corridors; the Composition Receipt now also records neutral normalized bend, Manhattan stretch, and shortest-segment evidence without making borrowed Fireworks budgets into warnings.
-- **Composition Receipt + showcase quality profile.** Every rendered SVG now carries a named `standard` or `showcase` profile, and the artifact checker emits a structured composition receipt alongside its six artifact checks. Proper interior X crossings between unrelated relationships are warnings in default `standard` and blocking `composition/proper-crossing` errors in opt-in `showcase`; shared semantic endpoints, endpoint touches, and collinear relationship corridors remain legal. `archify render` and `archify validate` accept `--quality standard|showcase`, all 11 canonical proofs opt into showcase, four visible route crossings were repaired (including one introduced only by rounded `Q` geometry), and the Proof Lab now publishes 66/66 artifact checks plus a separate `SHOWCASE · PASS` receipt.
+- **Composition Receipt + showcase quality profile.** Every rendered SVG now carries a named `standard` or `showcase` profile, and the artifact checker emits a structured composition receipt alongside its six artifact checks. Proper interior X crossings between unrelated relationships are warnings in default `standard` and blocking `composition/proper-crossing` errors in opt-in `showcase`; shared semantic endpoints, endpoint touches, and collinear relationship corridors remain outside the proper-X rule, with corridor ambiguity evaluated separately by the later named gate. `archify render` and `archify validate` accept `--quality standard|showcase`, all 11 canonical proofs opt into showcase, four visible route crossings were repaired (including one introduced only by rounded `Q` geometry), and the Proof Lab now publishes 66/66 artifact checks plus a separate `SHOWCASE · PASS` receipt.
- **Clean Flow Gate.** All five typed renderers now share one generation-time relationship/obstacle contract: a connection, edge, flow, transition, or message may terminate on its own endpoints but cannot pass through an unrelated semantic node box. Failures carry the stable `clean-flow/edge-through-node` code, exact collection/index and authored ID, obstacle ID, first intersecting segment coordinates, 2px clearance, and renderer-specific repair knobs before any artifact is written. Architecture boundaries, workflow lanes/phases/groups, data-flow stages, lifecycle bands, and sequence segments/lifelines/activations remain intentional pass-through geometry; endpoint boxes are exempt. Six previously accepted canonical routes now use explicit clean corridors, all 11 proof scenarios remain valid, and edge-edge crossings are handled separately by the named composition profile instead of being promoted to a universal correctness rule.
- **Story Shelf.** Guided artifacts now open with a compact, canvas-first shelf that keeps the useful `Guided views` identity, `Play story`, and every authored chapter visible while removing inactive Previous/Next, Copy moment, Show all, and generic instructional copy. The existing `data-active-view="all"` state is established before first paint; selecting a chapter, starting playback, or restoring a valid deep link immediately expands the complete Story Director, while Show all and Escape return to the shelf. In the measured workflow proof the panel shrinks from about 128px to 55px on desktop and 172px to 107px on mobile, moving the 390×844 diagram start from about y=389 to y=324 so the complete first diagram fits above the fold. Play and chapter targets remain 44px, chapter scrolling stays contained, and no panel, toggle, storage, schema, IR, renderer branch, dependency, motion owner, canonical SVG, or export state was added.
- **Settled Flow.** Ordinary trace artifacts now spend their ambient motion budget once: edges, nodes, and Signal Flow scan complete one finite pass, then the viewer marks the canvas settled and restores every authored relationship style—including solid lines, security `5,5`, and async `4,4` dashes. The pass cannot replay when `Still` returns to `Live`; Story, Route, Lens, previews, embed, hidden pages, and reduced-motion continue to take priority. Long graphs cap visual delay without reordering semantic data. Canonical SVG/raster exports stay static, while WebM explicitly samples the same authored relationship geometry into its own repeatable finite canvas timeline. No schema, IR, renderer branch, layout, control, or dependency was added.
diff --git a/ROADMAP.md b/ROADMAP.md
index e199f28a..2891be9c 100644
--- a/ROADMAP.md
+++ b/ROADMAP.md
@@ -1,8 +1,10 @@
# Archify Roadmap
-As of v2.11.0, the coordinate-stability work has shipped as JSON IR plus typed renderers for architecture, workflow, sequence, data-flow, and lifecycle diagrams. Workflow diagrams now also have phase/group/exception-lane structure, happy-path linting, trace animation, and route-crossing guards. The shared viewer adds deterministic semantic node IDs, optional author-controlled relationship IDs with durable `#relation=` links, a pre-click Intent Trace for exact one-hop traffic, a two-endpoint Route Probe with an inspectable Route Journey over deterministic shortest authored paths, searchable Node Finder navigation, read-only one-hop focus with a renderer-owned Semantic Passport and copyable focus link, a runtime-built Semantic Radar for desktop viewport navigation, bounded typed guided views with a visible Named Chapter Rail, pre-commit Chapter Delta Preview, Shared Anchor Handoff, and path-aware Semantic Story Beats, a reader-controlled Live/Still Motion Governor, share-ready one-shot chapters with a title/route/step/state/progress cue, a viewport-filling Presentation Stage, Semantic Camera framing, pan/zoom, three visual presets, and browser-native WebM export. A generated Proof Lab publishes 11 live scenario artifacts with their exact sources, three named reader views, 77 artifact checks, and named composition receipts; its preview grid stays static while deliberate proof links play one named chapter once. The landing-page Live Proof Stage promotes three of those generated artifacts into the first bounded motion proof, and the README motion reel carries the same proof-first story onto GitHub without claiming SVG animation support. A question-first scenario guide maps concrete user needs to those 11 bounded recipes across the five modes, with one shared source for CLI and GitHub Pages and direct proof navigation. A unified CLI (`bin/archify.mjs`) wraps guide, render, validate, check, and examples. This file records the design decisions that led there, plus the ideas that were explicitly declined. The original v2.4 / v2.5 backlog (export-scale URL param, color-blind palette, gzip+base64 share links) was considered and dropped — see [Not planned](#not-planned) for the rationale on each.
+As of v2.11.0, the coordinate-stability work has shipped as JSON IR plus typed renderers for architecture, workflow, sequence, data-flow, and lifecycle diagrams. Workflow diagrams now also have phase/group/exception-lane structure, happy-path linting, trace animation, and route-crossing guards. The shared viewer adds deterministic semantic node IDs, optional author-controlled relationship IDs with durable `#relation=` links, a pre-click Intent Trace for exact one-hop traffic, a two-endpoint Route Probe with an inspectable Route Journey over deterministic shortest authored paths, searchable Node Finder navigation, read-only one-hop focus with a renderer-owned Semantic Passport and copyable focus link, a runtime-built Semantic Radar for desktop viewport navigation, bounded typed guided views with a visible Named Chapter Rail, pre-commit Chapter Delta Preview, Shared Anchor Handoff, and path-aware Semantic Story Beats, a reader-controlled Live/Still Motion Governor, share-ready one-shot chapters with a title/route/step/state/progress cue, a viewport-filling Presentation Stage, Semantic Camera framing, pan/zoom, three visual presets, and browser-native WebM export. A generated Proof Lab publishes 11 live scenario artifacts with their exact sources, three named reader views, 88 artifact checks, and named composition receipts; its preview grid stays static while deliberate proof links play one named chapter once. The landing-page Live Proof Stage promotes three of those generated artifacts into the first bounded motion proof, and the README motion reel carries the same proof-first story onto GitHub without claiming SVG animation support. A question-first scenario guide maps concrete user needs to those 11 bounded recipes across the five modes, with one shared source for CLI and GitHub Pages and direct proof navigation. A unified CLI (`bin/archify.mjs`) wraps guide, render, validate, check, and examples. This file records the design decisions that led there, plus the ideas that were explicitly declined. The original v2.4 / v2.5 backlog (export-scale URL param, color-blind palette, gzip+base64 share links) was considered and dropped — see [Not planned](#not-planned) for the rationale on each.
-The latest visual slice adds Semantic Story Carrier to every unambiguous forward/reverse Story Beat. Story now deduplicates compiled path and label fragments by stable authored edge key, so one labeled relationship remains one relationship instead of falsely becoming `multiple`. The existing finite 780ms Story pulse reuses the same call, data, event, security, and lifecycle-state token vocabulary as exact-edge Relationship Preview, following only the real authored source-to-target geometry in a viewer overlay above edges and below nodes. Generation-owned cleanup rejects stale animation callbacks. Ordinary desktop artifacts and explicit `?play=1` shares may show it; passive embeds, Still, reduced motion, hidden/print state, and canonical/raster export remain static. This adds no new animation owner, schema, IR, renderer layout, dependency, authored geometry, or mobile product surface.
+The latest renderer slice adds an Ambiguous Relationship Corridor Gate across all five modes. It identifies unrelated orthogonal relationships that share at least 8px of the same lane—the geometry that can visually invent a merge or branch—while preserving shared-endpoint fan-out/merge, point touches, and shorter overlaps. `standard` emits exact relationship/segment/coordinate warnings; `showcase` rejects the same evidence before write and in the final artifact check. Two canonical routes moved to clear outer rails, Gallery now reports 88/88 checks with zero corridor debt, and the change adds no heuristic rerouting, schema, layout algorithm, dependency, or mobile surface.
+
+The previous visual slice added Semantic Story Carrier to every unambiguous forward/reverse Story Beat. Story now deduplicates compiled path and label fragments by stable authored edge key, so one labeled relationship remains one relationship instead of falsely becoming `multiple`. The existing finite 780ms Story pulse reuses the same call, data, event, security, and lifecycle-state token vocabulary as exact-edge Relationship Preview, following only the real authored source-to-target geometry in a viewer overlay above edges and below nodes. Generation-owned cleanup rejects stale animation callbacks. Ordinary desktop artifacts and explicit `?play=1` shares may show it; passive embeds, Still, reduced motion, hidden/print state, and canonical/raster export remain static. This adds no new animation owner, schema, IR, renderer layout, dependency, authored geometry, or mobile product surface.
The previous visual slice added Semantic Flow Tokens to exact-edge Relationship Preview. Five compact inline SVG cues distinguish calls, data, events, security boundaries, and lifecycle state changes while following the real authored path/line/polyline in source-to-target direction. Classification is deterministic from compiled edge variants and renderer-owned endpoint kinds, with no label matching or new author field. The cue shares the established 1.2-second finite preview owner and cleanup, inherits Classic / Signal Flow / Blueprint plus light/dark tokens, yields to Still and reduced motion, and never enters canonical export. This borrows Fireworks' useful path-following motion principle without introducing another animation system, product-specific icon catalogue, schema surface, or mobile product work.
diff --git a/archify.zip b/archify.zip
index 5cc0d15e..81384650 100644
Binary files a/archify.zip and b/archify.zip differ
diff --git a/archify/SKILL.md b/archify/SKILL.md
index 501f1db5..f84a8b88 100644
--- a/archify/SKILL.md
+++ b/archify/SKILL.md
@@ -75,10 +75,10 @@ All five modes follow the same loop:
1. **Read first**: the schema (`schemas/<type>.schema.json`) and the complete worked example (`examples/*.{architecture,workflow,sequence,dataflow,lifecycle}.json`) — copy its patterns instead of guessing field shapes.
2. Write `<name>.<type>.json`.
3. Render: `node bin/archify.mjs render <type> <input>.json <output>.html` (paths relative to this skill's folder).
-4. Validate the generated artifact: `node bin/archify.mjs validate <type> <input>.json --json`, explicitly add `--quality standard` for dense engineering diagrams or `--quality showcase` for polished delivery, or check an existing HTML file with `node bin/archify.mjs check <output>.html`. This catches malformed SVG output, non-finite SVG values, two-point diagonal arrows, arrows crossing the legend, and profile-aware relationship crossings.
+4. Validate the generated artifact: `node bin/archify.mjs validate <type> <input>.json --json`, explicitly add `--quality standard` for dense engineering diagrams or `--quality showcase` for polished delivery, or check an existing HTML file with `node bin/archify.mjs check <output>.html`. This catches malformed SVG output, non-finite SVG values, two-point diagonal arrows, arrows crossing the legend, and profile-aware relationship crossing/corridor ambiguity.
5. If either step fails, the error names the JSON path or the fix (thresholds, valid ranges, which knob to change). Fix the JSON and re-run; never edit the renderer.
-Schema violations exit non-zero with path-prefixed messages like `/nodes/3 (id/label: "router") must NOT have additional properties`. The renderers additionally fail fast on established layout problems: node/state overlap (including cross-lane), labels colliding with nodes or other labels, labels wider than their node, out-of-range columns/rows, too-short edges, and legends outside the viewBox. A relationship passing through an unrelated opaque semantic node is always a hard correctness failure, even when neither `meta.quality_profile` nor CLI `--quality` is present: paint order must never make one authored relationship look like a different topology. The shared Clean Flow Gate reports `clean-flow/edge-through-node`, the exact collection/index and optional relationship ID, obstacle ID, first intersecting segment, 2px clearance, and supported routing/placement knobs before output is written. Stricter composition preferences remain profile-aware. For new or edited work, choose `standard` or `showcase` explicitly; structural container-border rules apply to both explicit profiles, unrelated proper X crossings warn in `standard` and fail in `showcase`, and showcase also fails any sub-8px route segment and sub-16px interior turn while preserving ordinary 8–15px endpoint stubs. Shared semantic endpoints, endpoint touches, and collinear relationship corridors are not proper crossings. Source/target boxes are endpoints; boundaries, lanes, stages, lifecycle bands, sequence segments/lifelines/activations, and other containers remain intentional pass-through geometry. CJK text is measured at double width automatically.
+Schema violations exit non-zero with path-prefixed messages like `/nodes/3 (id/label: "router") must NOT have additional properties`. The renderers additionally fail fast on established layout problems: node/state overlap (including cross-lane), labels colliding with nodes or other labels, labels wider than their node, out-of-range columns/rows, too-short edges, and legends outside the viewBox. A relationship passing through an unrelated opaque semantic node is always a hard correctness failure, even when neither `meta.quality_profile` nor CLI `--quality` is present: paint order must never make one authored relationship look like a different topology. The shared Clean Flow Gate reports `clean-flow/edge-through-node`, the exact collection/index and optional relationship ID, obstacle ID, first intersecting segment, 2px clearance, and supported routing/placement knobs before output is written. Stricter composition preferences remain profile-aware. For new or edited work, choose `standard` or `showcase` explicitly; structural container-border rules apply to both explicit profiles, unrelated proper X crossings and unrelated collinear overlaps of at least 8px warn in `standard` and fail in `showcase`, and showcase also fails any sub-8px route segment and sub-16px interior turn while preserving ordinary 8–15px endpoint stubs. Collinear corridors are not proper crossings; the separate `composition/ambiguous-corridor` rule exempts relationships with a shared semantic endpoint, point touches, and overlaps below 8px. Source/target boxes are endpoints; boundaries, lanes, stages, lifecycle bands, sequence segments/lifelines/activations, and other containers remain intentional pass-through geometry. CJK text is measured at double width automatically.
Set `meta.animation: "trace"` only when the user asks for motion or a presentation/demo view. It adds lightweight SVG/CSS trace animation to renderer-marked arrows and nodes plus one explicit 44px `Live` / `Still` Motion Governor. Ambient scan, edge, and node motion must run one finite pass, permanently settle for that document generation, and restore every authored solid/security/async dash style; switching `Still` back to `Live` must not replay it. Story, Chapter, Route, Lens, Relationship Preview, Intent Trace, Focus, and Legend remain stronger semantic owners. `Still` must reset every effect to complete static meaning, pause active Story playback at its exact beat, persist the reader choice when storage is available, and never auto-resume playback. Dynamic `prefers-reduced-motion` and page hiding use the same stop path. Static artifacts must never start decorative motion or show the control; embed remains calm unless `?play=1` explicitly requests one bounded chapter. Route Probe uses one finite signal and then leaves the exact route static. Canonical SVG and raster exports remain still; only the isolated WebM clone may explicitly opt into the repeatable finite trace timeline. Motion ownership is viewer-only, tokenized for stale-safe cleanup, and never enters schema, IR, renderer layout, or authored geometry.
@@ -328,7 +328,7 @@ Typography inherits JetBrains Mono from the SVG root. Sizes: 11–12px component
- **Two-rect pattern everywhere**: opaque `c-mask` rect first, styled `c-<type>` rect on top — semi-transparent fills otherwise let arrows bleed through.
- **Arrows before components** in document order (SVG paints in order; arrows must sit behind boxes).
- **Clean flow before delivery**: with or without a quality profile, a relationship may touch its own source/target boxes but must not pass through any unrelated semantic node. If both bounded architecture auto candidates are blocked, fix `clean-flow/edge-through-node` with `fromSide`/`toSide`, a route/channel, explicit `via`, or node placement; do not hide the defect with paint order. This semantic correctness rule is universal, while older profile-less schema-v1 inputs retain advisory handling for stricter composition preferences.
-- **Choose a composition profile deliberately with the user**: `standard` keeps dense engineering topologies renderable and records route-rhythm/proper-X findings as warnings; `showcase` fails unrelated proper X crossings, any segment below 8px, and interior turn segments below 16px. Both explicit profiles enforce structural border-run checks; universal Clean Flow applies before profile selection. Endpoint stubs from 8–15px remain valid because fixed lane gaps can require them. Use `meta.quality_profile` or CLI `--quality`, then repair with route/channel/via/side or placement controls. Do not silently add a profile to an existing v1 file.
+- **Choose a composition profile deliberately with the user**: `standard` keeps dense engineering topologies renderable and records route-rhythm, proper-X, and unrelated ≥8px collinear-corridor findings as warnings; `showcase` fails those same findings. Both explicit profiles enforce structural border-run checks; universal Clean Flow applies before profile selection. Endpoint stubs from 8–15px, point touches, short corridor overlaps, and shared-endpoint fan-out/merge remain valid. Use `meta.quality_profile` or CLI `--quality`, then repair with route/channel/via/side or placement controls. Do not silently add a profile to an existing v1 file.
- **Vertical stacking**: ≥40px gap between components; inline connectors (message buses, 20px tall) live inside the gap, never overlapping boxes.
- **Boundary padding**: boundary `y` = inner `y` − 30, boundary `height` = inner `height` + 50, label baseline 18px below the boundary top.
- **Legend placement**: outside ALL boundary boxes, ≥20px below the lowest one; grow the viewBox if needed.
diff --git a/archify/examples/event-stream.dataflow.json b/archify/examples/event-stream.dataflow.json
index dba61bc0..c6f428a7 100644
--- a/archify/examples/event-stream.dataflow.json
+++ b/archify/examples/event-stream.dataflow.json
@@ -45,7 +45,7 @@
{ "from": "enrich", "to": "state", "label": "enriched payment", "classification": "idempotent", "variant": "default", "route": "vertical-channel" },
{ "from": "state", "to": "fulfillment", "label": "ready orders", "classification": "read model", "variant": "emphasis", "route": "vertical-channel" },
{ "from": "state", "to": "analytics", "label": "order facts", "classification": "non-PII", "variant": "default", "route": "vertical-channel" },
- { "from": "validate", "to": "dlq", "label": "invalid event", "classification": "dead letter", "variant": "security", "fromSide": "bottom", "toSide": "top", "via": [[630, 186], [630, 550], [745, 550]], "labelAt": [630, 428] },
+ { "from": "validate", "to": "dlq", "label": "invalid event", "classification": "dead letter", "variant": "security", "fromSide": "top", "toSide": "top", "via": [[530, 80], [20, 80], [20, 550], [745, 550]], "labelAt": [300, 550] },
{ "from": "enrich", "to": "dlq", "label": "poison event", "classification": "dead letter", "variant": "security", "route": "bottom-channel", "labelDy": 30 },
{ "from": "dlq", "to": "ops", "label": "failure sample", "classification": "restricted", "variant": "security", "route": "vertical-channel" },
{ "from": "dlq", "to": "replay", "label": "approved replay", "classification": "audited batch", "variant": "dashed", "route": "straight" }
diff --git a/archify/examples/incident-response.workflow.json b/archify/examples/incident-response.workflow.json
index e4ac0753..fca59b35 100644
--- a/archify/examples/incident-response.workflow.json
+++ b/archify/examples/incident-response.workflow.json
@@ -53,7 +53,7 @@
{ "from": "recover", "to": "verify", "variant": "emphasis", "route": "drop", "fromSide": "bottom", "toSide": "top" },
{ "from": "verify", "to": "close", "variant": "emphasis", "route": "drop", "fromSide": "bottom", "toSide": "top" },
{ "from": "triage", "to": "declare", "variant": "security" },
- { "from": "declare", "to": "update", "variant": "dashed", "fromSide": "bottom", "toSide": "left", "via": [[430, 310], [356, 310], [356, 615]] },
+ { "from": "declare", "to": "update", "variant": "dashed", "fromSide": "top", "toSide": "left", "via": [[430, 16], [20, 16], [20, 615]] },
{ "from": "update", "to": "escalate", "variant": "security", "route": "drop", "fromSide": "bottom", "toSide": "top" },
{ "from": "verify", "to": "rollback", "variant": "security", "role": "error", "route": "outside-right", "fromSide": "right", "toSide": "right" }
],
diff --git a/archify/renderers/architecture/render-architecture.mjs b/archify/renderers/architecture/render-architecture.mjs
index 4d3c9007..673ba0bb 100644
--- a/archify/renderers/architecture/render-architecture.mjs
+++ b/archify/renderers/architecture/render-architecture.mjs
@@ -11,6 +11,7 @@ import {
segmentIntersectsRect,
cleanFlowProblems,
cleanCrossingProblems,
+ cleanAmbiguousCorridorProblems,
cleanBorderRunProblems,
cleanRouteRhythmProblems,
suggestLabelObstacleFix,
@@ -218,6 +219,15 @@ function validateArchitecture() {
profile: arch.meta?.quality_profile,
routeHint: 'adjust route/via or fromSide/toSide so the connections use separate corridors'
}));
+ problems.push(...cleanAmbiguousCorridorProblems({
+ relations: arch.connections,
+ endpointIds: new Set(components.keys()),
+ pathFor,
+ diagramType: 'architecture',
+ relationCollection: 'connections',
+ profile: arch.meta?.quality_profile,
+ routeHint: 'adjust route/via or fromSide/toSide so unrelated connections do not visually merge'
+ }));
problems.push(...cleanBorderRunProblems({
relations: arch.connections,
endpointIds: new Set(components.keys()),
diff --git a/archify/renderers/dataflow/README.md b/archify/renderers/dataflow/README.md
index 2743fc5c..d50d9d47 100644
--- a/archify/renderers/dataflow/README.md
+++ b/archify/renderers/dataflow/README.md
@@ -85,7 +85,9 @@ is estimated CJK-aware: fullwidth glyphs count as two units.
Set `meta.quality_profile` to `showcase` for polished delivery. Unrelated proper
X crossings then fail with `composition/proper-crossing`; default `standard`
-keeps them as artifact-receipt warnings. Shared semantic endpoints, endpoint
-touches, and collinear stage corridors are not proper crossings. Showcase also
+keeps them as artifact-receipt warnings. Collinear stage corridors are outside
+the proper-X rule, but a separate gate warns in `standard` and fails in
+`showcase` when unrelated flows overlap for at least 8px. Shared semantic
+endpoints, point touches, and shorter overlaps remain valid. Showcase also
rejects any route segment below 8px and any interior turn segment below 16px;
ordinary 8–15px endpoint stubs remain valid.
diff --git a/archify/renderers/dataflow/render-dataflow.mjs b/archify/renderers/dataflow/render-dataflow.mjs
index 2d31d32d..dbfd7133 100644
--- a/archify/renderers/dataflow/render-dataflow.mjs
+++ b/archify/renderers/dataflow/render-dataflow.mjs
@@ -8,6 +8,7 @@ import {
rectsOverlap,
cleanFlowProblems,
cleanCrossingProblems,
+ cleanAmbiguousCorridorProblems,
cleanBorderRunProblems,
cleanRouteRhythmProblems,
suggestLabelObstacleFix,
@@ -173,6 +174,15 @@ function validateDataflow() {
profile: dataflow.meta?.quality_profile,
routeHint: 'adjust route/via or channelX/channelY so the flows use separate stage corridors'
}));
+ problems.push(...cleanAmbiguousCorridorProblems({
+ relations: dataflow.flows,
+ endpointIds: new Set(nodes.keys()),
+ pathFor,
+ diagramType: 'dataflow',
+ relationCollection: 'flows',
+ profile: dataflow.meta?.quality_profile,
+ routeHint: 'adjust route/via or channelX/channelY so unrelated flows do not visually merge'
+ }));
problems.push(...cleanBorderRunProblems({
relations: dataflow.flows,
endpointIds: new Set(nodes.keys()),
diff --git a/archify/renderers/lifecycle/README.md b/archify/renderers/lifecycle/README.md
index 7dbd1d64..c170c4d4 100644
--- a/archify/renderers/lifecycle/README.md
+++ b/archify/renderers/lifecycle/README.md
@@ -95,6 +95,9 @@ Text width is estimated CJK-aware: fullwidth glyphs count as two units.
Set `meta.quality_profile` to `showcase` for polished delivery. Unrelated proper
X crossings then fail with `composition/proper-crossing`; default `standard`
keeps them as artifact-receipt warnings. The final artifact check samples
-rounded `Q` corners, while shared endpoints, touches, and collinear corridors
-remain exempt. Showcase also rejects any route segment below 8px and any
-interior turn segment below 16px; ordinary 8–15px endpoint stubs remain valid.
+rounded `Q` corners. Collinear corridors remain outside the proper-X rule, but
+a separate gate warns in `standard` and fails in `showcase` when unrelated
+transitions overlap for at least 8px. Shared semantic endpoints, point touches,
+and shorter overlaps remain valid. Showcase also rejects any route segment
+below 8px and any interior turn segment below 16px; ordinary 8–15px endpoint
+stubs remain valid.
diff --git a/archify/renderers/lifecycle/render-lifecycle.mjs b/archify/renderers/lifecycle/render-lifecycle.mjs
index e5bdb2ee..b1d780e9 100644
--- a/archify/renderers/lifecycle/render-lifecycle.mjs
+++ b/archify/renderers/lifecycle/render-lifecycle.mjs
@@ -8,6 +8,7 @@ import {
rectsOverlap,
cleanFlowProblems,
cleanCrossingProblems,
+ cleanAmbiguousCorridorProblems,
cleanBorderRunProblems,
cleanRouteRhythmProblems,
suggestLabelObstacleFix,
@@ -211,6 +212,15 @@ function validateLifecycle() {
profile: lifecycle.meta?.quality_profile,
routeHint: 'adjust route/via or channelX/channelY so the transitions use separate lifecycle corridors'
}));
+ problems.push(...cleanAmbiguousCorridorProblems({
+ relations: lifecycle.transitions,
+ endpointIds: new Set(states.keys()),
+ pathFor,
+ diagramType: 'lifecycle',
+ relationCollection: 'transitions',
+ profile: lifecycle.meta?.quality_profile,
+ routeHint: 'adjust route/via or channelX/channelY so unrelated transitions do not visually merge'
+ }));
// Lifecycle bands are dashed reading guides, not closed containers. Keep the
// shared contract wired with an explicit empty frame set so future typed
// lifecycle containers cannot accidentally inherit presentation geometry.
diff --git a/archify/renderers/sequence/README.md b/archify/renderers/sequence/README.md
index e604ebb2..bd03162b 100644
--- a/archify/renderers/sequence/README.md
+++ b/archify/renderers/sequence/README.md
@@ -88,7 +88,9 @@ fullwidth glyphs count as two units.
Set `meta.quality_profile` to `showcase` for polished delivery. Unrelated proper
message X crossings then fail with `composition/proper-crossing`; default
`standard` keeps them as artifact-receipt warnings. Messages may still cross
-intermediate lifelines, and shared endpoints/touches/collinear corridors remain
-outside the proper-X contract. Showcase also rejects any route segment below
-8px and any interior turn segment below 16px; ordinary 8–15px endpoint stubs
-remain valid.
+intermediate lifelines. Collinear corridors remain outside the proper-X rule,
+but a separate gate warns in `standard` and fails in `showcase` when unrelated
+messages overlap for at least 8px. Shared semantic endpoints, point touches,
+and shorter overlaps remain valid. Showcase also rejects any route segment
+below 8px and any interior turn segment below 16px; ordinary 8–15px endpoint
+stubs remain valid.
diff --git a/archify/renderers/sequence/render-sequence.mjs b/archify/renderers/sequence/render-sequence.mjs
index 6720a205..14b706cd 100644
--- a/archify/renderers/sequence/render-sequence.mjs
+++ b/archify/renderers/sequence/render-sequence.mjs
@@ -2,7 +2,7 @@ import path from 'node:path';
import { fileURLToPath } from 'node:url';
import { esc, renderDefinitions, renderSemanticSigil, textUnits } from '../shared/utils.mjs';
import { animateAttr, focusEdgeAttrs, focusNodeAttrs, focusNodeTitle, loadDiagram, writeDiagram, svgAccessibleText, svgRootAttrs } from '../shared/cli.mjs';
-import { componentFill, arrowClassMap, rectsOverlap, cleanFlowProblems, cleanCrossingProblems, cleanBorderRunProblems, cleanRouteRhythmProblems, routePointsValue, asArray, isFinitePoint } from '../shared/geometry.mjs';
+import { componentFill, arrowClassMap, rectsOverlap, cleanFlowProblems, cleanCrossingProblems, cleanAmbiguousCorridorProblems, cleanBorderRunProblems, cleanRouteRhythmProblems, routePointsValue, asArray, isFinitePoint } from '../shared/geometry.mjs';
const __dirname = path.dirname(fileURLToPath(import.meta.url));
const { diagram: sequence, template, outPath } = loadDiagram({
@@ -132,6 +132,15 @@ function validateSequence() {
profile: sequence.meta?.quality_profile,
routeHint: 'separate the message y values; lifeline crossings remain allowed'
}));
+ problems.push(...cleanAmbiguousCorridorProblems({
+ relations: sequence.messages,
+ endpointIds: new Set(participants.keys()),
+ pathFor: messagePath,
+ diagramType: 'sequence',
+ relationCollection: 'messages',
+ profile: sequence.meta?.quality_profile,
+ routeHint: 'separate the message y values so unrelated messages do not visually merge'
+ }));
problems.push(...cleanBorderRunProblems({
relations: sequence.messages,
endpointIds: new Set(participants.keys()),
diff --git a/archify/renderers/shared/geometry.mjs b/archify/renderers/shared/geometry.mjs
index fc4a4d19..323eb6c3 100644
--- a/archify/renderers/shared/geometry.mjs
+++ b/archify/renderers/shared/geometry.mjs
@@ -155,6 +155,93 @@ export function cleanCrossingProblems({
return problems;
}
+// Two unrelated relationships that occupy the same visible corridor can read
+// as one authored branch or merge even when neither relationship crosses a
+// node or forms a proper X. Keep shared semantic endpoints exempt: their
+// initial/final fan-out is real topology. Tiny overlaps below the route rhythm
+// floor are ignored to avoid turning sub-pixel rounding into a quality debt.
+export function collectAmbiguousCorridors({
+ routedRelations,
+ minOverlapPx = 8,
+}) {
+ const routed = asArray(routedRelations).map((entry, fallbackIndex) => {
+ const relation = entry?.relation;
+ if (!relation || typeof relation.from !== 'string' || typeof relation.to !== 'string') return null;
+ const points = normalizeRoutePoints(entry?.points);
+ if (points.length < 2) return null;
+ return {
+ relation,
+ relationIndex: Number.isInteger(entry.relationIndex) ? entry.relationIndex : fallbackIndex,
+ points,
+ };
+ }).filter(Boolean);
+ const hits = [];
+
+ for (let leftIndex = 0; leftIndex < routed.length; leftIndex += 1) {
+ const left = routed[leftIndex];
+ for (let rightIndex = leftIndex + 1; rightIndex < routed.length; rightIndex += 1) {
+ const right = routed[rightIndex];
+ if ([left.relation.from, left.relation.to].some((id) => id === right.relation.from || id === right.relation.to)) continue;
+
+ let longest = null;
+ for (let leftSegment = 0; leftSegment < left.points.length - 1; leftSegment += 1) {
+ for (let rightSegment = 0; rightSegment < right.points.length - 1; rightSegment += 1) {
+ const overlap = collinearAxisOverlap(
+ left.points[leftSegment],
+ left.points[leftSegment + 1],
+ right.points[rightSegment],
+ right.points[rightSegment + 1],
+ );
+ if (!overlap || overlap.length + 0.0001 < minOverlapPx) continue;
+ if (!longest || overlap.length > longest.overlapLength + 0.0001) {
+ longest = {
+ left,
+ right,
+ leftSegment,
+ rightSegment,
+ overlapLength: overlap.length,
+ overlapStart: overlap.start,
+ overlapEnd: overlap.end,
+ };
+ }
+ }
+ }
+ if (longest) hits.push(longest);
+ }
+ }
+ return hits;
+}
+
+export function cleanAmbiguousCorridorProblems({
+ relations,
+ endpointIds,
+ pathFor,
+ diagramType,
+ relationCollection,
+ profile = 'standard',
+ routeHint = 'adjust route/via or channel coordinates so the relationships use separate corridors',
+ minOverlapPx = 8,
+}) {
+ const requestedProfile = process.env.ARCHIFY_QUALITY_PROFILE || profile;
+ if (requestedProfile !== 'showcase') return [];
+ const routedRelations = asArray(relations).map((relation, relationIndex) => {
+ if (!relation || typeof relation.from !== 'string' || typeof relation.to !== 'string') return null;
+ if (endpointIds && (!endpointIds.has(relation.from) || !endpointIds.has(relation.to))) return null;
+ return { relation, relationIndex, points: pathFor(relation)?.points };
+ }).filter(Boolean);
+
+ return collectAmbiguousCorridors({ routedRelations, minOverlapPx }).map((hit) => {
+ const describe = ({ relation, relationIndex }) => {
+ const id = relation.id ? ` id "${relation.id}"` : '';
+ return `${relationCollection}[${relationIndex}]${id} "${relation.from}" -> "${relation.to}"`;
+ };
+ const length = Math.round(hit.overlapLength * 10) / 10;
+ const from = hit.overlapStart.map((value) => Math.round(value * 10) / 10).join(', ');
+ const to = hit.overlapEnd.map((value) => Math.round(value * 10) / 10).join(', ');
+ return `[composition/ambiguous-corridor] showcase ${diagramType} ${describe(hit.left)} shares a ${length}px corridor with ${describe(hit.right)} at [${from}] -> [${to}] (segments ${hit.leftSegment} and ${hit.rightSegment}; minimum ${minOverlapPx}px) — ${routeHint}.`;
+ });
+}
+
// Relationship paths may cross a structural frame, but they must not borrow a
// frame side as a routing corridor. Rounded rectangle corners are trimmed from
// the modeled straight sides so a short corner touch is not mistaken for a
diff --git a/archify/renderers/workflow/README.md b/archify/renderers/workflow/README.md
index 2d4cae07..c6b4da79 100644
--- a/archify/renderers/workflow/README.md
+++ b/archify/renderers/workflow/README.md
@@ -106,7 +106,9 @@ count as two units.
Set `meta.quality_profile` to `showcase` for polished delivery. Unrelated proper
X crossings then fail with `composition/proper-crossing`; default `standard`
-keeps them as artifact-receipt warnings. Shared semantic endpoints, endpoint
-touches, and collinear lane corridors are not proper crossings. Showcase also
+keeps them as artifact-receipt warnings. Collinear lane corridors are outside
+the proper-X rule, but a separate gate warns in `standard` and fails in
+`showcase` when unrelated edges overlap for at least 8px. Shared semantic
+endpoints, point touches, and shorter overlaps remain valid. Showcase also
rejects any route segment below 8px and any interior turn segment below 16px;
ordinary 8–15px endpoint stubs remain valid for fixed lane gaps.
diff --git a/archify/renderers/workflow/render-workflow.mjs b/archify/renderers/workflow/render-workflow.mjs
index 07a846d0..68ce54cf 100644
--- a/archify/renderers/workflow/render-workflow.mjs
+++ b/archify/renderers/workflow/render-workflow.mjs
@@ -8,6 +8,7 @@ import {
rectsOverlap,
cleanFlowProblems,
cleanCrossingProblems,
+ cleanAmbiguousCorridorProblems,
cleanBorderRunProblems,
cleanRouteRhythmProblems,
suggestLabelObstacleFix,
@@ -295,6 +296,15 @@ function validateWorkflow() {
profile: workflow.meta?.quality_profile,
routeHint: 'adjust route/via, bias, or channel coordinates so the edges use separate lane corridors'
}));
+ problems.push(...cleanAmbiguousCorridorProblems({
+ relations: workflow.edges,
+ endpointIds: new Set(nodes.keys()),
+ pathFor,
+ diagramType: 'workflow',
+ relationCollection: 'edges',
+ profile: workflow.meta?.quality_profile,
+ routeHint: 'adjust route/via, bias, or channel coordinates so unrelated edges do not visually merge'
+ }));
problems.push(...cleanBorderRunProblems({
relations: workflow.edges,
endpointIds: new Set(nodes.keys()),
diff --git a/archify/scripts/check-render-output.mjs b/archify/scripts/check-render-output.mjs
index 773181f9..495d64b7 100644
--- a/archify/scripts/check-render-output.mjs
+++ b/archify/scripts/check-render-output.mjs
@@ -2,7 +2,7 @@
import fs from 'node:fs';
import path from 'node:path';
-import { collectBorderRuns, collectRouteRhythmIssues, routeBudgetMetrics } from '../renderers/shared/geometry.mjs';
+import { collectAmbiguousCorridors, collectBorderRuns, collectRouteRhythmIssues, routeBudgetMetrics } from '../renderers/shared/geometry.mjs';
const input = process.argv[2];
@@ -32,6 +32,7 @@ let composition = {
summary: { errors: 0, warnings: 0 },
metrics: {
properCrossings: 0,
+ ambiguousCorridors: 0,
containerBorderRuns: 0,
maxBends: 0,
routesOverSuggestedBends: 0,
@@ -88,13 +89,17 @@ if (svgMatches.length === 1) {
.map((arrow) => ({ relation: arrow, relationIndex: arrow.index, points: arrow.routePoints }));
const routeMetrics = routeBudgetMetrics({ routedRelations: routedRelationships });
const routeRhythmIssues = collectRouteRhythmIssues({ routedRelations: routedRelationships });
+ const ambiguousCorridors = collectAmbiguousCorridors({ routedRelations: routedRelationships });
const crossingIsError = qualityProfile === 'showcase';
+ const corridorIsError = qualityProfile === 'showcase';
const rhythmIsError = qualityProfile === 'showcase';
const compositionErrors = (qualityGatesEnforced ? containerBorderRuns.length : 0)
+ (crossingIsError ? relationshipCrossings.length : 0)
+ + (corridorIsError ? ambiguousCorridors.length : 0)
+ (rhythmIsError ? routeRhythmIssues.length : 0);
const compositionWarnings = (qualityGatesEnforced ? 0 : containerBorderRuns.length)
+ (crossingIsError ? 0 : relationshipCrossings.length)
+ + (corridorIsError ? 0 : ambiguousCorridors.length)
+ (rhythmIsError ? 0 : routeRhythmIssues.length);
composition = {
schemaVersion: 1,
@@ -106,6 +111,7 @@ if (svgMatches.length === 1) {
},
metrics: {
properCrossings: relationshipCrossings.length,
+ ambiguousCorridors: ambiguousCorridors.length,
containerBorderRuns: containerBorderRuns.length,
...roundedRouteMetrics(routeMetrics),
},
@@ -129,6 +135,17 @@ if (svgMatches.length === 1) {
otherRelationship: relationshipRecord(hit.right),
point: hit.point.map((value) => Math.round(value * 10) / 10),
})),
+ ...ambiguousCorridors.map((hit) => ({
+ severity: corridorIsError ? 'error' : 'warning',
+ code: 'composition/ambiguous-corridor',
+ relationship: relationshipRecord(hit.left.relation),
+ otherRelationship: relationshipRecord(hit.right.relation),
+ segmentIndex: hit.leftSegment,
+ otherSegmentIndex: hit.rightSegment,
+ overlapLength: Math.round(hit.overlapLength * 10) / 10,
+ from: hit.overlapStart.map((value) => Math.round(value * 10) / 10),
+ to: hit.overlapEnd.map((value) => Math.round(value * 10) / 10),
+ })),
...routeRhythmIssues.map((hit) => ({
severity: rhythmIsError ? 'error' : 'warning',
code: hit.code,
@@ -148,6 +165,13 @@ if (svgMatches.length === 1) {
`[composition/proper-crossing] ${qualityProfile} ${relationshipName(hit.left)} crosses ${relationshipName(hit.right)} at [${formatPoint(hit.point)}]`
)),
);
+ addCheck(
+ 'relationship_corridors',
+ !corridorIsError || ambiguousCorridors.length === 0,
+ ambiguousCorridors.map((hit) => (
+ `[composition/ambiguous-corridor] ${qualityProfile} ${relationshipName(hit.left.relation)} shares a ${Math.round(hit.overlapLength * 10) / 10}px corridor with ${relationshipName(hit.right.relation)} at [${formatPoint(hit.overlapStart)}] -> [${formatPoint(hit.overlapEnd)}]`
+ )),
+ );
addCheck(
'container_border_runs',
!qualityGatesEnforced || containerBorderRuns.length === 0,
diff --git a/archify/test/cli.test.mjs b/archify/test/cli.test.mjs
index 6cd2b572..e2ddb387 100644
--- a/archify/test/cli.test.mjs
+++ b/archify/test/cli.test.mjs
@@ -206,10 +206,11 @@ test('cli: validate emits structured json without keeping html output', () => {
const parsed = JSON.parse(result.stdout);
assert.equal(parsed.ok, true);
assert.equal(parsed.type, 'workflow');
- assert.equal(parsed.checks.length, 7);
+ assert.equal(parsed.checks.length, 8);
assert.equal(parsed.composition.profile, 'showcase');
assert.deepEqual(parsed.composition.summary, { errors: 0, warnings: 0 });
assert.equal(parsed.composition.metrics.containerBorderRuns, 0);
+ assert.equal(parsed.composition.metrics.ambiguousCorridors, 0);
assert.deepEqual(new Set(fs.readdirSync(tmp)), before);
});
diff --git a/archify/test/gallery.test.mjs b/archify/test/gallery.test.mjs
index 7c925357..9694d5b4 100644
--- a/archify/test/gallery.test.mjs
+++ b/archify/test/gallery.test.mjs
@@ -27,14 +27,14 @@ test('generated proof gallery matches its sources, receipts, and checked-in arti
path.join(repoRoot, 'scripts', 'build-gallery.mjs'),
generatedRoot,
], { encoding: 'utf8' });
- assert.match(output, /gallery 11 artifacts \/ 77 checks/);
+ assert.match(output, /gallery 11 artifacts \/ 88 checks/);
const manifestPath = path.join(generatedRoot, 'gallery', 'manifest.json');
const manifest = JSON.parse(fs.readFileSync(manifestPath, 'utf8'));
assert.equal(manifest.schemaVersion, 1);
assert.equal(manifest.archifyVersion, JSON.parse(fs.readFileSync(path.join(skillRoot, 'package.json'))).version);
assert.equal(manifest.entryCount, 11);
- assert.equal(manifest.checkCount, 77);
+ assert.equal(manifest.checkCount, 88);
assert.deepEqual(new Set(manifest.entries.map((entry) => entry.type)), new Set([
'architecture', 'workflow', 'sequence', 'dataflow', 'lifecycle',
]));
@@ -63,11 +63,12 @@ test('generated proof gallery matches its sources, receipts, and checked-in arti
assert.ok(fs.existsSync(source), `${entry.id}: source missing`);
assert.equal(sha256(artifact), entry.artifactSha256, `${entry.id}: artifact digest drift`);
assert.equal(sha256(source), entry.sourceSha256, `${entry.id}: source digest drift`);
- assert.equal(entry.checks.length, 7);
+ assert.equal(entry.checks.length, 8);
assert.ok(entry.checks.every((check) => check.ok), `${entry.id}: validation receipt not green`);
assert.equal(entry.composition.profile, 'showcase', `${entry.id}: expected showcase composition profile`);
assert.equal(entry.composition.status, 'pass', `${entry.id}: showcase composition is not green`);
assert.equal(entry.composition.metrics.properCrossings, 0, `${entry.id}: proper crossing debt remains`);
+ assert.equal(entry.composition.metrics.ambiguousCorridors, 0, `${entry.id}: ambiguous corridor debt remains`);
assert.equal(entry.composition.metrics.containerBorderRuns, 0, `${entry.id}: container border-run debt remains`);
assert.equal(entry.composition.metrics.shortInteriorSegmentCount, 0, `${entry.id}: cramped interior turn remains`);
assert.equal(entry.composition.metrics.microSegmentCount, 0, `${entry.id}: micro segment remains`);
diff --git a/archify/test/geometry.test.mjs b/archify/test/geometry.test.mjs
index edf7baa2..bab3b53c 100644
--- a/archify/test/geometry.test.mjs
+++ b/archify/test/geometry.test.mjs
@@ -12,6 +12,8 @@ import {
segmentIntersectsRect,
cleanFlowProblems,
cleanCrossingProblems,
+ collectAmbiguousCorridors,
+ cleanAmbiguousCorridorProblems,
collectBorderRuns,
cleanBorderRunProblems,
collectRouteRhythmIssues,
@@ -204,6 +206,64 @@ test('cleanCrossingProblems exempts endpoint touches and collinear corridors', (
assert.deepEqual(problems, []);
});
+test('ambiguous corridor gate reports unrelated collinear overlap with exact identities', () => {
+ const first = { id: 'first', from: 'a', to: 'b' };
+ const second = { id: 'second', from: 'c', to: 'd' };
+ const routes = new Map([
+ [first, { points: [[0, 20], [100, 20], [100, 80]] }],
+ [second, { points: [[40, 20], [140, 20], [140, 80]] }],
+ ]);
+ const hits = collectAmbiguousCorridors({
+ routedRelations: [first, second].map((relation, relationIndex) => ({
+ relation,
+ relationIndex,
+ points: routes.get(relation).points,
+ })),
+ });
+ assert.equal(hits.length, 1);
+ assert.equal(hits[0].overlapLength, 60);
+ assert.deepEqual(hits[0].overlapStart, [40, 20]);
+ assert.deepEqual(hits[0].overlapEnd, [100, 20]);
+
+ const problems = cleanAmbiguousCorridorProblems({
+ relations: [first, second],
+ endpointIds: new Set(['a', 'b', 'c', 'd']),
+ pathFor: (relation) => routes.get(relation),
+ diagramType: 'workflow',
+ relationCollection: 'edges',
+ profile: 'showcase',
+ routeHint: 'move a channel',
+ });
+ assert.equal(problems.length, 1);
+ assert.match(problems[0], /\[composition\/ambiguous-corridor\] showcase workflow/);
+ assert.match(problems[0], /edges\[0\] id "first" "a" -> "b" shares a 60px corridor with edges\[1\] id "second" "c" -> "d"/);
+ assert.match(problems[0], /\[40, 20\] -> \[100, 20\].*move a channel/);
+});
+
+test('ambiguous corridor gate exempts shared endpoints, point touches, and overlaps below 8px', () => {
+ const routedRelations = [
+ { relation: { from: 'a', to: 'b' }, relationIndex: 0, points: [[0, 20], [100, 20]] },
+ { relation: { from: 'a', to: 'c' }, relationIndex: 1, points: [[40, 20], [140, 20]] },
+ { relation: { from: 'd', to: 'e' }, relationIndex: 2, points: [[100, 20], [100, 80]] },
+ { relation: { from: 'f', to: 'g' }, relationIndex: 3, points: [[94, 60], [101, 60]] },
+ { relation: { from: 'h', to: 'i' }, relationIndex: 4, points: [[98, 60], [110, 60]] },
+ ];
+ assert.deepEqual(collectAmbiguousCorridors({ routedRelations }), []);
+});
+
+test('ambiguous corridor gate keeps standard renderable', () => {
+ const relations = [{ from: 'a', to: 'b' }, { from: 'c', to: 'd' }];
+ const routes = [[[0, 20], [100, 20]], [[40, 20], [140, 20]]];
+ assert.deepEqual(cleanAmbiguousCorridorProblems({
+ relations,
+ endpointIds: new Set(['a', 'b', 'c', 'd']),
+ pathFor: (relation) => ({ points: routes[relations.indexOf(relation)] }),
+ diagramType: 'architecture',
+ relationCollection: 'connections',
+ profile: 'standard',
+ }), []);
+});
+
test('cleanBorderRunProblems reports a deterministic long run on a rounded frame side', () => {
const relation = { id: 'jwt', from: 'auth', to: 'api' };
const problems = cleanBorderRunProblems({
diff --git a/archify/test/layout-rules.test.mjs b/archify/test/layout-rules.test.mjs
index f1e69136..92a3d1fa 100644
--- a/archify/test/layout-rules.test.mjs
+++ b/archify/test/layout-rules.test.mjs
@@ -310,6 +310,38 @@ test('architecture: standard keeps the same proper crossing renderable', () => {
assert.equal(code, 0, stderr);
});
+function ambiguousCorridorDocument(profile) {
+ return {
+ schema_version: 1,
+ diagram_type: 'architecture',
+ meta: { title: 'Ambiguous corridor', quality_profile: profile },
+ components: [
+ { id: 'a', type: 'frontend', label: 'A', pos: [40, 60], size: [60, 40] },
+ { id: 'b', type: 'backend', label: 'B', pos: [400, 60], size: [60, 40] },
+ { id: 'c', type: 'database', label: 'C', pos: [120, 220], size: [60, 40] },
+ { id: 'd', type: 'external', label: 'D', pos: [480, 220], size: [60, 40] },
+ ],
+ connections: [
+ { id: 'first', from: 'a', to: 'b', fromSide: 'right', toSide: 'left', route: 'straight' },
+ { id: 'second', from: 'c', to: 'd', fromSide: 'top', toSide: 'top', via: [[150, 80], [390, 80], [390, 180], [510, 180]] },
+ ],
+ };
+}
+
+test('architecture: showcase rejects an unrelated shared route corridor', () => {
+ const { code, stderr } = render('architecture', ambiguousCorridorDocument('showcase'));
+ assert.notEqual(code, 0, `expected non-zero exit; stderr:\n${stderr}`);
+ assert.match(stderr, /\[composition\/ambiguous-corridor\] showcase architecture/);
+ assert.match(stderr, /connections\[0\] id "first" "a" -> "b" shares a 240px corridor with connections\[1\] id "second" "c" -> "d"/);
+ assert.match(stderr, /\[150, 80\] -> \[390, 80\]/);
+ assert.match(stderr, /do not visually merge/);
+});
+
+test('architecture: standard keeps an ambiguous corridor renderable for repair', () => {
+ const { code, stderr } = render('architecture', ambiguousCorridorDocument('standard'));
+ assert.equal(code, 0, stderr);
+});
+
test('architecture: route rhythm warns in standard and blocks a showcase micro segment', () => {
const base = {
schema_version: 1,
diff --git a/archify/test/readme-showcase.test.mjs b/archify/test/readme-showcase.test.mjs
index ce2d56f1..527da32c 100644
--- a/archify/test/readme-showcase.test.mjs
+++ b/archify/test/readme-showcase.test.mjs
@@ -99,7 +99,7 @@ test('README motion proof is compact, looping, and backed by current gallery art
const artifact = path.join(repoRoot, scene.artifact);
assert.ok(fs.existsSync(artifact), `${scene.id}: source artifact missing`);
assert.equal(scene.artifactSha256, sha256(artifact), `${scene.id}: source artifact drift; rebuild README showcase`);
- assert.match(scene.receipt, /7\/7 checks/);
+ assert.match(scene.receipt, /8\/8 checks/);
}
});
diff --git a/archify/test/render-output-checks.test.mjs b/archify/test/render-output-checks.test.mjs
index 88bb7488..bdaf2b5c 100644
--- a/archify/test/render-output-checks.test.mjs
+++ b/archify/test/render-output-checks.test.mjs
@@ -98,17 +98,44 @@ test('render output check: showcase rejects a proper X with semantic identities'
assert.deepEqual(result.composition.summary, { errors: 1, warnings: 0 });
});
-test('render output check: shared endpoints, endpoint touches, and collinear corridors pass showcase', () => {
+test('render output check: shared endpoints and endpoint touches pass showcase', () => {
const { code, result } = checkHtml('showcase-exemptions', `
<path data-edge-from="a" data-edge-to="b" d="M 20 60 L 200 60" class="a-default" marker-end="url(#arrowhead)"/>
- <path data-edge-from="a" data-edge-to="c" d="M 100 20 L 100 120" class="a-dashed" marker-end="url(#arrowhead-dashed)"/>
+ <path data-edge-from="a" data-edge-to="c" d="M 100 20 L 100 90" class="a-dashed" marker-end="url(#arrowhead-dashed)"/>
<path data-edge-from="d" data-edge-to="e" d="M 20 100 L 100 100" class="a-default" marker-end="url(#arrowhead)"/>
<path data-edge-from="f" data-edge-to="g" d="M 100 100 L 100 140" class="a-default" marker-end="url(#arrowhead)"/>
- <path data-edge-from="h" data-edge-to="i" d="M 40 150 L 160 150" class="a-default" marker-end="url(#arrowhead)"/>
- <path data-edge-from="j" data-edge-to="k" d="M 80 150 L 180 150" class="a-dashed" marker-end="url(#arrowhead-dashed)"/>
`, 'showcase');
assert.equal(code, 0);
assert.equal(result.composition.metrics.properCrossings, 0);
+ assert.equal(result.composition.metrics.ambiguousCorridors, 0);
+});
+
+test('render output check: unrelated shared corridors warn in standard and fail showcase', () => {
+ for (const profile of ['standard', 'showcase']) {
+ const { code, result } = checkHtml(`corridor-${profile}`, `
+ <path data-edge-id="first" data-edge-from="a" data-edge-to="b" data-composition-points="20,60;140,60;140,100" d="M 20 60 L 140 60 L 140 100" class="a-default" marker-end="url(#arrowhead)"/>
+ <path data-edge-id="second" data-edge-from="c" data-edge-to="d" data-composition-points="60,60;180,60;180,100" d="M 60 60 L 180 60 L 180 100" class="a-dashed" marker-end="url(#arrowhead-dashed)"/>
+ `, profile);
+ assert.equal(result.composition.metrics.ambiguousCorridors, 1);
+ assert.equal(result.composition.issues[0].code, 'composition/ambiguous-corridor');
+ assert.equal(result.composition.issues[0].overlapLength, 80);
+ assert.deepEqual(result.composition.issues[0].from, [60, 60]);
+ assert.deepEqual(result.composition.issues[0].to, [140, 60]);
+ const check = result.checks.find((item) => item.name === 'relationship_corridors');
+ if (profile === 'standard') {
+ assert.equal(code, 0);
+ assert.equal(check.ok, true);
+ assert.deepEqual(result.composition.summary, { errors: 0, warnings: 1 });
+ assert.equal(result.composition.issues[0].severity, 'warning');
+ } else {
+ assert.notEqual(code, 0);
+ assert.equal(check.ok, false);
+ assert.match(check.details[0], /\[composition\/ambiguous-corridor\] showcase/);
+ assert.match(check.details[0], /relationship id "first".*relationship id "second"/);
+ assert.deepEqual(result.composition.summary, { errors: 1, warnings: 0 });
+ assert.equal(result.composition.issues[0].severity, 'error');
+ }
+ }
});
test('render output check: visible quadratic crossing is caught in showcase', () => {
diff --git a/docs/assets/archify-live-proof.gif b/docs/assets/archify-live-proof.gif
index 21eb31b0..a98d48f3 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 440401c6..6e8707a9 100644
--- a/docs/assets/archify-live-proof.json
+++ b/docs/assets/archify-live-proof.json
@@ -7,8 +7,8 @@
"fps": 10,
"frameCount": 54,
"durationSeconds": 5.4,
- "bytes": 1554103,
- "sha256": "ccd3b350b303c7d71fd535c10fd20816e20d008bea7e405821617b6d50f4f882",
+ "bytes": 1578140,
+ "sha256": "9337067319c49ec350f117bf8c54f33aa1ca5468d54833cf8a1e6a4336c33259",
"scenes": [
{
"id": "signal-flow",
@@ -17,7 +17,7 @@
"view": "happy-path",
"eyebrow": "WORKFLOW · SIGNAL FLOW",
"title": "Agent Tool Call",
- "receipt": "12 nodes · 11 edges · 7/7 checks"
+ "receipt": "12 nodes · 11 edges · 8/8 checks"
},
{
"id": "blueprint",
@@ -26,7 +26,7 @@
"view": "request-boundary",
"eyebrow": "ARCHITECTURE · BLUEPRINT",
"title": "Production Deployment",
- "receipt": "12 nodes · 12 edges · 7/7 checks"
+ "receipt": "12 nodes · 12 edges · 8/8 checks"
},
{
"id": "classic",
@@ -35,7 +35,7 @@
"view": "cache-fallback",
"eyebrow": "SEQUENCE · CLASSIC",
"title": "Cache Miss Request",
- "receipt": "7 participants · 12 messages · 7/7 checks"
+ "receipt": "7 participants · 12 messages · 8/8 checks"
}
]
}
diff --git a/docs/gallery.html b/docs/gallery.html
index a27ecb5f..f877027a 100644
--- a/docs/gallery.html
+++ b/docs/gallery.html
@@ -278,7 +278,7 @@
</div>
<div class="proof-board" aria-label="Gallery quality summary">
<div class="proof-row"><span class="proof-value">11</span><span class="proof-label" data-en="scenario proofs<br>from real IR" data-zh="个场景成品<br>来自真实 IR">scenario proofs<br>from real IR</span></div>
- <div class="proof-row"><span class="proof-value">77</span><span class="proof-label" data-en="structural checks<br>passed" data-zh="项结构检查<br>全部通过">structural checks<br>passed</span></div>
+ <div class="proof-row"><span class="proof-value">88</span><span class="proof-label" data-en="structural checks<br>passed" data-zh="项结构检查<br>全部通过">structural checks<br>passed</span></div>
<div class="proof-row"><span class="proof-value proof-status">PASS</span><span class="proof-label" data-en="generated from<br>source of truth" data-zh="从源数据<br>自动生成">generated from<br>source of truth</span></div>
</div>
</div>
@@ -321,7 +321,7 @@
<div class="card-body">
<p class="card-description" data-en="A policy-aware agent loop with planning, approval, tool execution, exception handling, and observability lanes." data-zh="包含规划、审批、工具执行、异常处理与可观测泳道的策略感知智能体闭环。">A policy-aware agent loop with planning, approval, tool execution, exception handling, and observability lanes.</p>
<div class="receipt" aria-label="Validation receipt">
- <div class="receipt-cell"><span class="receipt-label">Artifact</span><span class="receipt-value ok">7/7 pass</span></div>
+ <div class="receipt-cell"><span class="receipt-label">Artifact</span><span class="receipt-value ok">8/8 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="a41b7bd3264eb856deccbaeb45c75a79fa0d085ca0bca9adc60c280aedd8ac80">a41b7bd3264e</span></div>
@@ -349,7 +349,7 @@
<div class="card-body">
<p class="card-description" data-en="Regions, private networks, workload owners, state, cross-region replication, audit evidence, and named boundary crossings." data-zh="展示区域、私有网络、工作负载归属、状态、跨区复制、审计证据和明确的边界穿越。">Regions, private networks, workload owners, state, cross-region replication, audit evidence, and named boundary crossings.</p>
<div class="receipt" aria-label="Validation receipt">
- <div class="receipt-cell"><span class="receipt-label">Artifact</span><span class="receipt-value ok">7/7 pass</span></div>
+ <div class="receipt-cell"><span class="receipt-label">Artifact</span><span class="receipt-value ok">8/8 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="355624a26ea10022ed6431782f405aaca21f873e548d61e6798766efd75b7f1e">355624a26ea1</span></div>
@@ -377,7 +377,7 @@
<div class="card-body">
<p class="card-description" data-en="A time-ordered request path covering authentication, cache fallback, persistence, return traffic, and async tracing." data-zh="按时间展开鉴权、缓存回退、持久化、返回流量与异步追踪。">A time-ordered request path covering authentication, cache fallback, persistence, return traffic, and async tracing.</p>
<div class="receipt" aria-label="Validation receipt">
- <div class="receipt-cell"><span class="receipt-label">Artifact</span><span class="receipt-value ok">7/7 pass</span></div>
+ <div class="receipt-cell"><span class="receipt-label">Artifact</span><span class="receipt-value ok">8/8 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="61129906351bf7614b4df987c30135250cc5ac3a80937277fdd68368964e27b8">61129906351b</span></div>
@@ -405,7 +405,7 @@
<div class="card-body">
<p class="card-description" data-en="A change moves through reproducible build, blocking gates, human approval, canary verification, communication, and rollback." data-zh="一次变更依次经过可复现构建、阻断检查、人工审批、金丝雀验证、沟通和回滚。">A change moves through reproducible build, blocking gates, human approval, canary verification, communication, and rollback.</p>
<div class="receipt" aria-label="Validation receipt">
- <div class="receipt-cell"><span class="receipt-label">Artifact</span><span class="receipt-value ok">7/7 pass</span></div>
+ <div class="receipt-cell"><span class="receipt-label">Artifact</span><span class="receipt-value ok">8/8 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="cd293817b9dc6c2e0eeb922dbc53d8cadd246eaff963e660b644f8ddd1f76606">cd293817b9dc</span></div>
@@ -433,10 +433,10 @@
<div class="card-body">
<p class="card-description" data-en="Detection, incident command, mitigation, stakeholder communication, escalation, rollback, and recovery evidence." data-zh="覆盖发现、事故指挥、缓解、干系人沟通、升级、回滚和恢复证据。">Detection, incident command, mitigation, stakeholder communication, escalation, rollback, and recovery evidence.</p>
<div class="receipt" aria-label="Validation receipt">
- <div class="receipt-cell"><span class="receipt-label">Artifact</span><span class="receipt-value ok">7/7 pass</span></div>
+ <div class="receipt-cell"><span class="receipt-label">Artifact</span><span class="receipt-value ok">8/8 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="208e896992cddc67b75faa66f8d1e334b6d8b4cc2f7ef24fee25e2e4eab8ff68">208e896992cd</span></div>
+ <div class="receipt-cell"><span class="receipt-label">SHA-256</span><span class="receipt-value" title="835e9d74936f7f8dd83f259af0b0d6761e1be246a4d25d97a6123a3bba477c8f">835e9d74936f</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>
@@ -461,7 +461,7 @@
<div class="card-body">
<p class="card-description" data-en="Events move through consent, streaming, PII isolation, warehouse sync, and governed downstream consumers." data-zh="事件依次经过用户同意、流处理、PII 隔离、数仓同步和受治理的下游消费者。">Events move through consent, streaming, PII isolation, warehouse sync, and governed downstream consumers.</p>
<div class="receipt" aria-label="Validation receipt">
- <div class="receipt-cell"><span class="receipt-label">Artifact</span><span class="receipt-value ok">7/7 pass</span></div>
+ <div class="receipt-cell"><span class="receipt-label">Artifact</span><span class="receipt-value ok">8/8 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="dedcec651c4584c432f84ee900c04024493c1ad8ad03ef9c49c7730e3ee9ea58">dedcec651c45</span></div>
@@ -489,7 +489,7 @@
<div class="card-body">
<p class="card-description" data-en="A fast acknowledgement leads into durable queueing, background work, retry, final-state storage, webhook, and polling fallback." data-zh="快速确认后进入持久队列、后台处理、重试、终态存储、Webhook 和轮询回退。">A fast acknowledgement leads into durable queueing, background work, retry, final-state storage, webhook, and polling fallback.</p>
<div class="receipt" aria-label="Validation receipt">
- <div class="receipt-cell"><span class="receipt-label">Artifact</span><span class="receipt-value ok">7/7 pass</span></div>
+ <div class="receipt-cell"><span class="receipt-label">Artifact</span><span class="receipt-value ok">8/8 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="756a9b92babcf0461e695bfb8b9d1b093b457dc589e131319cbe6e6dced87a60">756a9b92babc</span></div>
@@ -517,10 +517,10 @@
<div class="card-body">
<p class="card-description" data-en="Named producers, partitioned topics, consumer groups, idempotent state, dead letters, operator ownership, and controlled replay." data-zh="展示命名生产者、分区 Topic、消费者组、幂等状态、死信、负责人和受控重放。">Named producers, partitioned topics, consumer groups, idempotent state, dead letters, operator ownership, and controlled replay.</p>
<div class="receipt" aria-label="Validation receipt">
- <div class="receipt-cell"><span class="receipt-label">Artifact</span><span class="receipt-value ok">7/7 pass</span></div>
+ <div class="receipt-cell"><span class="receipt-label">Artifact</span><span class="receipt-value ok">8/8 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="856e523ecc262cb1826bfbf29eaaf9a82e1276e2fa7c2836ecdb23128c404915">856e523ecc26</span></div>
+ <div class="receipt-cell"><span class="receipt-label">SHA-256</span><span class="receipt-value" title="d460f50fdb8bc8b15c5398fcc17ee36c705f56b4c4310f9f815127519d305294">d460f50fdb8b</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>
@@ -545,7 +545,7 @@
<div class="card-body">
<p class="card-description" data-en="Planning, execution, review, human approval, retry, cancellation, and terminal outcomes in one state model." data-zh="用一套状态模型表达规划、执行、复核、人工审批、重试、取消和终态。">Planning, execution, review, human approval, retry, cancellation, and terminal outcomes in one state model.</p>
<div class="receipt" aria-label="Validation receipt">
- <div class="receipt-cell"><span class="receipt-label">Artifact</span><span class="receipt-value ok">7/7 pass</span></div>
+ <div class="receipt-cell"><span class="receipt-label">Artifact</span><span class="receipt-value ok">8/8 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 · 5E</span></div>
<div class="receipt-cell"><span class="receipt-label">SHA-256</span><span class="receipt-value" title="57dbf98d59f143794517a68e9b3992797c21802570b1bc2ecf54db1b0f1a55ca">57dbf98d59f1</span></div>
@@ -573,7 +573,7 @@
<div class="card-body">
<p class="card-description" data-en="The deployment object moves through build, verification, approval, promotion, health pause, rollback, and explicit terminal outcomes." data-zh="部署对象经过构建、验证、审批、晋级、健康暂停、回滚和明确终态。">The deployment object moves through build, verification, approval, promotion, health pause, rollback, and explicit terminal outcomes.</p>
<div class="receipt" aria-label="Validation receipt">
- <div class="receipt-cell"><span class="receipt-label">Artifact</span><span class="receipt-value ok">7/7 pass</span></div>
+ <div class="receipt-cell"><span class="receipt-label">Artifact</span><span class="receipt-value ok">8/8 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="54270818ccff68c210e397e4110eb2b0be89a7eac8d5829de7227d7c27edf815">54270818ccff</span></div>
@@ -601,7 +601,7 @@
<div class="card-body">
<p class="card-description" data-en="A classic AWS web stack with edge delivery, authentication, API services, cache, persistence, and background work." data-zh="经典 AWS Web 栈:边缘分发、鉴权、API 服务、缓存、持久化与后台任务。">A classic AWS web stack with edge delivery, authentication, API services, cache, persistence, and background work.</p>
<div class="receipt" aria-label="Validation receipt">
- <div class="receipt-cell"><span class="receipt-label">Artifact</span><span class="receipt-value ok">7/7 pass</span></div>
+ <div class="receipt-cell"><span class="receipt-label">Artifact</span><span class="receipt-value ok">8/8 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="97778db6ffc40c103f412796ef396237ba8357d37c50cb9cac20bbccaa6c0f21">97778db6ffc4</span></div>
@@ -640,7 +640,7 @@ render dataflow ✓
render lifecycle ✓
render architecture ✓
-receipt 77 checks / 11 artifacts / deterministic hashes</pre>
+receipt 88 checks / 11 artifacts / deterministic hashes</pre>
</div>
</div>
</section>
@@ -658,7 +658,7 @@ receipt 77 checks / 11 artifacts / deterministic hashes</pre>
"generator": "scripts/build-gallery.mjs",
"archifyVersion": "2.11.0",
"entryCount": 11,
- "checkCount": 77,
+ "checkCount": 88,
"entries": [
{
"id": "agent-tool-call",
@@ -702,6 +702,10 @@ receipt 77 checks / 11 artifacts / deterministic hashes</pre>
"name": "relationship_crossings",
"ok": true
},
+ {
+ "name": "relationship_corridors",
+ "ok": true
+ },
{
"name": "container_border_runs",
"ok": true
@@ -725,6 +729,7 @@ receipt 77 checks / 11 artifacts / deterministic hashes</pre>
},
"metrics": {
"properCrossings": 0,
+ "ambiguousCorridors": 0,
"containerBorderRuns": 0,
"maxBends": 2,
"routesOverSuggestedBends": 0,
@@ -788,6 +793,10 @@ receipt 77 checks / 11 artifacts / deterministic hashes</pre>
"name": "relationship_crossings",
"ok": true
},
+ {
+ "name": "relationship_corridors",
+ "ok": true
+ },
{
"name": "container_border_runs",
"ok": true
@@ -811,6 +820,7 @@ receipt 77 checks / 11 artifacts / deterministic hashes</pre>
},
"metrics": {
"properCrossings": 0,
+ "ambiguousCorridors": 0,
"containerBorderRuns": 0,
"maxBends": 2,
"routesOverSuggestedBends": 0,
@@ -874,6 +884,10 @@ receipt 77 checks / 11 artifacts / deterministic hashes</pre>
"name": "relationship_crossings",
"ok": true
},
+ {
+ "name": "relationship_corridors",
+ "ok": true
+ },
{
"name": "container_border_runs",
"ok": true
@@ -897,6 +911,7 @@ receipt 77 checks / 11 artifacts / deterministic hashes</pre>
},
"metrics": {
"properCrossings": 0,
+ "ambiguousCorridors": 0,
"containerBorderRuns": 0,
"maxBends": 0,
"routesOverSuggestedBends": 0,
@@ -960,6 +975,10 @@ receipt 77 checks / 11 artifacts / deterministic hashes</pre>
"name": "relationship_crossings",
"ok": true
},
+ {
+ "name": "relationship_corridors",
+ "ok": true
+ },
{
"name": "container_border_runs",
"ok": true
@@ -983,6 +1002,7 @@ receipt 77 checks / 11 artifacts / deterministic hashes</pre>
},
"metrics": {
"properCrossings": 0,
+ "ambiguousCorridors": 0,
"containerBorderRuns": 0,
"maxBends": 2,
"routesOverSuggestedBends": 0,
@@ -1025,10 +1045,10 @@ receipt 77 checks / 11 artifacts / deterministic hashes</pre>
"animation": "trace",
"nodeCount": 11,
"edgeCount": 10,
- "artifactBytes": 524385,
- "artifactSha256": "208e896992cddc67b75faa66f8d1e334b6d8b4cc2f7ef24fee25e2e4eab8ff68",
- "sourceBytes": 5478,
- "sourceSha256": "73dfd0779c8657c766a1b598447ffb193303d327b3c8effa09bbc4e3bb0909c7",
+ "artifactBytes": 524377,
+ "artifactSha256": "835e9d74936f7f8dd83f259af0b0d6761e1be246a4d25d97a6123a3bba477c8f",
+ "sourceBytes": 5471,
+ "sourceSha256": "9beb8698b275679a2fc92d4b51288cd5b5fc2115696d06b9168f3d7fef253a72",
"checks": [
{
"name": "single_svg",
@@ -1046,6 +1066,10 @@ receipt 77 checks / 11 artifacts / deterministic hashes</pre>
"name": "relationship_crossings",
"ok": true
},
+ {
+ "name": "relationship_corridors",
+ "ok": true
+ },
{
"name": "container_border_runs",
"ok": true
@@ -1069,11 +1093,12 @@ receipt 77 checks / 11 artifacts / deterministic hashes</pre>
},
"metrics": {
"properCrossings": 0,
+ "ambiguousCorridors": 0,
"containerBorderRuns": 0,
"maxBends": 3,
"routesOverSuggestedBends": 1,
- "maxStretch": 1.914,
- "routesOverSuggestedStretch": 2,
+ "maxStretch": 3.465,
+ "routesOverSuggestedStretch": 3,
"minSegmentPx": 21,
"minInteriorSegmentPx": 70,
"shortSegmentCount": 0,
@@ -1132,6 +1157,10 @@ receipt 77 checks / 11 artifacts / deterministic hashes</pre>
"name": "relationship_crossings",
"ok": true
},
+ {
+ "name": "relationship_corridors",
+ "ok": true
+ },
{
"name": "container_border_runs",
"ok": true
@@ -1155,6 +1184,7 @@ receipt 77 checks / 11 artifacts / deterministic hashes</pre>
},
"metrics": {
"properCrossings": 0,
+ "ambiguousCorridors": 0,
"containerBorderRuns": 0,
"maxBends": 3,
"routesOverSuggestedBends": 2,
@@ -1218,6 +1248,10 @@ receipt 77 checks / 11 artifacts / deterministic hashes</pre>
"name": "relationship_crossings",
"ok": true
},
+ {
+ "name": "relationship_corridors",
+ "ok": true
+ },
{
"name": "container_border_runs",
"ok": true
@@ -1241,6 +1275,7 @@ receipt 77 checks / 11 artifacts / deterministic hashes</pre>
},
"metrics": {
"properCrossings": 0,
+ "ambiguousCorridors": 0,
"containerBorderRuns": 0,
"maxBends": 0,
"routesOverSuggestedBends": 0,
@@ -1283,10 +1318,10 @@ receipt 77 checks / 11 artifacts / deterministic hashes</pre>
"animation": "trace",
"nodeCount": 12,
"edgeCount": 12,
- "artifactBytes": 529907,
- "artifactSha256": "856e523ecc262cb1826bfbf29eaaf9a82e1276e2fa7c2836ecdb23128c404915",
- "sourceBytes": 5523,
- "sourceSha256": "6ba25b4ea9897f05061b073d45a3914bf95fbe7a9e9d63fcb3e8ba76222fdfd7",
+ "artifactBytes": 529917,
+ "artifactSha256": "d460f50fdb8bc8b15c5398fcc17ee36c705f56b4c4310f9f815127519d305294",
+ "sourceBytes": 5528,
+ "sourceSha256": "6541e9d00ea1efc38e4afc9c1cb4bbbea6e4468781e64da43ad9787cd6d51efc",
"checks": [
{
"name": "single_svg",
@@ -1304,6 +1339,10 @@ receipt 77 checks / 11 artifacts / deterministic hashes</pre>
"name": "relationship_crossings",
"ok": true
},
+ {
+ "name": "relationship_corridors",
+ "ok": true
+ },
{
"name": "container_border_runs",
"ok": true
@@ -1327,11 +1366,12 @@ receipt 77 checks / 11 artifacts / deterministic hashes</pre>
},
"metrics": {
"properCrossings": 0,
+ "ambiguousCorridors": 0,
"containerBorderRuns": 0,
- "maxBends": 3,
+ "maxBends": 4,
"routesOverSuggestedBends": 1,
- "maxStretch": 1.332,
- "routesOverSuggestedStretch": 0,
+ "maxStretch": 2.663,
+ "routesOverSuggestedStretch": 1,
"minSegmentPx": 34,
"minInteriorSegmentPx": 103,
"shortSegmentCount": 0,
@@ -1390,6 +1430,10 @@ receipt 77 checks / 11 artifacts / deterministic hashes</pre>
"name": "relationship_crossings",
"ok": true
},
+ {
+ "name": "relationship_corridors",
+ "ok": true
+ },
{
"name": "container_border_runs",
"ok": true
@@ -1413,6 +1457,7 @@ receipt 77 checks / 11 artifacts / deterministic hashes</pre>
},
"metrics": {
"properCrossings": 0,
+ "ambiguousCorridors": 0,
"containerBorderRuns": 0,
"maxBends": 3,
"routesOverSuggestedBends": 1,
@@ -1476,6 +1521,10 @@ receipt 77 checks / 11 artifacts / deterministic hashes</pre>
"name": "relationship_crossings",
"ok": true
},
+ {
+ "name": "relationship_corridors",
+ "ok": true
+ },
{
"name": "container_border_runs",
"ok": true
@@ -1499,6 +1548,7 @@ receipt 77 checks / 11 artifacts / deterministic hashes</pre>
},
"metrics": {
"properCrossings": 0,
+ "ambiguousCorridors": 0,
"containerBorderRuns": 0,
"maxBends": 0,
"routesOverSuggestedBends": 0,
@@ -1562,6 +1612,10 @@ receipt 77 checks / 11 artifacts / deterministic hashes</pre>
"name": "relationship_crossings",
"ok": true
},
+ {
+ "name": "relationship_corridors",
+ "ok": true
+ },
{
"name": "container_border_runs",
"ok": true
@@ -1585,6 +1639,7 @@ receipt 77 checks / 11 artifacts / deterministic hashes</pre>
},
"metrics": {
"properCrossings": 0,
+ "ambiguousCorridors": 0,
"containerBorderRuns": 0,
"maxBends": 3,
"routesOverSuggestedBends": 1,
diff --git a/docs/gallery/artifacts/event-stream.dataflow.html b/docs/gallery/artifacts/event-stream.dataflow.html
index fe3d6f0c..c28bc0a7 100644
--- a/docs/gallery/artifacts/event-stream.dataflow.html
+++ b/docs/gallery/artifacts/event-stream.dataflow.html
@@ -3876,7 +3876,7 @@
<path data-edge-from="enrich" data-edge-to="state" data-edge-label="enriched payment" data-edge-key="5" data-composition-points="586,385;630,385;630,271;689,271" d="M 586 385 L 630 385 L 630 271 L 689 271" class="a-default" data-animate="edge" style="--step:5" stroke-width="1.4" marker-end="url(#arrowhead)"/>
<path data-edge-from="state" data-edge-to="fulfillment" data-edge-label="ready orders" data-edge-key="6" data-composition-points="801,271;845,271;845,157;904,157" d="M 801 271 L 845 271 L 845 157 L 904 157" class="a-emphasis" data-animate="edge" style="--step:6" stroke-width="1.8" marker-end="url(#arrowhead-emphasis)"/>
<path data-edge-from="state" data-edge-to="analytics" data-edge-label="order facts" data-edge-key="7" data-composition-points="801,271;845,271;845,385;904,385" d="M 801 271 L 845 271 L 845 385 L 904 385" class="a-default" data-animate="edge" style="--step:7" stroke-width="1.4" marker-end="url(#arrowhead)"/>
- <path data-edge-from="validate" data-edge-to="dlq" data-edge-label="invalid event" data-edge-key="8" data-composition-points="530,186;630,186;630,550;745,550;745,584" d="M 530 186 L 630 186 L 630 550 L 745 550 L 745 584" class="a-security" data-animate="edge" style="--step:8" stroke-width="1.4" marker-end="url(#arrowhead-security)"/>
+ <path data-edge-from="validate" data-edge-to="dlq" data-edge-label="invalid event" data-edge-key="8" data-composition-points="530,128;530,80;20,80;20,550;745,550;745,584" d="M 530 128 L 530 80 L 20 80 L 20 550 L 745 550 L 745 584" class="a-security" data-animate="edge" style="--step:8" stroke-width="1.4" marker-end="url(#arrowhead-security)"/>
<path data-edge-from="enrich" data-edge-to="dlq" data-edge-label="poison event" data-edge-key="9" data-composition-points="586,385;586,668;689,668;689,613" d="M 586 385 L 586 668 L 689 668 L 689 613" class="a-security" data-animate="edge" style="--step:9" stroke-width="1.4" marker-end="url(#arrowhead-security)"/>
<path data-edge-from="dlq" data-edge-to="ops" data-edge-label="failure sample" data-edge-key="10" data-composition-points="801,613;845,613;845,481;904,481" d="M 801 613 L 845 613 L 845 481 L 904 481" class="a-security" data-animate="edge" style="--step:10" stroke-width="1.4" marker-end="url(#arrowhead-security)"/>
<path data-edge-from="dlq" data-edge-to="replay" data-edge-label="approved replay" data-edge-key="11" data-composition-points="801,613;904,613" d="M 801 613 L 904 613" class="a-dashed" data-animate="edge" style="--step:11" stroke-width="1.4" marker-end="url(#arrowhead-dashed)"/>
@@ -4084,9 +4084,9 @@
<text data-detail="fine" x="845" y="329" class="t-dim" font-size="7" text-anchor="middle">non-PII</text>
</g>
<g data-detail="context" data-edge-from="validate" data-edge-to="dlq" data-edge-label="invalid event" data-edge-key="8">
- <rect x="592.15" y="417" width="75.7" height="27" rx="4" class="c-mask"/>
- <text x="630" y="428" class="t-security" font-size="8" text-anchor="middle">invalid event</text>
- <text data-detail="fine" x="630" y="439" class="t-dim" font-size="7" text-anchor="middle">dead letter</text>
+ <rect x="262.15" y="539" width="75.7" height="27" rx="4" class="c-mask"/>
+ <text x="300" y="550" class="t-security" font-size="8" text-anchor="middle">invalid event</text>
+ <text data-detail="fine" x="300" y="561" class="t-dim" font-size="7" text-anchor="middle">dead letter</text>
</g>
<g data-detail="context" data-edge-from="enrich" data-edge-to="dlq" data-edge-label="poison event" data-edge-key="9">
<rect x="602.1" y="677" width="70.80000000000001" height="27" rx="4" class="c-mask"/>
diff --git a/docs/gallery/artifacts/incident-response.workflow.html b/docs/gallery/artifacts/incident-response.workflow.html
index 3c5737c1..b1cbf2e2 100644
--- a/docs/gallery/artifacts/incident-response.workflow.html
+++ b/docs/gallery/artifacts/incident-response.workflow.html
@@ -3896,7 +3896,7 @@
<path data-edge-from="recover" data-edge-to="verify" data-edge-key="4" data-composition-points="500,393;500,414;625,414;625,457" d="M 500 393 L 500 414 L 625 414 L 625 457" class="a-emphasis" data-animate="edge" style="--step:4" stroke-width="1.8" marker-end="url(#arrowhead-emphasis)"/>
<path data-edge-from="verify" data-edge-to="close" data-edge-key="5" data-composition-points="625,525;625,538;625,538;625,589" d="M 625 525 L 625 538 L 625 538 L 625 589" class="a-emphasis" data-animate="edge" style="--step:5" stroke-width="1.8" marker-end="url(#arrowhead-emphasis)"/>
<path data-edge-from="triage" data-edge-to="declare" data-edge-key="6" data-composition-points="332,243;384,243" d="M 332 243 L 384 243" class="a-security" data-animate="edge" style="--step:12" stroke-width="1.4" marker-end="url(#arrowhead-security)"/>
- <path data-edge-from="declare" data-edge-to="update" data-edge-key="7" data-composition-points="430,277;430,310;356,310;356,615;384,615" d="M 430 277 L 430 310 L 356 310 L 356 615 L 384 615" class="a-dashed" data-animate="edge" style="--step:12" stroke-width="1.4" marker-end="url(#arrowhead-dashed)"/>
+ <path data-edge-from="declare" data-edge-to="update" data-edge-key="7" data-composition-points="430,209;430,16;20,16;20,615;384,615" d="M 430 209 L 430 16 L 20 16 L 20 615 L 384 615" class="a-dashed" data-animate="edge" style="--step:12" stroke-width="1.4" marker-end="url(#arrowhead-dashed)"/>
<path data-edge-from="update" data-edge-to="escalate" data-edge-key="8" data-composition-points="430,641;430,662;430,662;430,713" d="M 430 641 L 430 662 L 430 662 L 430 713" class="a-security" data-animate="edge" style="--step:12" stroke-width="1.4" marker-end="url(#arrowhead-security)"/>
<path data-edge-from="verify" data-edge-to="rollback" data-edge-key="9" data-composition-points="671,491;692,491;692,739;671,739" d="M 671 491 L 692 491 L 692 739 L 671 739" class="a-security" data-animate="edge" style="--step:12" stroke-width="1.4" marker-end="url(#arrowhead-security)"/>
diff --git a/docs/gallery/manifest.json b/docs/gallery/manifest.json
index 9e0fed1e..bf564874 100644
--- a/docs/gallery/manifest.json
+++ b/docs/gallery/manifest.json
@@ -3,7 +3,7 @@
"generator": "scripts/build-gallery.mjs",
"archifyVersion": "2.11.0",
"entryCount": 11,
- "checkCount": 77,
+ "checkCount": 88,
"entries": [
{
"id": "agent-tool-call",
@@ -47,6 +47,10 @@
"name": "relationship_crossings",
"ok": true
},
+ {
+ "name": "relationship_corridors",
+ "ok": true
+ },
{
"name": "container_border_runs",
"ok": true
@@ -70,6 +74,7 @@
},
"metrics": {
"properCrossings": 0,
+ "ambiguousCorridors": 0,
"containerBorderRuns": 0,
"maxBends": 2,
"routesOverSuggestedBends": 0,
@@ -133,6 +138,10 @@
"name": "relationship_crossings",
"ok": true
},
+ {
+ "name": "relationship_corridors",
+ "ok": true
+ },
{
"name": "container_border_runs",
"ok": true
@@ -156,6 +165,7 @@
},
"metrics": {
"properCrossings": 0,
+ "ambiguousCorridors": 0,
"containerBorderRuns": 0,
"maxBends": 2,
"routesOverSuggestedBends": 0,
@@ -219,6 +229,10 @@
"name": "relationship_crossings",
"ok": true
},
+ {
+ "name": "relationship_corridors",
+ "ok": true
+ },
{
"name": "container_border_runs",
"ok": true
@@ -242,6 +256,7 @@
},
"metrics": {
"properCrossings": 0,
+ "ambiguousCorridors": 0,
"containerBorderRuns": 0,
"maxBends": 0,
"routesOverSuggestedBends": 0,
@@ -305,6 +320,10 @@
"name": "relationship_crossings",
"ok": true
},
+ {
+ "name": "relationship_corridors",
+ "ok": true
+ },
{
"name": "container_border_runs",
"ok": true
@@ -328,6 +347,7 @@
},
"metrics": {
"properCrossings": 0,
+ "ambiguousCorridors": 0,
"containerBorderRuns": 0,
"maxBends": 2,
"routesOverSuggestedBends": 0,
@@ -370,10 +390,10 @@
"animation": "trace",
"nodeCount": 11,
"edgeCount": 10,
- "artifactBytes": 524385,
- "artifactSha256": "208e896992cddc67b75faa66f8d1e334b6d8b4cc2f7ef24fee25e2e4eab8ff68",
- "sourceBytes": 5478,
- "sourceSha256": "73dfd0779c8657c766a1b598447ffb193303d327b3c8effa09bbc4e3bb0909c7",
+ "artifactBytes": 524377,
+ "artifactSha256": "835e9d74936f7f8dd83f259af0b0d6761e1be246a4d25d97a6123a3bba477c8f",
+ "sourceBytes": 5471,
+ "sourceSha256": "9beb8698b275679a2fc92d4b51288cd5b5fc2115696d06b9168f3d7fef253a72",
"checks": [
{
"name": "single_svg",
@@ -391,6 +411,10 @@
"name": "relationship_crossings",
"ok": true
},
+ {
+ "name": "relationship_corridors",
+ "ok": true
+ },
{
"name": "container_border_runs",
"ok": true
@@ -414,11 +438,12 @@
},
"metrics": {
"properCrossings": 0,
+ "ambiguousCorridors": 0,
"containerBorderRuns": 0,
"maxBends": 3,
"routesOverSuggestedBends": 1,
- "maxStretch": 1.914,
- "routesOverSuggestedStretch": 2,
+ "maxStretch": 3.465,
+ "routesOverSuggestedStretch": 3,
"minSegmentPx": 21,
"minInteriorSegmentPx": 70,
"shortSegmentCount": 0,
@@ -477,6 +502,10 @@
"name": "relationship_crossings",
"ok": true
},
+ {
+ "name": "relationship_corridors",
+ "ok": true
+ },
{
"name": "container_border_runs",
"ok": true
@@ -500,6 +529,7 @@
},
"metrics": {
"properCrossings": 0,
+ "ambiguousCorridors": 0,
"containerBorderRuns": 0,
"maxBends": 3,
"routesOverSuggestedBends": 2,
@@ -563,6 +593,10 @@
"name": "relationship_crossings",
"ok": true
},
+ {
+ "name": "relationship_corridors",
+ "ok": true
+ },
{
"name": "container_border_runs",
"ok": true
@@ -586,6 +620,7 @@
},
"metrics": {
"properCrossings": 0,
+ "ambiguousCorridors": 0,
"containerBorderRuns": 0,
"maxBends": 0,
"routesOverSuggestedBends": 0,
@@ -628,10 +663,10 @@
"animation": "trace",
"nodeCount": 12,
"edgeCount": 12,
- "artifactBytes": 529907,
- "artifactSha256": "856e523ecc262cb1826bfbf29eaaf9a82e1276e2fa7c2836ecdb23128c404915",
- "sourceBytes": 5523,
- "sourceSha256": "6ba25b4ea9897f05061b073d45a3914bf95fbe7a9e9d63fcb3e8ba76222fdfd7",
+ "artifactBytes": 529917,
+ "artifactSha256": "d460f50fdb8bc8b15c5398fcc17ee36c705f56b4c4310f9f815127519d305294",
+ "sourceBytes": 5528,
+ "sourceSha256": "6541e9d00ea1efc38e4afc9c1cb4bbbea6e4468781e64da43ad9787cd6d51efc",
"checks": [
{
"name": "single_svg",
@@ -649,6 +684,10 @@
"name": "relationship_crossings",
"ok": true
},
+ {
+ "name": "relationship_corridors",
+ "ok": true
+ },
{
"name": "container_border_runs",
"ok": true
@@ -672,11 +711,12 @@
},
"metrics": {
"properCrossings": 0,
+ "ambiguousCorridors": 0,
"containerBorderRuns": 0,
- "maxBends": 3,
+ "maxBends": 4,
"routesOverSuggestedBends": 1,
- "maxStretch": 1.332,
- "routesOverSuggestedStretch": 0,
+ "maxStretch": 2.663,
+ "routesOverSuggestedStretch": 1,
"minSegmentPx": 34,
"minInteriorSegmentPx": 103,
"shortSegmentCount": 0,
@@ -735,6 +775,10 @@
"name": "relationship_crossings",
"ok": true
},
+ {
+ "name": "relationship_corridors",
+ "ok": true
+ },
{
"name": "container_border_runs",
"ok": true
@@ -758,6 +802,7 @@
},
"metrics": {
"properCrossings": 0,
+ "ambiguousCorridors": 0,
"containerBorderRuns": 0,
"maxBends": 3,
"routesOverSuggestedBends": 1,
@@ -821,6 +866,10 @@
"name": "relationship_crossings",
"ok": true
},
+ {
+ "name": "relationship_corridors",
+ "ok": true
+ },
{
"name": "container_border_runs",
"ok": true
@@ -844,6 +893,7 @@
},
"metrics": {
"properCrossings": 0,
+ "ambiguousCorridors": 0,
"containerBorderRuns": 0,
"maxBends": 0,
"routesOverSuggestedBends": 0,
@@ -907,6 +957,10 @@
"name": "relationship_crossings",
"ok": true
},
+ {
+ "name": "relationship_corridors",
+ "ok": true
+ },
{
"name": "container_border_runs",
"ok": true
@@ -930,6 +984,7 @@
},
"metrics": {
"properCrossings": 0,
+ "ambiguousCorridors": 0,
"containerBorderRuns": 0,
"maxBends": 3,
"routesOverSuggestedBends": 1,
diff --git a/docs/gallery/sources/event-stream.dataflow.json b/docs/gallery/sources/event-stream.dataflow.json
index dba61bc0..c6f428a7 100644
--- a/docs/gallery/sources/event-stream.dataflow.json
+++ b/docs/gallery/sources/event-stream.dataflow.json
@@ -45,7 +45,7 @@
{ "from": "enrich", "to": "state", "label": "enriched payment", "classification": "idempotent", "variant": "default", "route": "vertical-channel" },
{ "from": "state", "to": "fulfillment", "label": "ready orders", "classification": "read model", "variant": "emphasis", "route": "vertical-channel" },
{ "from": "state", "to": "analytics", "label": "order facts", "classification": "non-PII", "variant": "default", "route": "vertical-channel" },
- { "from": "validate", "to": "dlq", "label": "invalid event", "classification": "dead letter", "variant": "security", "fromSide": "bottom", "toSide": "top", "via": [[630, 186], [630, 550], [745, 550]], "labelAt": [630, 428] },
+ { "from": "validate", "to": "dlq", "label": "invalid event", "classification": "dead letter", "variant": "security", "fromSide": "top", "toSide": "top", "via": [[530, 80], [20, 80], [20, 550], [745, 550]], "labelAt": [300, 550] },
{ "from": "enrich", "to": "dlq", "label": "poison event", "classification": "dead letter", "variant": "security", "route": "bottom-channel", "labelDy": 30 },
{ "from": "dlq", "to": "ops", "label": "failure sample", "classification": "restricted", "variant": "security", "route": "vertical-channel" },
{ "from": "dlq", "to": "replay", "label": "approved replay", "classification": "audited batch", "variant": "dashed", "route": "straight" }
diff --git a/docs/gallery/sources/incident-response.workflow.json b/docs/gallery/sources/incident-response.workflow.json
index e4ac0753..fca59b35 100644
--- a/docs/gallery/sources/incident-response.workflow.json
+++ b/docs/gallery/sources/incident-response.workflow.json
@@ -53,7 +53,7 @@
{ "from": "recover", "to": "verify", "variant": "emphasis", "route": "drop", "fromSide": "bottom", "toSide": "top" },
{ "from": "verify", "to": "close", "variant": "emphasis", "route": "drop", "fromSide": "bottom", "toSide": "top" },
{ "from": "triage", "to": "declare", "variant": "security" },
- { "from": "declare", "to": "update", "variant": "dashed", "fromSide": "bottom", "toSide": "left", "via": [[430, 310], [356, 310], [356, 615]] },
+ { "from": "declare", "to": "update", "variant": "dashed", "fromSide": "top", "toSide": "left", "via": [[430, 16], [20, 16], [20, 615]] },
{ "from": "update", "to": "escalate", "variant": "security", "route": "drop", "fromSide": "bottom", "toSide": "top" },
{ "from": "verify", "to": "rollback", "variant": "security", "role": "error", "route": "outside-right", "fromSide": "right", "toSide": "right" }
],
diff --git a/docs/index.html b/docs/index.html
index 1acef14e..9bc0145b 100644
--- a/docs/index.html
+++ b/docs/index.html
@@ -283,7 +283,7 @@
<span class="proof-live" data-i18n="proof-live">Live proof</span>
<div class="proof-status-copy">
<strong data-i18n="proof-status">Generated, checked, interactive</strong>
- <span data-i18n="proof-receipt">Real gallery artifact · 7/7 validation checks</span>
+ <span data-i18n="proof-receipt">Real gallery artifact · 8/8 validation checks</span>
</div>
</div>
<div class="proof-tabs" id="proof-tabs" role="tablist" aria-label="Choose a live Archify proof">
@@ -688,7 +688,7 @@ npx skills use tt-a1i/archify@archify --agent codex
'hero-h1':'From plain English<br>to architecture <em>in seconds.</em>',
'hero-sub':'Describe your system in chat. Archify generates a polished, explorable HTML diagram — with progressive MAP → READ → FULL detail, a semantic camera, path-aware stories, motion, and ultra-crisp export built in.',
'hero-cta':'Choose the right diagram','hero-gallery':'Explore proof gallery',
- 'proof-live':'Live proof','proof-status':'Generated, checked, interactive','proof-receipt':'Real gallery artifact · 7/7 validation checks','proof-open':'Open artifact','proof-hint':'Play a story that follows the current authored moment, then pin and share that exact node.',
+ 'proof-live':'Live proof','proof-status':'Generated, checked, interactive','proof-receipt':'Real gallery artifact · 8/8 validation checks','proof-open':'Open artifact','proof-hint':'Play a story that follows the current authored moment, then pin and share that exact node.',
'label-types':'Diagram Types',
'types-h2':'Five ways to see your system.',
'types-body':'Architecture, workflows, sequences, data flows, or state machines — describe what you need and Archify picks the right visual language.',
@@ -747,7 +747,7 @@ npx skills use tt-a1i/archify@archify --agent codex
'hero-h1':'用自然语言,<br>秒级生成<em>架构图。</em>',
'hero-sub':'在对话中描述你的系统,Archify 生成精美、可探索的 HTML 技术图——信息会按 MAP → READ → FULL 渐进展开,并内置语义镜头、路径故事、动态效果和超清导出。',
'hero-cta':'选择合适的图','hero-gallery':'查看验证作品集',
- 'proof-live':'实时成品','proof-status':'自动生成 · 检查通过 · 可交互','proof-receipt':'真实作品集成品 · 7/7 项验证通过','proof-open':'打开完整成品','proof-hint':'播放会跟随当前作者时刻的故事,再钉住并分享这个精确节点。',
+ 'proof-live':'实时成品','proof-status':'自动生成 · 检查通过 · 可交互','proof-receipt':'真实作品集成品 · 8/8 项验证通过','proof-open':'打开完整成品','proof-hint':'播放会跟随当前作者时刻的故事,再钉住并分享这个精确节点。',
'label-types':'图表类型',
'types-h2':'五种方式,读懂你的系统。',
'types-body':'架构图、工作流、时序图、数据流图、状态机——描述需求,Archify 自动选择最合适的可视化语言。',
diff --git a/scripts/build-readme-showcase.mjs b/scripts/build-readme-showcase.mjs
index 8d0ea4e1..bcd12ac6 100644
--- a/scripts/build-readme-showcase.mjs
+++ b/scripts/build-readme-showcase.mjs
@@ -24,7 +24,7 @@ const scenes = [
view: 'happy-path',
eyebrow: 'WORKFLOW · SIGNAL FLOW',
title: 'Agent Tool Call',
- receipt: '12 nodes · 11 edges · 7/7 checks',
+ receipt: '12 nodes · 11 edges · 8/8 checks',
accent: '#67e8f9',
},
{
@@ -33,7 +33,7 @@ const scenes = [
view: 'request-boundary',
eyebrow: 'ARCHITECTURE · BLUEPRINT',
title: 'Production Deployment',
- receipt: '12 nodes · 12 edges · 7/7 checks',
+ receipt: '12 nodes · 12 edges · 8/8 checks',
accent: '#f6c453',
},
{
@@ -42,7 +42,7 @@ const scenes = [
view: 'cache-fallback',
eyebrow: 'SEQUENCE · CLASSIC',
title: 'Cache Miss Request',
- receipt: '7 participants · 12 messages · 7/7 checks',
+ receipt: '7 participants · 12 messages · 8/8 checks',
accent: '#c4b5fd',
},
];