Skip to content

Add same-net trace consolidation phase#1

Draft
ColumbusLabs wants to merge 3 commits into
mainfrom
algora-tscircuit-same-net-trace-merge
Draft

Add same-net trace consolidation phase#1
ColumbusLabs wants to merge 3 commits into
mainfrom
algora-tscircuit-same-net-trace-merge

Conversation

@ColumbusLabs
Copy link
Copy Markdown
Owner

@ColumbusLabs ColumbusLabs commented May 22, 2026

Summary

  • add a same-net trace consolidation phase after trace cleanup and before final label placement
  • preserve pin anchors and existing trace metadata while snapping safe same-net segments onto a shared X/Y coordinate
  • reject unsafe snaps that would create diagonals, chip collisions, or different-net intersections
  • restore final visualization metadata for stable SVG snapshots while keeping snapshot changes focused on geometry

Tests

  • ~/.bun/bin/bun test tests/solvers/SameNetTraceConsolidationSolver/SameNetTraceConsolidationSolver.test.ts
  • ~/.bun/bin/bun test tests/solvers/SchematicTracePipelineSolver/SchematicTracePipelineSolver_sameNetTraceConsolidationPhase.test.ts tests/examples/example37.test.ts
  • ~/.bun/bin/bun test
  • ~/.bun/bin/bunx tsc --noEmit
  • ~/.bun/bin/bun run format:check
  • ~/.bun/bin/bun run build

Review-only PR before upstream submission.

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.

1 participant