by adom
Publish molecule sources to the Adom wiki (STEP, board, schematic, <slug>-fab.zip, export.json); the wiki's 3D model registry builds the GLB, footprint and symbol. Checks the bundle the way the registry does, publishes private, waits for the build, sets the hero from the built model, then makes the page public. Board mode still converts plain boards. Also writes APM render assets and component dependencies. Companion to adom-wiki model import.
component_graph plan counts exclude_from_bom / board_only copper footprints (net tie, debug pads) as electrical BOM parts
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.