Skip to content

Add same-net segment alignment cleanup#416

Open
haki203 wants to merge 1 commit into
tscircuit:mainfrom
haki203:fix-align-same-net-segments
Open

Add same-net segment alignment cleanup#416
haki203 wants to merge 1 commit into
tscircuit:mainfrom
haki203:fix-align-same-net-segments

Conversation

@haki203
Copy link
Copy Markdown

@haki203 haki203 commented May 23, 2026

Summary\n- add a final TraceCleanupSolver phase that aligns close overlapping internal horizontal/vertical segments on the same globalConnNetId\n- preserve endpoint anchors by only moving internal segments and simplifying the changed trace path\n- reject candidate moves that intersect chip obstacles or contact different-net traces, including endpoint contact\n- add focused regression coverage for same-net alignment, different-net no-op, and unsafe endpoint-contact no-op\n\n/claim #29\n\n## Verification\n- npx --yes biome check lib/solvers/TraceCleanupSolver/TraceCleanupSolver.ts lib/solvers/TraceCleanupSolver/alignNearbySameNetSegments.ts tests/solvers/TraceCleanupSolver/alignNearbySameNetSegments.test.ts\n- npx --yes bun test tests/solvers/TraceCleanupSolver/alignNearbySameNetSegments.test.ts tests/solvers/TraceCleanupSolver/TraceCleanupSolver.test.ts tests/examples/example29.test.ts tests/examples/example34.test.ts\n- npx --yes -p typescript tsc --noEmit\n- npx --yes bun run build\n- npx --yes bun test\n- git diff --check

@vercel
Copy link
Copy Markdown

vercel Bot commented May 23, 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 23, 2026 4:10am

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