← Commit history
README.md+52−49
@@ -1,8 +1,8 @@-# molecule-pipeline — move molecules through the Adom ecosystem+# molecule-pipeline: move molecules through the Adom ecosystem  **This is the page.** If you want a board you designed to live in the Adom-ecosystem — on the wiki, importable into any Hydrogen account, wireable in the-3D editor — everything starts here. Share this page; nothing else is required+ecosystem (on the wiki, importable into any Hydrogen account, wireable in the+3D editor), everything starts here. Share this page; nothing else is required reading.  ## Say one sentence, get the whole pipeline@@ -15,12 +15,13 @@ Your agent handles every step below from a single prompt:  > **"Publish my molecule ABC and import it into my Hydrogen account."** -Works the same for Fusion 360 and Altium sources — name your tool or let the-agent detect it from your files.+Works the same for Fusion 360 and Altium sources. A STEP on its own is not+enough: the registry places the model from the board file, so bring the board+too. Name your tool or let the agent detect it from your files.  ## The whole process, step by step -Every stage, every tool, every gate, in order: **[docs/process.html](docs/process.html)** (EDA export on the laptop, OCCT conversion, packaging, publish, render archive, Hydrogen import, wiring in the 3D editor, and the e2e regression that proves it).+Every stage, every tool, every gate, in order: **[docs/process.html](docs/process.html)** (EDA export on the laptop, the bundle check, the private publish, the registry build, hero and public page, render archive, Hydrogen import, and wiring in the 3D editor).  ## What happens under the hood @@ -28,74 +29,76 @@ Every stage, every tool, every gate, in order: **[docs/process.html](docs/proces  | Stage | Skill / tool | What it guarantees | |---|---|---|-| 1. Export | `kicad-export-molecule` / `fusion-export-molecule` / `altium-export-molecule` | STEP exported **on your machine** (so your 3D models bake in) + schematic + board + silk, pulled via adom-desktop |-| 2. Convert + publish | `molecule-publish` → OCCT service (`adom-step2glb`) | Anchored GLB (Z-up, front-left pin at origin), gold machine pins, silkscreen, footprint + symbol JSON with real wire-attach heights — gated on conversion stats, never published degraded |-| 3. Import | `adom-molecule-import` (ships with `adom-molecule`) | Reuses the published GLB (no re-optimization), registers under YOUR owner, collision-guarded |+| 1. Export | `kicad-export-molecule` / `fusion-export-molecule` / `altium-export-molecule` | sources only: STEP, board, schematic, `<slug>-fab.zip`, `export.json`; the STEP exported **on your machine** (so your 3D models bake in), pulled to the container via adom-bridge |+| 2. Check and publish | `molecule-publish` | the bundle checked against the registry's recipes and pin-name rule, then one private `pkg publish` of the sources; nothing generated is pushed |+| 3. Build | the wiki's 3D model registry (program `molecule/8`) | anchored GLB (Z-up, front-left pin at the origin), gold machine pins, board look from the Gerbers, footprint and symbol JSON on the board route; the publish waits for it and stops on a failed build |+| 4. Hero and public | `molecule-publish` | the hero posed from the built model; the page goes public once the build passed |+| 5. Import | `adom-wiki model import` (adom-wiki-cli) | the registry's model with its footprint and symbol, registered under YOUR owner; the command prints its Hydrogen link |++An Altium board builds a full molecule too: the registry reads the `.PcbDoc`+with the STEP. A STEP with no board file is refused (`board-file-required`).  ## Setup (once per container)  ```bash-# no adom-wiki on this container yet? bootstrap it first:-curl -fsSL https://wiki.adom.inc/download/adom/adom-wiki-cli/1.0.2/adom-wiki-cli-v1.0.2 \-  -o ~/.local/bin/adom-wiki && chmod +x ~/.local/bin/adom-wiki-+adom-wiki --version                               # needs 1.8.0 or newer+adom-wiki self-update                             # when it is older adom-wiki pkg install adom/molecule-pipeline      # the router (this page) adom-wiki pkg install adom/kicad-export-molecule  # + your EDA's export skill ```  ## Dependency tree +From each package's `package.json`:+ ```-molecule-pipeline-├── molecule-publish                     convert · package · publish-│   ├── adom-step2glb                    OCCT conversion CLI + shared service-│   └── adom-wiki-cli                    wiki publish/read (preinstalled on Adom containers)-├── adom-molecule                        Hydrogen CLI; ships adom-molecule-import-└── <your EDA export skill>              stage-1 front-end (install the one you use)-    ├── kicad-export-molecule-    │   ├── adom-desktop                 laptop bridge (KiCad bridge verbs)-    │   └── kicad-to-molecule            only if your board needs wings/machine pins added-    ├── fusion-export-molecule-    │   └── adom-desktop                 laptop bridge (Fusion bridge verbs)-    └── altium-export-molecule           interim; direct path in progress-        └── adom-altium-library-importer Adom machine-pin libs inside Altium+molecule-pipeline 2.0.0+└── adom/molecule-publish ^3.0.0          check · publish sources · wait for the build++<your EDA export skill>                   stage-1 front end (install the one you use)+├── kicad-export-molecule 2.0.0           adom/molecule-publish ^3.0.0, adom/adom-bridge ^2.0.0+├── fusion-export-molecule 2.0.0          adom/molecule-publish ^3.0.0, adom/adom-bridge ^2.0.0+└── altium-export-molecule 3.0.0          adom/altium-bridge ^0.2.54, adom/molecule-publish ^3.0.0, adom/adom-bridge ^2.0.0 ``` +Not dependencies, installed when needed: `adom-wiki-cli` (preinstalled on+Adom containers; 1.8.0 or newer; its `adom-wiki model import` is the Hydrogen+import), `adom-project-manager` (APM render archive),+`kicad-to-molecule` (only if your board needs wings and machine pins added),+`adom-step2glb` (plain boards and component pages only).+ - [molecule-publish](https://wiki.adom.inc/adom/molecule-publish)-- [adom-step2glb](https://wiki.adom.inc/adom/adom-step2glb) - [adom-wiki-cli](https://wiki.adom.inc/adom/adom-wiki-cli)-- [adom-molecule](https://wiki.adom.inc/adom/adom-molecule) - [kicad-export-molecule](https://wiki.adom.inc/adom/kicad-export-molecule) · [fusion-export-molecule](https://wiki.adom.inc/adom/fusion-export-molecule) · [altium-export-molecule](https://wiki.adom.inc/adom/altium-export-molecule)-- [adom-desktop](https://wiki.adom.inc/adom/adom-desktop) · [kicad-to-molecule](https://wiki.adom.inc/adom/kicad-to-molecule) · [adom-altium-library-importer](https://wiki.adom.inc/barrett-land/adom-altium-library-importer)+- [adom-bridge](https://wiki.adom.inc/adom/adom-bridge) · [kicad-to-molecule](https://wiki.adom.inc/adom/kicad-to-molecule) · [adom-project-manager](https://wiki.adom.inc/adom/adom-project-manager) -**Laptop prerequisites:** Adom Desktop running; your EDA installed; for-molecules, the board carries the Adom machine-pin furniture (MP1–MP4 markers +-corner machine pins — [kicad-to-molecule](https://wiki.adom.inc/adom/kicad-to-molecule)-adds them to a plain board).+**Laptop prerequisites:** Adom Bridge running; your EDA installed; for+molecules, the board carries the Adom machine-pin furniture (machine pins+named MP1 to MP4, two or four of them, all one size and length, and machine+contacts named MC1, MC2, ...;+[kicad-to-molecule](https://wiki.adom.inc/adom/kicad-to-molecule) adds them to+a plain board).  ## What a published molecule page carries -**You provide** (the bare-minimum bundle): STEP + schematic + board/layout.-**The tools add**: the OCCT-converted **GLB** (anchored, gold pins, optimized)-and the metadata (footprint + symbol JSON with wire-attach heights).--Every molecule page on the wiki therefore carries the full published set —-**GLB + STEP + schematic + board + metadata** — and the tools expect all five:-import reuses the GLB, wiring reads the metadata, reproduction uses the-sources. No partial molecules, no ambiguity about what "published" means.+**You provide** sources only: STEP, board, schematic, `<slug>-fab.zip`,+`export.json`. **The registry builds** the GLB (anchored, gold pins,+optimized), its lighter render copy for the page viewer, and on the board+route the footprint and symbol JSON with the wire-attach heights. Nobody+pushes those generated files; a write that carries them to a molecule page is+refused.  ## The invariants (why results are consistent) -1. The full published set (GLB + STEP + schematic + board + metadata, plus `<slug>-fab.zip` and `export.json` for EDA molecules) reaches the wiki. The publisher checks fabrication sources before publishing and verifies the downloaded commit's hashes.-2. The **only** GLB is the OCCT-converted one — never an EDA's native export.+1. Molecule pages carry sources only: STEP, board, schematic, `<slug>-fab.zip` and `export.json`. The publisher checks the fabrication files before publishing and the registry checks them again in the build.+2. No tool pushes a GLB to a molecule page; EDA-native GLB exports are never used. The registry builds the model. 3. STEP is exported on the design machine so custom 3D models survive.-4. Every stage verifies before the next starts; a failed gate stops the run.-5. Import reuses the published model — nothing is regenerated.+4. Every stage verifies before the next starts; a failed build stops the run.+5. Import takes the registry's model after a passed build; nothing is regenerated.  ## Related pages  - [`kicad-export-molecule`](https://wiki.adom.inc/adom/kicad-export-molecule) · [`fusion-export-molecule`](https://wiki.adom.inc/adom/fusion-export-molecule) · [`altium-export-molecule`](https://wiki.adom.inc/adom/altium-export-molecule)-- [`molecule-publish`](https://wiki.adom.inc/adom/molecule-publish) — the convert/package/publish middle-- [`adom-molecule`](https://wiki.adom.inc/adom/adom-molecule) — the CLI + import skill-- [`adom-step2glb`](https://wiki.adom.inc/adom/adom-step2glb) — the OCCT conversion service/CLI-- [`kicad-to-molecule`](https://wiki.adom.inc/adom/kicad-to-molecule) — make a plain PCB molecule-ready first+- [`molecule-publish`](https://wiki.adom.inc/adom/molecule-publish): check, publish sources, wait for the build+- [`adom-wiki-cli`](https://wiki.adom.inc/adom/adom-wiki-cli): `adom-wiki model import`, wiki to Hydrogen+- [`kicad-to-molecule`](https://wiki.adom.inc/adom/kicad-to-molecule): make a plain PCB molecule-ready first
SKILL.md+95−53
@@ -1,79 +1,121 @@ --- name: molecule-pipeline-description: Top-level router for moving molecules between EDA tools, the Adom wiki, and Hydrogen. ONE entry point for "publish/export this molecule to the wiki" (any EDA) and "go get that molecule and import it to Hydrogen" — detects the direction and source, then routes to the right skill chain (EDA export skill → molecule-publish → adom-molecule-import). Use when the user says "ship this board as a molecule", "molecule to the wiki", "publish AND import my molecule", "get molecule X into my Hydrogen", "import that molecule", "move a molecule from <EDA> to hydrogen", or names a molecule + a destination without naming tools.+description: Top-level router for moving molecules between EDA tools, the Adom wiki, and Hydrogen. One entry point for "publish/export this molecule to the wiki" (any EDA) and "go get that molecule and import it to Hydrogen". It detects the direction and the source, then routes to the right skill chain (EDA export skill, then molecule-publish, which publishes sources and waits for the wiki's registry to build the model, then adom-wiki model import). Use when the user says "ship this board as a molecule", "molecule to the wiki", "publish AND import my molecule", "get molecule X into my Hydrogen", "import that molecule", "move a molecule from <EDA> to hydrogen", "I only have a STEP", or names a molecule and a destination without naming tools. user-invocable: true-argument-hint: "<molecule name> [from <kicad|fusion|altium|wiki>] [to <wiki|hydrogen>]"+argument-hint: "<molecule name> [from <kicad|fusion|altium|step|wiki>] [to <wiki|hydrogen>]" --- -# molecule-pipeline — the coordination layer+# molecule-pipeline: the coordination layer -One mental model for the whole trip. Humans say what they want; this skill-picks the chain and the downstream skills fill in the constraint knowledge-(preflight gates, OCCT molecule-mode routing, stats verification, packaging).+One model for the whole trip. People say what they want; this skill picks the+chain, and the downstream skills carry the rules (preflight gates, the bundle+the registry builds from, the build wait, packaging).  ```- KiCad ──kicad-export-molecule──┐- Fusion ─fusion-export-molecule─┼→ molecule-publish → WIKI → adom-molecule-import → HYDROGEN- Altium ─altium-export-molecule─┘   (convert+package+publish)   (authenticated fetch + register)+ KiCad  -kicad-export-molecule--++ Fusion -fusion-export-molecule-+-> molecule-publish ---> WIKI (registry builds the model) -> adom-wiki model import -> HYDROGEN+ Altium -altium-export-molecule-+   (check, publish sources,      (GLB, footprint, symbol)     (registry model + footprint+                                    wait for the build)                                         and symbol; authenticated) ``` +Molecule pages carry sources only: STEP, board, schematic, `<slug>-fab.zip`,+`export.json`. The wiki's 3D model registry builds `<slug>.glb`, its render+copy `<slug>.web.glb`, and on the board route `<slug>_footprint.json` and+`<slug>_symbol.json`. A write that carries one of those files to a molecule+page is refused (`REGISTRY_MODEL_FILE_REFUSED`).++## Requirements++Every route needs `adom-wiki` 1.8.0 or newer; its `model import` is the+Hydrogen import. Check `adom-wiki --version` before the first registry step;+when it is older, or when an `adom-wiki model` call prints "'model' is not an+adom-wiki command" (`UNKNOWN_COMMAND`), print "This skill needs adom-wiki+1.8.0 or newer (found <v>). Run: adom-wiki self-update" and stop.+`molecule-publish` 3.0.0 runs the full check (`scripts/versions_check.py`),+including the installed exporters.+ ## Routing table  | User intent | Route | |---|---|-| "publish/export this molecule" + source is **KiCad** | `kicad-export-molecule` → hands off to `molecule-publish` |-| ... source is **Fusion 360** | `fusion-export-molecule` → `molecule-publish` |-| ... source is **Altium** | `altium-export-molecule` (direct-path redesign in progress — owner Barrett) |-| "I already have the files" (STEP + schematic + board + fab zip + export record) | straight to `molecule-publish`; missing fabrication files return to the EDA exporter |-| "get/import molecule X to Hydrogen" | `adom-molecule-import` |-| "publish AND import" (full trip) | EDA skill → `molecule-publish` → `adom-molecule-import`, in order, verifying each stage before the next |-| "publish my board" — a plain KiCad/EAGLE board, staying a board | `molecule-publish` BOARD MODE (plain convert, tag `board`, APM render + deps; no anchoring gates) |-| plain PCB that should BECOME a molecule (add wings/machine pins) | `kicad-to-molecule` FIRST, then re-enter here |+| "publish/export this molecule" + source is **KiCad** | `kicad-export-molecule`, which hands off to `molecule-publish` |+| ... source is **Fusion 360** | `fusion-export-molecule`, then `molecule-publish` |+| ... source is **Altium** | `altium-export-molecule`, then `molecule-publish`: a full molecule on the board route (the registry reads the `.PcbDoc` with the STEP and builds the model, footprint and symbol) |+| "I only have a STEP" | not enough: a STEP with no board file is refused (`board-file-required`), because the registry places the model from the board file. Ask for the board the STEP came from, then route by its EDA |+| "I already have the files" (a STEP, plus a `.kicad_pcb`, `.brd` or `.PcbDoc` board, `<slug>-fab.zip` and `export.json` when they exist) | straight to `molecule-publish`; its bundle check names anything missing or extra. A bundle from an exporter always carries the fab zip and record; without them the fabrication check is skipped |+| tscircuit design (`circuit.json`) | `adom-tsci export-wiki` (adom/adom-tsci), not this chain |+| "get/import molecule X to Hydrogen" | `adom-wiki model import <owner>/<slug> --owner <you>` (the adom-wiki-cli skill), once the page's newest build passed; it exits 0 and prints the molecule's Hydrogen link |+| "publish AND import" (full trip) | EDA skill, then `molecule-publish`, then **wait for the build** (gated stage below), then `adom-wiki model import`, in order |+| "publish my board": a plain KiCad/EAGLE board, staying a board | `molecule-publish` board mode (plain convert, tag `board`, APM render and deps; the registry does not build boards) |+| plain PCB that should become a molecule (add wings and machine pins) | `kicad-to-molecule` first, then re-enter here |  Detect the source EDA by asking or by the files at hand: `.kicad_pcb`/`.kicad_sch`-→ KiCad; `.fbrd`/`.f3d`/`.brd`+`.sch` → Fusion; `.PcbDoc`/`.SchDoc` → Altium.+→ KiCad; `.fbrd`/`.f3d`/`.brd`+`.sch` → Fusion; `.PcbDoc`/`.SchDoc` → Altium;+a `.step` alone → ask for its board file.++## Stage: wait for the build (gated, between publish and import)++`molecule-publish` publishes the sources private with `adom-wiki pkg publish+--private --wait` and owns this stage: the next stage starts only when the+build that publish queued has passed with `error` null and the page's `model`+comes from the pipeline (`origin: pipeline`). A passed build writes the+footprint and symbol (`metadataComplete: true`) for KiCad, Fusion and Altium+alike; molecule-publish warns when one does not. To check a page by hand:++```bash+adom-wiki model status <owner>/<slug>     # served models, newest build, policy+adom-wiki model report <owner>/<slug>     # a failed build's checks, with the fix+```++A failed build stops the pipeline: the fix is in the sources (pin names,+fabrication files), then export again. Never push a GLB to get past it.  ## Invariants (hold across every route) -1. **The full published set reaches the wiki** — shape-conditional:-   EDA molecules = OCCT GLB + STEP + schematic + board + footprint/symbol JSON-   + `<slug>-fab.zip` + `export.json`;-   plain boards = GLB + STEP + every schematic sheet + board + project file-   (no footprint/symbol — no machine pins). Both also carry APM's `render/`-   assets + component `dependencies`. A page missing its shape's set is-   incomplete.+1. **Molecule pages carry sources only.** EDA molecules publish STEP + board ++   every schematic sheet + `<slug>-fab.zip` + `export.json` (Altium: STEP ++   `.PcbDoc` + schematics + fab zip + record). The+   registry builds the model, its render copy and, on the board route, the+   footprint and symbol JSON. Plain boards (board mode) still carry their own+   converted GLB + STEP + every schematic sheet + board + project file. Both+   shapes also carry APM's `render/` assets and component `dependencies`.    The EDA exporter captures fabrication data on every export; molecule-publish-   checks its source and member hashes before publishing and after fetching the-   pushed commit. tscircuit retains its circuit/build inputs instead: the pipeline-   writes its Gerbers. Existing pages receive a separately recorded backfill.-2. **The only GLB is OCCT's.** EDA-native GLB export (KiCad, Fusion,-   service-kicad) is never used for molecules.-3. **STEP is exported on the design machine** so machine-pin/contact/marker-   models bake in.-4. **Every stage verifies before the next starts** — conversion stats gates,-   publish `model_3d_path` check, import wire-attach check. A failed gate-   stops the pipeline; it is never "probably fine".-5. **Import reuses, never regenerates** — `--no-optimize` with the published-   GLB.-6. **Every emitted GLB declares its up-axis** (`asset.extras.adomMolecule.upAxis`)-   — a consumer never infers orientation from geometry. A GLB pushed to a page-   by ANY tool (step2glb, `--render-board`, service-kicad) must be Z-up and-   stamped, or carry an explicit axis stamp consumers can key off-   (molecule-publish #13: an unstamped Y-up `render/board.glb` renders sideways-   on the wiki AND flat-wrong in APM — no single guess satisfies both).+   checks its hashes before publishing, and the registry checks them again in+   the build. tscircuit pages build from `circuit.json` and take their layers+   from it. Files older publishers pushed stay in the page repos; no skill+   deletes them.+2. **No tool pushes a GLB to a molecule page.** EDA-native GLB exports (KiCad,+   Fusion, service-kicad) are never used, and nothing converts a molecule's+   STEP outside the registry: the registry builds the model from the sources.+3. **STEP is exported on the design machine** so machine-pin, contact and+   marker models bake in.+4. **Every stage verifies before the next starts**: the bundle check, the+   registry build (passed, no error), the import (exit 0, every+   `HYDROGEN_IMPORT_WARNING` reported). A failed gate stops the pipeline; it+   is never "probably fine".+5. **Import takes the registry's model.** `adom-wiki model import` runs after+   a passed build; Hydrogen reads the model the page serves and, on the board+   route, the footprint and symbol the build wrote; nothing is regenerated.+6. **The model declares its up-axis.** The registry's convert stamps+   `asset.extras.adomMolecule` on the model it builds, and consumers read+   orientation from that stamp, never from geometry. Since no tool pushes a+   GLB to a molecule page (invariant 2), the registry is the only writer of+   the stamp there. APM's `render/board.glb` is a preview APM pushes, not the+   page's model.  ## Why the layers are skills (not one mega-tool) -The middle (convert→package→publish) is deterministic and may become a CLI-verb once the step2glb CLI ships molecule flags (adom-step2glb #99). The-edges cannot be: EDA export needs laptop bridges + human-visible judgment,-and import needs owner/collision decisions. This router stays thin either-way — if a CLI absorbs the middle, only `molecule-publish` shrinks.+The middle (check, publish, wait) is deterministic and largely the CLI's own+`pkg publish --wait` now; the build itself runs in the wiki's registry. The+edges cannot be: EDA export needs laptop bridges and human-visible judgment,+and import needs owner and name decisions. This router stays thin either+way.  ## Related -- `kicad-export-molecule`, `fusion-export-molecule`, `altium-export-molecule` — EDA front-ends-- `molecule-publish` — convert + package + publish (the middle)-- `adom-molecule-import` — wiki → Hydrogen (ships with adom/adom-molecule)-- `kicad-to-molecule` — molecule-ize a plain PCB first-- `adom-step2glb` — the conversion CLI/service underneath+- `kicad-export-molecule`, `fusion-export-molecule`, `altium-export-molecule`: EDA front ends+- `molecule-publish`: check, publish sources, wait for the build (the middle)+- `adom-wiki model import`: wiki to Hydrogen (the adom-wiki-cli skill)+- `adom-tsci`: tscircuit molecules (`export-wiki`)+- `kicad-to-molecule`: make a plain PCB molecule-ready first+- `adom-wiki model ...`: build status and reports (adom-wiki 1.8.0)
docs/hero-src.html+10−14
@@ -13,7 +13,7 @@   .bar { height:46px; display:flex; align-items:center; padding:0 18px; gap:8px;     border-bottom:1px solid #16293c; }   .dot { width:12px; height:12px; border-radius:50%; background:#22384e; }-  .title { margin-left:12px; color:#5b7astro; color:#5b7a99; font-size:14px; letter-spacing:.4px; }+  .title { margin-left:12px; color:#5b7a99; font-size:14px; letter-spacing:.4px; }   .body { padding:26px 34px 34px; font-family:'Cascadia Mono','Consolas',monospace; font-size:17px; line-height:1.85; }   .p  { color:#7dd3c8; }   .cmd{ color:#e6edf5; }@@ -26,20 +26,16 @@   <div class="win">     <div class="accent"></div>     <div class="bar"><div class="dot"></div><div class="dot"></div><div class="dot"></div>-      <div class="title">adom-desktop &nbsp;·&nbsp; Fusion 360 Electronics &nbsp;·&nbsp; piprobe.fbrd</div></div>+      <div class="title">molecule-pipeline 2.0.0 &nbsp;&middot;&nbsp; KiCad to wiki to Hydrogen</div></div>     <div class="body">-      <div><span class="p">$</span> <span class="cmd">kicad-cli pcb export step</span> <span class="fl">--subst-models -o ABC.step</span></div>-      <div class="ok">   ABC.step                           written   3.2 MB</div>-      <div><span class="p">$</span> <span class="cmd">curl POST /convert?molecule=true</span> <span class="fl">step + board</span></div>-      <div class="ok">   anchored  gold pins  footprint_applied  contact_z 5.35mm</div>-      <div><span class="p">$</span> <span class="cmd">route: kicad-export-molecule → molecule-publish → adom-molecule-import</span></div>-      <div class="ok">   full trip verified — wires attach clean</div>-      <div><span class="p">$</span> <span class="cmd">adom-wiki repo push adom/abc</span> <span class="fl">--files ...</span></div>-      <div class="ok">   source on the Files tab</div>-      <div><span class="p">$</span> <span class="cmd">adom-molecule create</span> <span class="fl">--glb ABC.glb --no-optimize</span></div>-      <div class="ok">   registered under caleb — no re-optimization</div>-      <div><span class="p">$</span> <span class="cmd">adom-molecule list</span></div>-      <div class="ok">   hydrogen.adom.inc/caleb/molecules/ABC — wires attach clean</div>+      <div><span class="p">$</span> <span class="cmd">route: kicad-export-molecule &rarr; molecule-publish &rarr; adom-molecule-import</span></div>+      <div><span class="p">$</span> <span class="cmd">kicad-cli pcb export step</span> <span class="fl">--subst-models --force -o abc.step</span></div>+      <div class="ok">   sources: abc.step, ABC.kicad_pcb, ABC.kicad_sch, abc-fab.zip, export.json</div>+      <div><span class="p">$</span> <span class="cmd">adom-wiki pkg publish</span> <span class="fl">--private --wait</span></div>+      <div class="ok">   build 812 &middot; passed &middot; the page serves abc.glb from build 812</div>+      <div><span class="p">$</span> <span class="cmd">adom-wiki page visibility adom/abc</span> <span class="fl">--preset open</span></div>+      <div><span class="p">$</span> <span class="cmd">adom-molecule import adom/abc</span> <span class="fl">--owner caleb</span></div>+      <div class="ok">   hydrogen.adom.inc/caleb/molecules/ABC: wires attach at the contacts</div>     </div>   </div> </body></html>
docs/process.html+82−71
@@ -25,97 +25,108 @@ </style></head><body><main> <div class="band"><div class="k">adom &middot; molecule-pipeline</div><h1>The molecule pipeline, step by step</h1></div> -<p>How a board leaves your EDA tool, becomes a molecule on the wiki, and lands in a Hydrogen account wireable in the 3D editor. Every tool in the chain, in the order it runs, with the command each step actually issues and the gate that has to pass before the next step starts.</p>+<p>How a board leaves your EDA tool, becomes a molecule on the wiki, and lands in a Hydrogen account wireable in the 3D editor. Every tool in the chain, in the order it runs, with the command each step issues and the gate that has to pass before the next step starts.</p> <p>This page is the process; the <a href="../README.md">README</a> is the one-sentence front door.</p> <h2>The chain at a glance</h2>-<pre><code> YOUR LAPTOP                       YOUR CONTAINER                                  ADOM CLOUD- ───────────                       ──────────────                                  ──────────- KiCad 10   ──kicad bridge──┐- Fusion 360 ──fusion bridge─┼─▶ EDA export skill ─▶ step2glb (CLI) ──▶ OCCT service ─▶ anchored GLB- Altium     ──altium bridge─┘        │                 ▲                  (adom-step2glb)   + footprint/symbol JSON-                                     │                 │                                          │-                                     ▼                 │                                          ▼-                              molecule-publish ────────┘   package.json + gates ──▶ adom-wiki ──▶ wiki page-                                     │                                                  (pkg publish + repo push)-                                     ▼                                                        │-                              adom-nucleus --render-board (APM render/ archive)               │-                                                                                              ▼-                              adom-molecule import &lt;owner&gt;/&lt;slug&gt; ─────────▶ Hydrogen /api/molecules/import-                                                                                   │-                                                                                   ▼-                                                                    3D Editor V2: load, place, wire</code></pre>-<p>Every arrow is a real package. Versions this page was verified against (2026-09-03):</p>-<table><thead><tr><th>Layer</th><th>Package</th><th>Version</th><th>Runs where</th></tr></thead><tbody><tr><td>Router (this page)</td><td><code>adom/molecule-pipeline</code></td><td>1.1.2</td><td>container skill</td></tr><tr><td>Laptop bridge</td><td><code>adom/adom-bridge</code> (<code>adom-bridge</code> CLI, formerly adom-desktop)</td><td>2.1.15</td><td>laptop app, driven from the container</td></tr><tr><td>KiCad bridge</td><td><code>adom/kicad-bridge</code></td><td>1.0.111</td><td>inside Adom Bridge</td></tr><tr><td>Fusion bridge</td><td><code>adom/fusion-bridge</code></td><td>1.9.352</td><td>inside Adom Bridge</td></tr><tr><td>EDA export skills</td><td><code>adom/kicad-export-molecule</code> · <code>adom/fusion-export-molecule</code> · <code>adom/altium-export-molecule</code></td><td>1.1.2 · 1.2.2 · 2.3.1</td><td>container skills</td></tr><tr><td>Convert</td><td><code>adom/adom-step2glb</code> (<code>step2glb</code> CLI) + shared OCCT service</td><td>1.2.2 CLI / service 1.3.0</td><td>container CLI, cloud service</td></tr><tr><td>Package + publish</td><td><code>adom/molecule-publish</code></td><td>2.10.0</td><td>container skill (+ scripts)</td></tr><tr><td>Wiki CLI</td><td><code>adom/adom-wiki-cli</code> (<code>adom-wiki</code>)</td><td>1.7.26</td><td>container</td></tr><tr><td>Render archive</td><td><code>adom/adom-project-manager</code> (<code>adom-nucleus</code>, alias <code>adom-project-manager</code>)</td><td>0.14.0</td><td>container</td></tr><tr><td>Import</td><td><code>adom/adom-molecule</code> (<code>adom-molecule</code> CLI, ships <code>adom-molecule-import</code> skill)</td><td>1.1.10</td><td>container</td></tr><tr><td>Destination</td><td>Hydrogen (<code>hydrogen.adom.inc</code>)</td><td>1.0.185</td><td>cloud</td></tr></tbody></table>+<pre><code> YOUR LAPTOP                       YOUR CONTAINER                                     ADOM CLOUD+ -----------                       --------------                                     ----------+ KiCad 10   --kicad bridge--++ Fusion 360 --fusion bridge-+-&gt; EDA export skill: STEP, board, schematic,+ Altium     --altium bridge-+      &lt;slug&gt;-fab.zip, export.json (sources only)+                                         |+                                         v+                                  molecule-publish: bundle check, package.json+                                         |+                                         v+                                  adom-wiki pkg publish --private --wait ---------&gt; wiki page (private)+                                         |                                              |+                                         |                                              v+                                         |                                  3D model registry, program molecule/7:+                                         |                                  &lt;slug&gt;.glb, &lt;slug&gt;.web.glb,+                                         |  &lt;------- build passed ---------  &lt;slug&gt;_footprint.json, &lt;slug&gt;_symbol.json+                                         v+                                  hero from the built model, page public+                                  adom-nucleus --render-board (APM render/ archive)+                                         |+                                         v+                                  adom-wiki model import &lt;owner&gt;/&lt;slug&gt; ----------&gt; Hydrogen /api/molecules/import+                                                                                        |+                                                                                        v+                                                                         3D Editor V2: load, place, wire</code></pre>+<p>Every arrow is a real package. The release set this page describes (2026-10-21, landing 2):</p>+<table><thead><tr><th>Layer</th><th>Package</th><th>Version</th><th>Runs where</th></tr></thead><tbody><tr><td>Router (this page)</td><td><code>adom/molecule-pipeline</code></td><td>2.0.0</td><td>container skill</td></tr><tr><td>Laptop bridge</td><td><code>adom/adom-bridge</code> (<code>adom-bridge</code> CLI)</td><td>^2.0.0</td><td>laptop app, driven from the container</td></tr><tr><td>KiCad and Fusion bridges</td><td><code>adom/kicad-bridge</code>, <code>adom/fusion-bridge</code></td><td>current release</td><td>inside Adom Bridge</td></tr><tr><td>Altium bridge</td><td><code>adom/altium-bridge</code></td><td>^0.2.54</td><td>inside Adom Bridge</td></tr><tr><td>EDA export skills</td><td><code>adom/kicad-export-molecule</code> · <code>adom/fusion-export-molecule</code> · <code>adom/altium-export-molecule</code></td><td>2.0.0 · 2.0.0 · 3.0.0</td><td>container skills</td></tr><tr><td>Check + publish</td><td><code>adom/molecule-publish</code></td><td>3.0.0</td><td>container skill (+ scripts)</td></tr><tr><td>Wiki CLI</td><td><code>adom/adom-wiki-cli</code> (<code>adom-wiki</code>)</td><td>1.8.0 or newer</td><td>container</td></tr><tr><td>Model build</td><td>the wiki&#x27;s 3D model registry, program <code>molecule/7</code></td><td>contract <code>adom.molecule-contract/1</code></td><td>cloud</td></tr><tr><td>Render archive</td><td><code>adom/adom-project-manager</code> (<code>adom-nucleus</code>, alias <code>adom-project-manager</code>)</td><td>current release</td><td>container</td></tr><tr><td>Import</td><td><code>adom/adom-wiki-cli</code> (<code>adom-wiki model import</code>)</td><td>1.8.0 or newer</td><td>container</td></tr><tr><td>Destination</td><td>Hydrogen (<code>hydrogen.adom.inc</code>)</td><td>current release</td><td>cloud</td></tr></tbody></table> <p>Install the container side in one go:</p>-<pre><code>adom-wiki pkg install adom/molecule-pipeline          # router; pulls molecule-publish + adom-molecule-adom-wiki pkg install adom/adom-step2glb              # step2glb CLI+<pre><code>adom-wiki --version                                   # 1.8.0 or newer; else: adom-wiki self-update+adom-wiki pkg install adom/molecule-pipeline          # router; pulls molecule-publish adom-wiki pkg install adom/kicad-export-molecule      # or fusion-export-molecule / altium-export-molecule adom-wiki pkg install adom/adom-project-manager       # adom-nucleus --render-board</code></pre>-<h2>Stage 0 — Before you export: the board must be a molecule</h2>-<p>A molecule is a board that carries the Adom furniture: <strong>MP1–MP4 marker footprints</strong> (the anchoring references) and the corner <strong>machine pins / contacts</strong> from the Adom library. OCCT anchors on the markers; without at least three of them the conversion still runs but the GLB imports unanchored and unwireable.</p>-<ul><li>KiCad: <code>kicad-to-molecule</code> adds wings + machine pins to a plain board; footprints come from <code>adom/kicad-library-manager</code>.</li><li>Altium: <code>barrett-land/adom-altium-library-importer</code> puts the machine-pin libraries inside Altium.</li><li>Fusion/EAGLE: use the Adom library parts (<code>MACH_PIN_LRG_SHORT</code>, etc.); the marker names carry the pin size, which the converter reads (<code>pin_size_source: markers</code>).</li></ul>-<p>Gate: the 3D models for the pins, contacts and markers <strong>resolve in your EDA&#x27;s 3D viewer on the machine that will export</strong>. A STEP only contains what resolved at export time; a model referenced by a path that only exists on someone else&#x27;s machine is silently dropped, and anchoring fails downstream.</p>-<h2>Stage 1 — Export on the laptop (EDA export skill + Adom Bridge)</h2>-<p>The STEP is always exported <strong>on the design machine</strong>, driven from the container through Adom Bridge. Everything below is what the export skill does for you when you say &quot;export molecule ABC&quot;.</p>+<h2>Stage 0: Before you export, the board must be a molecule</h2>+<p>A molecule is a board that carries the Adom furniture: <strong>machine pins</strong>, two or four, named <code>MP1</code> to <code>MP4</code> and all one size and length, and <strong>machine contacts</strong> named <code>MC1</code>, <code>MC2</code>, ..., from the Adom library, with unique designators. The registry&#x27;s <code>names</code> stage applies this rule to every build, and <code>molecule-publish</code> ships the same rule as <code>scripts/pin_names.py</code>, so an export can be checked before it is published.</p>+<ul><li>KiCad: <code>kicad-to-molecule</code> adds wings and machine pins to a plain board; footprints come from <code>adom/kicad-library-manager</code>.</li><li>Altium: <code>adom-library-importer</code> (over <code>adom/adom-machine-parts-library</code>) puts the machine-pin libraries inside Altium.</li><li>Fusion/EAGLE: use the Adom library parts (<code>MACH_PIN_LRG_SHORT</code>, etc.); the package names carry the pin size. Older boards that number contacts <code>MP&lt;n&gt;</code> on <code>CONTACT_MED</code> are refused (<code>contact-names</code>): rename those contacts <code>MC1</code>, <code>MC2</code>, ... in the board and the schematic, then export again.</li></ul>+<p>Gate: the 3D models for the pins, contacts and markers <strong>resolve in your EDA&#x27;s 3D viewer on the machine that will export</strong>. A STEP only contains what resolved at export time; a model referenced by a path that only exists on someone else&#x27;s machine is dropped, and the build&#x27;s anchor check fails.</p>+<h2>Stage 1: Export on the laptop (EDA export skill + Adom Bridge)</h2>+<p>The STEP is always exported <strong>on the design machine</strong>, driven from the container through Adom Bridge. Every export also writes the fabrication files: Gerbers and drill from the same saved board, packed in the container into <code>&lt;slug&gt;-fab.zip</code> and <code>export.json</code> by molecule-publish&#x27;s <code>scripts/fab_bundle.py</code> (see its <code>docs/fabrication.md</code>). Pull everything into a <strong>fresh</strong> container folder, never a clone of the page. Nothing in this stage makes a GLB.</p> <h3>KiCad (<code>kicad-export-molecule</code>)</h3>-<ol><li>Preflight: <code>adom-bridge ping</code>; <code>adom-bridge commands | grep kicad_</code>; kicad-cli is KiCad 10 (<code>C:\Program Files\KiCad\10.0\bin\kicad-cli.exe version</code>).</li><li>Export the STEP with the laptop CLI (models substituted from the laptop&#x27;s libraries):-<pre><code>kicad-cli pcb export step --subst-models --force -o ABC.step ABC.kicad_pcb</code></pre>-Read the output: every <code>Could not add 3D model for MPn</code> line means a marker did not bake in. Fix the model path (KiCad resolves relative model paths against the board&#x27;s directory, <code>${KICAD10_3DMODEL_DIR}</code> against the install) and export again.</li><li>Optional silk PNGs (top/bottom, white art on transparent).</li><li>Pull the bundle to the container: <code>adom-bridge pull_file {&quot;filePaths&quot;:[...], &quot;saveTo&quot;:&quot;...&quot;}</code> — <code>ABC.step</code>, <code>ABC.kicad_pcb</code>, <code>ABC.kicad_sch</code>, <code>ABC.kicad_pro</code>, silks.</li></ol>-<p>Never use KiCad&#x27;s own GLB export for a molecule: it bypasses anchoring, gold pins, normalization and the footprint emit. STEP in, OCCT makes the GLB.</p>+<ol><li>Preflight: <code>adom-bridge ping</code>; kicad-cli is KiCad 10.</li><li>Export on the laptop, through Adom Bridge&#x27;s <code>shell_execute</code>, into an empty <code>fab/</code> folder:+<pre><code>kicad-cli pcb export step --subst-models --force -o &lt;slug&gt;.step ABC.kicad_pcb+kicad-cli pcb export gerbers --layers F.Cu,B.Cu,F.Mask,B.Mask,F.Silkscreen,B.Silkscreen,Edge.Cuts --check-zones -o fab/ ABC.kicad_pcb+kicad-cli pcb export drill --format excellon --excellon-units mm --excellon-separate-th --drill-origin absolute -o fab/ ABC.kicad_pcb</code></pre>+Read the STEP output: every <code>Could not add 3D model for MPn</code> line means a pin did not bake in. Fix the model path and export again. Do not use the bridge&#x27;s <code>kicad_export_molecule</code> verb or its <code>nextSteps</code>.</li><li><code>adom-bridge pull_file</code> the sources (<code>&lt;slug&gt;.step</code>, <code>ABC.kicad_pcb</code>, every <code>.kicad_sch</code> sheet, <code>ABC.kicad_pro</code>) into <code>/tmp/&lt;slug&gt;-bundle</code> and everything in <code>fab/</code> into <code>/tmp/&lt;slug&gt;-gerbers</code>.</li><li>In the container: <code>fab_bundle.py create</code> (records KiCad&#x27;s version, the exporter&#x27;s version and every source), <code>fab_bundle.py check</code>, <code>pin_names.py check</code>.</li></ol> <h3>Fusion 360 Electronics (<code>fusion-export-molecule</code>)</h3> <ol><li><code>adom-bridge fusion_start</code> if Fusion is closed (blocks until the add-in is ready; the first <code>fusion_get_app_state</code> after that can take a minute).</li><li>Open the <strong>board file directly</strong> so the multi-design picker never appears: <pre><code>adom-bridge fusion_open_cloud_file {&quot;projectName&quot;:&quot;Main&quot;,&quot;folderPath&quot;:&quot;COSMIIC&quot;,&quot;fileName&quot;:&quot;PM COIL Molecule&quot;,&quot;fileExtension&quot;:&quot;fbrd&quot;,&quot;recovery&quot;:&quot;discard&quot;}</code></pre>-Find the design first with <code>fusion_mcp_call {&quot;tool&quot;:&quot;fusion_mcp_read&quot;,&quot;arguments&quot;:{&quot;queryType&quot;:&quot;document&quot;,&quot;operation&quot;:&quot;search&quot;,&quot;name&quot;:&quot;...&quot;}}</code> (APS search needs a fresh sign-in; MCP search works with any open document).</li><li>Export sources: <code>fusion_export_eagle_source</code> for the <code>.brd</code>, switch with <code>fusion_electron_run {&quot;command&quot;:&quot;EDIT .s1&quot;}</code>, export the <code>.sch</code>, switch back with <code>EDIT .brd</code>.</li><li><code>fusion_show_3d_board</code>, then <code>fusion_export_step</code> (and <code>fusion_export_f3d</code> / <code>fusion_export_usdz</code> / silkscreen screenshots if you want the kitchen sink).</li><li><code>pull_file</code> the bundle: <code>.brd</code>, <code>.sch</code>, <code>.step</code> (+ extras).</li></ol>+Find the design first with <code>fusion_mcp_call {&quot;tool&quot;:&quot;fusion_mcp_read&quot;,&quot;arguments&quot;:{&quot;queryType&quot;:&quot;document&quot;,&quot;operation&quot;:&quot;search&quot;,&quot;name&quot;:&quot;...&quot;}}</code> (APS search needs a fresh sign-in; MCP search works with any open document).</li><li>Export sources: <code>fusion_export_eagle_source</code> for the <code>.brd</code>, switch with <code>fusion_electron_run {&quot;command&quot;:&quot;EDIT .s1&quot;}</code>, export the <code>.sch</code>, switch back with <code>EDIT .brd</code>.</li><li><code>fusion_show_3d_board</code>, then <code>fusion_export_step</code> to <code>&lt;slug&gt;.step</code> (and <code>fusion_export_f3d</code> / <code>fusion_export_usdz</code> for the extras).</li><li>Back in the PCB editor, <code>fusion_export_gerbers {&quot;outputDir&quot;:&quot;C:/tmp/export/fab&quot;}</code>; use <code>data.zipPath</code> from the reply.</li><li><code>pull_file</code> the sources into <code>/tmp/&lt;slug&gt;-bundle</code> and the Gerber zip into <code>/tmp/&lt;slug&gt;-gerbers</code>, then <code>fab_bundle.py create</code>, <code>check</code> and <code>pin_names.py check</code> in the container.</li></ol> <h3>Altium (<code>altium-export-molecule</code>)</h3>-<p>Native STEP export with the machine-pin models baked in, board metadata derived for OCCT, then the same converter call as everyone else. The skill ends when the OCCT artifacts are on the container; it never packages or publishes.</p>-<p>Gate for all three: the bundle on the container has <strong>STEP + board + schematic + &lt;slug&gt;-fab.zip + export.json</strong> (a molecule without its schematic is not reproducible and <code>molecule-publish</code> refuses it).</p>-<p>Collect both sides of copper, mask and silk, outline and drill on every EDA export. The publisher checks the fabrication bundle before publishing and verifies the downloaded commit's source/member hashes.</p>-<h2>Stage 2 — Convert: STEP → anchored GLB + footprint/symbol (<code>step2glb</code>)</h2>-<p>One command, run on the container, does the whole OCCT molecule pipeline server-side:</p>-<pre><code>step2glb convert ABC.step --board ABC.kicad_pcb --pin large -o &lt;slug&gt;.glb     # .brd boards work too</code></pre>-<p>The CLI uploads to the shared OCCT service (<code>https://step2glb-gmdoncpxdwx0.adom.cloud</code>, async <code>POST /convert</code> → <code>GET /jobs/{id}</code> → <code>/jobs/{id}/result</code>), and downloads <code>&lt;slug&gt;.glb</code>, <code>&lt;slug&gt;_footprint.json</code> and <code>&lt;slug&gt;_symbol.json</code> beside it. What the service does: MP-marker anchoring (Z-up, front-left machine pin at the origin, board-surface Z), canonical gold machine-pin material, optional silkscreen overlay, meter normalization, Draco compression, and footprint + symbol JSON with the <strong>per-pad wire-attach Z</strong> — the numbers Hydrogen&#x27;s wire tool snaps to.</p>-<p>Gate on the printed stats before going any further:</p>-<table><thead><tr><th>Stat</th><th>Must be</th><th>Otherwise</th></tr></thead><tbody><tr><td><code>molecule_anchored</code></td><td><code>true</code></td><td>markers missing from the STEP; go back to Stage 1</td></tr><tr><td><code>footprint_applied</code> / <code>footprint_pins</code></td><td><code>true</code> / 4</td><td>board parse failed; read the warnings</td></tr><tr><td><code>contact_z</code></td><td>2.8–8.4 mm</td><td>wrong pin size or wrong marker models</td></tr><tr><td><code>pin_size_source</code></td><td><code>markers</code></td><td><code>param</code> means the size fell back to <code>--pin</code></td></tr><tr><td><code>warnings</code></td><td>none</td><td>every entry is actionable</td></tr></tbody></table>-<p>The GLB carries <code>asset.extras.adomMolecule</code> — durable provenance you can check on any downloaded copy (do not look for a <code>molecule_anchor</code> node; the optimizer flattens it by design).</p>-<h2>Stage 3 — Package (<code>molecule-publish</code>)</h2>+<ol><li><code>altium_export_step</code> (headless) to <code>&lt;slug&gt;.step</code>. The STEP holds the board and component bodies, no copper and no silkscreen.</li><li><code>altium_export_manufacturing</code> for Gerbers and NC drill; check the outline and drill outputs.</li><li><code>pull_file</code> the STEP, <code>.PcbDoc</code>, every <code>.SchDoc</code> and the <code>.PrjPcb</code>, and the fabrication files, then <code>fab_bundle.py create</code>, <code>check</code> and <code>pin_names.py check</code> in the container.</li></ol>+<p>An Altium page builds a full molecule on the board route: the registry reads the <code>.PcbDoc</code> with the STEP and builds the model, footprint and symbol, as for KiCad and Fusion.</p>+<p>Gate for all three: the bundle folder holds <strong>STEP + board + every schematic sheet + <code>&lt;slug&gt;-fab.zip</code> + <code>export.json</code></strong> and no GLB, <code>_footprint.json</code>, <code>_symbol.json</code>, <code>.pipeline.json</code> or <code>.metadata.json</code>; <code>fab_bundle.py check</code> passes; <code>pin_names.py check</code> passes on the board (<code>.kicad_pcb</code>, <code>.brd</code> or <code>.PcbDoc</code>).</p>+<p><strong>A STEP on its own</strong> is refused (<code>board-file-required</code>): the registry places the model from the board file, so export the board with it.</p>+<h2>Stage 2: Check and package (<code>molecule-publish</code>)</h2>+<pre><code>python3 scripts/bundle_check.py &lt;folder&gt; --slug &lt;slug&gt;     # recipe, route, sources, refused files+python3 scripts/pin_names.py check &lt;folder&gt;/&lt;board&gt;       # board route+python3 scripts/fab_bundle.py check &lt;folder&gt; --slug &lt;zip stem&gt;</code></pre>+<p><code>bundle_check.py</code> applies the registry&#x27;s recipes (<code>scripts/contract.json</code>, a byte copy of the wiki&#x27;s molecule contract) to the folder and, for an existing page, to the files the page already holds. It names the recipe (<code>molecule-board/1</code> for KiCad, Fusion and Altium; <code>molecule-step/1</code> for a STEP with no board file, which the build refuses), each source, and every problem: no recipe, a STEP with no board file, two STEPs or boards at one depth, a generated file in the folder, a fab zip without its record, a record that names another STEP or board.</p> <pre><code>&lt;slug&gt;/-  package.json            type &quot;component&quot;, component.mpn, hero block, dependencies {}-  &lt;slug&gt;.glb              the OCCT GLB, named EXACTLY &lt;slug&gt;.glb-  ABC.kicad_pcb | .brd    board source-  ABC.kicad_sch | .sch    schematic source-  ABC.step                STEP (reproducibility)-  &lt;slug&gt;-fab.zip     Gerbers and drill-  export.json            exporter versions and source/member hashes-  &lt;slug&gt;_footprint.json   OCCT artifact (wire-attach Z)-  &lt;slug&gt;_symbol.json      OCCT artifact-  README.md, screenshots/hero.png, [silk PNGs, .f3d, .usdz, bom, cpl]</code></pre>+  package.json            type &quot;component&quot;, kind &quot;molecule&quot;, component.mpn, dependencies+  ABC.step                STEP+  ABC.kicad_pcb | .brd    board (.PcbDoc on the Altium route)+  ABC.kicad_sch | .sch    every schematic sheet+  &lt;slug&gt;-fab.zip          Gerbers and drill+  export.json             exporter versions and source/member hashes+  README.md, 3d/, [.kicad_pro, silk PNGs, .f3d, .usdz, bom, cpl]</code></pre> <p>Rules that bite:</p>-<ul><li><strong>Name the GLB <code>&lt;slug&gt;.glb</code>.</strong> The wiki auto-converts the STEP to a plain <code>&lt;slug&gt;.glb</code> at publish time and points <code>model_3d_path</code> at it; an anchored GLB with any other name is shadowed by the plain one and every import gets an unanchored model.</li><li>The <code>component</code> block is what creates the page&#x27;s component-metadata row; without it <code>model_3d_path</code> is never set and import fails with &quot;no published GLB&quot;.</li><li>Key the page by MPN, never by value. Do not ship a hand-made <code>page.json</code>.</li><li>Component dependencies are enforced before publish: <code>python3 scripts/component_graph.py plan &lt;board&gt; --out component-plan.json</code> then <code>gate package.json --plan component-plan.json --expect-board &lt;board&gt; --resolve</code> (declared coverage + every dependency resolves to a real page). Missing component pages: Stage 2.6 auto-creates them.</li><li>Stamp what you tested on: <code>python3 scripts/tested_with.py stamp package.json --family &lt;model&gt;</code>.</li><li>Hero camera: <code>python3 scripts/hero_camera.py pose &lt;slug&gt;.glb --page page.json</code>.</li></ul>-<h2>Stage 4 — Publish + verify (<code>adom-wiki</code>)</h2>-<pre><code>adom-wiki pkg publish [--org adom]                                   # registry version-adom-wiki repo push &lt;owner&gt;/&lt;slug&gt; --files &lt;every file above&gt; -m &quot;&lt;name&gt; molecule&quot;</code></pre>-<p>Two layers, both required: <code>pkg publish</code> registers the version (and generates <code>page.json</code>), <code>repo push</code> puts the files on the page. Verify before calling it done:</p>-<ul><li><code>metadata.model_3d_path</code> on the page == <code>&lt;slug&gt;.glb</code>;</li><li>the page&#x27;s GLB is byte-identical to your gated conversion (<code>curl</code> it with your token, <code>cmp</code> against the local file) — this is the anchoring proof;</li><li>the full set is present: GLB + STEP + schematic + board + footprint/symbol JSON.</li></ul>-<p>Private pages are fine end to end; nothing in the chain needs the page public.</p>-<h2>Stage 5 — Render archive (<code>adom-nucleus --render-board</code>)</h2>+<ul><li><strong>Nothing generated in the folder</strong>: no <code>&lt;slug&gt;.glb</code>, <code>&lt;slug&gt;.web.glb</code>, <code>*_footprint.json</code>, <code>*_symbol.json</code> or <code>&lt;slug&gt;.pipeline.json</code>. The registry builds them, and a publish that carries them is refused (<code>REGISTRY_MODEL_FILE_REFUSED</code>).</li><li><code>&quot;kind&quot;: &quot;molecule&quot;</code> in <code>package.json</code>: the recipes apply to molecule pages only.</li><li>The <code>component</code> block creates the page&#x27;s component metadata. Key the page by MPN, never by value. Do not ship a hand-made <code>page.json</code>.</li><li>Component dependencies are enforced before publish: <code>python3 scripts/component_graph.py plan &lt;board&gt; --out &lt;work&gt;/component-plan.json</code> then <code>gate package.json --plan &lt;work&gt;/component-plan.json --expect-board &lt;board&gt; --resolve</code> (declared coverage, and every dependency resolves to a real page). Missing component pages: molecule-publish Stage 2.6 creates them.</li><li>Stamp what you tested on: <code>python3 scripts/tested_with.py stamp package.json --family &lt;model&gt;</code>.</li></ul>+<h2>Stage 3: Publish private, wait for the build (<code>adom-wiki</code> 1.8.0)</h2>+<pre><code>adom-wiki --json pkg publish --private --wait --timeout 1200 [--org adom]   # first publish+adom-wiki --json pkg publish --wait --timeout 1200                          # update of an existing page</code></pre>+<p>The one private <code>pkg publish</code> is the only write of the sources; its commit carries every recorded source and <code>export.json</code>, and the registry queues one build from it (<code>molecule/7</code>: names, metadata, anchor, fabrication, normalize, attachments, optimize). <code>--wait</code> follows that build. Before an update, <code>adom-wiki model status &lt;owner&gt;/&lt;slug&gt;</code> must say the registry builds the page; otherwise stop, and never fall back to pushing a GLB.</p>+<p>Done check, before anything else runs:</p>+<ul><li>the build after the publish is <code>passed</code> with <code>error</code> null (<code>data.model</code> in the JSON reply);</li><li>the page&#x27;s <code>model</code> slot has <code>origin: pipeline</code> (<code>adom-wiki model status &lt;owner&gt;/&lt;slug&gt;</code>);</li><li>the build wrote the footprint and symbol (<code>metadataComplete: true</code>); molecule-publish warns when it did not, since the page then has no wire attach points.</li></ul>+<p>A failed build stops the pipeline: <code>adom-wiki model report &lt;owner&gt;/&lt;slug&gt;</code> names the failed checks with their fix (rename pins in the board and the schematic, export again). A refused publish names the files the registry generates; delete them from the folder and publish again.</p>+<h2>Stage 4: Hero and public</h2>+<p>The hero is posed from the registry&#x27;s model: <code>adom-wiki repo show &lt;owner&gt;/&lt;slug&gt; &lt;slug&gt;.glb --out &lt;work&gt;/&lt;slug&gt;.glb</code> (sha256 equal to the served model&#x27;s), <code>python3 scripts/hero_camera.py pose</code> into the page&#x27;s <code>page.json</code> and the package&#x27;s <code>package.json</code>, a 16:10 PNG at that pose, <code>adom-wiki page hero &lt;owner&gt;/&lt;slug&gt; --image screenshots/hero.png</code>. Then:</p>+<pre><code>adom-wiki page visibility &lt;owner&gt;/&lt;slug&gt; --preset open</code></pre>+<p>The gate passes once a build has passed: a public molecule page needs a served registry model.</p>+<h2>Stage 5: Render archive (<code>adom-nucleus --render-board</code>)</h2> <p>Run <strong>after</strong> the publish, every time (it stamps the archive with the version it reads from the published <code>package.json</code>):</p> <pre><code>adom-nucleus --render-board &lt;owner&gt;/&lt;slug&gt;       # alias: adom-project-manager --render-board</code></pre>-<p>It renders <code>render/pcb.svg</code>, <code>render/sheet-*.svg</code>, <code>render/board.glb</code>, content-hashes them and archives <code>render/&lt;version&gt;/</code> + <code>render/manifest.json</code> only when the content changed. Check <code>manifest.current == &lt;version&gt;</code> and <code>python3 scripts/render_parity.py render/board.glb &lt;slug&gt;.glb</code> (same mesh count, else the render dropped geometry). EAGLE/Fusion sources report &quot;nothing rendered&quot; and skip gracefully today.</p>-<h2>Stage 6 — Import into Hydrogen (<code>adom-molecule</code>)</h2>-<pre><code>adom-molecule import &lt;owner&gt;/&lt;slug&gt; --owner &lt;your-user-or-org&gt; [--name &lt;name&gt;]</code></pre>-<p>What it does (1.1.10): reads the page owner-qualified with your container credential (private pages included), checks <code>model_3d_path</code> and that a footprint JSON or board file exists, downloads the GLB as a preflight, then POSTs <code>{wikiRef:&quot;&lt;owner&gt;/&lt;slug&gt;&quot;, owner, name, includeSource:true}</code> to <code>https://hydrogen.adom.inc/api/molecules/import</code>. Hydrogen re-reads the page with the same credential, <strong>reuses the wiki GLB verbatim</strong> (no re-optimization, no silkscreen, no Blender), carries the sources, and attaches the footprint so the molecule lands with wire-attach points. Re-importing creates a new version of the same molecule.</p>+<p>It renders <code>render/pcb.svg</code>, <code>render/sheet-*.svg</code> and <code>render/board.glb</code>, content-hashes them and archives <code>render/&lt;version&gt;/</code> + <code>render/manifest.json</code> only when the content changed. <code>render/</code> is never a generated file, so the push is accepted on molecule pages; the page&#x27;s 3D viewer shows the registry model, not <code>render/board.glb</code>. Check <code>manifest.current == &lt;version&gt;</code>. EAGLE/Fusion sources report &quot;nothing rendered&quot; and skip today.</p>+<h2>Stage 6: Import into Hydrogen (<code>adom-wiki model import</code>)</h2>+<pre><code>adom-wiki model import &lt;owner&gt;/&lt;slug&gt; --owner &lt;your-user-or-org&gt; [--name &lt;name&gt;]</code></pre>+<p>What it does: reads the page (<code>GET /api/pages/&lt;ref&gt;</code>) and refuses one with no model yet before anything is sent to Hydrogen (<code>MODEL_IMPORT_NO_MODEL</code>, exit 1, with the command <code>adom-wiki model status &lt;ref&gt;</code>). Then it asks Hydrogen (<code>POST https://hydrogen.adom.inc/api/molecules/import</code>, with <code>includeSource: true</code>) to read the model the page serves and the page&#x27;s sources (board, schematic, footprint and symbol JSON) with your own token, so a private page imports for anyone who can read it. Hydrogen <strong>reuses the registry&#x27;s model</strong> (no re-optimization, no silkscreen, no Blender), carries the sources, and attaches the footprint (<code>&lt;slug&gt;_footprint.json</code>) so the molecule lands with wire-attach points. A page an older registry program built 3D-only (Altium or STEP only) has no footprint and imports without them until a build from its board file passes. Re-importing creates a new version of the same molecule. <code>--name</code> defaults to the page slug less a trailing all-digit part. With the CLI pointed at a wiki other than wiki.adom.inc and <code>ADOM_HYDROGEN_URL</code> unset, it refuses before sending (<code>MODEL_IMPORT_OTHER_WIKI</code>, exit 2), because Hydrogen reads pages from wiki.adom.inc.</p> <p>Same thing from any script:</p> <pre><code>curl -X POST https://hydrogen.adom.inc/api/molecules/import \   -H &quot;X-Api-Key: $(cat /var/run/adom/api-key)&quot; -H &quot;Content-Type: application/json&quot; \   -d &#x27;{&quot;wikiRef&quot;:&quot;&lt;owner&gt;/&lt;slug&gt;&quot;,&quot;owner&quot;:&quot;&lt;you&gt;&quot;,&quot;includeSource&quot;:true}&#x27;</code></pre>-<p>Gate: the reply carries a <code>version</code> and no <code>warnings</code>; <code>adom-molecule list</code> shows the name under your owner; <code>https://hydrogen.adom.inc/&lt;owner&gt;/molecules/&lt;name&gt;</code> renders it.</p>-<h2>Stage 7 — Use it in Hydrogen</h2>+<p>Gate: exit 0 with the line <code>&lt;owner&gt;/&lt;slug&gt;: imported into Hydrogen as &lt;your-owner&gt;/&lt;name&gt;, version &lt;v&gt;, from &lt;glb&gt;</code> and no <code>HYDROGEN_IMPORT_WARNING</code> hint (with <code>--json</code>, <code>data</code> is <code>{ ref, url, hydrogen }</code>: <code>hydrogen.version</code> set and <code>hydrogen.warnings</code> empty); the printed link <code>https://hydrogen.adom.inc/&lt;your-owner&gt;/molecules/&lt;name&gt;</code> renders it, and the name is on your owner&#x27;s list (<code>https://hydrogen.adom.inc/users/&lt;you&gt;/molecules</code> or <code>https://hydrogen.adom.inc/orgs/&lt;org&gt;/molecules</code>). Hydrogen refusing is <code>HYDROGEN_IMPORT_FAILED</code>, exit 1, with its status and message: 401 sign in, 403 an owner you may act for, 404 a page you can read, 422 no model yet.</p>+<p><code>adom-molecule</code> is deprecated: its last release (1.2.0) only prints the replacements above, and its <code>import</code> runs <code>adom-wiki model import</code> with the same arguments.</p>+<h2>Stage 7: Use it in Hydrogen</h2> <p>Open a repo&#x27;s editor (<code>https://hydrogen.adom.inc/&lt;owner&gt;/&lt;repo&gt;/edit</code>), add a <strong>3D Editor V2</strong> tab, then:</p> <ol><li><strong>Browse and Load Molecule</strong> → pick the owner → the molecule → Load → set the placement position → OK.</li><li><strong>More Objects tools → Add Wires</strong> (tick <em>Draw Multiple Wires</em>) → hover a machine pin until the &quot;Machine Pin: FL/BL/FR/BR&quot; tooltip shows → click → click the second molecule&#x27;s pin. The console logs <code>New contact-based wire created from &lt;a&gt; - Pin: X to &lt;b&gt; - Pin: Y</code>.</li><li>Save the layout.</li></ol>-<p>The in-app <strong>Optimize / Regenerate 3D model</strong> button is retired (it pointed at a worker that no longer exists); optimization happens in Stage 2 and import reuses it.</p>+<p>The in-app <strong>Optimize / Regenerate 3D model</strong> button is retired (it pointed at a worker that no longer exists); the registry build optimizes the model in Stage 3 and import reuses it.</p> <h2>Regression: the e2e harness</h2>-<p><code>project/molecule-e2e/run-e2e.sh</code> on gallia republishes two private test molecules — <code>drew2/e2e-kicad-solonoid</code> (KiCad) and <code>drew2/e2e-fusion-pmcoil</code> (Fusion/EAGLE) — through the current stack every time a molecule-family package changes (cron, every 30 minutes, <code>check-and-run.sh</code>). Stages it gates: EDA export on the laptop (kicad-cli 10 / Fusion bridge), OCCT conversion stats, provenance stamp, <code>pkg publish</code> + <code>repo push</code>, wiki GLB checksum, APM render archive + manifest, and the private import into Hydrogen through <code>adom-molecule import</code>. <code>last-status.json</code> is the verdict; <code>e2e.log</code> is the trail.</p>+<p><code>project/molecule-e2e/run-e2e.sh</code> on gallia republished two private test molecules, <code>drew2/e2e-kicad-solonoid</code> (KiCad) and <code>drew2/e2e-fusion-pmcoil</code> (Fusion/EAGLE), through the stack whenever a molecule-family package changed (cron, every 30 minutes, <code>check-and-run.sh</code>). Its gates belong to the old flow: OCCT conversion stats, a pushed GLB, the wiki GLB checksum and the APM render archive. The cron is paused before the production campaign (landing 2 release order, step 7), because a sources-only publish fails the GLB checksum gate and a pushed GLB would split the page&#x27;s model. Before it runs again its gates become: the bundle check, the build after the publish passed with no error, <code>model</code> served with <code>origin: pipeline</code>, the render archive, and the private import into Hydrogen. <code>last-status.json</code> is the verdict; <code>e2e.log</code> is the trail.</p> <h2>The one-sentence versions</h2>-<ul><li>&quot;Move molecule ABC from KiCad on my computer up to the wiki.&quot; → Stages 1–5.</li><li>&quot;Get molecule ABC into my Hydrogen account.&quot; → Stage 6.</li><li>&quot;Publish my molecule ABC and import it into my Hydrogen account.&quot; → Stages 1–6, each gated before the next.</li><li>&quot;Wire ABC to DEF in the 3D editor.&quot; → Stage 7.</li></ul>-<div class="foot">adom/molecule-pipeline &middot; verified against the live stack on 2026-09-03 &middot; source: docs/process.md</div>+<ul><li>&quot;Move molecule ABC from KiCad on my computer up to the wiki.&quot; → Stages 1 to 5.</li><li>&quot;Get molecule ABC into my Hydrogen account.&quot; → Stage 6.</li><li>&quot;Publish my molecule ABC and import it into my Hydrogen account.&quot; → Stages 1 to 6, each gated before the next.</li><li>&quot;I only have a STEP of ABC.&quot; → not enough: a STEP alone is refused (<code>board-file-required</code>); export the board too, then Stages 1 to 5.</li><li>&quot;Wire ABC to DEF in the 3D editor.&quot; → Stage 7.</li></ul>+<div class="foot">adom/molecule-pipeline &middot; landing 2 release set, 2026-10-21 &middot; source: docs/process.md</div> </main></body></html>\ No newline at end of file
docs/process.md+114−103
@@ -1,81 +1,90 @@ # The molecule pipeline, step by step -How a board leaves your EDA tool, becomes a molecule on the wiki, and lands in a Hydrogen account wireable in the 3D editor. Every tool in the chain, in the order it runs, with the command each step actually issues and the gate that has to pass before the next step starts.+How a board leaves your EDA tool, becomes a molecule on the wiki, and lands in a Hydrogen account wireable in the 3D editor. Every tool in the chain, in the order it runs, with the command each step issues and the gate that has to pass before the next step starts.  This page is the process; the [README](../README.md) is the one-sentence front door.  ## The chain at a glance  ```- YOUR LAPTOP                       YOUR CONTAINER                                  ADOM CLOUD- ───────────                       ──────────────                                  ──────────- KiCad 10   ──kicad bridge──┐- Fusion 360 ──fusion bridge─┼─▶ EDA export skill ─▶ step2glb (CLI) ──▶ OCCT service ─▶ anchored GLB- Altium     ──altium bridge─┘        │                 ▲                  (adom-step2glb)   + footprint/symbol JSON-                                     │                 │                                          │-                                     ▼                 │                                          ▼-                              molecule-publish ────────┘   package.json + gates ──▶ adom-wiki ──▶ wiki page-                                     │                                                  (pkg publish + repo push)-                                     ▼                                                        │-                              adom-nucleus --render-board (APM render/ archive)               │-                                                                                              ▼-                              adom-molecule import <owner>/<slug> ─────────▶ Hydrogen /api/molecules/import-                                                                                   │-                                                                                   ▼-                                                                    3D Editor V2: load, place, wire+ YOUR LAPTOP                       YOUR CONTAINER                                     ADOM CLOUD+ -----------                       --------------                                     ----------+ KiCad 10   --kicad bridge--++ Fusion 360 --fusion bridge-+-> EDA export skill: STEP, board, schematic,+ Altium     --altium bridge-+      <slug>-fab.zip, export.json (sources only)+                                         |+                                         v+                                  molecule-publish: bundle check, package.json+                                         |+                                         v+                                  adom-wiki pkg publish --private --wait ---------> wiki page (private)+                                         |                                              |+                                         |                                              v+                                         |                                  3D model registry, program molecule/8:+                                         |                                  <slug>.glb, <slug>.web.glb,+                                         |  <------- build passed ---------  <slug>_footprint.json, <slug>_symbol.json+                                         v+                                  hero from the built model, page public+                                  adom-nucleus --render-board (APM render/ archive)+                                         |+                                         v+                                  adom-wiki model import <owner>/<slug> ----------> Hydrogen /api/molecules/import+                                                                                        |+                                                                                        v+                                                                         3D Editor V2: load, place, wire ``` -Every arrow is a real package. Versions this page was verified against (2026-09-03):+Every arrow is a real package. The release set this page describes (2026-10-21, landing 2):  | Layer | Package | Version | Runs where | |---|---|---|---|-| Router (this page) | `adom/molecule-pipeline` | 1.1.2 | container skill |-| Laptop bridge | `adom/adom-bridge` (`adom-bridge` CLI, formerly adom-desktop) | 2.1.15 | laptop app, driven from the container |-| KiCad bridge | `adom/kicad-bridge` | 1.0.111 | inside Adom Bridge |-| Fusion bridge | `adom/fusion-bridge` | 1.9.352 | inside Adom Bridge |-| EDA export skills | `adom/kicad-export-molecule` · `adom/fusion-export-molecule` · `adom/altium-export-molecule` | 1.1.2 · 1.2.2 · 2.3.1 | container skills |-| Convert | `adom/adom-step2glb` (`step2glb` CLI) + shared OCCT service | 1.2.2 CLI / service 1.3.0 | container CLI, cloud service |-| Package + publish | `adom/molecule-publish` | 2.10.0 | container skill (+ scripts) |-| Wiki CLI | `adom/adom-wiki-cli` (`adom-wiki`) | 1.7.26 | container |-| Render archive | `adom/adom-project-manager` (`adom-nucleus`, alias `adom-project-manager`) | 0.14.0 | container |-| Import | `adom/adom-molecule` (`adom-molecule` CLI, ships `adom-molecule-import` skill) | 1.1.10 | container |-| Destination | Hydrogen (`hydrogen.adom.inc`) | 1.0.185 | cloud |+| Router (this page) | `adom/molecule-pipeline` | 2.0.0 | container skill |+| Laptop bridge | `adom/adom-bridge` (`adom-bridge` CLI) | ^2.0.0 | laptop app, driven from the container |+| KiCad and Fusion bridges | `adom/kicad-bridge`, `adom/fusion-bridge` | current release | inside Adom Bridge |+| Altium bridge | `adom/altium-bridge` | ^0.2.54 | inside Adom Bridge |+| EDA export skills | `adom/kicad-export-molecule` · `adom/fusion-export-molecule` · `adom/altium-export-molecule` | 2.0.0 · 2.0.0 · 3.0.0 | container skills |+| Check + publish | `adom/molecule-publish` | 3.0.0 | container skill (+ scripts) |+| Wiki CLI | `adom/adom-wiki-cli` (`adom-wiki`) | 1.8.0 or newer | container |+| Model build | the wiki's 3D model registry, program `molecule/8` | contract `adom.molecule-contract/1` | cloud |+| Render archive | `adom/adom-project-manager` (`adom-nucleus`, alias `adom-project-manager`) | current release | container |+| Import | `adom/adom-wiki-cli` (`adom-wiki model import`) | 1.8.0 or newer | container |+| Destination | Hydrogen (`hydrogen.adom.inc`) | current release | cloud |  Install the container side in one go:  ```bash-adom-wiki pkg install adom/molecule-pipeline          # router; pulls molecule-publish + adom-molecule-adom-wiki pkg install adom/adom-step2glb              # step2glb CLI+adom-wiki --version                                   # 1.8.0 or newer; else: adom-wiki self-update+adom-wiki pkg install adom/molecule-pipeline          # router; pulls molecule-publish adom-wiki pkg install adom/kicad-export-molecule      # or fusion-export-molecule / altium-export-molecule adom-wiki pkg install adom/adom-project-manager       # adom-nucleus --render-board ``` -## Stage 0 — Before you export: the board must be a molecule+## Stage 0: Before you export, the board must be a molecule -A molecule is a board that carries the Adom furniture: **MP1–MP4 marker footprints** (the anchoring references) and the corner **machine pins / contacts** from the Adom library. OCCT anchors on the markers; without at least three of them the conversion still runs but the GLB imports unanchored and unwireable.+A molecule is a board that carries the Adom furniture: **machine pins**, two or four, named `MP1` to `MP4` and all one size and length, and **machine contacts** named `MC1`, `MC2`, ..., from the Adom library, with unique designators. The registry's `names` stage applies this rule to every build, and `molecule-publish` ships the same rule as `scripts/pin_names.py`, so an export can be checked before it is published. -- KiCad: `kicad-to-molecule` adds wings + machine pins to a plain board; footprints come from `adom/kicad-library-manager`.-- Altium: `barrett-land/adom-altium-library-importer` puts the machine-pin libraries inside Altium.-- Fusion/EAGLE: use the Adom library parts (`MACH_PIN_LRG_SHORT`, etc.); the marker names carry the pin size, which the converter reads (`pin_size_source: markers`).+- KiCad: `kicad-to-molecule` adds wings and machine pins to a plain board; footprints come from `adom/kicad-library-manager`.+- Altium: `adom-library-importer` (over `adom/adom-machine-parts-library`) puts the machine-pin libraries inside Altium.+- Fusion/EAGLE: use the Adom library parts (`MACH_PIN_LRG_SHORT`, etc.); the package names carry the pin size. Older boards that number contacts `MP<n>` on `CONTACT_MED` are refused (`contact-names`): rename those contacts `MC1`, `MC2`, ... in the board and the schematic, then export again. -Gate: the 3D models for the pins, contacts and markers **resolve in your EDA's 3D viewer on the machine that will export**. A STEP only contains what resolved at export time; a model referenced by a path that only exists on someone else's machine is silently dropped, and anchoring fails downstream.+Gate: the 3D models for the pins, contacts and markers **resolve in your EDA's 3D viewer on the machine that will export**. A STEP only contains what resolved at export time; a model referenced by a path that only exists on someone else's machine is dropped, and the build's anchor check fails. -## Stage 1 — Export on the laptop (EDA export skill + Adom Bridge)+## Stage 1: Export on the laptop (EDA export skill + Adom Bridge) -The STEP is always exported **on the design machine**, driven from the container through Adom Bridge. Everything below is what the export skill does for you when you say "export molecule ABC".+The STEP is always exported **on the design machine**, driven from the container through Adom Bridge. Every export also writes the fabrication files: Gerbers and drill from the same saved board, packed in the container into `<slug>-fab.zip` and `export.json` by molecule-publish's `scripts/fab_bundle.py` (see its `docs/fabrication.md`). Pull everything into a **fresh** container folder, never a clone of the page. Nothing in this stage makes a GLB.  ### KiCad (`kicad-export-molecule`) -1. Preflight: `adom-bridge ping`; `adom-bridge commands | grep kicad_`; kicad-cli is KiCad 10 (`C:\Program Files\KiCad\10.0\bin\kicad-cli.exe version`).-2. Export the STEP with the laptop CLI (models substituted from the laptop's libraries):+1. Preflight: `adom-bridge ping`; kicad-cli is KiCad 10.+2. Export on the laptop, through Adom Bridge's `shell_execute`, into an empty `fab/` folder:    ```-   kicad-cli pcb export step --subst-models --force -o ABC.step ABC.kicad_pcb+   kicad-cli pcb export step --subst-models --force -o <slug>.step ABC.kicad_pcb+   kicad-cli pcb export gerbers --layers F.Cu,B.Cu,F.Mask,B.Mask,F.Silkscreen,B.Silkscreen,Edge.Cuts --check-zones -o fab/ ABC.kicad_pcb+   kicad-cli pcb export drill --format excellon --excellon-units mm --excellon-separate-th --drill-origin absolute -o fab/ ABC.kicad_pcb    ```-   Read the output: every `Could not add 3D model for MPn` line means a marker did not bake in. Fix the model path (KiCad resolves relative model paths against the board's directory, `${KICAD10_3DMODEL_DIR}` against the install) and export again.-3. Optional silk PNGs (top/bottom, white art on transparent).-4. Pull the bundle to the container: `adom-bridge pull_file {"filePaths":[...], "saveTo":"..."}` — `ABC.step`, `ABC.kicad_pcb`, `ABC.kicad_sch`, `ABC.kicad_pro`, silks.--Never use KiCad's own GLB export for a molecule: it bypasses anchoring, gold pins, normalization and the footprint emit. STEP in, OCCT makes the GLB.+   Read the STEP output: every `Could not add 3D model for MPn` line means a pin did not bake in. Fix the model path and export again. Do not use the bridge's `kicad_export_molecule` verb or its `nextSteps`.+3. `adom-bridge pull_file` the sources (`<slug>.step`, `ABC.kicad_pcb`, every `.kicad_sch` sheet, `ABC.kicad_pro`) into `/tmp/<slug>-bundle` and everything in `fab/` into `/tmp/<slug>-gerbers`.+4. In the container: `fab_bundle.py create` (records KiCad's version, the exporter's version and every source), `fab_bundle.py check`, `pin_names.py check`.  ### Fusion 360 Electronics (`fusion-export-molecule`) @@ -86,80 +95,79 @@ Never use KiCad's own GLB export for a molecule: it bypasses anchoring, gold pin    ```    Find the design first with `fusion_mcp_call {"tool":"fusion_mcp_read","arguments":{"queryType":"document","operation":"search","name":"..."}}` (APS search needs a fresh sign-in; MCP search works with any open document). 3. Export sources: `fusion_export_eagle_source` for the `.brd`, switch with `fusion_electron_run {"command":"EDIT .s1"}`, export the `.sch`, switch back with `EDIT .brd`.-4. `fusion_show_3d_board`, then `fusion_export_step` (and `fusion_export_f3d` / `fusion_export_usdz` / silkscreen screenshots if you want the kitchen sink).-5. `pull_file` the bundle: `.brd`, `.sch`, `.step` (+ extras).+4. `fusion_show_3d_board`, then `fusion_export_step` to `<slug>.step` (and `fusion_export_f3d` / `fusion_export_usdz` for the extras).+5. Back in the PCB editor, `fusion_export_gerbers {"outputDir":"C:/tmp/export/fab"}`; use `data.zipPath` from the reply.+6. `pull_file` the sources into `/tmp/<slug>-bundle` and the Gerber zip into `/tmp/<slug>-gerbers`, then `fab_bundle.py create`, `check` and `pin_names.py check` in the container.  ### Altium (`altium-export-molecule`) -Native STEP export with the machine-pin models baked in, board metadata derived for OCCT, then the same converter call as everyone else. The skill ends when the OCCT artifacts are on the container; it never packages or publishes.+1. `altium_export_step` (headless) to `<slug>.step`. The STEP holds the board and component bodies, no copper and no silkscreen.+2. `altium_export_manufacturing` for Gerbers and NC drill; check the outline and drill outputs.+3. `pull_file` the STEP, `.PcbDoc`, every `.SchDoc` and the `.PrjPcb`, and the fabrication files, then `fab_bundle.py create`, `check` and `pin_names.py check` in the container. -Gate for all three: the bundle on the container has **STEP + board + schematic + `<slug>-fab.zip` + `export.json`** (a molecule without its schematic is not reproducible and `molecule-publish` refuses it).+An Altium page builds a full molecule on the board route: the registry reads the `.PcbDoc` with the STEP and builds the model, footprint and symbol, as for KiCad and Fusion. -For each EDA, collect fabrication layers on every export and verify them with molecule-publish's `scripts/fab_bundle.py` before handing off. Preserve native board sources and mark imported backfills honestly.+Gate for all three: the bundle folder holds **STEP + board + every schematic sheet + `<slug>-fab.zip` + `export.json`** and no GLB, `_footprint.json`, `_symbol.json`, `.pipeline.json` or `.metadata.json`; `fab_bundle.py check` passes; `pin_names.py check` passes on the board (`.kicad_pcb`, `.brd` or `.PcbDoc`). -## Stage 2 — Convert: STEP → anchored GLB + footprint/symbol (`step2glb`)+**A STEP on its own** is refused (`board-file-required`): the registry places the model from the board file, so export the board with it. -One command, run on the container, does the whole OCCT molecule pipeline server-side:+## Stage 2: Check and package (`molecule-publish`)  ```bash-step2glb convert ABC.step --board ABC.kicad_pcb --pin large -o <slug>.glb     # .brd boards work too+python3 scripts/bundle_check.py <folder> --slug <slug>     # recipe, route, sources, refused files+python3 scripts/pin_names.py check <folder>/<board>       # board route+python3 scripts/fab_bundle.py check <folder> --slug <zip stem> ``` -The CLI uploads to the shared OCCT service (`https://step2glb-gmdoncpxdwx0.adom.cloud`, async `POST /convert` → `GET /jobs/{id}` → `/jobs/{id}/result`), and downloads `<slug>.glb`, `<slug>_footprint.json` and `<slug>_symbol.json` beside it. What the service does: MP-marker anchoring (Z-up, front-left machine pin at the origin, board-surface Z), canonical gold machine-pin material, optional silkscreen overlay, meter normalization, Draco compression, and footprint + symbol JSON with the **per-pad wire-attach Z** — the numbers Hydrogen's wire tool snaps to.--Gate on the printed stats before going any further:--| Stat | Must be | Otherwise |-|---|---|---|-| `molecule_anchored` | `true` | markers missing from the STEP; go back to Stage 1 |-| `footprint_applied` / `footprint_pins` | `true` / 4 | board parse failed; read the warnings |-| `contact_z` | 2.8–8.4 mm | wrong pin size or wrong marker models |-| `pin_size_source` | `markers` | `param` means the size fell back to `--pin` |-| `warnings` | none | every entry is actionable |--The GLB carries `asset.extras.adomMolecule` — durable provenance you can check on any downloaded copy (do not look for a `molecule_anchor` node; the optimizer flattens it by design).--## Stage 3 — Package (`molecule-publish`)+`bundle_check.py` applies the registry's recipes (`scripts/contract.json`, a byte copy of the wiki's molecule contract) to the folder and, for an existing page, to the files the page already holds. It names the recipe (`molecule-board/1` for KiCad, Fusion and Altium; `molecule-step/1` for a STEP with no board file, which the build refuses), each source, and every problem: no recipe, a STEP with no board file, two STEPs or boards at one depth, a generated file in the folder, a fab zip without its record, a record that names another STEP or board.  ``` <slug>/-  package.json            type "component", component.mpn, hero block, dependencies {}-  <slug>.glb              the OCCT GLB, named EXACTLY <slug>.glb-  ABC.kicad_pcb | .brd    board source-  ABC.kicad_sch | .sch    schematic source-  ABC.step                STEP (reproducibility)+  package.json            type "component", kind "molecule", component.mpn, dependencies+  ABC.step                STEP+  ABC.kicad_pcb | .brd    board (.PcbDoc on the Altium route)+  ABC.kicad_sch | .sch    every schematic sheet   <slug>-fab.zip          Gerbers and drill-  export.json            exporter versions and source/member hashes-  <slug>_footprint.json   OCCT artifact (wire-attach Z)-  <slug>_symbol.json      OCCT artifact-  README.md, screenshots/hero.png, [silk PNGs, .f3d, .usdz, bom, cpl]+  export.json             exporter versions and source/member hashes+  README.md, 3d/, [.kicad_pro, silk PNGs, .f3d, .usdz, bom, cpl] ```  Rules that bite: -- **Name the GLB `<slug>.glb`.** The wiki auto-converts the STEP to a plain `<slug>.glb` at publish time and points `model_3d_path` at it; an anchored GLB with any other name is shadowed by the plain one and every import gets an unanchored model.-- The `component` block is what creates the page's component-metadata row; without it `model_3d_path` is never set and import fails with "no published GLB".-- Key the page by MPN, never by value. Do not ship a hand-made `page.json`.-- Component dependencies are enforced before publish: `python3 scripts/component_graph.py plan <board> --out component-plan.json` then `gate package.json --plan component-plan.json --expect-board <board> --resolve` (declared coverage + every dependency resolves to a real page). Missing component pages: Stage 2.6 auto-creates them.+- **Nothing generated in the folder**: no `<slug>.glb`, `<slug>.web.glb`, `*_footprint.json`, `*_symbol.json` or `<slug>.pipeline.json`. The registry builds them, and a publish that carries them is refused (`REGISTRY_MODEL_FILE_REFUSED`).+- `"kind": "molecule"` in `package.json`: the recipes apply to molecule pages only.+- The `component` block creates the page's component metadata. Key the page by MPN, never by value. Do not ship a hand-made `page.json`.+- Component dependencies are enforced before publish: `python3 scripts/component_graph.py plan <board> --out <work>/component-plan.json` then `gate package.json --plan <work>/component-plan.json --expect-board <board> --resolve` (declared coverage, and every dependency resolves to a real page). Missing component pages: molecule-publish Stage 2.6 creates them. - Stamp what you tested on: `python3 scripts/tested_with.py stamp package.json --family <model>`.-- Hero camera: `python3 scripts/hero_camera.py pose <slug>.glb --page page.json`. -## Stage 4 — Publish + verify (`adom-wiki`)+## Stage 3: Publish private, wait for the build (`adom-wiki` 1.8.0)  ```bash-adom-wiki pkg publish [--org adom]                                   # registry version-adom-wiki repo push <owner>/<slug> --files <every file above> -m "<name> molecule"+adom-wiki --json pkg publish --private --wait --timeout 1200 [--org adom]   # first publish+adom-wiki --json pkg publish --wait --timeout 1200                          # update of an existing page ``` -Two layers, both required: `pkg publish` registers the version (and generates `page.json`), `repo push` puts the files on the page. Verify before calling it done:+The one private `pkg publish` is the only write of the sources; its commit carries every recorded source and `export.json`, and the registry queues one build from it (`molecule/8`: names, metadata, anchor, fabrication, normalize, attachments, optimize). `--wait` follows that build. Before an update, `adom-wiki model status <owner>/<slug>` must say the registry builds the page; otherwise stop, and never fall back to pushing a GLB.++Done check, before anything else runs:++- the build after the publish is `passed` with `error` null (`data.model` in the JSON reply);+- the page's `model` slot has `origin: pipeline` (`adom-wiki model status <owner>/<slug>`);+- the build wrote the footprint and symbol (`metadataComplete: true`); molecule-publish warns when it did not, since the page then has no wire attach points. -- `metadata.model_3d_path` on the page == `<slug>.glb`;-- the page's GLB is byte-identical to your gated conversion (`curl` it with your token, `cmp` against the local file) — this is the anchoring proof;-- the full set is present: GLB + STEP + schematic + board + footprint/symbol JSON.+A failed build stops the pipeline: `adom-wiki model report <owner>/<slug>` names the failed checks with their fix (rename pins in the board and the schematic, export again). A refused publish names the files the registry generates; delete them from the folder and publish again. -Private pages are fine end to end; nothing in the chain needs the page public.+## Stage 4: Hero and public -## Stage 5 — Render archive (`adom-nucleus --render-board`)+The hero is posed from the registry's model: `adom-wiki repo show <owner>/<slug> <slug>.glb --out <work>/<slug>.glb` (sha256 equal to the served model's), `python3 scripts/hero_camera.py pose` into the page's `page.json` and the package's `package.json`, a 16:10 PNG at that pose, `adom-wiki page hero <owner>/<slug> --image screenshots/hero.png`. Then:++```bash+adom-wiki page visibility <owner>/<slug> --preset open+```++The gate passes once a build has passed: a public molecule page needs a served registry model.++## Stage 5: Render archive (`adom-nucleus --render-board`)  Run **after** the publish, every time (it stamps the archive with the version it reads from the published `package.json`): @@ -167,15 +175,15 @@ Run **after** the publish, every time (it stamps the archive with the version it adom-nucleus --render-board <owner>/<slug>       # alias: adom-project-manager --render-board ``` -It renders `render/pcb.svg`, `render/sheet-*.svg`, `render/board.glb`, content-hashes them and archives `render/<version>/` + `render/manifest.json` only when the content changed. Check `manifest.current == <version>` and `python3 scripts/render_parity.py render/board.glb <slug>.glb` (same mesh count, else the render dropped geometry). EAGLE/Fusion sources report "nothing rendered" and skip gracefully today.+It renders `render/pcb.svg`, `render/sheet-*.svg` and `render/board.glb`, content-hashes them and archives `render/<version>/` + `render/manifest.json` only when the content changed. `render/` is never a generated file, so the push is accepted on molecule pages; the page's 3D viewer shows the registry model, not `render/board.glb`. Check `manifest.current == <version>`. EAGLE/Fusion sources report "nothing rendered" and skip today. -## Stage 6 — Import into Hydrogen (`adom-molecule`)+## Stage 6: Import into Hydrogen (`adom-wiki model import`)  ```bash-adom-molecule import <owner>/<slug> --owner <your-user-or-org> [--name <name>]+adom-wiki model import <owner>/<slug> --owner <your-user-or-org> [--name <name>] ``` -What it does (1.1.10): reads the page owner-qualified with your container credential (private pages included), checks `model_3d_path` and that a footprint JSON or board file exists, downloads the GLB as a preflight, then POSTs `{wikiRef:"<owner>/<slug>", owner, name, includeSource:true}` to `https://hydrogen.adom.inc/api/molecules/import`. Hydrogen re-reads the page with the same credential, **reuses the wiki GLB verbatim** (no re-optimization, no silkscreen, no Blender), carries the sources, and attaches the footprint so the molecule lands with wire-attach points. Re-importing creates a new version of the same molecule.+What it does: reads the page (`GET /api/pages/<ref>`) and refuses one with no model yet before anything is sent to Hydrogen (`MODEL_IMPORT_NO_MODEL`, exit 1, with the command `adom-wiki model status <ref>`). Then it asks Hydrogen (`POST https://hydrogen.adom.inc/api/molecules/import`, with `includeSource: true`) to read the model the page serves and the page's sources (board, schematic, footprint and symbol JSON) with your own token, so a private page imports for anyone who can read it. Hydrogen **reuses the registry's model** (no re-optimization, no silkscreen, no Blender), carries the sources, and attaches the footprint (`<slug>_footprint.json`) so the molecule lands with wire-attach points. A page an older registry program built 3D-only (Altium or STEP only) has no footprint and imports without them until a build from its board file passes. Re-importing creates a new version of the same molecule. `--name` defaults to the page slug less a trailing all-digit part. With the CLI pointed at a wiki other than wiki.adom.inc and `ADOM_HYDROGEN_URL` unset, it refuses before sending (`MODEL_IMPORT_OTHER_WIKI`, exit 2), because Hydrogen reads pages from wiki.adom.inc.  Same thing from any script: @@ -185,9 +193,11 @@ curl -X POST https://hydrogen.adom.inc/api/molecules/import \   -d '{"wikiRef":"<owner>/<slug>","owner":"<you>","includeSource":true}' ``` -Gate: the reply carries a `version` and no `warnings`; `adom-molecule list` shows the name under your owner; `https://hydrogen.adom.inc/<owner>/molecules/<name>` renders it.+Gate: exit 0 with the line `<owner>/<slug>: imported into Hydrogen as <your-owner>/<name>, version <v>, from <glb>` and no `HYDROGEN_IMPORT_WARNING` hint (with `--json`, `data` is `{ ref, url, hydrogen }`: `hydrogen.version` set and `hydrogen.warnings` empty); the printed link `https://hydrogen.adom.inc/<your-owner>/molecules/<name>` renders it, and the name is on your owner's list (`https://hydrogen.adom.inc/users/<you>/molecules` or `https://hydrogen.adom.inc/orgs/<org>/molecules`). Hydrogen refusing is `HYDROGEN_IMPORT_FAILED`, exit 1, with its status and message: 401 sign in, 403 an owner you may act for, 404 a page you can read, 422 no model yet.++`adom-molecule` is deprecated: its last release (1.2.0) only prints the replacements above, and its `import` runs `adom-wiki model import` with the same arguments. -## Stage 7 — Use it in Hydrogen+## Stage 7: Use it in Hydrogen  Open a repo's editor (`https://hydrogen.adom.inc/<owner>/<repo>/edit`), add a **3D Editor V2** tab, then: @@ -195,15 +205,16 @@ Open a repo's editor (`https://hydrogen.adom.inc/<owner>/<repo>/edit`), add a ** 2. **More Objects tools → Add Wires** (tick *Draw Multiple Wires*) → hover a machine pin until the "Machine Pin: FL/BL/FR/BR" tooltip shows → click → click the second molecule's pin. The console logs `New contact-based wire created from <a> - Pin: X to <b> - Pin: Y`. 3. Save the layout. -The in-app **Optimize / Regenerate 3D model** button is retired (it pointed at a worker that no longer exists); optimization happens in Stage 2 and import reuses it.+The in-app **Optimize / Regenerate 3D model** button is retired (it pointed at a worker that no longer exists); the registry build optimizes the model in Stage 3 and import reuses it.  ## Regression: the e2e harness -`project/molecule-e2e/run-e2e.sh` on gallia republishes two private test molecules — `drew2/e2e-kicad-solonoid` (KiCad) and `drew2/e2e-fusion-pmcoil` (Fusion/EAGLE) — through the current stack every time a molecule-family package changes (cron, every 30 minutes, `check-and-run.sh`). Stages it gates: EDA export on the laptop (kicad-cli 10 / Fusion bridge), OCCT conversion stats, provenance stamp, `pkg publish` + `repo push`, wiki GLB checksum, APM render archive + manifest, and the private import into Hydrogen through `adom-molecule import`. `last-status.json` is the verdict; `e2e.log` is the trail.+`project/molecule-e2e/run-e2e.sh` on gallia republished two private test molecules, `drew2/e2e-kicad-solonoid` (KiCad) and `drew2/e2e-fusion-pmcoil` (Fusion/EAGLE), through the stack whenever a molecule-family package changed (cron, every 30 minutes, `check-and-run.sh`). Its gates belong to the old flow: OCCT conversion stats, a pushed GLB, the wiki GLB checksum and the APM render archive. The cron is paused before the production campaign (landing 2 release order, step 7), because a sources-only publish fails the GLB checksum gate and a pushed GLB would split the page's model. Before it runs again its gates become: the bundle check, the build after the publish passed with no error, `model` served with `origin: pipeline`, the render archive, and the private import into Hydrogen. `last-status.json` is the verdict; `e2e.log` is the trail.  ## The one-sentence versions -- "Move molecule ABC from KiCad on my computer up to the wiki." → Stages 1–5.+- "Move molecule ABC from KiCad on my computer up to the wiki." → Stages 1 to 5. - "Get molecule ABC into my Hydrogen account." → Stage 6.-- "Publish my molecule ABC and import it into my Hydrogen account." → Stages 1–6, each gated before the next.+- "Publish my molecule ABC and import it into my Hydrogen account." → Stages 1 to 6, each gated before the next.+- "I only have a STEP of ABC." → not enough: a STEP alone is refused (`board-file-required`); export the board too, then Stages 1 to 5. - "Wire ABC to DEF in the 3D editor." → Stage 7.
docs/stack-src.html+9−9
@@ -21,34 +21,34 @@   .label .d { color:#639b8d; font-size:17px; margin-top:4px; }   .pills { display:flex; gap:22px; flex-wrap:nowrap; }   .pill { font-family:'Cascadia Mono','Consolas',monospace; font-size:21px; color:#d7f4ec;-    border:1.5px solid #2b6a5c; border-radius:14px; padding:18px 26px; background:rgba(7,34,29,.55); white-space:nowrap; }+    border:1.5px solid #2b6a5c; border-radius:14px; padding:18px 26px; background:#082a24; white-space:nowrap; }   .pill.wide { padding:18px 30px; } </style></head><body>   <h1>The molecule-pipeline stack</h1>-  <div class="sub">one sentence moves a board through the ecosystem &middot; each layer below is a real Adom skill/app it routes.</div>+  <div class="sub">one sentence moves a board through the ecosystem &middot; pages carry sources, the wiki's registry builds the model.</div>    <div class="orch">     <div class="name">molecule-pipeline</div>-    <div class="role">ROUTER &middot; export &middot; convert &middot; publish &middot; import</div>+    <div class="role">ROUTER &middot; export &middot; publish &middot; build &middot; import</div>   </div>   <div class="builds">&darr;&nbsp; ROUTES THROUGH &nbsp;&darr;</div>    <div class="rows">     <div class="row">-      <div class="label"><div class="t">EXPORT</div><div class="d">out of your EDA, on your machine</div></div>+      <div class="label"><div class="t">EXPORT</div><div class="d">sources, on your machine</div></div>       <div class="pills"><div class="pill">kicad-export-molecule</div><div class="pill">fusion-export-molecule</div><div class="pill">altium-export-molecule</div></div>     </div>     <div class="row">       <div class="label"><div class="t">BRIDGE</div><div class="d">drive the laptop EDA</div></div>-      <div class="pills"><div class="pill wide">adom-desktop &middot; kicad bridge</div><div class="pill wide">adom-desktop &middot; fusion bridge</div></div>+      <div class="pills"><div class="pill wide">adom-bridge &middot; kicad / fusion / altium</div><div class="pill wide">STEP &middot; board &middot; sch &middot; fab zip &middot; export.json</div></div>     </div>     <div class="row">-      <div class="label"><div class="t">CONVERT</div><div class="d">STEP &rarr; anchored GLB + footprint</div></div>-      <div class="pills"><div class="pill">molecule-publish</div><div class="pill">adom-step2glb &middot; OCCT service</div></div>+      <div class="label"><div class="t">PUBLISH</div><div class="d">check, publish private, wait</div></div>+      <div class="pills"><div class="pill">molecule-publish</div><div class="pill">adom-wiki pkg publish --private --wait</div></div>     </div>     <div class="row">-      <div class="label"><div class="t">PUBLISH</div><div class="d">component page on the wiki</div></div>-      <div class="pills"><div class="pill">adom-wiki-cli</div><div class="pill">bundle &middot; GLB + STEP + sch + board + metadata</div></div>+      <div class="label"><div class="t">BUILD</div><div class="d">the wiki's 3D model registry</div></div>+      <div class="pills"><div class="pill">molecule/7</div><div class="pill">GLB &middot; web GLB &middot; footprint &middot; symbol</div></div>     </div>     <div class="row">       <div class="label"><div class="t">IMPORT</div><div class="d">into your Hydrogen account</div></div>
docs/stack.png
⋯ 1 unchanged line ⋯
install.sh+2
@@ -6,4 +6,6 @@ mkdir -p "$SKILLS_DIR/molecule-pipeline" rm -rf "$SKILLS_DIR/molecule-pipeline" mkdir -p "$SKILLS_DIR/molecule-pipeline" cp "$PKG_DIR/SKILL.md" "$SKILLS_DIR/molecule-pipeline/SKILL.md"+# molecule-publish 3.0.0 reads the installed router's version from here.+cp "$PKG_DIR/package.json" "$SKILLS_DIR/molecule-pipeline/package.json" echo "Installed skill → $SKILLS_DIR/molecule-pipeline/SKILL.md"
package.json+13−11
@@ -1,8 +1,8 @@ {   "slug": "molecule-pipeline",-  "version": "1.2.0",+  "version": "2.0.0",   "type": "skill",-  "description": "Top-level router for moving molecules between EDA tools, the wiki, and Hydrogen: one entry point that routes publish/import intents to the right skill chain and enforces the pipeline invariants.",+  "description": "Top-level router for moving molecules between EDA tools, the wiki, and Hydrogen: one entry point that routes publish/import intents to the right skill chain and enforces the pipeline invariants. Molecule pages publish sources only; the wiki's 3D model registry builds the model, and the route waits for that build before import.",   "tags": [     "molecule",     "pipeline",@@ -11,18 +11,18 @@     "skill"   ],   "dependencies": {-    "adom/molecule-publish": "^2.11.0",-    "adom/adom-molecule": "^1.1.3"+    "adom/molecule-publish": "^3.0.0"   },   "scripts": {     "install": "./install.sh",     "uninstall": "./uninstall.sh"   },-  "hero": {-    "headline": "One entry point for molecules",-    "subhead": "EDA to wiki to Hydrogen - routed, gated, verified",-    "screenshot": "docs/shot.png"-  },+  "hero": {
+  "type": "billboard",
+  "headline": "One entry point for molecules",
+  "subhead": "EDA to wiki to Hydrogen - routed, gated, verified",
+  "screenshot": "docs/shot.png"
+},   "discovery_triggers": [     "move molecule from EDA to the wiki",     "move molecule from my computer to the wiki",@@ -40,9 +40,11 @@     "move molecules",     "publish my board",     "board to the wiki",-    "view my board in project manager"+    "view my board in project manager",+    "i only have a step",+    "publish molecule sources"   ],-  "discovery_pitch": "THE single entry point for moving molecules through the Adom ecosystem: EDA (KiCad/Fusion/Altium) to the wiki, and wiki to a Hydrogen account. One page, the whole process, every dependency - drop-dead-simple prompts in, consistent verified results out.",+  "discovery_pitch": "THE single entry point for moving molecules through the Adom ecosystem: EDA (KiCad/Fusion/Altium) to the wiki, and wiki to a Hydrogen account. Pages carry sources only and the wiki's registry builds the model. One page, the whole process, every dependency - plain prompts in, consistent verified results out.",   "sample_prompts": [     {       "label": "EDA to wiki",
page.json+13−12
@@ -1,8 +1,8 @@ {   "slug": "molecule-pipeline",-  "version": "1.2.0",+  "version": "2.0.0",   "type": "skill",-  "description": "Top-level router for moving molecules between EDA tools, the wiki, and Hydrogen: one entry point that routes publish/import intents to the right skill chain and enforces the pipeline invariants.",+  "description": "Top-level router for moving molecules between EDA tools, the wiki, and Hydrogen: one entry point that routes publish/import intents to the right skill chain and enforces the pipeline invariants. Molecule pages publish sources only; the wiki's 3D model registry builds the model, and the route waits for that build before import.",   "tags": [     "molecule",     "pipeline",@@ -11,19 +11,18 @@     "skill"   ],   "dependencies": {-    "adom/molecule-publish": "^2.11.0",-    "adom/adom-molecule": "^1.1.3"+    "adom/molecule-publish": "^3.0.0"   },   "scripts": {     "install": "./install.sh",     "uninstall": "./uninstall.sh"   },-  "hero": {-    "type": "billboard",-    "headline": "One entry point for molecules",-    "subhead": "EDA to wiki to Hydrogen - routed, gated, verified",-    "screenshot": "docs/shot.png"-  },+  "hero": {
+  "type": "billboard",
+  "headline": "One entry point for molecules",
+  "subhead": "EDA to wiki to Hydrogen - routed, gated, verified",
+  "screenshot": "docs/shot.png"
+},   "discovery_triggers": [     "move molecule from EDA to the wiki",     "move molecule from my computer to the wiki",@@ -41,9 +40,11 @@     "move molecules",     "publish my board",     "board to the wiki",-    "view my board in project manager"+    "view my board in project manager",+    "i only have a step",+    "publish molecule sources"   ],-  "discovery_pitch": "THE single entry point for moving molecules through the Adom ecosystem: EDA (KiCad/Fusion/Altium) to the wiki, and wiki to a Hydrogen account. One page, the whole process, every dependency - drop-dead-simple prompts in, consistent verified results out.",+  "discovery_pitch": "THE single entry point for moving molecules through the Adom ecosystem: EDA (KiCad/Fusion/Altium) to the wiki, and wiki to a Hydrogen account. Pages carry sources only and the wiki's registry builds the model. One page, the whole process, every dependency - plain prompts in, consistent verified results out.",   "sample_prompts": [     {       "label": "EDA to wiki",