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.
fab_bundle accepts string maskColor/silkColor; the registry build then crashes in normalize ('str' object has no attribute 'get')
What happened
fab_bundle.py create --stackup took a stackup with plain-string colours, and fab_bundle.py check, bundle_check.py and the registry's own fabrication stage all passed it. The registry build then crashed in normalize with an error that names no input:
REGISTRY_CHECK_FAILED: job failed: JOB_CHECK_FAILED: program of registry.pipeline.molecule@1 failed checks: normalize: normalize ('str' object has no attribute 'get')
(adom/am32-esc-mol32 build 70371; every stage before normalize passed.)
Cause
board-look/normalize/surface.py pick_colors reads stackup.maskColor and stackup.silkColor as {top, bottom} objects ((stackup.get(kind + "Color") or {}).get(side)). This record had:
"stackup": {"thicknessMm": 1.6, "maskColor": "green", "silkColor": "white", "finish": "HASL lead-free", "copperOz": 2}
docs/fabrication.md does say "by top/bottom", but the --stackup help in fab_bundle.py says only "JSON with known thicknessMm, maskColor, silkColor, finish", which reads naturally as one string each. With {"top": "green", "bottom": "green"} / {"top": "white", "bottom": "white"} the same sources built (build 70372, all stages passed).
A second, quieter one: the finish "HASL lead-free" is not in board-look.json's aliases ("lead-free hasl" and "lf hasl" are), so it silently falls back to the spec default.
Asks
fab_bundle.py create/check(andbundle_check.py): refuse a stringmaskColor/silkColorwith the shape to use, e.g.stackup.maskColor must be {"top": "<colour>", "bottom": "<colour>"}. Warn whenfinishis not one of the normalize aliases.--stackuphelp: show the shape, e.g.{"thicknessMm":1.6,"copperLayers":2,"maskColor":{"top":"green","bottom":"green"},"silkColor":{"top":"white","bottom":"white"},"finish":"ENIG"}.- Registry: a malformed stackup should be a named check failure in the fabrication stage, not a Python AttributeError in normalize.
Versions
molecule-publish 3.0.0, adom-wiki 1.8.11, molecule program molecule@10 (pin 97182bee), board-look normalize 0.9.1 spec 0.6; exporter adom-aiflow 0.2.55, KiCad 10.0.6. Hydrogen local workspace (WSL2).