Skip to content

feat: keep shared arrow tracks ordered through bends - #143

Merged
ViktorMikhalkin merged 10 commits into
mainfrom
loop/issue-136
Dec 1, 2026
Merged

ViktorMikhalkin merged 10 commits into
mainfrom
loop/issue-136

Conversation

@ViktorMikhalkin

Copy link
Copy Markdown
Contributor

What changes for users

Shared arrow tracks keep a consistent order through coupled bends. Compatible
endpoint demands take priority over conflicting joins. Components whose bend
orders cannot be reconciled keep their unspaced routes.

The book sketches retain their current drawings. The accompanying investigation
records why joint placements lose and identifies the remaining quality limits.

Why

Ordering each channel separately can conflict at shared bends. A pure ordering
function now keeps those constraints together and produces the same result
regardless of input order. Opposite endpoint demands may still require one
crossing at a join.

The five-iteration investigation covers all 92 book map, engine and width cases.
All 38 spacing-added intersections in rejected proposals occur at permitted
opposite-demand joins. The remaining paths already cross before spacing.
Later losses split into 15 natural-size bend limits, seven order regressions,
four crossing regressions and five cases without improvement. Selected controls
show why these features do not justify a broad routing or acceptance change.

Evidence

  • npm run verify: passed; 167 test files and 1,417 tests, plus formatting,
    lint, types, dependencies, contracts, size, package and demo checks.
  • Four sequential node scripts/sketches/score.mjs runs before and after this
    iteration: all guards pass; all 96 JSON reports are byte-identical.
  • Selected crossings, natural size / 39 em: ELK 0/0; dagre 6/8.
  • Joint selections, natural size / 39 em: ELK 2/13; dagre 1/15.
  • Within-rank matches out of 114, natural size / 39 em: ELK 103/99;
    dagre 64/79.
  • Full npm run test:browser -- --project=chromium suite: 176 passed.
  • New final comparison: all 62 certified-proposal rows checked against scorer
    records; all 31 later losses classified, links resolve and evidence files
    remain below 500 lines. Earlier trace reports remain unchanged.
  • Earlier ordering iterations verified all 44 example drawings and quality
    reports unchanged. This iteration changes only evidence and documentation,
    so no new pictures are needed.

Unit tests now default to twenty seconds to tolerate shared CPU load; explicit
per-test timeouts remain. Verification and scorers run sequentially.

Not done

The investigation is complete, but the wider drawing-quality goal remains open:
joint selection and dagre crossings did not improve on the book corpus. No
additional routing policy was retained during the pattern phase. The earlier
single-pass avoidance experiment lost narrow selections and order agreement
and was reverted.

Keep all safety guards, quality bands and size limits. A separate investigation
should test alternative paths on the same certified placement for the repeated
map 3-1 interaction, with selected crossing controls and all four scorer guards.
The bend and order losses need separate evidence. No public API or format change
is included. Firefox and WebKit remain CI checks; this change is not browser
specific. No remote CI result is claimed here.

Changelog

BEGIN_COMMIT_OVERRIDE
feat: keep shared arrow tracks ordered through bends
END_COMMIT_OVERRIDE

@ViktorMikhalkin
ViktorMikhalkin marked this pull request as ready for review December 1, 2026 21:13
@ViktorMikhalkin
ViktorMikhalkin merged commit a9e7d72 into main Dec 1, 2026
8 checks passed
@ViktorMikhalkin
ViktorMikhalkin deleted the loop/issue-136 branch December 1, 2026 21:14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant