Skip to content

LBA REQ 093

github-actions[bot] edited this page Nov 19, 2026 · 2 revisions

LBA-REQ-093: The Node-version-pinned reproducible package (reviewed Node equals shipped Node)

Status

Proven

Area

Packaging / boundary (ADR-0076 -- the Node-version-pinned reproducible .vsix, issue #408)

Statement

The system shall pin the exact Node.js version that packages the .vsix in a repo-root .nvmrc sourced by every release-path workflow, so a fail-closed gate proves the reviewed build and the CI publish build use the identical Node version and cannot drift across a Node minor.

Rationale

LBA-REQ-085 (timestamp pin) and LBA-REQ-086 (cross-plane metadata + LF) make the .vsix byte-reproducible, but only WITHIN an exact Node version: the packaged bytes are a function of the toolchain, and a Node minor can perturb them. Every release-path workflow used actions/setup-node@v5 with node-version: '24', which resolves to whatever latest 24.x is in the runner tool cache at run time. The reviewed sha is built locally on a fixed 24.x; if CI later floats to a different 24.x whose bytes differ, the reviewed==shipped gate (reviewed-vsix-matches-shipped, LBA-REQ-085) fails at publish -- the most expensive place to discover it. The 1.1.0 lesson (a node-22 review vs a node-24 publish producing different shas) is folded into lba release-preflight, but the residual minor-drift risk needed a committed pin.

Acceptance Criteria

  • A repo-root .nvmrc pins the EXACT release Node version (e.g. 24.19.0), not a major.
  • .github/workflows/extension-release.yml, .github/workflows/vsix-cross-plane-repro.yml, and .github/workflows/acg-cross-plane-corroboration.yml each source Node via node-version-file: .nvmrc and pin no floating node-version: literal, so the local reviewed build and the CI publish build resolve the same Node.
  • lba release-preflight X.Y.Z fails closed when the local Node version does not equal .nvmrc (an exact-version check that supersedes the node-major check when .nvmrc is present).
  • The gate release-path-node-pinned (verify-local-gates) proves offline that .nvmrc pins an exact version and every release-path workflow sources it from .nvmrc with no floating literal; the scripts/lba.mjs selftest proves the exact-version preflight (an equal Node clears, a later 24.x minor fails).

Verification

Historical statement (no longer implemented)

Supersession

Change Guidance

to bump the pinned Node, edit .nvmrc to the new exact X.Y.Z, re-run npm run package to confirm the reviewed sha still matches CI, and re-run the cross-plane byte-repro grid; no workflow edits are needed (the pin is the single source). The pin + bump procedure is documented in docs/release/release-procedure.md + docs/release/release-runbook.md. Filed as issue #408 while driving the 1.1.1 Marketplace publish; authored under the singular-requirement directive (one shall).

TestID

T-093

CodeRef

.nvmrc; .github/workflows/extension-release.yml; .github/workflows/vsix-cross-plane-repro.yml; .github/workflows/acg-cross-plane-corroboration.yml; scripts/lba.mjs; docs/release/release-procedure.md; experiments/verify-local-gates.mjs

RTM Status

Proven

Clone this wiki locally