# 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. `vsce` validates `--target` against its own fixed list; nothing derives one name from the other. | vsce target | rust triple | why that triple | |---|---|---| | `darwin-arm64` | `aarch64-apple-darwin` | the host build | | `darwin-x64` | `x86_64-apple-darwin` | Intel Macs (also runs under Rosetta) | | `linux-x64` | `x86_64-unknown-linux-musl` | static, so it runs on every distro | | `linux-arm64` | `aarch64-unknown-linux-musl` | same, for ARM servers/Pi/Asahi | | `win32-x64` | `x86_64-pc-windows-gnu` | `.exe`, DLLs Windows 10+ ships | - **Linux gets the musl build, not the glibc one.** `x86_64-unknown-linux-gnu` is still built and shipped as a loose artifact (it exists for shops that require a native glibc link — see `tools/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 second `linux-x64` package to choose between. - **Alpine is an accepted gap.** `vsce` has separate `alpine-x64` / `alpine-arm64` targets and VS Code running on Alpine looks for *those*, not for `linux-x64` — so an Alpine user gets the universal package and needs `lucisv-server` on `PATH`, even though the musl binary we ship would have run there perfectly. Building two more 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). - **VSIX extraction does not preserve the executable bit.** This is why `extension.js` chmods 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.sh` still `chmod +x`es 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.serverPath` at something else takes that risk, as before. - **The binaries are the same ones `dist/` ships.** `release.sh` stages them *out of* `dist/`, so the file a user gets from the release page and the file inside the `.vsix` are byte-identical (and the `.vsix` copies are covered transitively by `SHA256SUMS`' 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]--` naming. The staging step reads those exact names; renaming an artifact breaks packaging loudly (a missing `cp` source), not silently. **Promised to `extension.js`** — a platform package always contains **both** binaries under `bin/`, named plainly (`lucisv`, `lucisv-server`, with `.exe` on Windows) with no version or triple in the name; the universal package contains **no** `bin/` directory at all. `release.sh` asserts both with `unzip -Z1` after every package it builds, so "the extension found a stale binary from the previous target" cannot ship. **Promised to `tools/audit_artifacts.sh`** — every loose binary in `dist/` is still named `lucisv[-server]--`; the new `.vsix` names all end in `.vsix` and are skipped by the audit's existing case arm. **Requested of other modules** — none. ## Resolution order in the extension `extension.js` picks the server command from three candidates, most specific first: 1. **A `lucisv.serverPath` the user actually set.** Detected with `inspect('serverPath')`, not `get()`: `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 of `globalValue`, `workspaceValue`, `workspaceFolderValue` or their three language-scoped variants counts as "the user set it"; `defaultValue` and `defaultLanguageValue` do not, because those are contributed defaults, not user intent. Most specific wins, matching VS Code's own `get()` precedence. 2. **The bundled binary**, `/bin/lucisv-server`(`.exe`), if the file exists. Its existence is the whole runtime test for "am I a platform package or the universal one" — no build-time flag, no manifest field. 3. **The bare name `lucisv-server`**, looked up on `PATH`. What the universal package has always done, and what a `cargo build` + `PATH` install 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. ## What gets built, and when | | `release.sh` | `release.sh --cross` | |---|---|---| | universal `lucisv-.vsix` | yes | yes | | `darwin-arm64` (host) | yes | yes | | the other four | 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 six. ## Status / TODO - [x] `rustup target add --toolchain stable aarch64-unknown-linux-musl` on the build Mac, and the line recorded in `tools/RELEASING.md`'s one-time setup. - [x] `tools/release.sh`: `aarch64-unknown-linux-musl` in the `--cross` set, same rust-lld linker and `DYLD_FALLBACK_LIBRARY_PATH` as the x86-64 musl build; its two binaries land in `dist/` and in `SHA256SUMS`. - [x] `editors/vscode/extension.js`: three-step server resolution, `inspect()` for user intent, chmod of both bundled binaries. - [x] `editors/vscode/package.json`: `lucisv.serverPath` description mentions the bundled default. - [x] `tools/release.sh`: stage `bin/`, package per target, remove `bin/`, with an `EXIT` trap so a failure cannot leave binaries in the tree. - [x] `tools/release.sh`: `unzip -Z1` content assertions for every package, and an LSP smoke test of the server unzipped out of the host package. - [x] `tools/audit_artifacts.sh`: `aarch64-unknown-linux-musl` arm. - [x] `editors/vscode/.gitignore`: `bin/`. - [x] Docs: this file, `tools/RELEASING.md`, `editors/vscode/README.md`. - [ ] **Not done, and not doable here:** none of the five 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 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 `--cross` existed. - [ ] **Not done, deliberate:** `alpine-x64` / `alpine-arm64` packages (see Assumptions), and a `linux-x64` glibc variant. ## Work log ### 2026-08-27 — dev agent - **Toolchain.** `rustup target add --toolchain stable aarch64-unknown-linux-musl` ran clean (`rust-std` component only, no linker needed — `rust-lld` links it, exactly like the x86-64 musl target). `rustup target list --installed` now shows six targets. The line is in `tools/RELEASING.md`'s one-time-setup block. - **`release.sh` structure.** The new `aarch64-unknown-linux-musl` build 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` (stage `bin/`, package, remove `bin/`), and `expect_vsix_bins` (assert what a package carries). `bin_dir` is removed by an `EXIT` trap set before the first build, so an interrupted or failed run cannot leave a stale binary where the next package — or a developer's `git status` — would pick it up. - **The universal package is packaged first and with `bin/` provably absent** (`rm -rf` immediately before, `expect_vsix_bins` with 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 same `smoke.js` LSP 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 not `get()`** is the one non-obvious line in `extension.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 a `get()`-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 excludes `defaultValue` / `defaultLanguageValue`. - **The objdump question was answered by running it, not guessed.** This machine's `x86_64-unknown-linux-gnu-objdump` *does* parse an aarch64 ELF — `-p` prints `file format elf64-little` and the full program header table, and finds zero `NEEDED` entries in our static binary — so the new arm keeps the same `NEEDED` check the x86-64 musl arm uses. It also asserts `file -b`'s own `ARM aarch64` and `statically linked`, for two reasons the comment states: objdump's `elf64-little` does not name the architecture at all (so `file` is 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 the `NEEDED` grep pass *by finding nothing* — the exact quiet failure the audit exists to prevent. - **`x86_64-unknown-linux-gnu` gets no `.vsix`.** It is still built and still audited; `linux-x64` is 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-`--cross` path was run too**, into a throwaway `-o` directory, to confirm the decision in "What gets built": host pair, universal package, `darwin-arm64` package, embedded smoke test, checksums, exit 0. - **`.vscodeignore` was left alone** and confirmed not to exclude `bin/` (it lists `smoke.js`, `.vscode/**`, `.gitignore` and nothing else). `bin/` is in `editors/vscode/.gitignore` instead, as a second line of defence behind the `EXIT` trap. - Did not bump any version, did not `git commit`/`git push`, did not touch `crates/`. `TODO.md` was 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 `--target` really is stamped in.** `extension.vsixmanifest` carries `TargetPlatform="darwin-arm64"` / `"linux-arm64"` / `"win32-x64"` in the respective packages, and the universal one contains no `TargetPlatform` attribute at all — that attribute is how VS Code picks a package. - **The executable bit survives packaging.** `unzip -Z` reports `-rwxr-xr-x` for 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 `EXIT` trap was negative-controlled**, not assumed: with an `npx` stub on `PATH` that fails whenever it sees `--target`, `release.sh` staged `editors/vscode/bin/`, failed the platform package, and exited — and `editors/vscode/bin/` was gone afterwards, with `git status --short editors/vscode` showing 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. ## 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-musl` 4,022,088 bytes, `lucisv-0.10.0-aarch64-unknown-linux-musl` 1,930,768 — identical to the dev's numbers). - `shasum -a 256 -c SHA256SUMS` in `dist/`: **18/18 OK**. - `unzip -Z1`/`unzip -Z` on all six `.vsix`, independently: the universal package (`lucisv-0.10.0.vsix`, 324 entries) carries no `extension/bin/*` entries and no `TargetPlatform` attribute in `extension.vsixmanifest`. Each of the five platform packages (326 entries — exactly 2 more than universal) carries exactly `extension/bin/lucisv{,-server}` (`.exe` suffix on `win32-x64`), mode `-rwxr-xr-x` inside the zip, and the correct `TargetPlatform="…"` (`darwin-arm64`, `darwin-x64`, `linux-x64`, `linux-arm64`, `win32-x64` respectively — checked all five, not just one). - Grepped every `.vsix`'s file list for `smoke`, `.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 `.vsix` are correctly skipped by the pre-existing `*.vsix` case arm, not part of this round's diff). - Embedded smoke test ran as part of the build: `smoke: OK` against the server unzipped out of the `darwin-arm64` package, 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):** 1. **Ran `release.sh` twice in a row** (non-`--cross`, into two different `-o` dirs). Both exit 0, `editors/vscode/bin/` absent after each run, identical artifact name sets both times, `git status --short editors/vscode` showed only this round's four intended edits both times — no residue from run 1 leaking into run 2. 2. **Pre-existing junk in `editors/vscode/bin/` before a run.** Created `editors/vscode/bin/lucisv-server` and `editors/vscode/bin/some-other-file` with garbage content by hand, then ran `release.sh -o /tmp/relcheck3 --no-vsix`. The script's `rm -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 stale `bin/` from an interrupted prior run cannot contaminate the next one. 3. **Independently re-ran the `EXIT`-trap negative control**, with my own fake `npx` (not the dev's), rather than trusting the dev's own report: a wrapper script on `PATH` that proxies to the real `npx` for everything except an invocation containing `--target`, which it fails with exit 17. Ran `release.sh -o /tmp/relcheck_fail`: the universal package built and was asserted clean (`bin/ contents ok`), then the `darwin-arm64` package's `vsce package --target darwin-arm64` hit the fake npx and failed; the script exited 17. `editors/vscode/bin/` was absent afterward and `git status --short editors/vscode` showed 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 real `aarch64-apple-darwin` binary) produces `FAIL: … 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 of `lucisv-server-0.10.0-aarch64-unknown-linux-musl` with `/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 …` and `musl build is not statically linked: …` — before even reaching the `objdump` `NEEDED` check, and exited 1 overall. This proves the arm's `file`-based architecture/static checks fire on a corrupted artifact, but it is a weaker test than I wanted: **I did not manage to isolate the `objdump -p … | grep NEEDED` line 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 earlier `file`-based checks first, so the `NEEDED` grep is never reached in this control). The two checks are independent by construction (read separately in the source, matching the "two independent opinions" comment at `tools/audit_artifacts.sh:56`), so I read the `NEEDED` branch 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 own `vscode.d.ts` doc comment for `WorkspaceConfiguration.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 two `default*` entries (correctly excluded — see the file's own comment), the highest-to-lowest order is exactly `workspaceFolderLanguageValue, 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).** - **`chmodSync` is in a `try { } 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 via `git diff HEAD~1`) and still calls `clearTimeout` + `client.stop()`. - **Windows `.exe` suffix** is handled consistently in both `bundledBinary()` (`extension.js:100`, via `process.platform === 'win32'`) and `release.sh`'s `package_vsix`/loose-binary loops (`case $triple in *windows*) exe=.exe ;;`) — same convention, both places. - **Activation with `bin/` absent (the universal package) does not throw**: `bundledBinary` returns `undefined` via `fs.existsSync` before any chmod attempt, and the `||` chain falls through to `'lucisv-server'` on `PATH`, exactly as before this round. `git diff HEAD~1 -- editors/vscode/extension.js` confirms the entire diff is additive (two new `require`s, two new functions, and the `activate()` 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 ```js 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, `--target` invocation shape, `bin/` transience, the `unzip -Z1` assertion contract) matches `release.sh`'s actual code line for line. - `editors/vscode/README.md`'s section 0 install instructions, the `lucisv.serverPath` settings-table row, and the Troubleshooting section's "clear the setting, don't set it back to the default string" advice all match `extension.js`'s actual behavior (the last one specifically depends on the `inspect()`-not-`get()` distinction verified above — a user who explicitly sets `lucisv.serverPath` to the literal string `"lucisv-server"` does still count as "set", by design, since `inspect()` sees it in a scope, not as the manifest default). - The feature README's own Handshakes ("Promised to `extension.js`", "Promised to `tools/audit_artifacts.sh`") match what the code actually does, verified independently above rather than taken on the doc's word. - `TODO.md` was 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 `TargetPlatform`s, 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.** ## 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: 1. **The staging design is the right shape**: `editors/vscode/bin/` exists only between `mkdir` and the post-package `rm -rf`, with an `EXIT` trap both agents negative-controlled independently, and every package's `bin/` contents asserted with `unzip -Z1` rather 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. 2. **The resolution order in `extension.js` is 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. 3. **`linux-x64` shipping 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: no `x86_64-unknown-linux-gnu` package, no Alpine targets (universal fallback covers them), four non-host packages never executed on their own platforms. 4. **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 `NEEDED` branch 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.