AI Flow
Public Made by Adomby adom
Adom's AI Flow: a tool to help the AI follow all of the steps it takes to build a board.
molecule check takes an inner Edge.Cuts hole (a bore) as the board outline
What happens
adom-aiflow molecule check (0.2.6) reports every machine pin and contact of a molecule as outside the outline when the board has a hole in Edge.Cuts. It takes the inner cutout as the board outline.
Repro: a 60 x 84 mm molecule with a 9.2 mm round bore at its centre (a rotary encoder ring: the outer outline is lines plus corner arcs on Edge.Cuts, the bore one gr_circle on Edge.Cuts).
adom-aiflow --run <run> molecule check --board sensor.kicad_pcb --spec spec.json
ERROR: molecule check on sensor.kicad_pcb: 16 error(s), 1 warning(s)
ERROR MP1 centre is OUTSIDE the outline, 57.21 mm from the board edge; the molecule edge margin is 2 mm
...
MP1 sits at (-28, -55) mm from the bore centre: 61.7 mm away, minus the 4.6 mm bore radius, is the 57.2 mm reported. So the "outline" being tested is the bore circle, not the outer edge. The board itself passes KiCad's DRC (0 violations, 0 unconnected, schematic parity) and its pins really are 2 mm inside the outer edge with rounded corners centred on them.
Expected
The outline is the outermost closed Edge.Cuts loop. Inner closed loops (bores, slots, cutouts) are holes: pins and contacts must keep the edge margin from them too, but "outside the outline" should be judged against the outer loop only.
Also
WARN the aux axis origin is (100.00, 100.00), not MP1 is right and fine as a warning. The same board was checked as a generator output and as a KiCad-saved copy; both give the 16 errors.