Skip to content

feat: merge close same-net trace segments#353

Open
lezebomb wants to merge 5 commits into
tscircuit:mainfrom
lezebomb:codex/same-net-trace-segment-merge
Open

feat: merge close same-net trace segments#353
lezebomb wants to merge 5 commits into
tscircuit:mainfrom
lezebomb:codex/same-net-trace-segment-merge

Conversation

@lezebomb
Copy link
Copy Markdown

Closes #29.

Adds a focused SameNetTraceSegmentMergeSolver pipeline phase after trace overlap shifting. The phase snaps close, overlapping parallel segments from the same global net onto the longer segment while preserving trace endpoints with short stubs.

Safety checks:

  • skips different-net traces
  • rejects merges that would introduce additional different-net intersections
  • keeps the existing pipeline phases intact

Validation:

  • bun test tests\solvers\SameNetTraceSegmentMergeSolver\SameNetTraceSegmentMergeSolver.test.ts
  • bun test tests\solvers\SchematicTracePipelineSolver\SchematicTracePipelineSolver_repro01.test.ts
  • build verified with tsup-node using a temporary TypeScript peer dependency; non-elevated build is blocked by local sandbox directory access

@vercel
Copy link
Copy Markdown

vercel Bot commented May 16, 2026

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
schematic-trace-solver Ready Ready Preview, Comment May 16, 2026 3:52pm

Request Review

@lezebomb
Copy link
Copy Markdown
Author

/claim #29

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.

New Phase To combine same-net trace segments that are close together

1 participant