Skip to content

Add same-net segment alignment cleanup phase#342

Open
Chaos-among-us wants to merge 1 commit into
tscircuit:mainfrom
Chaos-among-us:codex/claim-29-same-net-segments
Open

Add same-net segment alignment cleanup phase#342
Chaos-among-us wants to merge 1 commit into
tscircuit:mainfrom
Chaos-among-us:codex/claim-29-same-net-segments

Conversation

@Chaos-among-us
Copy link
Copy Markdown

/claim #29

Summary

  • Adds a final TraceCleanupSolver phase that groups traces by net and aligns close overlapping internal horizontal/vertical same-net segments onto a shared axis.
  • Preserves endpoint/pin-adjacent segments and rejects changes that collide with chips, labels, or different-net traces.
  • Adds focused coverage for horizontal alignment, vertical alignment, different-net protection, and endpoint preservation.

Verification

  • npx --yes bun test
  • tsc --noEmit
  • biome check lib/solvers/TraceCleanupSolver/alignNearbySameNetSegments.ts lib/solvers/TraceCleanupSolver/TraceCleanupSolver.ts tests/solvers/TraceCleanupSolver/align-nearby-same-net-segments.test.ts

AI-assisted with Codex; patch and verification were reviewed locally.

@vercel
Copy link
Copy Markdown

vercel Bot commented May 14, 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 14, 2026 5:25pm

Request Review

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant