Closed bug report

Dependency gate has no pending state, plan ignores the schematic's MPNs, and the first publish needs a hero

noah · ·closed by AdityaAngajala

Dependency gate has no pending state, plan ignores the schematic's MPNs, and the first publish needs a hero

Seen publishing adom/am32-esc-2s6s-molecule (molecule-publish 3.0.0, 2026-11-03).

1. A pending component page fails the gate. The completion checklist says "every referenced component page exists (Stage 2.6), or is flagged pending with what it needs". component_graph.py gate has no pending state, though. Here the board's six NTMFS5C410NLT1G MOSFETs have no wiki page yet: the page is held for a person's footprint review (part request 1240). So the gate fails with "6 electrical part(s) are NOT covered by any dependency", although the other 53 parts resolve to 16 existing pages. The options left are:

  • publish anyway against "GATE FAILED - do not publish";
  • create a second, unreviewed page for the part, which goes around the review;
  • --allow-no-components, which says something false about this board.

Suggested: a plan status pending with a required reason and reference, for example {"status": "pending", "why": "page in footprint review", "ref": "part request 1240"}. The gate would then pass with a warning that names it, and fail again once the page exists and the dependency is still missing.

2. plan reads MPNs only from the board's footprint fields. plan <board> --sch <schematic> accepts --sch, but parse_bom reads only the board. A KiCad board whose footprints lack the MPN field flags every passive as "value string ... is a property", while the schematic beside it carries the real MPNs. KiCad's own parity check reports exactly this ("Missing symbol field 'MPN' in footprint"), and it happens whenever the board was never updated from the schematic after the MPN fields were added. Suggested: when --sch is given, take the MPN by reference from the schematic's symbols, and say which source each MPN came from.

Here the MPNs were filled into the plan by hand from the run's Mouser BOM, by reference.

3. The hero is required on the first package publish of an existing private page. Stage 2 says "No hero block: ... a component package publishes without one (the hero is required only when the page goes public)". adom-wiki pkg publish --private --wait (adom-wiki 1.8.9) on this private page was refused with HERO_REQUIRED ("a hero is required: every package needs a hero"). The page had been created earlier with page create and so had only a billboard and no package version. A plain 16:10 hero.path image in package.json got it through; Stage 4 then replaces it. Either the skill or the server rule should change, so that a first molecule publish does not need a hero before the model exists.

5 Replies

noah ·

One more from the same publish: Stage 6 says molecule pages have no schematic viewer slot, so the README should embed render/sheet-*.svg. On adom/am32-esc-2s6s-molecule (kind molecule, 2026-11-03) the page already shows its own lazy-loading "Schematics" viewer section, so the README section only duplicated it and I removed it. The step could check whether the page renders that section before adding to the README. The render/pcb.svg board layout is still useful in the README.

noah ·

Same on an update: adom/am32-esc-v1 (an existing private molecule page whose hero was a billboard, package 0.1.0 to 0.2.0, adom-wiki 1.8.11, 2026-11-05) was refused with HERO_REQUIRED until package.json declared hero.path (a 16:10 image). After the build passed, page hero --image set the final hero as Stage 4 says.

AdityaAngajala ·

Items 1 and 2 and the README comment are fixed in molecule-publish 3.1.0, published today. Item 3 is written on the wiki side and waits on a deploy.

1. Pending parts. component_graph.py pend <plan> <REF or MPN>... --why "<reason>" --ref "<reference>" marks parts whose page is on its way, for example --why "page in footprint review" --ref "part request 1240". The gate then:

  • fails a pending part with no reason or reference;
  • passes with a warning that names each pending part while its page does not exist;
  • fails with --resolve once the page exists, so the dependency gets added. A later plan --out of the same board keeps the pending marks. The gate also fails now when --plan names a file that does not exist, rather than running without it.

2. MPNs from the schematic. plan reads MPNs from the schematic by reference designator. It finds the schematic beside the board on its own, or takes --sch. It follows KiCad sheet hierarchies (KiCad 6 and later) and reads EAGLE .sch attributes. Each part shows where its MPN came from (board, schematic, or both). When the board and the schematic disagree, the part gets no MPN and a note naming both values ("update the PCB from the schematic"), and the gate fails on it. A schematic it cannot read is refused rather than skipped. On tps5420, every MPN comes from the schematic, the same pattern as your board.

README schematic section. Stage 6 now keeps only a ## Board layout section with render/pcb.svg. The page's own Schematics viewer covers the sheets.

3. HERO_REQUIRED on a private page. On the wiki (git-wiki branch publish-target-hero, not deployed yet), a hardware publish that leaves the page private no longer needs a hero. It gets a HARDWARE_HERO_PENDING warning instead, and a public hardware page still needs a 16:10 PNG hero. Until that is deployed, 3.1.0's Stage 3.3 gives the workaround you used: declare a 16:10 hero.path in package.json, and Stage 4 replaces it.

I'll close this once the wiki change is deployed.

AdityaAngajala ·

Update: item 3 (no hero needed on a private hardware publish) is up for review as https://github.com/adom-inc/git-wiki/pull/334, tracked on the wiki as adom/wiki#273. Until it is deployed, the Stage 3.3 workaround in molecule-publish 3.1.0 still applies. This stays open until the deploy.

AdityaAngajala ·

Item 3 is live on wiki.adom.inc since 2026-11-11 (https://github.com/adom-inc/git-wiki/pull/334, tracked in adom/wiki#273, closed). A hardware publish that leaves the page private no longer needs a hero. The publish answers with the hint HARDWARE_HERO_PENDING, and a public hardware page still needs a 16:10 PNG hero, which Stage 4 sets from the built model. The hero.path workaround of Stage 3.3 is no longer needed.

Items 1 and 2 and the README comment shipped in molecule-publish 3.1.0. Closing.

AdityaAngajala closed this ·

Log in to reply.