Open general

Republish: the registry's own <slug>.cad.step makes the step role ambiguous when the source STEP is not named <slug>.step

noah ·

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-aiflow was published with fc-f405-stack.step at the root (allowed: one STEP at the shallowest depth). The registry build then wrote its own fc-f405-aiflow.cad.step at 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 the step role's *.step / *.stp patterns in the recipes (registry and contract.json), or
  • in Stage 2, tell the AI to name the source STEP <slug>.step (and have fab_bundle.py warn 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.