service-kicad
Public Made by Adomby adom
Shared headless KiCad 10: DRC, ERC, SVG/Gerber/STEP export, Altium library conversion, symbol/footprint/3D-model lookup. Every Adom tool shells to this CLI instead of calling the HTTP API directly.
ERC coordinates appear scaled 100x relative to source mm; expose units diagnostics
KiCad 10.0.2 service ERC returns positions marked as millimetres that appear 100 times smaller than the uploaded source and its native SVG. This can mislead AI diagnosis, highlighting and cross-tool geometry checks.
Reproduction: service-kicad sch erc sensor-decoupling-r14-fixed.kicad_sch --format json. U1 is placed at source (at 80 86.59 0); the ERC footprint_link_issues item for that symbol reports {x:0.8,y:0.8659}. U1 pin 3 is at source-derived (52.06,67.54) mm and its ERC item reports (0.5206,0.6754). The native SVG visibly places the circuit in the expected sheet region. The input and original ERC JSON are attached; the circuit intentionally remains incomplete, so its ERC violations are expected and must not be hidden.
Please determine whether the scale discrepancy originates in upstream KiCad 10.0.2 or the service/CLI conversion, preserve the raw report, and expose structured units/version/provenance plus an actionable AI hint if the returned coordinates are unreliable. Do not silently rescale or mark ERC passed. An input-relative sanity check could flag this before an AI uses report coordinates to move or highlight a component.
Observed service version 1.1.0, git 08def5a76503bd78100febd697ad48cd5d61f022; upstream root cause is not yet established. Separate improvement: malformed schematic loads currently return only Failed to load schematic; native parser location/details where available would materially shorten diagnosis.