Make ELK the default placement path for auto layout and tidy.
Encode directional lanes (power top, signal core, ground bottom) as hard constraints.
Add group-aware lane packing so cluster members stay coherent.
Guarantee deterministic node ordering seeds.
Acceptance:
No vertical-collapse/stack artifacts on canonical fixtures.
Improved spacing and bounded density per lane.
Same input -> same placements in repeated runs.
Scope:
- Make ELK the default placement path for auto layout and tidy.
- Encode directional lanes (power top, signal core, ground bottom) as hard constraints.
- Add group-aware lane packing so cluster members stay coherent.
- Guarantee deterministic node ordering seeds.
Acceptance:
- No vertical-collapse/stack artifacts on canonical fixtures.
- Improved spacing and bounded density per lane.
- Same input -> same placements in repeated runs.
Rbanh
added this to the Phase 9 - Layout & Readability Production Hardening milestone 2026-02-19 23:28:18 -05:00
/layout/auto and /layout/tidy now request ELK by default via options (use_elk_layout: true) unless explicitly overridden.
applyLayoutToModel now routes through layoutAndRoute(...) with layout options, so engine selection and fallback behavior are unified with compile path.
Deterministic fallback remains active when ELK runtime is unavailable.
Current boundary:
Backend still uses native placement when ELK runtime is absent or unavailable; full ELK-coordinate execution path remains open as the final sub-step.
Progress update (commit `128c5c6`):
- `/layout/auto` and `/layout/tidy` now request ELK by default via options (`use_elk_layout: true`) unless explicitly overridden.
- `applyLayoutToModel` now routes through `layoutAndRoute(...)` with layout options, so engine selection and fallback behavior are unified with compile path.
- Deterministic fallback remains active when ELK runtime is unavailable.
Current boundary:
- Backend still uses native placement when ELK runtime is absent or unavailable; full ELK-coordinate execution path remains open as the final sub-step.
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.
Scope:
Acceptance:
Progress push
fc5f2fe(P9-01).Layout engine updates:
computeGroupOrigins).Validation:
npm testpassnpm run test:uipassProgress update (commit
128c5c6):/layout/autoand/layout/tidynow request ELK by default via options (use_elk_layout: true) unless explicitly overridden.applyLayoutToModelnow routes throughlayoutAndRoute(...)with layout options, so engine selection and fallback behavior are unified with compile path.Current boundary:
Completed by commit
46175ef.Delivered:
layoutAndRoutewhen runtime is available.elk_layout_unavailable_fallbackelk_layout_async_runtime_fallbackelk_layout_invalid_result_fallback/layout/auto+/layout/tidyalready request ELK by default (from prior sprint), now truly executed when supported.Validation:
npm testpassnpm run test:uipasstests/fixtures/mock-elk-runtime.cjs) verifyinglayout_engine_used: "elk".