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.
export passes stale zone fills: 'fills in saved board yes' while the saved fills short new copper (DRC only clean with --refill-zones)
What happened
On a 2-layer board finished with offline pcbnew scripts (a dozen copper edits after the pours, each script ending in pcbnew.SaveBoard without ZONE_FILLER(...).Fill(...)), the saved file kept the zone fills from before the edits. Every check passed it:
kicad-cli pcb drc --refill-zones(the gate's DRC): 0 errors, because it refills before checking.adom-aiflow export: "fills in saved board yes, fills in Gerbers yes".
A DRC of the same saved file without --refill-zones found 34 clearance, 6 hole-clearance and 4 solder-mask-bridge errors: the old fills overlapped the new tracks and vias. The Gerbers plot the saved fills, so the first manufacturing set had copper shorts in it and had to be replaced. Refilling and saving fixed it (0 errors, 0 unconnected, without refill).
Why it slips through
"Fills in saved board" proves the fills exist, not that they are current. Gerbers and STEP plot the saved fills as they are; nothing compares them with a fresh fill.
Asks
export(andgatebefore it): run DRC on the exact file being exported without--refill-zones, or refill a copy and compare the fill polygons with the saved ones, and refuse when they differ: "the saved zone fills are stale: refill zones and save (pcbnewZONE_FILLER(board).Fill(board.Zones())beforeSaveBoard), then export again".- A hint wherever AI Flow suggests offline pcbnew edits (adopt-board, native pours) that a script must refill before
SaveBoard.
Versions
adom-aiflow 0.2.55 (KiCad lane; IPC socket patch only, export and gate unchanged), KiCad 10.0.6 on Windows through kicad-cli-remote, pcbnew SWIG from KiCad 10.0.6. Hydrogen local workspace (WSL2).