feat(pcb): import Freerouting SES atomically - #339
Open
neusse wants to merge 3 commits into
Open
Conversation
This was referenced Aug 26, 2026
neusse
marked this pull request as ready for review
August 26, 2026 20:37
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Adds the strict, non-destructive return path for the Specctra routing bridge proposed in #337.
This is PR 2 of 3 and is stacked on draft PR #338. Until #338 merges, GitHub will show its two DSN-export commits in this PR as well; the new SES-import commit is
ad2c319.User-visible behavior
plan_specctra_ses_importfully validates an SES against the reverse manifest and exact live KiCad snapshot, then returns every proposed track and via without mutation.apply_specctra_sesrevalidates the same provenance, requires exactly one PCB open, builds every protobuf item before mutation, and creates the route in one KiCad undo transaction..kicad_pcbwith create-new atomic semantics.Strict first-profile refusals
The importer rejects:
Evidence
Exact repository gates passed:
cargo test --workspace --locked --lib --testscargo test --workspace --locked --doccargo clippy --workspace --locked --all-targets -- -D warningscargo fmt --all -- --checkAdditional engine parity passed locally with Freerouting 2.3.0:
That test now exports the KiCad 10.0.5 fixture, runs the real Freerouting engine, reads its actual SES output, and passes it through the strict Konnect import planner.
Risk and rollback
The source file is preserved, the candidate path is create-new only, and all live route creation is one named KiCad undo step (
Import Freerouting SES). Any parse, IPC, read-back, candidate-write, DRC, or commit failure drops the transaction and removes newly-created candidate evidence.Part of #337.