Closed general

Model registry: a component page's served model slot never follows a changed model_3d (stuck at the first import's path)

Ray · ·closed by Colby Knox

adom-wiki 1.8.18 · seen 2026-11-10 · component pages (kind component)

What happens

A component page's served model slot keeps the file path it got at the registry's migration import (2026-10-20). When the page later declares a different model_3d (a new <slug>-hero.glb, the annotated model with pad outlines, silkscreen and pin names), the slot does not move. The 3D viewer keeps showing the old model, here the bare etched chip with no footprint.

Nothing a page manager can do moves it:

  • pkg publish with the new model present and declared: MODEL_NO_BUILD_QUEUED. Tried twice (0.1.3 and 0.1.4), the second with the hero GLB's bytes changed so the publish itself carried a changed file.
  • repo push of the new GLB: no build.
  • adom-wiki model rebuild: 409 REGISTRY_BUILD_SKIPPED, "no recipe applies: molecule-circuit-step/1 ... does not apply to kind component". model plan says the same: "no recipe applies, so a write builds nothing".

Example

adom/stm32h743vit6, now at 0.1.4. page.json and package.json both declare model_3d: stm32h743vit6-hero.glb, and the file is in the repo and in files[].

$ adom-wiki model status adom/stm32h743vit6
models (updated 2026-11-10 22:53:58 UTC)
  model     stm32h743vit6-etched.glb   f8dc80cb53b5  build 77348  imported
  plain     stm32h743vit6.glb          dfd26f108389  build 48     imported
policy: builds on push yes · serves models yes · refuses generated files no · builds this page no

$ adom-wiki model history adom/stm32h743vit6
 211627  2026-11-10 22:53:58 UTC  model  77348  repo:publish  f8dc80cb53b5  stm32h743vit6-etched.glb
     71  2026-10-20 23:25:08 UTC  plain     48  import        dfd26f108389  stm32h743vit6.glb
     70  2026-10-20 23:25:08 UTC  model     48  import        f4b368692638  stm32h743vit6-etched.glb

Row 211627 is a refresh of the same path (the etched GLB changed in that publish). The two later publishes that declare the hero left no row.

Comparison that works: adom/csa231latssop8. Its migration import (build 49336) already found a hero declared, so its model slot has pointed at csa231latssop8-hero.glb from the start, and later publishes and pushes refresh it (builds 76563, 76564).

So it looks like the slot's path is set once, at first import, and afterwards only the file at that path is refreshed.

Expected

Either of these:

  1. On publish, re-pick the model slot from the page's declared model_3d when it differs from the slot's path.
  2. A way for a page manager to re-import a component page's models (model rebuild for kind component, or a model reimport).

Scale

This is not one page. 332 of 794 public STM32 component pages were imported before they had a hero, and a scan of all public component pages is running; I'll add the count here. Rebuilding those pages to the current standard does nothing for readers until the slot can move, so we are holding the bulk run for this.

3 Replies

Ray ·

Second example: adom/rp2350b (public, 1.0.2). page.json declares model_3d: rp2350b-hero.glb; the registry serves the plain rp2350b.glb, the path from the 2026-10-20 import (history row 717, build 479). Today's publish (row 211626, build 77347, repo:publish) refreshed that same path and left the slot where it was.

Ray ·

Counts for the class, from a live scan of the public component pages (finished today):

  • 113 pages declare a hero model in model_3d that the registry does not serve. These are the ones this issue blocks; adom/stm32h743vit6 and adom/rp2350b are two of them.
  • 7 pages have a hero file in the repo but do not declare it yet.
  • 16,680 pages have no hero at all; 16,430 of those have a footprint and pins, so one can be built.

We are holding the hero work on the last two groups until the slot can follow a changed model_3d, since each page we update would otherwise join the first group. I can send the list of 113 slugs if that helps test the fix.

Colby Knox ·

Fixed on wiki.adom.inc. The wiki kept an imported model slot current only by watching the file at the slot's own path, so a page that declared a different model_3d was never moved. Now every write reads page.json at HEAD, and an imported model slot moves to the declared file when it is a model in the repo. If a name-matched import slot (hero, plain, etched) holds that file, it gives it up to model. Models the registry builds, and pages that opt out with model_3d: false, are never moved this way.

For the 113 stuck pages you don't need to republish: adom-wiki model rebuild <page> --build-priority background on a page no recipe builds now runs that same pass and answers with the slots it moved (hint MODELS_FOLLOW_REPO), instead of 409. A page with nothing to move still answers REGISTRY_BUILD_SKIPPED. Any publish or push of those pages fixes them too. Checked on staging with rp2350b: declaring rp2350b-hero.glb moved the served model to it, and declaring the plain file moved it back.

The hero work on the other pages can go ahead: each page you update now follows its declaration.

Colby Knox closed this ·

Log in to reply.