A 7th package, lucisv-<v>-all.vsix, carries every platform's binary pair under bin/<platform>-<arch>/ and the extension picks the right one at runtime — flat bin/ (platform package) first, then the platform-arch subdirectory, then PATH. Target-less on purpose, so Alpine and anything else vsce refuses to name gets working static binaries. The release.yml inline prune step moves into tools/prune_release_assets.sh, which now requires all seven packages by name before anything is published. Co-Authored-By: Claude Fable 5 <[email protected]>
61 KiB
editor-platform-vsix
Goal
Installing the VS Code extension has always been half an install: the .vsix
is platform-independent JavaScript and the server it spawns is a binary the
user has to build or download and put on PATH first. This round closes that
gap the way rust-analyzer and ruff close it — platform-specific .vsix
packages that carry the binaries inside them. Five packages, one per
platform we cross-build for; VS Code picks the one matching the machine by the
--target stamped into the package, downloads only that one, and the
extension spawns the server out of its own install directory. The old
platform-independent package stays, unchanged in behaviour, as the universal
fallback for a platform we do not build (and for anyone who prefers their own
binary on PATH).
Assumptions
-
vsce's target names and rustc's triples are two different vocabularies, and the mapping between them is a hand-written table.vscevalidates--targetagainst its own fixed list; nothing derives one name from the other.vsce target rust triple why that triple darwin-arm64aarch64-apple-darwinthe host build darwin-x64x86_64-apple-darwinIntel Macs (also runs under Rosetta) linux-x64x86_64-unknown-linux-muslstatic, so it runs on every distro linux-arm64aarch64-unknown-linux-muslsame, for ARM servers/Pi/Asahi win32-x64x86_64-pc-windows-gnu.exe, DLLs Windows 10+ ships -
Linux gets the musl build, not the glibc one.
x86_64-unknown-linux-gnuis still built and shipped as a loose artifact (it exists for shops that require a native glibc link — seetools/RELEASING.md), but the extension embeds musl: a statically linked binary runs on any distro at any glibc vintage, which is exactly the property an extension installed by a stranger needs. There is no secondlinux-x64package to choose between. -
Alpine is an accepted gap in the targeted packages.
vscehas separatealpine-x64/alpine-arm64targets and VS Code running on Alpine looks for those, not forlinux-x64— so an Alpine user gets no platform package. Building two more--targeted packages with identical contents to satisfy a name is not worth the release-matrix growth today; if someone asks, it is a two-line change (alpine-x64← the same musl triple). Since 2026-08-27 the all-platforms package covers that user anyway (see below): it is target-less, so Alpine is offered it, and Node'sprocess.platformthere is plain'linux', which is the directory our static-musl binaries sit in. -
VSIX extraction does not preserve the executable bit. This is why
extension.jschmods what it is about to spawn rather than trusting the package's file modes — the same thing rust-analyzer's extension does, for the same reason.release.shstillchmod +xes the staged binaries before packaging, so the mode inside the zip is right; the client-side chmod is the belt to that suspenders. -
No version handshake. The bundled server is the one built from the same tree as the extension, so extension and server always match by construction. A user who points
lucisv.serverPathat something else takes that risk, as before. -
The binaries are the same ones
dist/ships.release.shstages them out ofdist/, so the file a user gets from the release page and the file inside the.vsixare byte-identical (and the.vsixcopies are covered transitively bySHA256SUMS' entry for the package).
Handshakes
Consumed from editor-packaging — the spawn contract, unchanged: binary
name lucisv-server, no arguments, LSP on stdin/stdout. The only thing this
feature changes is which path is spawned, never how.
Consumed from tools/release.sh — the dist/lucisv[-server]-<version>-<triple>
naming. The staging step reads those exact names; renaming an artifact breaks
packaging loudly (a missing cp source), not silently.
Promised to extension.js — the bin/ layout contract, three shapes and
no fourth:
| package | bin/ holds |
|---|---|
universal lucisv-<v>.vsix |
nothing — no bin/ directory at all |
a platform lucisv-<v>-<target>.vsix |
exactly lucisv and lucisv-server (.exe on Windows), flat |
the all-platforms lucisv-<v>-all.vsix |
exactly ten files, <platform>-<arch>/lucisv{,-server} for the five platforms |
Names are always plain — no version, no triple. release.sh asserts all three
shapes with unzip -Z1 after every package it builds, so "the extension found a
stale binary from the previous target" cannot ship. The all-platforms
directory names are literally the ${process.platform}-${process.arch} strings
extension.js builds at runtime; that they also happen to equal vsce's target
names is a convenience, not a dependency (nothing passes --target for that
package).
Promised to tools/audit_artifacts.sh — every loose binary in dist/ is
still named lucisv[-server]-<version>-<triple>; the .vsix names all end in
.vsix — lucisv-<v>-all.vsix included — and are skipped by the audit's
existing case arm before its "unrecognized artifact name" arm can see them.
Promised to tools/prune_release_assets.sh — a --cross run produces
exactly seven .vsix names, and those are the names the prune script checks
one by one: lucisv-<v>.vsix, the five lucisv-<v>-<vsce-target>.vsix, and
lucisv-<v>-all.vsix. Adding or renaming a package means editing that script's
suffix list too, or the release fails naming the file it could not find.
Requested of editor-marketplace-page — that round rewrote
editors/vscode/README.md end-to-end for a marketplace audience while this one
was running, and any further rewrite of it must keep two things: its install
table naming seven packages, not six (the five platform ones, all, and the
universal fallback), and a bundled-binaries sentence covering both layouts —
bin/lucisv-server in a platform package,
bin/<platform>-<arch>/lucisv-server in the all-platforms one. Both were
re-applied additively onto their rewrite; see the work log.
Requested of other modules — none.
Resolution order in the extension
extension.js picks the server command from three candidates, most specific
first:
- A
lucisv.serverPaththe user actually set. Detected withinspect('serverPath'), notget():get()cannot tell a user's setting from the manifest's own"default": "lucisv-server", and that default would otherwise shadow the bundled binary for everyone. Any ofglobalValue,workspaceValue,workspaceFolderValueor their three language-scoped variants counts as "the user set it";defaultValueanddefaultLanguageValuedo not, because those are contributed defaults, not user intent. Most specific wins, matching VS Code's ownget()precedence. - The bundled binary, whichever of two layouts this package uses —
<extension>/bin/lucisv-server(.exe) first, then<extension>/bin/<platform>-<arch>/lucisv-server(.exe). A file existing is the whole runtime test for "which kind of package am I" — no build-time flag, no manifest field. Both misses mean no bundled binary. - The bare name
lucisv-server, looked up onPATH. What the universal package has always done, and what acargo build+PATHinstall still does.
The CLI (bin/lucisv) is chmod'ed alongside the server even though nothing in
the extension spawns it: it is shipped so a user who installed the extension
already has the command-line tool, and a non-executable file would make that
claim false.
The all-platforms package
lucisv-<version>-all.vsix is one package carrying all five platforms'
binary pairs, sorted into directories and chosen between at runtime:
bin/
darwin-arm64/lucisv, lucisv-server
darwin-x64/lucisv, lucisv-server
linux-x64/lucisv, lucisv-server (static musl)
linux-arm64/lucisv, lucisv-server (static musl)
win32-x64/lucisv.exe, lucisv-server.exe
The directory names are ${process.platform}-${process.arch}, not vsce
target names — extension.js concatenates those two Node values and looks the
result up. That the five strings happen to be spelled the same way vsce spells
its targets is a coincidence worth having (one vocabulary in the release script
instead of two) and nothing more: this package is built without --target,
so vsce's names never enter the picture. Picking Node's own vocabulary is what
makes the lookup a two-line function with no table in it, and what makes a
platform we do not ship fail the obvious way — nothing on disk, fall through to
PATH, exactly like the universal package.
Why it exists, given five perfectly good targeted packages:
- Alpine, and anything else vsce names separately. VS Code on Alpine asks
the marketplace for
alpine-x64, notlinux-x64, so it is never offered our Linux package — but itsprocess.platformis plain'linux'(Node does not distinguish libc), so it walks straight intobin/linux-x64/, and the binary there is statically linked musl, which is precisely what Alpine wants. The gap the targeted matrix leaves open is closed by not participating in the targeting at all. - One file to mirror. An internal file share, a locked-down machine, an
offline lab: one
.vsixthat works on whatever the person on the other end turns out to be running beats a table of five and a question. - Unknown or mixed fleets, where whoever hands out the package does not know the architecture in advance.
The trade-off is size, and it is not small: every user downloads every platform's binaries — 13.0 MB against 3.0 MB for a platform package (and 0.75 MB for the universal one; measured on 0.10.1). That is why it is a seventh option rather than the only one; when the platform is known, the platform package is still the right answer.
Built only with --cross, because it needs all five pairs to exist. An
ordinary tools/release.sh produces six of the seven names and no -all one.
What gets built, and when
release.sh |
release.sh --cross |
|
|---|---|---|
universal lucisv-<v>.vsix |
yes | yes |
darwin-arm64 (host) |
yes | yes |
| the other four | no | yes |
lucisv-<v>-all.vsix |
no | yes |
Without --cross there are no cross binaries to embed, so only the host
package can be built — building it anyway (rather than only the universal one)
keeps the packaging path exercised on every ordinary release run, including the
embedded-server smoke test. The CI release workflow runs --cross, so releases
always carry all seven.
Status / TODO
rustup target add --toolchain stable aarch64-unknown-linux-muslon the build Mac, and the line recorded intools/RELEASING.md's one-time setup.tools/release.sh:aarch64-unknown-linux-muslin the--crossset, same rust-lld linker andDYLD_FALLBACK_LIBRARY_PATHas the x86-64 musl build; its two binaries land indist/and inSHA256SUMS.editors/vscode/extension.js: three-step server resolution,inspect()for user intent, chmod of both bundled binaries.editors/vscode/package.json:lucisv.serverPathdescription mentions the bundled default.tools/release.sh: stagebin/, package per target, removebin/, with anEXITtrap so a failure cannot leave binaries in the tree.tools/release.sh:unzip -Z1content assertions for every package, and an LSP smoke test of the server unzipped out of the host package.tools/audit_artifacts.sh:aarch64-unknown-linux-muslarm.editors/vscode/.gitignore:bin/.- Docs: this file,
tools/RELEASING.md,editors/vscode/README.md. - The all-platforms package (2026-08-27):
extension.js's layeredbin/lookup,release.sh'spackage_all_vsixunder--cross, the ten-entry content assertion, and a second embedded-server smoke test driven out ofbin/<host-target>/inside that package. tools/prune_release_assets.sh: the seven-package check moved out ofrelease.yml's inline step into a tools/ script, checked by name.- Docs for the all package: this file,
tools/RELEASING.md, the top-levelREADME.md,docs/features/ci-release/README.md, andeditors/vscode/README.md(re-applied onto the concurrenteditor-marketplace-pagerewrite — see the work log). - Not done, and not doable here: none of the seven packages has been
installed into a real VS Code.
require('vscode')resolves only in the extension host, so the resolution order above is proven by reading it, by a stubbed-contextharness over a fake directory tree, and by the packaging assertions — not by an editor picking the right package off a marketplace. The Linux and Windows packages have additionally never been executed anywhere — same standing limitation the loose binaries have had since--crossexisted. The Alpine claim in particular is reasoned from Node's documentedprocess.platformvalues, not observed on an Alpine machine. - Not done, deliberate:
alpine-x64/alpine-arm64packages (see Assumptions), and alinux-x64glibc variant.
Work log
2026-08-27 — dev agent
- Toolchain.
rustup target add --toolchain stable aarch64-unknown-linux-muslran clean (rust-stdcomponent only, no linker needed —rust-lldlinks it, exactly like the x86-64 musl target).rustup target list --installednow shows six targets. The line is intools/RELEASING.md's one-time-setup block. release.shstructure. The newaarch64-unknown-linux-muslbuild sits next to the x86-64 musl one with the identical env pair (DYLD_FALLBACK_LIBRARY_PATH="$tc/lib"+CARGO_TARGET_..._LINKER=rust-lld); the copy loop just gained the triple. Packaging became three pieces:vsce_target_for(the triple→vsce-target table),package_vsix(stagebin/, package, removebin/), andexpect_vsix_bins(assert what a package carries).bin_diris removed by anEXITtrap set before the first build, so an interrupted or failed run cannot leave a stale binary where the next package — or a developer'sgit status— would pick it up.- The universal package is packaged first and with
bin/provably absent (rm -rfimmediately before,expect_vsix_binswith no expected entries immediately after). That ordering matters: the universal package is the one that must never accidentally carry a platform's binaries. - The embedded smoke test is a real round trip. The host package is
unzipped into
target/vsix-check/(gitignored, outside the session scratchpad), both binaries are asserted present, the server is chmod'ed and driven through the samesmoke.jsLSP session the loose binary gets, and the directory is removed. So the claim "installing the extension gives you a working server" is tested against a file that has actually been through the zip. inspect()and notget()is the one non-obvious line inextension.js, and the reason is in the file:get()returns"lucisv-server"for a user who has never touched the setting, because that is the manifest default — so aget()-based check would make the bundled binary unreachable for every user who did not explicitly override it. The scope list is most-specific-first and excludesdefaultValue/defaultLanguageValue.- The objdump question was answered by running it, not guessed. This
machine's
x86_64-unknown-linux-gnu-objdumpdoes parse an aarch64 ELF —-pprintsfile format elf64-littleand the full program header table, and finds zeroNEEDEDentries in our static binary — so the new arm keeps the sameNEEDEDcheck the x86-64 musl arm uses. It also assertsfile -b's ownARM aarch64andstatically linked, for two reasons the comment states: objdump'self64-littledoes not name the architecture at all (sofileis the only thing checking we did not ship an x86-64 binary under an aarch64 name), and a future binutils that stopped parsing aarch64 would make theNEEDEDgrep pass by finding nothing — the exact quiet failure the audit exists to prevent. x86_64-unknown-linux-gnugets no.vsix. It is still built and still audited;linux-x64is the musl build because a static binary is the right thing to hand a stranger. Recorded in Assumptions so nobody re-litigates it silently.- The no-
--crosspath was run too, into a throwaway-odirectory, to confirm the decision in "What gets built": host pair, universal package,darwin-arm64package, embedded smoke test, checksums, exit 0. .vscodeignorewas left alone and confirmed not to excludebin/(it listssmoke.js,.vscode/**,.gitignoreand nothing else).bin/is ineditors/vscode/.gitignoreinstead, as a second line of defence behind theEXITtrap.- Did not bump any version, did not
git commit/git push, did not touchcrates/.TODO.mdwas read; the two items that touch editor packaging (§6 "Editor packaging", §6 "Release prep") are already[x]and neither mentions platform-specific packages, so nothing was checked off.
Validation run on this machine (from the real repo path, never the
scratchpad — vsce collects zero files under the scratchpad's UUID segment,
docs/features/editor-packaging QA Finding 2):
| Check | Result |
|---|---|
bash -n tools/release.sh tools/audit_artifacts.sh |
clean |
node --check editors/vscode/extension.js |
clean |
python3 -c json.load on editors/vscode/package.json |
valid |
cargo fmt --check |
clean |
cargo clippy --all-targets |
clean, no new warnings |
cargo test -p lucisv_server |
1015 unit + 50 e2e + 3 grammar green, 5 ignored, 0 failed |
tools/release.sh --cross |
exit 0 — 18 artifacts + SHA256SUMS (table below) |
tools/release.sh -o target/relcheck-dist (no --cross) |
exit 0 — host pair, universal .vsix, darwin-arm64 .vsix, SHA256SUMS |
tools/audit_artifacts.sh dist |
12 binaries audited, exit 0 |
embedded-server smoke (host .vsix, unzipped to target/vsix-check/) |
smoke: OK, 10 messages |
shasum -a 256 -c SHA256SUMS in dist/ |
18/18 OK |
Artifacts from tools/release.sh --cross (lucisv 0.10.0):
.vsix |
size | extension/bin/ |
|---|---|---|
lucisv-0.10.0.vsix (universal) |
487,837 | (nothing — unzip -Z1 reports "filename not matched") |
lucisv-0.10.0-darwin-arm64.vsix |
2,721,294 | lucisv-server, lucisv |
lucisv-0.10.0-darwin-x64.vsix |
2,991,683 | lucisv-server, lucisv |
lucisv-0.10.0-linux-x64.vsix |
3,121,350 | lucisv-server, lucisv |
lucisv-0.10.0-linux-arm64.vsix |
2,970,545 | lucisv-server, lucisv |
lucisv-0.10.0-win32-x64.vsix |
2,906,955 | lucisv-server.exe, lucisv.exe |
Plus the twelve loose binaries, now including
lucisv-0.10.0-aarch64-unknown-linux-musl (1,930,768) and
lucisv-server-0.10.0-aarch64-unknown-linux-musl (4,022,088). file -b on the
latter: ELF 64-bit LSB executable, ARM aarch64, version 1 (SYSV), statically linked, not stripped.
Three things were checked beyond "it built":
- The
--targetreally is stamped in.extension.vsixmanifestcarriesTargetPlatform="darwin-arm64"/"linux-arm64"/"win32-x64"in the respective packages, and the universal one contains noTargetPlatformattribute at all — that attribute is how VS Code picks a package. - The executable bit survives packaging.
unzip -Zreports-rwxr-xr-xfor both entries inside the packages. The client-side chmod stays anyway, because it is VS Code's extraction, not the zip, that drops the bit. - The
EXITtrap was negative-controlled, not assumed: with annpxstub onPATHthat fails whenever it sees--target,release.shstagededitors/vscode/bin/, failed the platform package, and exited — andeditors/vscode/bin/was gone afterwards, withgit status --short editors/vscodeshowing only the intended edits. A packaging failure cannot leave a binary in the tree.
Not run, and why: no package was installed into VS Code (the extension host
is the only place require('vscode') resolves — unchanged limitation since
2026-08-19), so the resolution order in extension.js is proven by reading and
by the packaging assertions, not by an editor. The Linux and Windows binaries
were not executed anywhere (no such machine in the release loop; file- and
objdump-audited instead), which means the four non-host packages have never
had their embedded server spawned. The marketplace's own --target selection
was likewise not exercised: nothing here is published, so the check that
TargetPlatform is present is as far as it goes.
2026-08-27 — lead (post-QA): chmod both bundled binaries unconditionally
QA's Finding 1: with a user-set lucisv.serverPath, the || chain in
activate short-circuited past bundledBinary(context, 'lucisv-server'), so
only the CLI got chmod'ed and editors/vscode/README.md's "makes both
executable" was one clause too strong. Fixed at the code, not the wording:
the bundled server is now resolved into a bundledServer local before the
|| chain, so both binaries are made executable on every activation and the
README sentence is exactly true. Two lines plus a comment; node --check
clean. Lead-authored directly — the dev/QA loop would add latency, not safety
(precedent: the 0.4.2 entry in docs/features/editor-packaging).
2026-08-27 — lead (follow-up): the release publishes the packages only
Owner decision, implemented in the ci-release feature (see
docs/features/ci-release/README.md, 2026-08-27 work log entry): the release
page now carries the six .vsix packages and SHA256SUMS only. The loose
per-triple binaries are still built and audited — the packages are made from
them — but no longer attached; standalone binaries are build-your-own.
Nothing in this feature's scripts changed: release.sh still produces the
full dist/, and the pruning lives in release.yml after the audit.
2026-08-27 — dev agent (round 2): the all-platforms package
Owner request: a seventh package carrying every platform's binaries, chosen at runtime — plus a consolidation of the CI release flow. Four code files.
extension.js:bundledBinarybecame a two-candidate lookup, flat first,bin/<platform>-<arch>/second,undefinedif both miss. It is a.find()over twoasAbsolutePathresults and nothing else: no package-kind flag, no manifest field, no table of platform names. Everything downstream — the.exesuffix, the chmod-in-try/catch, theuserServerPath() || bundledServer || 'lucisv-server'order, the two calls inactivate— is untouched, so the fat layout is covered for the CLI and the server at once. The doc comment now describes both layouts and states the fall-through for a platform we ship nothing for (win32-arm64): nothing on disk in either layout, soPATH, exactly like the universal package.- Node's vocabulary, not vsce's. The directory names are
${process.platform}-${process.arch}because that is the string the extension can build with no lookup table. That the five values happen to be spelled the way vsce spells its targets is whyrelease.shcan reusevsce_target_forfor the staging directory names — a convenience recorded in Assumptions, not a dependency: the package is built with no--target, so vsce's naming never enters it. Verified in the artifact:extension.vsixmanifestinlucisv-0.10.1-all.vsixcarries noTargetPlatformattribute at all, same as the universal package. release.sh:package_all_vsix, called only under--cross, and given$vsix_triples— the same list the per-platform loop just used — rather than a second copy of the five triples. It stages each pair intobin/<vsce-target>/,chmod +xes them, packages with no--target, removes the staging dir, and asserts the contents. It builds its expected-entry list in the same loop that stages, so the assertion cannot drift from what was staged.expect_vsix_binsneeded no change, which I checked rather than assumed. Info-ZIP's*matches/(unlike a shell glob), soextension/bin/*lists nested paths — confirmed on a hand-built zip with both a flat and a nested entry before touchingrelease.sh. The one wrinkle that could have bitten: the same test showed Info-ZIP also returns directory entries (extension/bin/,extension/bin/darwin-arm64/), which would have broken an exact-set comparison — but vsce writes no directory entries at all (unzip -Z1 … | grep -c '/$'= 0 on a real package), so the ten filenames come back and nothing else. Both facts are now in the function's comment.- The embedded smoke test was made a function and called twice, once per
layout: the host platform package out of
extension/bin/, the all-platforms package out ofextension/bin/darwin-arm64/. That is the difference that matters — a fat package whose binaries were staged one directory too deep would package, assert fine, and then fail to spawn for every user; driving a real LSP session out of the nested path is what rules that out. tools/prune_release_assets.shis new and is the CI-flow half of the round; it is logged in full indocs/features/ci-release/README.md. The handshake it creates with this feature — the seven exact package names — is now in Handshakes above.- Did not bump any version, did not
git commit/git push, did not touchCHANGELOG.mdorcrates/.TODO.mdwas read again; §6's editor-packaging and release-prep items are still[x]and still say nothing about the package matrix, so nothing was checked off.
Validation, all from the real repo path (never the scratchpad — vsce
collects zero files there, docs/features/editor-packaging QA Finding 2):
| Check | Result |
|---|---|
bash -n on release.sh, audit_artifacts.sh, prune_release_assets.sh |
clean |
node --check editors/vscode/extension.js |
clean |
cargo fmt --check |
clean |
cargo clippy --all-targets |
clean, 0 warnings |
cargo test -p lucisv_server |
1015 unit + 50 e2e + 3 grammar, 5 ignored, 0 failed |
tools/release.sh --cross |
exit 0 — 12 loose binaries + 7 .vsix + SHA256SUMS, every bin/ contents ok |
tools/release.sh -o target/relcheck-dist (no --cross) |
exit 0 — host pair, universal .vsix, darwin-arm64 .vsix, SHA256SUMS, no -all.vsix, one embedded smoke test rather than two |
tools/audit_artifacts.sh dist |
12 binaries audited, exit 0 — the 7 .vsix, -all included, all skipped by the *.vsix arm before the "unrecognized artifact name" arm sees them |
shasum -a 256 -c SHA256SUMS in dist/ |
19/19 OK |
embedded smoke, host platform package (extension/bin/) |
smoke: OK, 10 messages |
embedded smoke, all package (extension/bin/darwin-arm64/) |
smoke: OK, 10 messages |
lucisv-0.10.1-all.vsix — what is actually in it, checked rather than
assumed:
- Exactly ten
extension/bin/entries, no more:darwin-arm64/,darwin-x64/,linux-x64/,linux-arm64/each withlucisvandlucisv-server,win32-x64/with the two.exes. Mode-rwxr-xr-xinside the zip for all ten. - All ten are byte-identical to the audited loose binaries. Compared by
SHA-256 of
unzip -poutput againstdist/lucisv[-server]-0.10.1-<triple>for all five triples, both binaries each — ten of ten match. So the audit that gates the release covers what is inside this package too, transitively, the same way it does for the platform packages. - No
TargetPlatformin itsextension.vsixmanifest(checked), which is what makes VS Code offer it to any machine — Alpine included. - Size 13,025,877 bytes against 2,987,672 for
darwin-arm64and 754,239 for the universal package. The "13.0 MB vs 3.0 MB" in the section above is that measurement, not an estimate. - The universal package still carries no
bin/—unzip -Z1 lucisv-0.10.1.vsix 'extension/bin/*'answers "filename not matched". It is asserted at build time byexpect_vsix_binswith an empty expected set, and it is packaged before anything is staged, so nothing built later can reach back into an already-written zip.
The extension's layered lookup was exercised, not only read. The extension
host is still the only place require('vscode') resolves, so I wrote a harness
that stubs vscode and vscode-languageclient/node through
Module._load, hands activate() a context whose asAbsolutePath points at
a fake extension directory, and reads back the command the LanguageClient
was constructed with. Thirteen assertions, all passing:
| Fake package | Resolved to |
|---|---|
no bin/ at all |
lucisv-server (PATH) |
flat bin/ |
bin/lucisv-server |
bin/darwin-arm64/ |
bin/darwin-arm64/lucisv-server |
| both layouts present | the flat one — most specific first |
| only a foreign platform's directory | lucisv-server (PATH) |
bin/darwin-arm64/ + a user serverPath |
the user's path |
plus: both binaries come out 0755 in the flat and the nested layouts and
when a user setting won the spawn (the lead's unconditional-chmod fix from round
1 still holds in the nested layout), and a directory for another platform is
left at 0644 — we do not chmod what we did not choose. This proves the file
resolution and the chmod, and nothing about how VS Code behaves around it.
The EXIT trap was negative-controlled against the new nested staging, not
assumed to still work: a fake npx on PATH proxying to the real one except
when an argument ends in -all.vsix, where it exits 23. tools/release.sh -o target/relfail --cross built the universal package and all five platform
packages (each asserted bin/ contents ok), then died on the all package with
exit 23 — and editors/vscode/bin/ was gone afterwards, five subdirectories and
ten binaries included, with git status --short editors/vscode showing only
this round's edits. A failure in the fat-package path cannot leave 13 MB of
binaries in the working tree.
Not verified, honestly:
- No package was installed into a real VS Code, so which package the
marketplace/
code --install-extensionhands a given machine, and whether the extension host'scontext.asAbsolutePathbehaves as the harness stubs it, are still unproven here. Unchanged limitation since 2026-08-19. - The Alpine claim is reasoning, not an observation. It rests on two facts I
did not test on an Alpine box: Node reports
process.platform === 'linux'there (it does not distinguish libc), and VS Code on Alpine requestsalpine-x64/alpine-arm64from a marketplace. Both are documented behaviour, and the second one is moot for a package with noTargetPlatform— but nobody here has watched an Alpine VS Code start our server. - The Linux and Windows binaries inside the fat package have never been
executed, same as the loose ones and the platform packages. Only the
darwin-arm64directory's server has been spawned. x86_64-unknown-linux-gnuis still in no package, fat one included: the fat package carries the same five platforms the targeted packages do.- A concurrent round was editing the tree.
editors/vscode/package.jsonandeditors/vscode/images/were being changed by another agent (marketplace metadata,docs/features/editor-marketplace-page/) while these runs happened; one intermediate run of mine failed on their half-landed"icon"field beforeimages/icon.pngexisted, which is a race between two agents and not a finding about either change. The numbers quoted above are from a final--crossrun made after that settled, so they describe the tree as it stands. I did not touch either of their files.
editors/vscode/README.md was written twice, and the second version is the
one that survives — lead, this file has two rounds in it. I first updated the
old developer-facing README as this round asked: §0 gained the all-platforms
package, the bundled-binary sentence covered both layouts, the
lucisv.serverPath settings row and the Troubleshooting entry stopped naming
only the universal package. The editor-marketplace-page round then deleted
that file mid-round and replaced it, 70 seconds later, with a complete
marketplace-audience rewrite — taking those edits with it. I did not restore my
version over theirs; theirs is the better file for its audience and clobbering a
finished rewrite to recover four paragraphs would be the wrong trade. Instead I
re-applied the requirement onto their structure, additively and in their
voice: an all row in their install table, a paragraph on when to pick it (with
the Alpine reason and the 13 MB-vs-3 MB cost) and where the binaries sit in each
layout, and one clause in their "Release 0.10.1 highlights" list. Their
lucisv.serverPath row already reads "bundled" and their Troubleshooting entry
already avoids naming the universal package, so those two needed nothing. The
standing requirement is in Handshakes above for whoever edits that file next.
If the lead lands only one of the two rounds, note the dependency: their README
now names a package that only this round's release.sh builds.
QA log
2026-08-27 — QA agent
Scope: everything the dev's work log claims — gates, --cross and non---cross
release.sh runs, .vsix contents, TargetPlatform, SHA256SUMS,
audit_artifacts.sh's new aarch64 arm, extension.js's resolution order and
inspect() usage, the EXIT trap, and the docs. Ran everything from the real
repo path (/Users/guoliangchen/repo/verilogrustformatter), never the session
scratchpad (docs/features/editor-packaging QA Finding 2). All work in this
entry; no source file was edited.
Gates — all green, matching the dev's numbers exactly.
| Check | Result |
|---|---|
bash -n tools/release.sh tools/audit_artifacts.sh |
clean |
node --check editors/vscode/extension.js |
clean |
python3 -c json.load on package.json |
valid |
cargo fmt --check |
clean |
cargo clippy --all-targets (workspace) |
clean, 0 warnings |
cargo test -p lucisv_server |
1015 unit + 50 e2e + 3 grammar, 5 ignored, 0 failed — exact match |
cargo test --workspace |
all green (also run, not just the dev's subset) |
tools/release.sh --cross, re-run independently — exit 0, 18 artifacts, matching the claimed set exactly.
dist/after the run: 12 loose binaries (six triples × 2), 6.vsix,SHA256SUMS— file names and sizes match the dev's table (lucisv-server-0.10.0-aarch64-unknown-linux-musl4,022,088 bytes,lucisv-0.10.0-aarch64-unknown-linux-musl1,930,768 — identical to the dev's numbers).shasum -a 256 -c SHA256SUMSindist/: 18/18 OK.unzip -Z1/unzip -Zon all six.vsix, independently: the universal package (lucisv-0.10.0.vsix, 324 entries) carries noextension/bin/*entries and noTargetPlatformattribute inextension.vsixmanifest. Each of the five platform packages (326 entries — exactly 2 more than universal) carries exactlyextension/bin/lucisv{,-server}(.exesuffix onwin32-x64), mode-rwxr-xr-xinside the zip, and the correctTargetPlatform="…"(darwin-arm64,darwin-x64,linux-x64,linux-arm64,win32-x64respectively — checked all five, not just one).- Grepped every
.vsix's file list forsmoke,.gitignore,.vscodeignore,test,.git/: nothing found in any of them — no dev-only clutter shipped. tools/audit_artifacts.sh dist: 12 binaries audited, exit 0 — matches exactly (the six.vsixare correctly skipped by the pre-existing*.vsixcase arm, not part of this round's diff).- Embedded smoke test ran as part of the build:
smoke: OKagainst the server unzipped out of thedarwin-arm64package, 10 messages — matches.
tools/release.sh without --cross, re-run into a throwaway -o dir: exactly host pair + lucisv-0.10.0.vsix (universal) + lucisv-0.10.0-darwin-arm64.vsix, 4 files total, editors/vscode/bin/ absent afterward. Matches the "What gets built" table exactly.
Breaking it, independently (not reusing the dev's own runs):
- Ran
release.shtwice in a row (non---cross, into two different-odirs). Both exit 0,editors/vscode/bin/absent after each run, identical artifact name sets both times,git status --short editors/vscodeshowed only this round's four intended edits both times — no residue from run 1 leaking into run 2. - Pre-existing junk in
editors/vscode/bin/before a run. Creatededitors/vscode/bin/lucisv-serverandeditors/vscode/bin/some-other-filewith garbage content by hand, then ranrelease.sh -o /tmp/relcheck3 --no-vsix. The script'srm -rf "$bin_dir"at line 53 (before the first build, unconditional on--no-vsix) wiped it;bin/was absent afterward and the run succeeded normally. A stalebin/from an interrupted prior run cannot contaminate the next one. - Independently re-ran the
EXIT-trap negative control, with my own fakenpx(not the dev's), rather than trusting the dev's own report: a wrapper script onPATHthat proxies to the realnpxfor everything except an invocation containing--target, which it fails with exit 17. Ranrelease.sh -o /tmp/relcheck_fail: the universal package built and was asserted clean (bin/ contents ok), then thedarwin-arm64package'svsce package --target darwin-arm64hit the fake npx and failed; the script exited 17.editors/vscode/bin/was absent afterward andgit status --short editors/vscodeshowed only the four intended edits — the trap covers a real mid-packaging failure, checked with a genuinely different negative control than the dev used, not a re-run of theirs.
Audit script — the aarch64-musl arm checked adversarially.
- Unknown artifact name still fails, confirmed on a copy:
lucisv-0.10.0-unknown-triple-xyz(a renamed copy of the realaarch64-apple-darwinbinary) producesFAIL: … unrecognized artifact name — teach this script about it, exit 1. - Corrupted the aarch64-musl arm, on a copy, never on
dist/originals: overwrote a copy oflucisv-server-0.10.0-aarch64-unknown-linux-muslwith/bin/ls(a Mach-O binary) under the same aarch64-musl-suffixed name. Audit failed it twice over —not an aarch64 ELF: Mach-O universal binary …andmusl build is not statically linked: …— before even reaching theobjdumpNEEDEDcheck, and exited 1 overall. This proves the arm'sfile-based architecture/static checks fire on a corrupted artifact, but it is a weaker test than I wanted: I did not manage to isolate theobjdump -p … | grep NEEDEDline specifically (no genuine dynamically-linked aarch64 Linux ELF was available on this Mac to substitute in — the closest available wrong-arch swap fails at the earlierfile-based checks first, so theNEEDEDgrep is never reached in this control). The two checks are independent by construction (read separately in the source, matching the "two independent opinions" comment attools/audit_artifacts.sh:56), so I read theNEEDEDbranch by inspection rather than exercising it in isolation — noting this as an honest gap in my own coverage, not a defect found.
extension.js resolution logic, read line by line against the claims.
inspect()scope order verified correct against VS Code's own documented precedence (SERVER_PATH_SCOPES,extension.js:58-65) — not assumed from memory. VS Code's ownvscode.d.tsdoc comment forWorkspaceConfiguration.inspect()states the effective-value merge order, lowest to highest, as:defaultValue,globalValue,workspaceValue,workspaceFolderValue,defaultLanguageValue,globalLanguageValue,workspaceLanguageValue,workspaceFolderLanguageValue. That means every language-specific value outranks every non-language-specific one — a genuinely counter-intuitive rule (a[verilog]-scoped User setting beats a plain workspace folder setting) that I checked rather than trusted. Reversed and excluding the twodefault*entries (correctly excluded — see the file's own comment), the highest-to-lowest order is exactlyworkspaceFolderLanguageValue, workspaceLanguageValue, globalLanguageValue, workspaceFolderValue, workspaceValue, globalValue— which is the code's list, verbatim, in that order. The claim is correct.- The bundled-CLI call is unconditional; the bundled-server call is short-circuited — worth documenting, not a bug (Finding 1 below).
chmodSyncis in atry { } catch { }with no binding (extension.js:104-109) — cannot throw uncaught; a read-only install or permission error is swallowed exactly as the comment says.deactivate()(extension.js:211-214) is untouched by this round's diff (confirmed viagit diff HEAD~1) and still callsclearTimeout+client.stop().- Windows
.exesuffix is handled consistently in bothbundledBinary()(extension.js:100, viaprocess.platform === 'win32') andrelease.sh'spackage_vsix/loose-binary loops (case $triple in *windows*) exe=.exe ;;) — same convention, both places. - Activation with
bin/absent (the universal package) does not throw:bundledBinaryreturnsundefinedviafs.existsSyncbefore any chmod attempt, and the||chain falls through to'lucisv-server'onPATH, exactly as before this round.git diff HEAD~1 -- editors/vscode/extension.jsconfirms the entire diff is additive (two newrequires, two new functions, and theactivate()server-path line) — the pre-existing behavior for the universal package's happy path is untouched code, not just untouched behavior.
Finding 1 (confirmed, cosmetic, not blocking) — editors/vscode/README.md:29's "makes both executable on first activation" is not quite true when a user has set lucisv.serverPath.
extension.js:120 calls bundledBinary(context, 'lucisv') unconditionally, so the CLI is always chmod'ed if present. But extension.js:124 is
const serverPath = userServerPath() || bundledBinary(context, 'lucisv-server') || 'lucisv-server';
— plain JavaScript || short-circuits, so if userServerPath() returns a truthy value (the user set lucisv.serverPath in any of the six scopes SERVER_PATH_SCOPES checks), bundledBinary(context, 'lucisv-server') is never called, and the bundled bin/lucisv-server is never chmod'ed on that activation. This is not a functional bug — the binary in question is not the one being spawned in that scenario, so its mode is irrelevant — but editors/vscode/README.md:29's "the extension spawns the server from there and makes both executable on first activation" states an unconditional "both" that has this one exception. The feature README's own Handshakes section is more careful — "chmods what it is about to spawn" (line 46) — which is the actually-accurate description and does not have this gap. Recommend loosening README.md:29's wording to match the feature README's, or noting the exception; not fixed here since it is a one-clause doc-precision issue, not a typo, and the instructions ask QA to file rather than redesign.
Pre-existing, out of scope for this round, flagged for the lead anyway — tools/RELEASING.md:229-231 has a garbled sentence in the Appendix, predating this round (confirmed via git diff HEAD~1 -- tools/RELEASING.md; the Appendix section is untouched by this diff): "that id registered with vsce by the owner\n has created in the Visual Studio Marketplace." reads as a broken edit — a clause was apparently left mid-rewrite. Not this feature's doc to fix (it's about marketplace publishing, unrelated to platform packaging), and not introduced by this round, but noted since I read the whole file.
Docs cross-checked against reality, no other issues found:
tools/RELEASING.md's.vsix-in-detail section (staging,--targetinvocation shape,bin/transience, theunzip -Z1assertion contract) matchesrelease.sh's actual code line for line.editors/vscode/README.md's section 0 install instructions, thelucisv.serverPathsettings-table row, and the Troubleshooting section's "clear the setting, don't set it back to the default string" advice all matchextension.js's actual behavior (the last one specifically depends on theinspect()-not-get()distinction verified above — a user who explicitly setslucisv.serverPathto the literal string"lucisv-server"does still count as "set", by design, sinceinspect()sees it in a scope, not as the manifest default).- The feature README's own Handshakes ("Promised to
extension.js", "Promised totools/audit_artifacts.sh") match what the code actually does, verified independently above rather than taken on the doc's word. TODO.mdwas not re-checked in depth; the dev's claim that no existing checkbox needed updating was not disputed by anything found here.
No BLOCKING findings. Every claim in the dev's work log was independently reproduced with fresh runs and, where possible, fresh negative controls rather than re-trusting the dev's own — gates, both release.sh modes, all six .vsix contents (all five TargetPlatforms, not a sample), SHA256SUMS, the EXIT trap (with an independently-written stub), the audit script's new arm, and the inspect() precedence claim (checked against VS Code's own documented merge order, not memory). Finding 1 is cosmetic and already partially self-corrected by the feature README's own more careful wording elsewhere. The un-exercised NEEDED-check branch (audit script) is a coverage gap in this QA pass, not a defect — recorded honestly rather than papered over.
Verdict: ship.
2026-08-27 — QA agent (round 2): the all-platforms package + CI consolidation
Scope: the dev's round-2 work log claims only — the seventh lucisv-<v>-all.vsix
package, extension.js's layered bundledBinary lookup, release.sh's
package_all_vsix/expect_vsix_bins under --cross, tools/prune_release_assets.sh,
and the release.yml step that calls it. Did not re-review the earlier
six-package round (its own QA log entry above stands) or the concurrent
editor-marketplace-page round, except where its output could break packaging.
Ran everything from the real repo path (/Users/guoliangchen/repo/verilogrustformatter),
never the scratchpad. No source file was edited; dist/ was rebuilt by my own
--cross run and left intact afterward (verified: 20 files, shasum -c 19/19
OK, as the last action before writing this entry).
Gates — all green.
| Check | Result |
|---|---|
bash -n tools/release.sh tools/audit_artifacts.sh tools/prune_release_assets.sh |
clean |
node --check editors/vscode/extension.js |
clean |
python3 -c "import yaml; yaml.safe_load(...)" on .gitea/workflows/release.yml |
valid |
cargo fmt --check |
clean |
cargo clippy --all-targets |
clean, 0 warnings |
cargo test -p lucisv_server |
1015 unit + 50 e2e + 3 grammar, 5 ignored, 0 failed — exact match to the dev's numbers |
tools/release.sh --cross, re-run independently on this machine (lucisv 0.10.1) — exit 0, 12 loose binaries + 7 .vsix + SHA256SUMS (20 files, 19 checksummed entries), matching the dev's claimed set.
unzip -Z1 lucisv-0.10.1-all.vsix 'extension/bin/*': exactly 10 entries —darwin-arm64/,darwin-x64/,linux-x64/,linux-arm64/each withlucisv+lucisv-server,win32-x64/withlucisv.exe+lucisv-server.exeonly (.execonfirmed absent from the other four directories).unzip -Z1 ... | grep -c '/$'= 0, confirming vsce writes no directory entries here either.- Universal package still has no
bin/:unzip -Z1 lucisv-0.10.1.vsix 'extension/bin/*'→ "filename not matched". The five platform packages are unchanged — flat two entries each (extension/bin/lucisv[-server],.exeonly forwin32-x64). extension.vsixmanifest: noTargetPlatformattribute inlucisv-0.10.1-all.vsixor the universal package;TargetPlatform="darwin-arm64"/"darwin-x64"/"linux-x64"/"linux-arm64"/"win32-x64"present and correct in the respective five platform packages (checked all five).- Both embedded smoke tests ran during the build:
smoke: OK, 10 messages, for the host platform package (extension/bin/) and for the all package (extension/bin/darwin-arm64/). tools/audit_artifacts.sh dist: 12 binaries audited, exit 0.shasum -a 256 -c SHA256SUMSindist/: 19/19 OK.dist/left intact at the end (re-verified after all later runs used throwaway-odirs or copies).
Byte-identity spot-check, all package vs. loose dist/ binaries (SHA-256, both directions of the pair, two platforms as asked):
darwin-arm64:unzip -p lucisv-0.10.1-all.vsix extension/bin/darwin-arm64/lucisvandextension/bin/darwin-arm64/lucisv-serverboth hash identically todist/lucisv-0.10.1-aarch64-apple-darwinanddist/lucisv-server-0.10.1-aarch64-apple-darwin(51ca1cf2...andedaff0df...respectively).win32-x64:unzip -p lucisv-0.10.1-all.vsix extension/bin/win32-x64/lucisv.exeand.../lucisv-server.exeboth hash identically todist/lucisv-0.10.1-x86_64-pc-windows-gnu.exeanddist/lucisv-server-0.10.1-x86_64-pc-windows-gnu.exe(f6c2dbfc...and6628bfeb...respectively).
Four of four match. Confirms the audit that gates the release covers the fat package's contents transitively, as claimed.
tools/prune_release_assets.sh, on copies of dist/, never the original — independent runs, not the dev's.
- Positive: copied the full 20-file
dist/to a scratch dir, ranprune_release_assets.sh <dir> 0.10.1— exit 0, 8 survivors (the 7.vsix+SHA256SUMS),shasum -cre-verify inside the script passed for all 7. - Negative, missing
-all.vsix: removed it from a fresh copy before running —missing lucisv-0.10.1-all.vsixon stderr, exit 1, file count unchanged (19 before and after) — the name-check loop runs entirely before any deletion, so a missing package deletes nothing rather than partially pruning. - Negative, wrong version arg: ran with
9.9.9against the real 0.10.1 tree —missing lucisv-9.9.9.vsix, exit 1, file count unchanged (20 before and after, since this copy still had its originaldist/contents). - Negative, missing directory: ran against a nonexistent path —
no dist directory at ..., exit 2, as coded.
extension.js's layered bundledBinary lookup — exercised with my own harness, not the dev's (none was left in the tree to re-run; confirmed via find and git status --short, which shows no untracked harness file). Wrote an independent Node script (/tmp/qa_ext_harness/harness.js, discarded after use) that stubs vscode and vscode-languageclient/node via Module._load, builds fake extension directories with fs, and calls activate() against a fake context.asAbsolutePath, reading back serverOptions.command from the LanguageClient constructor call and the on-disk file modes afterward. Eight cases, all matching the documented behaviour:
| Case | Result |
|---|---|
no bin/ at all |
lucisv-server (PATH) |
flat bin/ only |
flat path, chmod 755 |
nested bin/<own-platform>/ only |
nested path, chmod 755 |
| both layouts present | flat wins (most specific first); flat chmod'ed to 755, nested left at 644 — not touched |
| only a foreign platform's directory present | falls through to lucisv-server (PATH) |
nested layout + user serverPath set (globalValue) |
user's path wins the spawn, but the nested bundled server is still chmod'ed to 755 — confirms the lead's round-1 fix (unconditional bundledServer resolution ahead of the || chain) survived the new two-candidate lookup |
flat layout + user serverPath set to the literal string "lucisv-server" |
counts as "set" (per inspect(), not get()); command resolves to that string, flat binary still chmod'ed |
nested layout + user serverPath set to a whitespace-only string |
counts as unset; falls through to the nested bundled path |
This independently confirms: flat-over-nested precedence, foreign-platform fall-through, the "only chmod what was chosen" behavior the dev's own harness claimed, and — the specific thing this round's instructions flagged as a prior finding to re-check — that both bundled binaries still get chmod'ed even when a user-set serverPath wins the spawn, in the nested layout as well as the flat one.
EXIT trap, negative-controlled a third way (independently of both the round-1 QA control and the dev's round-2 control): a fake npx on PATH that fails only when an argument ends in -all.vsix (exit 42), proxying to the real npx otherwise. tools/release.sh -o /tmp/qa_relfail --cross built the universal package and all five platform packages (each asserted bin/ contents ok) before dying on the all-platforms step; editors/vscode/bin/ (which by then holds five subdirectories, ten binaries) was gone immediately after, and git status --short editors/vscode showed only this round's four tracked-file edits — no residue.
Docs vs. reality.
tools/RELEASING.md's "twelve binaries and seven.vsixfiles" claim, the.vsix-in-detail section's staging/assertion description, and the publishing section's "seven.vsixpackages plusSHA256SUMS" all match the actual--crossoutput above.docs/features/ci-release/README.md's seven-package claims, itsprune_release_assets.shvalidation table (20-file copy → 8 survivors, missing-all.vsix→ exit 1 deletes nothing), and its description of therelease.ymlstep order all match what I independently reproduced above..gitea/workflows/release.ymlcalls the script astools/prune_release_assets.sh dist "${GITHUB_REF_NAME#v}", between the artifact audit and the release-notes extraction — confirmed by reading the file;RELEASE_NOTES.mdis written intodist/after pruning, so the prune step (which deletes everything not*.vsix/SHA256SUMS) cannot touch it.- Top-level
README.md(lines 623, 710) states theallpackage and the seven-package release claim; both match reality. tools/audit_artifacts.sh's*.vsix | SHA256SUMS | RELEASE_NOTES.mdskip arm (line 39) still covers-all.vsixbefore the "unrecognized artifact name" arm — confirmed by the clean 12-binary audit above.editors/vscode/.vscodeignorestill does not excludebin/;editors/vscode/.gitignorestill ignores it with a comment pointing at this feature.
Finding 1 (confirmed, moderate, not blocking build/packaging) — editors/vscode/README.md's install table names six packages, not the seven this feature's own Handshakes section promises.
This feature's Handshakes section (docs/features/editor-platform-vsix/README.md:103-104, written by the dev in this same round) states as a requirement of editor-marketplace-page's rewrite: "its install table naming seven packages, not six (the five platform ones, all, and the universal fallback)". The dev's own round-2 work log (lines 552-558) claims to have "re-applied the requirement onto their structure" and that the marketplace README's lucisv.serverPath row and Troubleshooting entry "already" satisfied the requirement, needing no change — but does not claim to have added the universal package to the install table, and it was never there. Checked directly: editors/vscode/README.md:36-43's install table has exactly six rows (darwin-arm64, darwin-x64, linux-x64, linux-arm64, win32-x64, all); grep -n "universal\|lucisv-<version>\.vsix\|PATH\\b" editors/vscode/README.md finds no mention of the universal/platform-independent package anywhere in the file — not in the install table, not in Troubleshooting, not elsewhere. A reader of this developer-facing README has no way to learn the plain lucisv-<version>.vsix (PATH-based, smallest download, the fallback for a platform none of the six named packages cover) exists at all. This does not break packaging or any gate — vsce package for the universal target still runs and is still asserted bin/-free by release.sh — it is purely a documentation gap against the feature's own stated (and, per the work log, believed-satisfied) handshake. Filed rather than fixed, per QA's scope (verify, don't redesign); the fix is one added table row plus a clause, in editor-marketplace-page's voice, matching the pattern already used for the all row.
No other findings. Every claim in the dev's round-2 work log — the seventh package's build and contents, the layered lookup and its chmod behavior (including the specific "still chmod'ed when a user setting wins" fix-survival check this round asked for), expect_vsix_bins's handling of nested paths, the EXIT trap under the new nested staging, prune_release_assets.sh's positive and negative behavior, and the docs — was independently reproduced with fresh runs, fresh negative controls, and a fresh harness rather than re-trusting the dev's own. The concurrent editor-marketplace-page round's package.json changes (icon, keywords, homepage) do not break packaging: the full --cross run above packaged all seven .vsix cleanly against the current tree, icon file present and valid.
Verdict: ship, with Finding 1 (moderate, doc-only) for the lead to route — either fix editors/vscode/README.md's install table now or hand it back to editor-marketplace-page.
Review
2026-08-27 — lead. Verdict: accepted; commits with this round.
Reviewed the full diff (7 files + this README), the dev's work log against the scripts' actual code, and QA's independent reproduction. Points reviewed and accepted:
- The staging design is the right shape:
editors/vscode/bin/exists only betweenmkdirand the post-packagerm -rf, with anEXITtrap both agents negative-controlled independently, and every package'sbin/contents asserted withunzip -Z1rather than assumed. The failure this guards against — one platform's server shipping inside another platform's package, or inside the universal one — is a corruption-adjacent class of bug, and it cannot happen silently. - The resolution order in
extension.jsis correct and honestly detected:inspect()across all six user-writable scopes, in VS Code's own merge order (QA verified the order against documentation, including the language-scoped-beats-general rule), with the manifest default deliberately not counting as "set". The chmod-in-try/catch matches rust-analyzer's long-standing practice for the same VSIX-extraction reality. linux-x64shipping musl is the right call — a static server is what an extension installed by a stranger needs — and the gaps are recorded rather than hidden: nox86_64-unknown-linux-gnupackage, no Alpine targets (universal fallback covers them), four non-host packages never executed on their own platforms.- QA's Finding 1 (short-circuited chmod of the unused bundled server) was
fixed at the code level by the lead — see the work log — so the user-facing
README's "both" is now unconditionally true. Finding 2 (garbled
pre-existing sentence in the RELEASING.md appendix) is real, predates this
round, and is fixed by the lead in this same round. QA's disclosed coverage
gap (the aarch64
NEEDEDbranch never fired against a genuine dynamic aarch64 ELF) is accepted: the branch is nine lines, read by three agents, and structurally identical to the x86-64 arm that was mutation-tested.
No version bump here: the packages are cut from whatever version the tree is
at, and the next tagged release ships all six automatically via the unchanged
release.yml → release.sh --cross path.
2026-08-27 — lead review of round 2 (the all-platforms package + CI consolidation). Verdict: accepted; commits with this round; ships as 0.10.2.
Reviewed the diff, the dev's work log, and QA's independent reproduction
(its own Node harness for the layered lookup, its own EXIT-trap stub, a
fresh --cross run, byte-identity spot-checks). Points accepted:
- The layered
bundledBinarylookup is the smallest correct shape: the file's existence remains the only runtime test for "which package am I", the flat layout wins so a platform package can never accidentally pick a foreign binary out of a fat layout, and the prior round's chmod-both-binaries fix survives (QA proved it with a user-setserverPathagainst a nested layout). - The
-allpackage is target-less on purpose — noTargetPlatformin its manifest, asserted byrelease.sh— which is precisely what makes it the honest answer for Alpine and any platform vsce refuses to name. tools/prune_release_assets.shconsolidates the release contract in one place: seven names checked, audited hashes preserved by filtering rather than recomputing, deletion only after every check passes (QA's negative controls confirm a failure deletes nothing).- QA's Finding 1 (the marketplace rewrite dropped the universal package from the install table, breaking this round's requested Handshake) was fixed by the lead in the marketplace round's review — a seventh row names the universal fallback.
Accepted limitations, unchanged from round 1: no real-editor run, four non-host platforms' binaries never executed, Alpine reasoned not observed.