Repository navigation
feat(core): route edges in the multi-system root view - #2369
Merged
Merged
Conversation
2 of 3 tasks
kompiro
force-pushed
the
feat/routing-multi-system-root
branch
from
August 5, 2026 23:10
e4ce2f9 to
618a0f0
Compare
kompiro
force-pushed
the
feat/routing-shorter-detours
branch
from
August 5, 2026 23:10
ed231f5 to
92f6964
Compare
kompiro
force-pushed
the
feat/routing-shorter-detours
branch
from
August 7, 2026 13:23
92f6964 to
e60ed74
Compare
kompiro
force-pushed
the
feat/routing-multi-system-root
branch
from
August 7, 2026 13:23
618a0f0 to
b745c62
Compare
kompiro
force-pushed
the
feat/routing-shorter-detours
branch
from
August 7, 2026 13:31
e60ed74 to
888ca37
Compare
kompiro
force-pushed
the
feat/routing-multi-system-root
branch
from
August 7, 2026 13:31
b745c62 to
1a212ee
Compare
kompiro
force-pushed
the
feat/routing-multi-system-root
branch
from
August 7, 2026 13:48
1a212ee to
d7156e8
Compare
kompiro
force-pushed
the
feat/routing-multi-system-root
branch
from
August 7, 2026 13:50
d7156e8 to
4b3845a
Compare
The root view ran none of the routing passes: no port distribution, no orthogonal routing, no lane separation, no crossing marks. Cross-system edges were raw straight lines, and even a *grouped* root got bands and frames with every edge drawn straight through whatever lay between its endpoints. Wire the shared chain into `layoutMultipleSystems`, scoped per system. Obstacles, content bounds and gutter x are all derived from the nodes handed in, so routing the whole canvas at once would send an edge inside one system out past every other one. Each system block is its own routing surface -- the same scoping `placeExternalServicesOnSides` already uses. Crossing marks are computed over all edges, so a cross-system line crossing an intra-system one is marked too. Advance `offsetX` by the routed extent rather than the container rect, since a gutter route reaches past the cards. The baseline stays `offsetX + width` and not `containerRect.x + width`: a left side column (#1728) shifts the rect's own x leftwards, and measuring from it would let two containers overlap. Closes #2363 Co-Authored-By: Claude Fable 5 <[email protected]>
The root-view fences ran against an inline two-system string. A fence that only covers a hand-built fixture misses what users actually draw (the #1954 lesson), and there was no bundled sample with two systems at all: multi-file-system is one system split across files, and 07-cross-system teaches cross-system references with three adjacent-tier nodes per system, so its straight lines never cross anything and it would assert zero for free. Add feature-samples/multi-system-root.krs — two systems in one file, each with an actor that skips the client tier so its straight line crosses the client card between the endpoints. Measured: 3 penetrations drawn straight, 0 once routed, 2 edges taking waypoints. Point the root-view fences at it and add the missing probe that the model exercises the router at all, so 'penetration == 0' cannot pass for free here either. Refs #2363 Co-Authored-By: Claude Fable 5 <[email protected]>
kompiro
force-pushed
the
feat/routing-multi-system-root
branch
from
August 7, 2026 13:56
4b3845a to
812a7ea
Compare
kompiro
enabled auto-merge (squash)
August 7, 2026 14:01
kompiro
added a commit
that referenced
this pull request
Sep 10, 2026
…2761) Review asked whether an edgeless multi-system root should return no marks, the way the single-system empty view does. It should keep what it has: the multi-system path has produced an empty marks object since #2369, and this refactor preserves that. Both empty cases are now asserted so the pair is machine-checked rather than argued. Co-Authored-By: Claude Fable 5.1 <[email protected]>
kompiro
added a commit
that referenced
this pull request
Sep 10, 2026
…2761) (#2778) * refactor(core): compute crossing marks once, on the final placement (#2761) Crossing marks are a pure function of the routed edges and feed nothing before the render: `computeTotalDimensions` and the channel reservation never read them. `layoutInner` still computed them on every width-budget candidate and again on the reservation pass, so a dense view paid for the pass five or six times per drawing. `layout()` now computes them once on the run that survives. Output is unchanged; the empty-view path keeps `crossingMarks` undefined as before. Co-Authored-By: Claude Fable 5.1 <[email protected]> * test(core): pin the multi-system root's empty crossing-mark object (#2761) Review asked whether an edgeless multi-system root should return no marks, the way the single-system empty view does. It should keep what it has: the multi-system path has produced an empty marks object since #2369, and this refactor preserves that. Both empty cases are now asserted so the pair is machine-checked rather than argued. Co-Authored-By: Claude Fable 5.1 <[email protected]> --------- Co-authored-by: Claude Fable 5.1 <[email protected]>
This branch was successfully deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Purpose
Closes #2363 — slice B of #2330. Stack 3/4, builds on #2368.
Summary
The root view ran none of the routing passes: no port distribution, no orthogonal routing, no lane separation, no crossing marks. Cross-system edges were raw straight lines, and even a grouped root got bands and frames with every edge drawn straight through whatever lay between its endpoints.
Changes
layoutMultipleSystems:distributePorts→ chain → trunks (grouped) → gutter lanes → port fan-out → channel lanes.placeExternalServicesOnSidesalready uses.computeCrossingMarksover all edges, so a cross-system line crossing an intra-system one is marked too.offsetXby the routed extent rather than the container rect, since a gutter route reaches past the cards. The baseline staysoffsetX + widthand notcontainerRect.x + width: a left side column (System view edge readability: reduce crossings in single-source fan-out (ports / trunking / orthogonal) #1728) shifts the rect's own x leftwards, and measuring from it hands the next system less room than before — caught by the existing#1728 fix #2overlap test.Preview URL
Scope filter (new-feature PRs only)
Dependency & license impact
Manual Verification Checklist
TPL impact
Related Docs
🤖 Generated with Claude Code