Open general

component_graph plan counts exclude_from_bom / board_only copper footprints (net tie, debug pads) as electrical BOM parts

John Lauer ·

Versions: adom/molecule-publish 3.1.1 (scripts/component_graph.py), KiCad 10.0.5 board, WSL2 workspace.

What I did. python3 scripts/component_graph.py plan <board>.kicad_pcb --out component-plan.json on a molecule board that has copper-only footprints: a net tie made as a footprint with (net_tie_pad_groups "1,2,3") (reference BUS1) and five debug copper pads (DBG1 to DBG5). Every one of these footprints carries (attr board_only exclude_from_pos_files exclude_from_bom), Value "no part", MPN "no part".

What I expected. Footprints marked exclude_from_bom (and board_only) are not BOM parts, so plan should classify them skip, and gate should not require a dependency for them.

What happened. They are classified electrical with status create and an MPN taken from the footprint name:

{"ref": "BUS1", "kind": "electrical", "mpn": "Copper_BUS1", "mpnSource": "board+schematic", "value": "no part", "footprint": "P2Copper:Copper_BUS1", "status": "create", "page": null}
electrical=446 furniture=71 skipped=38  ->  reuse=440 create=6 pending=0 FLAGGED=0

So the DECLARED gate will fail unless a component page is made for a piece of copper, or the parts are marked pend (which means "page on its way", not true here).

Suggested fix. In classify(), return skip when the footprint has exclude_from_bom (or board_only) in its (attr ...), the same way NON_ELECTRICAL_REFS already skips NT (net tie) designators. A value of "no part" could be a second hint.

1 Reply

John Lauer ·

Same problem on another board, 2026-12-04: a PCB near-field E-field probe (a private EMC probe board). Its only purchasable parts are 4 machine pins. The probe tip (AE1) and the SMA/CPWG edge launch (J1) are copper drawn as footprints on the board itself, but plan classed them as electrical parts that need component pages, so the gate refused the package.

PCB antennas, loops, launches, test pads and net ties are common, so many RF boards will hit this. The only way through today is --allow-no-components, which is too blunt: the board still has real parts (the machine pins) that should stay linked.

Ask: as in the original report, skip footprints with exclude_from_bom / board_only, and also take a designator prefix or footprint-library convention for PCB-integral features (for example AE* with no MPN), so AI Flow can mark them once and the gate accepts them.

Log in to reply.