Repository navigation
feat: keep shared arrow tracks ordered through bends - #143
Merged
Merged
Conversation
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.
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.
node scripts/sketches/score.mjsruns before and after thisiteration: all guards pass; all 96 JSON reports are byte-identical.
dagre 64/79.
npm run test:browser -- --project=chromiumsuite: 176 passed.records; all 31 later losses classified, links resolve and evidence files
remain below 500 lines. Earlier trace reports remain unchanged.
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