Skip to content

docs(adr): promote the routing parity design, rejecting ungrouped trunks - #2370

Merged
kompiro merged 1 commit into
mainfrom
feat/routing-ungrouped-trunks
Aug 7, 2026
Merged

kompiro merged 1 commit into
mainfrom
feat/routing-ungrouped-trunks

Conversation

@kompiro

@kompiro kompiro commented Aug 5, 2026 •

Copy link
Copy Markdown
Owner

Purpose

Closes #2364 (slice C) and Closes #2330 (the program). Stack 4/4, builds on #2369.

Summary

Slice C is an evaluation slice, and the answer is no: aggregation trunks should not run on an ungrouped canvas. This PR records that, promotes the design doc to ADR-2330, and closes the program.

Changes

  • Measured and rejected ungrouped trunks. Across nine real models only client-mcp changes: one crossing fewer (5 → 4), in exchange for 27% more total edge length (3,030 → 3,835) and a 52px wider diagram. Trunk lanes live in the right gutter, so on an ungrouped canvas they pull fan-in edges back out to the canvas edge and undo the interior corridors (Shorten gutter detours with an intermediate routing candidate (slice D) #2365) those edges would otherwise take. Grouped canvases pay nothing because band structure sends those edges to the gutter anyway. ADR-1728 had already rejected trunk/bus routing for the same fan-out problem on the ungrouped layout, measuring 33–53 crossings — consistent with this result.
  • The grouped-only gate on aggregateGroupTrunks now carries that reason in a comment, so the next reader does not re-derive it.
  • Promote docs/design/ungrouped-routing-parity.md to docs/adr/2330-ungrouped-routing-parity.md and delete the design doc.
  • ADR-2330 refines ADR-1859: its AC-5 (Group by: none stays byte-identical) is replaced by the measured fences in routing-parity.test.ts. Every other P2c decision stands, so ADR-1859 keeps accepted status with a note pointing at the replacement.

The ADR records

The composed candidate chain and why both router modules stay; why interior corridors are kept out of grouped canvases; the per-system scoping in the root view; this rejection; and three open items it deliberately leaves — #2360 (labels on lines), hr-tool's detours staying long, and the cross-system side-map limitation.

Preview URL

N/A — this PR is docs + one comment

Scope filter (new-feature PRs only)

  • N/A — not a new-feature PR

Dependency & license impact

  • N/A — no production dependency added or bumped across a major version

Manual Verification Checklist

  • N/A — all covered by automated tests (pnpm adr:validate, adr:check-assumptions, adr:regenerate drift guard)

TPL impact

Disposition: N/A — evaluation and decision record. The fences shipped with #2367–#2369.

Related Docs

  • docs/adr/2330-ungrouped-routing-parity.md (new)
  • docs/adr/1859-… (AC-5 note added), docs/design/ungrouped-routing-parity.md (deleted)

🤖 Generated with Claude Code

@kompiro
kompiro force-pushed the feat/routing-multi-system-root branch from e4ce2f9 to 618a0f0 Compare August 5, 2026 23:10
@kompiro
kompiro force-pushed the feat/routing-ungrouped-trunks branch from de4ca4b to 5351616 Compare August 5, 2026 23:10
@kompiro
kompiro force-pushed the feat/routing-multi-system-root branch from 618a0f0 to b745c62 Compare August 7, 2026 13:23
@kompiro
kompiro force-pushed the feat/routing-ungrouped-trunks branch from 5351616 to e365b84 Compare August 7, 2026 13:31
@kompiro
kompiro force-pushed the feat/routing-ungrouped-trunks branch from e365b84 to c9095de Compare August 7, 2026 13:48
@kompiro
kompiro force-pushed the feat/routing-multi-system-root branch from 1a212ee to d7156e8 Compare August 7, 2026 13:48
@kompiro
kompiro force-pushed the feat/routing-multi-system-root branch from d7156e8 to 4b3845a Compare August 7, 2026 13:50
@kompiro
kompiro force-pushed the feat/routing-ungrouped-trunks branch from c9095de to 2752057 Compare August 7, 2026 13:50
@kompiro
kompiro force-pushed the feat/routing-ungrouped-trunks branch from 2752057 to 5986830 Compare August 7, 2026 13:56
@kompiro
kompiro force-pushed the feat/routing-multi-system-root branch from 4b3845a to 812a7ea Compare August 7, 2026 13:56
Base automatically changed from feat/routing-multi-system-root to main August 7, 2026 14:04
Slice C measured whether aggregation trunks should run on an ungrouped canvas
and the answer is no. Across nine real models only client-mcp changes: one
crossing fewer, in exchange for 27% more total edge length and a 52px wider
diagram. Trunk lanes live in the right gutter, so on an ungrouped canvas they
pull fan-in edges back out to the canvas edge and undo the interior corridors
those edges would otherwise take. Grouped canvases pay nothing because band
structure sends those edges to the gutter anyway. ADR-1728 had already rejected
trunk/bus routing for the same fan-out problem on the ungrouped layout.

Promote docs/design/ungrouped-routing-parity.md to ADR-2330 and delete it. The
ADR records the composed candidate chain, the decision to keep interior
corridors out of grouped canvases, the per-system scoping in the root view, and
this rejection -- so the question is not silently reopened.

ADR-2330 refines ADR-1859: its AC-5 (Group by: none stays byte-identical) is
replaced by the measured fences in routing-parity.test.ts. Every other P2c
decision stands, so ADR-1859 keeps its accepted status with a note pointing at
the replacement.

Closes #2364
Closes #2330

Co-Authored-By: Claude Fable 5 <[email protected]>
@kompiro
kompiro force-pushed the feat/routing-ungrouped-trunks branch from 5986830 to 3a6899d Compare August 7, 2026 14:06
@kompiro
kompiro merged commit 5e066b3 into main Aug 7, 2026
12 checks passed
@kompiro
kompiro deleted the feat/routing-ungrouped-trunks branch August 7, 2026 22:55
@kompiro kompiro mentioned this pull request Aug 7, 2026
2 of 3 tasks
kompiro added a commit that referenced this pull request Aug 7, 2026
Two ADR PRs landed close together (#2393 and #2370). Each regenerated the
derived files against its own base, so the entries merged cleanly but the
summary counts at the top of effective.md and graph.md were computed from a main
that was one ADR short. The drift guard on main caught it.

Regenerating only moves the counts: 311 -> 312 ADRs, 302 -> 303 effective.

Co-authored-by: Claude Fable 5 <[email protected]>

This branch was successfully deployed

1 active deployment
preview — 3a6899d6 Deployed Aug 7, 2026 by github-actions[bot]
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.

Evaluate aggregation trunks for the ungrouped canvas (slice C) Bring ungrouped layout routing to parity with the grouped (P2c) pipeline

1 participant