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.
schematic check: references never found (find_all is shallow) and a missing ERC report counts as clean
Seen with adom-aiflow 0.2.1 (source: crates/adom-aiflow/src/main.rs, the schematic check arm).
No reference is ever found on the sheet. The check exports the schematic netlist and collects references with
root.find_all("comp").Node::find_all(crates/aiflow-board/src/sx.rs) only looks at direct children, and in KiCad's netlist everycompsits inside(components ...)under(export ...). Soon_sheetis always empty and every BOM reference is reported "not on the sheet", even for a schematic whose exported netlist lists all of them (KiCad 10.0.3, netlist version "E", 267 comps). Fix: iterateroot.find("components").map(|c| c.find_all("comp"))(or search recursively).ERC can pass without running. The same arm runs
$ADOM_AIFLOW_KICAD_CLI sch erc ...and ignores the exit status. WithADOM_AIFLOW_KICAD_CLI=adom-aiflow-kicad-cli-remote(the documented container setup), the wrapper refusessch erc("only 'pcb drc', ... 'sch export netlist' and '--version' are supported"), no erc.json is written,ercvis Null anderc_errorsis empty, so the check would report "ERC clean". Fix: fail when the ERC report is missing or unreadable, and addsch ercto the remote wrapper (send the schematic, project, lib tables and${KIPRJMOD}libraries the same way assch export netlist, runkicad-cli sch erc --format json --severity-all, pull the report).
Workaround meanwhile: ERC run by hand with the desktop's native kicad-cli (0 violations at --severity-all) and the netlist compared pin by pin outside the tool; the run's schematic step stays open until a fixed binary can record it.