Restore native SF Convert CLI via verified ADOM release assets #3
Defect being fixed
ADOM Chip Fetcher reports that adom-sfconvert is missing even after the officially signed package installs. All historical install.sh versions inspected (1.0.0–1.0.8) install only the Claude skill. The only committed prebuilt executable was removed by commit 433f75a immediately before v1.0.3. Current public package v1.0.8 has no release assets, so neither pkg install nor doctor --fix can restore the CLI.
Proposed repair
- Use native adom-wiki release download/verify on Linux x64 to retrieve the matching version's signed CLI asset.
- Fail closed when that asset or platform support is missing; never report success on a skill-only install.
- Install an actual executable into ~/.local/bin and verify it runs before changing the live command.
- Preserve the existing skill and track the installed checksum to uninstall or upgrade only files the package owns.
- Add an isolated install/convert/uninstall smoke test with a synthetic two-pin EAGLE library; test files live in source only.
- Set package manifest and page metadata to candidate v1.0.9; do not embed a platform binary in the install tarball.
Evidence
- Original ADOM-built v1.0.2 binary recovered from source commit f8a1099aa39c9adc22b23e3805a809d9aa14b38c (target/release/adom-sfconvert); SHA-256 98e18a9b56a0bbaece7e04cb49c6134433f7a8344649c734f059b13e6c5a7f9d; internal binary version 0.1.0.
- Actual EAGLE .lbr conversion to KiCad symbol/footprint and SVG previews: pass.
- Actual Altium .SchLib and .PcbLib conversions from other public ADOM module samples: pass.
- bash tests/smoke.sh on a separate HOME: pass.
- adom-wiki pkg lint: 0 errors (video walkthrough is the only nonfunctional warning).
- adom-wiki pkg pack: 7 files, ~4.9 KB compressed (excludes the binary).
- Workstation restored with exactly this historical executable; ADOM Chip Fetcher doctor now reports 13/13 sister tools.
Important maintainers' release gate
This PR is not a published fix. The verified legacy executable is not attached to this text-only PR: ADOM can recover it directly from its own official historical commit f8a1099aa39c9adc22b23e3805a809d9aa14b38c using adom-wiki repo show --out and verify the SHA-256 above. The included smoke test automatically retrieves that asset from ADOM's repository. ADOM release binaries must be uploaded through the separate official release-asset channel.
Before publishing the v1.0.9 package, ADOM must upload the proper Linux x64 executable to the official v1.0.9 release using adom-wiki release upload ... --platform linux --arch x64 and verify adom-wiki release verify. Prefer an official clean rebuild from the latest Rust source, which references Altium crates not distributed with this source snapshot. If replacing the recovered binary, update the test expectations and installer provenance checks. Test fresh install and recheck Chip Fetcher doctor.
Only ADOM public source/test assets and a synthetic fixture were used. No private Helmstation or Circuit Forge PCB files or software are included.
Diff Skip to comments (1)
@@ -1,7 +1,64 @@ #!/usr/bin/env bash-set -e-HERE="$(cd "$(dirname "$0")" && pwd)"-DEST="$HOME/.claude/skills/adom-sfconvert"-mkdir -p "$DEST"-cp -f "$HERE/skills/adom-sfconvert/SKILL.md" "$DEST/SKILL.md"-echo "Installed adom-sfconvert skill → $DEST"+set -euo pipefail+HERE="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"+SKILL_DIR="$HOME/.claude/skills/adom-sfconvert"+BIN_DIR="$HOME/.local/bin"+STATE_DIR="$HOME/.local/share/adom-sfconvert"+REF="adom/adom-sfconvert"+RECOVERED_LEGACY_SHA256="98e18a9b56a0bbaece7e04cb49c6134433f7a8344649c734f059b13e6c5a7f9d"++if [[ "$(uname -s)/$(uname -m)" != "Linux/x86_64" ]]; then+ echo "ERROR: SF Convert release asset for this platform is not yet available (only Linux x64 supported by this installer)." >&2+ exit 1+fi+VERSION="$(sed -nE 's/^[[:space:]]*"version"[[:space:]]*:[[:space:]]*"([^"]+)".*/\1/p' "$HERE/package.json" | head -n 1)"+if [[ -z "$VERSION" ]]; then+ echo "ERROR: package.json has no version; cannot select signed ADOM release asset." >&2+ exit 1+fi+WIKI_BIN="$(command -v adom-wiki || true)"+if [[ -z "$WIKI_BIN" && -x "$HOME/.local/bin/adom-wiki" ]]; then+ WIKI_BIN="$HOME/.local/bin/adom-wiki"+fi+if [[ -z "$WIKI_BIN" ]]; then+ echo "ERROR: adom-wiki CLI required to download and verify the signed release asset." >&2+ exit 1+fi+TMP="$(mktemp -d)"+trap 'rm -rf "$TMP"' EXIT+if ! "$WIKI_BIN" release download "$REF" "$VERSION" --platform linux --arch x64 --out "$TMP"; then+ echo "ERROR: ADOM release $REF $VERSION has no downloadable Linux x64 executable. Maintainer must run: adom-wiki release upload $REF $VERSION <built-executable> --platform linux --arch x64" >&2+ exit 1+fi+if ! "$WIKI_BIN" release verify "$REF" "$VERSION" --platform linux --arch x64; then+ echo "ERROR: ADOM release asset integrity verification failed." >&2+ exit 1+fi+SOURCE_BIN="$TMP/adom-sfconvert"+if [[ ! -s "$SOURCE_BIN" ]]; then+ echo "ERROR: Missing $SOURCE_BIN in verified release download." >&2+ exit 1+fi+NEW_SHA256="$(sha256sum "$SOURCE_BIN" | cut -d ' ' -f1)"+if [[ -f "$BIN_DIR/adom-sfconvert" ]]; then+ CURRENT_SHA256="$(sha256sum "$BIN_DIR/adom-sfconvert" | cut -d ' ' -f1)"+ OWNED_SHA256="$(cat "$STATE_DIR/installed.sha256" 2>/dev/null || true)"+ if [[ "$CURRENT_SHA256" != "$NEW_SHA256" && "$CURRENT_SHA256" != "$OWNED_SHA256" && "$CURRENT_SHA256" != "$RECOVERED_LEGACY_SHA256" ]]; then+ echo "ERROR: Existing adom-sfconvert was not installed by this package; refusing to overwrite." >&2+ exit 1+ fi+fi+mkdir -p "$BIN_DIR" "$SKILL_DIR" "$STATE_DIR"+TEMP_BIN="$(mktemp "$BIN_DIR/.adom-sfconvert.XXXXXXXX")"+trap 'rm -rf "$TMP"; rm -f "$TEMP_BIN"' EXIT+install -m 0755 "$SOURCE_BIN" "$TEMP_BIN"+if ! "$TEMP_BIN" version 1>/dev/null; then+ echo "ERROR: Signed SF Convert asset failed executable smoke test." >&2+ exit 1+fi+mv -f "$TEMP_BIN" "$BIN_DIR/adom-sfconvert"+cp -f "$HERE/skills/adom-sfconvert/SKILL.md" "$SKILL_DIR/SKILL.md"+printf '%s\n' "$NEW_SHA256" > "$STATE_DIR/installed.sha256"+echo "Installed verified ADOM SF Convert $VERSION CLI -> $BIN_DIR/adom-sfconvert"+echo "Installed adom-sfconvert skill -> $SKILL_DIR"+@@ -1,3 +1,20 @@ #!/usr/bin/env bash+set -euo pipefail+TARGET="$HOME/.local/bin/adom-sfconvert"+STATE_DIR="$HOME/.local/share/adom-sfconvert"+RECOVERED_LEGACY_SHA256="98e18a9b56a0bbaece7e04cb49c6134433f7a8344649c734f059b13e6c5a7f9d"+if [[ -f "$TARGET" ]]; then+ CURRENT_SHA256="$(sha256sum "$TARGET" | cut -d ' ' -f1)"+ OWNED_SHA256="$(cat "$STATE_DIR/installed.sha256" 2>/dev/null || true)"+ if [[ "$CURRENT_SHA256" == "$OWNED_SHA256" || "$CURRENT_SHA256" == "$RECOVERED_LEGACY_SHA256" ]]; then+ rm -f "$TARGET"+ echo "Removed package-owned adom-sfconvert CLI"+ else+ echo "NOTICE: Kept independently modified adom-sfconvert at $TARGET" >&2+ fi+fi+rm -f "$STATE_DIR/installed.sha256"+rmdir "$STATE_DIR" 2>/dev/null || true rm -rf "$HOME/.claude/skills/adom-sfconvert" echo "Removed adom-sfconvert skill"+@@ -1,48 +1,64 @@ { "slug": "adom-sfconvert",- "version": "1.0.8",+ "version": "1.0.9", "type": "skill", "description": "Native Rust converter: EAGLE/Fusion .lbr + Altium .SchLib/.PcbLib \u2192 KiCad symbol+footprint, rendering each format's OWN geometry. No KiCad install, no service round-trip.", "dependencies": {⋯ 37 unchanged lines ⋯ "install.sh", "uninstall.sh", "package.json"+ ],+ "discovery_pitch": "Convert EAGLE/Fusion and Altium libraries to native KiCad symbols and footprints with independently rendered geometry.",+ "sample_prompts": [+ {+ "label": "Convert EAGLE library",+ "prompt": "Convert this EAGLE .lbr to KiCad and render native footprint previews."+ },+ {+ "label": "Convert Altium symbol",+ "prompt": "Convert this Altium .SchLib to a KiCad symbol."+ },+ {+ "label": "Convert Altium footprint",+ "prompt": "Convert this Altium .PcbLib to a KiCad footprint."+ } ] }+@@ -1,66 +1,80 @@⋯ 3 unchanged lines ⋯ "slug": "adom-sfconvert", "title": "Adom SF Convert", "brief": "Native Rust converter: EAGLE/Fusion .lbr + Altium .SchLib/.PcbLib → KiCad, rendering each format's own geometry.",- "version": "1.0.8",+ "version": "1.0.9", "author": { "name": "John Lauer", "email": "[email protected]"⋯ 15 unchanged lines ⋯ "type": "image", "path": "screenshots/hero-v7.png" },- "sample_prompts": [],+ "sample_prompts": [+ {+ "label": "Convert EAGLE library",+ "prompt": "Convert this EAGLE .lbr to KiCad and render native footprint previews."+ },+ {+ "label": "Convert Altium symbol",+ "prompt": "Convert this Altium .SchLib to a KiCad symbol."+ },+ {+ "label": "Convert Altium footprint",+ "prompt": "Convert this Altium .PcbLib to a KiCad footprint."+ }+ ], "discovery_triggers": [ "convert eagle to kicad", "convert altium to kicad",⋯ 3 unchanged lines ⋯ "sfconvert", "symbol footprint convert" ],- "discovery_pitch": null,+ "discovery_pitch": "Convert EAGLE/Fusion and Altium libraries to native KiCad symbols and footprints with independently rendered geometry.", "metadata": {}, "created_at": "2026-06-24T12:52:32.264Z", "updated_at": "2026-06-25T02:03:30.284Z",⋯ 21 unchanged lines ⋯ "package.json" ] }+@@ -0,0 +1,58 @@+#!/usr/bin/env bash+set -euo pipefail+HERE="$(cd "$(dirname "${BASH_SOURCE[0]}")/.." && pwd)"+TEST_ROOT="$(mktemp -d)"+trap 'rm -rf "$TEST_ROOT"' EXIT+ORIG_HOME="$HOME"+WIKI_FOR_TEST="$(command -v adom-wiki || true)"+[[ -n "$WIKI_FOR_TEST" ]] || WIKI_FOR_TEST="$ORIG_HOME/.local/bin/adom-wiki"+export HOME="$TEST_ROOT/home"+mkdir -p "$HOME" "$TEST_ROOT/mock"+export ADOM_TEST_RELEASE_BINARY="${ADOM_SFCONVERT_TEST_BINARY:-$TEST_ROOT/adom-sfconvert}"+if [[ -z "${ADOM_SFCONVERT_TEST_BINARY:-}" ]]; then+ "$WIKI_FOR_TEST" repo show adom/adom-sfconvert target/release/adom-sfconvert --ref f8a1099aa39c9adc22b23e3805a809d9aa14b38c --out "$ADOM_TEST_RELEASE_BINARY"+fi+EXPECTED="98e18a9b56a0bbaece7e04cb49c6134433f7a8344649c734f059b13e6c5a7f9d"+ACTUAL="$(sha256sum "$ADOM_TEST_RELEASE_BINARY" | cut -d ' ' -f1)"+[[ "$ACTUAL" = "$EXPECTED" ]] || { echo "ERROR: historical converter SHA256 mismatch" >&2; exit 1; }+cat > "$TEST_ROOT/mock/adom-wiki" <<'MOCK'+#!/usr/bin/env bash+set -euo pipefail+if [[ "$1/$2" == "release/download" ]]; then+ while [[ "$#" -gt 0 ]]; do+ if [[ "$1" == "--out" ]]; then+ shift+ cp "$ADOM_TEST_RELEASE_BINARY" "$1/adom-sfconvert"+ echo '{"assets":[{"integrity_ok":true}]}'+ exit 0+ fi+ shift+ done+elif [[ "$1/$2" == "release/verify" ]]; then+ echo '{"verified":true}'+ exit 0+fi+exit 1+MOCK+chmod +x "$TEST_ROOT/mock/adom-wiki"+export PATH="$TEST_ROOT/mock:$PATH"+bash "$HERE/install.sh"+CLI="$HOME/.local/bin/adom-sfconvert"+test -x "$CLI"+test "$("$CLI" version)" = "adom-sfconvert 0.1.0"+"$CLI" convert "$HERE/tests/fixtures/test2pin.lbr" --out-dir "$TEST_ROOT/out" --name TEST2+test -s "$TEST_ROOT/out/TEST2.kicad_sym"+test -s "$TEST_ROOT/out/TEST2.kicad_mod"+test -s "$TEST_ROOT/out/TEST2-symbol.svg"+test -s "$TEST_ROOT/out/TEST2-footprint.svg"+grep -q '(number "1"' "$TEST_ROOT/out/TEST2.kicad_sym"+grep -q '(number "2"' "$TEST_ROOT/out/TEST2.kicad_sym"+grep -q '(pad "1"' "$TEST_ROOT/out/TEST2.kicad_mod"+grep -q '(pad "2"' "$TEST_ROOT/out/TEST2.kicad_mod"+test "$(cat "$HOME/.local/share/adom-sfconvert/installed.sha256")" = "98e18a9b56a0bbaece7e04cb49c6134433f7a8344649c734f059b13e6c5a7f9d"+bash "$HERE/uninstall.sh"+test ! -e "$CLI"+test ! -e "$HOME/.local/share/adom-sfconvert/installed.sha256"+test ! -e "$HOME/.claude/skills/adom-sfconvert/SKILL.md"+echo "PASS: mock signed-release download, installer, executable, conversion and uninstall"+@@ -0,0 +1,7 @@+<?xml version="1.0" encoding="utf-8"?>+<eagle version="9.6.2"><drawing><library>+<packages><package name="TEST2"><smd name="1" x="-1.27" y="0" dx="1" dy="1" layer="1"/><smd name="2" x="1.27" y="0" dx="1" dy="1" layer="1"/></package></packages>+<symbols><symbol name="TEST2"><pin name="A" x="-5.08" y="0" length="short" rot="R0"/><pin name="B" x="5.08" y="0" length="short" rot="R180"/></symbol></symbols>+<devicesets><deviceset name="TEST2"><gates><gate name="G$1" symbol="TEST2" x="0" y="0"/></gates><devices><device name="" package="TEST2"><connects><connect gate="G$1" pin="A" pad="1"/><connect gate="G$1" pin="B" pad="2"/></connects></device></devices></deviceset></devicesets>+</library></drawing></eagle>+@@ -0,0 +1,39 @@+# SF Convert executable package smoke test++Current SF Convert package installs only a Claude skill. It omits its Rust+converter executable. The CLI is required by ADOM Chip Fetcher.++This patch installs the CLI through the **official ADOM Wiki release asset**+mechanism, with platform/arch selection and registry integrity verification.+The executable must be uploaded by the upstream maintainer for the release+version, BEFORE users install the package. This source PR cannot attach+an asset to the maintainer's signed release.++Run `bash tests/smoke.sh` on Linux x86_64. It uses a temporary isolated HOME+and a **mock** ADOM release response to test the installer contract and a+synthetic EAGLE fixture. It does not test ADOM's real release verification,+which was separately confirmed with the published adom-ds2sf 1.1.1 asset.++The ADOM-built executable recovered from SF Convert v1.0.2 source history is+retrievable from the official ADOM Wiki v1.0.2 historical commit and **not included+in this source pull request or the install package tarball**. Source: `f8a1099aa39c9adc22b23e3805a809d9aa14b38c`.+SHA-256:+`98e18a9b56a0bbaece7e04cb49c6134433f7a8344649c734f059b13e6c5a7f9d`.+It reports internal `0.1.0`; it is a tested RECOVERY artifact, not a+rebuild of the latest Rust source. ADOM maintainers should replace it with+a fresh build from current Rust source (requires Altium dependency crates).+Only Linux x64 has been validated.++Real source-native ADOM conversion smoke tests passed on the recovered+executable, with generated KiCad export and native SVG previews:+- `fusion-bridge/resources/samples/0603WAF3300T5E.lbr`+- `board-to-molecule/assets/pins/MachinePinMediumShort.SchLib`+- `board-to-molecule/assets/pins/MachinePinMediumShort.PcbLib`++Upstream release gate: publish new package and a per-platform native asset+with identical version number; verify `adom-wiki release assets`, install+in clean HOME, run conversion suite and `adom-chip-fetcher doctor`.+Do not mark the fix complete upstream merely because the package is signed.++To recover the verified candidate for an ADOM-maintainer-signed release: `adom-wiki repo show adom/adom-sfconvert target/release/adom-sfconvert --ref f8a1099aa39c9adc22b23e3805a809d9aa14b38c --out /tmp/adom-sfconvert` and verify SHA-256 above. The tests retrieve this exact historical ADOM binary automatically unless ADOM_SFCONVERT_TEST_BINARY specifies an existing local copy.+
Comments
Log in to comment.