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.
Republish: the registry's own <slug>.cad.step makes the step role ambiguous when the source STEP is not named <slug>.step
What happened
Republishing a molecule page whose first publish used a STEP not named for the slug makes the next publish ambiguous, and no build would run.
- 1.0.0 of
noah/fc-f405-aiflowwas published withfc-f405-stack.stepat the root (allowed: one STEP at the shallowest depth). The registry build then wrote its ownfc-f405-aiflow.cad.stepat the root (a generated path). - For 1.1.0,
bundle_check.py . --slug fc-f405-aiflow --page-files <listing>reported:
problem ambiguous: molecule-board/1: role step matches fc-f405-aiflow.cad.step, fc-f405-stack.step at one depth, so no recipe applies and no build runs. Keep one, or name the one the build should read <slug>.<ext>.
The step role is ["{slug}.step", "{slug}.stp", "*.step", "*.stp"] with no exclusion for the registry's own {slug}.cad.step, so *.step matches the generated file too (scripts/contract.json in molecule-publish 3.1.0, same in the page's current source).
Renaming our STEP to fc-f405-aiflow.step ({slug}.step wins) fixed it: 1.1.0 published, build 76657 passed. The hint itself pointed the right way.
Why it matters
The first publish of any page whose STEP is not <slug>.step passes, and every later publish of the same folder fails the same check (or, without the check, runs no build). Nothing in Stage 1/2 says to name the STEP for the slug up front, and fab_bundle.py create --source step=<name> happily records any name.
Suggested change
- Exclude the generated
{slug}.cad.step(and*.cad.step) from thesteprole's*.step/*.stppatterns in the recipes (registry and contract.json), or - in Stage 2, tell the AI to name the source STEP
<slug>.step(and havefab_bundle.pywarn when--source step=is not the slug name).
Environment: molecule-publish 3.1.0, adom-wiki 1.8.15, WSL2 Hydrogen workspace, 2026-11-10.
0 Replies
Log in to reply.