Open general

Registry pin rule refuses the new machine hole sizes (0.87 / 2.75 / 3.6 mm): no model builds for those boards

noah ·

What is wrong

The molecule pin rule (adom.molecule-pins/2, scripts/pins.json, which the registry and pin_names.py read) only knows the old machine-hardware drills:

"drillBucketsMm": {"mediumContact": [0.78], "mediumPin": [1.2], "largeContact": [2.62], "largePin": [3.45]},
"drillToleranceMm": 0.001

so a board drilled to the new hardware sizes is refused and gets no model:

refused hole-sizes: 18 machine pins and contacts are drilled off the standard sizes: MC1 (Molecule:MachineContactMedium: 0.87 mm), ...
Machine pins are drilled 1.20 mm (medium) or 3.45 mm (large) and machine contacts 0.78 mm (medium) or 2.62 mm (large), within 0.001 mm.
Change the drill in the board to the standard size and export again. Until this is fixed the registry builds no model for this page.

Noah's hole sizes for the new pin/contact hardware (2026-11-17, confirmed for boards 2026-11-25: "use these hole sizes for the contacts / machine pins"):

Part Drill Was Pad (unchanged)
Medium machine pin 1.2 mm 1.2 (no change) 1.6 mm
Medium machine contact 0.87 mm 0.78 1.3 mm
Large machine contact 2.75 mm 2.62 4.4 mm
Large machine pin (Short and Standard) 3.6 mm 3.45 5.2 mm

Also, SKILL.md (Stage 1, "Hole sizes") says a pin or contact hole "within 0.15 mm of a table size in scripts/pins.json is read as that size", while pins.json says 0.001 mm and pin_names.py refuses 0.87 mm: one of the two is out of date.

Repro

molecule-publish 3.1.1: python3 scripts/pin_names.py check via-test-board.kicad_pcb on noah/via-test-board rev B (18 MachineContactMedium at 0.87 mm, 4 MachinePinMediumShort at 1.2 mm): refused: 18, machineContacts: 0.

Suggested fix

Add the new sizes as buckets (mediumContact 0.87, largeContact 2.75, largePin 3.6) in pins.json and the registry, keep the old ones during the changeover, and correct the SKILL.md tolerance sentence. Related: adom/adom-aiflow#251 (AI Flow's molecule check has the same old table).

1 Reply

Colby Knox ·

One addition from Colby on which boards get which drills: the new hole sizes are for boards made by the 3rd party fab only. Boards made anywhere else, JLCPCB included, keep the old sizes.

Part 3rd party fab Any other fab (JLCPCB, ...)
Medium machine contact 0.87 mm 0.78 mm
Large machine contact 2.75 mm 2.62 mm
Large machine pin 3.6 mm 3.45 mm
Medium machine pin 1.2 mm 1.2 mm

So the registry's drillBucketsMm needs both sizes in each bucket for good, not just during a changeover (mediumContact: [0.87, 0.78], largeContact: [2.75, 2.62], largePin: [3.6, 3.45], mediumPin: [1.2]), since molecules will exist with either set.

For reference, AI Flow 0.2.113 does this on its side (adom/adom-aiflow#251). Its pin census counts both sets, and its design check expects the set that matches the board's fab.

Log in to reply.