Repository navigation
Release Runbook
The step-by-step, copy-pasteable end-to-end sequence for a governed Marketplace release, captured verbatim from the 1.1.1 publish. The companion
docs/release/release-procedure.mdis the ISO/IEC/IEEE 15289 procedure (the normative "what + why"); this runbook is the concrete how — the exact commands, artifact locations, and ordering an operator or future agent runs. Every repo path named below in backticks resolves on disk (fail-closed via therelease-runbook-references-resolvegate); the ephemeral staging artifacts live in~/lba-vm-share/on the operator host, not in the repo.The
lba releaseorchestrator (issue #409) will eventually execute this runbook resumably, preflighting each gate; until then this file is the manual source of truth.
-
Build/review on the pinned node. The published
.vsixis byte-reproducible only within an exact node version, so the whole release path is pinned by the repo-root.nvmrc(issue #408). Runnvm use(or install that exact version) before packaging; the release-path workflows source it vianode-version-file: .nvmrc. -
Reviewer VM up. The
actorreviewer VM is running with the enrolled reviewer key present in the VM (issue #414), and the guest-side scripts underreviewer-workstation/are reachable. -
Host credentials + share.
~/.config/lba/vm-passholds the VM password; the shared drop folder~/lba-vm-shareexists (staging artifacts land here).
- Cut
release/X.Y.Zfromdevelop(GitFlow; only release/hotfix heads may targetmain). - Bump changed component versions and the extension in
release-components.json, synchronize package/component sources, and stamp## [X.Y.Z]inCHANGELOG.md. The repository precommit hook requires these release metadata files to be staged in their final state. - On the pinned node, build the normalized artifact:
npm run package, from a cleangit worktreeof the candidate commit so no ignored local file is packaged (#55). Capture the candidatecommitand the packagedvsixSha256. Packaging fails closed unless every Marketplace link in the packaged manifest names the canonical repository (scripts/verify-vsix-links.mjs, #56). -
Re-
npm run packageafter every later seal/back-merge commit and assert the sha is unchanged — the packaged file set must not move once reviewed (normalization is proven byscripts/normalize-vsix.mjs).
- Dispatch the corroboration grid at the candidate commit:
.github/workflows/acg-cross-plane-corroboration.yml(workflow_dispatch,--refthe candidate commit). This runs genuine ubuntu + windows runners as the two OS planes. - Download the witnesses and build + validate the attestation, dropping it at
~/lba-vm-share/attestation-X.Y.Z.json. The byte-reproducibility of the.vsixacross planes is separately guarded by.github/workflows/vsix-cross-plane-repro.yml.
Run reviewer-workstation/win-plane-validate.sh for release/X.Y.Z (drives
reviewer-workstation/win-plane-validate.ps1 in the VM): npm ci + compile + the test
suites + masked activation + the packaging gate, landing on winPlaneReady:true. The
candidate .vsix is staged in the VM (sha verified) via
reviewer-workstation/stage-local-vsix.ps1. Save the resulting WIN-plane net DONE frame
as ~/lba-vm-share/staged-frame-WIN-X.Y.Z.json; this is the independent, version-bound
completion evidence for release phase 7 (neither a quorum sign-off nor a visual verdict
can substitute for it).
Stage, capture, and bind in one command (#73). With the reviewer VM running and the per-version reviewer keys enrolled:
npm run lba -- release-stage-win X.Y.Z --vm <reviewer-vm> --commit <candidate-commit> \
--vsix <candidate.vsix> --attestation ~/lba-vm-share/attestation-X.Y.Z.json
It copies the candidate into the VM and fails unless the VM holds the exact bytes. It then installs the extension
and confirms the listed id@version, and points the reviewer key setting at the X.Y.Z visual key. Next, it listens
for the correlated DONE while the in-VM sender reports the staged identity, and writes
~/lba-vm-share/staged-frame-WIN-X.Y.Z.json. Finally, it runs render-verdict.sh set-target with the evidence taken
from the attestation (cross-plane-run, attestation-sha256) plus the windows-stage task. The VM password comes from
LBA_VM_PASS or ~/.config/lba/vm-pass and reaches VBoxManage only as a private --passwordfile. --dry-run
prints the plan, and the command refuses to overwrite an existing staged frame without --force.
The steps it composes, for diagnosis: after the WIN reviewer agent reports its stage task, await its correlated
DONE frame and then build the composite-ready artifact:
node reviewer-workstation/await-agent-reply.mjs \
--task <stage-task-id> --type DONE \
--out ~/lba-vm-share/stage-readback-X.Y.Z.json
node reviewer-workstation/record-release-stage.mjs \
--component extension --version X.Y.Z --commit <candidate-commit> \
--vsix256 <candidate-vsix-sha256> \
--readback ~/lba-vm-share/stage-readback-X.Y.Z.json \
--out ~/lba-vm-share/staged-frame-WIN-X.Y.Z.json
The awaiter ignores unrelated traffic and stops only when the correlated DONE arrives or its wrapper-enforced
timeout expires. The WIN DONE payload must be this structured identity, emitted by the stage operation rather
than copied from the host command:
{"schema":"labview-benchmark-actor/release-stage@1","candidate":{"component":"extension","version":"X.Y.Z","commit":"<candidate-commit>","vsixSha256":"<candidate-vsix-sha256>"}}
record-release-stage.mjs rejects prose-only, partial, non-terminal, mismatched, or uncorrelated readbacks. It
derives the staged candidate from that WIN frame and verifies all four fields before writing the artifact.
The enrolled reviewer key lives in the VM (issue #414), so signing happens guest-side.
First discover where your key is + the exact station-bound sign commands with
scripts/lba.mjs signing-status (set LBA_VM_PASS so it can read the VM's
labviewBenchmarkActor.reviewerKeyPath; it reports the key path + existence, never the
key material). Then:
VS Code's extension page shows the Issues and Repository links only from the Marketplace listing. Before publishing it shows the previous release's links, or none when offline, so the reviewer cannot judge them there. The packaged links are gated at step 1.3, and the live listing's links at close-out (#56).
-
Visual verdict. Stage the candidate (
stage-local-vsix.ps1), then point the renderer at the target withreviewer-workstation/render-verdict.sh(set-target, thencollectafter the in-VM "Render Reviewer Verdict").set-targetruns the reviewed==shipped sha guard (issue #411): it refuses to bind the target unless the .vsix staged in the VM matches--vsix-sha256(run it standalone withrender-verdict.sh guard --vsix-sha256 <sha>). The reviewer's PASS is Ed25519-signed byreviewer-workstation/sign-visual-verdict.mjs→ avisual-verdict-X.Y.Z.jsonrecord in~/lba-vm-share/. -
Machine quorum sign-off. Use the host wrapper
reviewer-workstation/render-quorum.sh(issue #415), which mirrorsrender-verdict.sh:LBA_VM_PASS=… render-quorum.sh all --version X.Y.Z --attestation ~/lba-vm-share/attestation-X.Y.Z.jsonstages the attestation into the VM, runssign-release-quorum.mjsin the VM against the VM-resident enrolled key (the key never leaves the VM; it wraps the guestcontrolcmd /cnode-invocation gotcha), collects the signedquorum-signoff-X.Y.Z.jsonto~/lba-vm-share/, and verifies it (verify-quorum-signoff.mjs: enrolled key + passing cross-plane quorum, fail-closed). - Verify both locally before sealing:
tools/release-governance/verify-visual-review.mjsand the composite verifiertools/release-governance/verify-composite-release.mjs.
-
Composite receipt. Assemble the composite release-decision receipt with the actual assembler, writing
reviewer-workstation/composite-release-decision-receipt.json:node reviewer-workstation/assemble-composite.mjs \ --component extension --version X.Y.Z --commit <candidate-commit> \ --vsix256 <candidate-vsix-sha256> \ --attestation ~/lba-vm-share/attestation-X.Y.Z.json \ --quorum-signoff ~/lba-vm-share/quorum-signoff-X.Y.Z.json \ --visual-verdict ~/lba-vm-share/visual-verdict-X.Y.Z.json \ --staged-frame ~/lba-vm-share/staged-frame-WIN-X.Y.Z.json \ --out reviewer-workstation/composite-release-decision-receipt.jsonThe committed
candidate.version == X.Y.Zis the single source of truth for the enforced version (issue #416) — no gate file hardcodes a version, so the bump touches only this receipt (+package.json+CHANGELOG.md). -
Record the agreement. Instead of hand-editing JSON, run the recorder (issue #419):
node tools/release-governance/record-release-agreement.mjs \ --component extension --version X.Y.Z --commit <sha> \ --linux-note "..." --win-note "..." \ --visual-verdict ~/lba-vm-share/visual-verdict-X.Y.Z.jsonIt inserts the
components.extension.releases.<version>entry (both planesagreed:true+ the embedded signedvisualReview) as a minimal structured edit intotools/release-governance/release-agreement.json, refuses to clobber an existing version, and fails closed unlesstools/release-governance/verify-release-agreement.mjs+tools/release-governance/verify-visual-review.mjsboth pass for that version. These two generated sealing receipts are release evidence, not product-component source; the precommit version classifier therefore permits their post-signing update without forcing a new extension orlbabusidentity. -
Preflight.
npm run lba -- release-preflight X.Y.Zmust be all green: it asserts the local node equals.nvmrc,package.json+CHANGELOG.mdare atX.Y.Z, the composite receiptcandidate.version == X.Y.Z, and the three live publish gates clear (scripts/lba.mjs).
- Merge
origin/maininto the release branch to absorb any divergence (issue #417), resolving the sealing files (reviewer-workstation/composite-release-decision-receipt.json,tools/release-governance/release-agreement.json) with--ours; verify no main-unique commit is lost. - Open the PR to
mainand merge with--no-ff(never squash a release), somain↔developnever diverge (docs/cm/cm-plan.md). - After the back-merge to
develop, verify shared lineage:node experiments/release/verify-release-lineage.mjs --check(fails closed if anyext-v*tag is not an ancestor of BOTHmainanddevelop, issue #417). If a prior release diverged anddevelopalready carries its content, reconcile withgit merge -s ours origin/mainintodevelop(records shared ancestry without changing develop's tree).
- Dispatch
.github/workflows/extension-release.yml(workflow_dispatch,-f version=X.Y.Z -f publish_marketplace=false,--ref main). Theagreementjob runstools/release-governance/verify-composite-release.mjs --component extension X.Y.Zand blocks the publish unless the committed composite decision proves both gates for the tagged candidate. This first dispatch stages signed assets and does not publish to Marketplace. - Confirm reviewed == shipped:
scripts/verify-published-vsix.mjsasserts the CI-built.vsixsha256 equals the reviewedvsixSha256. - Cut the canonical immutable GitHub Release from the signed artifact: download the
ext-vsix-signed-X.Y.Zbuild artifact, thengh release create ext-vX.Y.Z <assets> --notes-file <changelog section> --target main(an authorized bypass token is needed to push the protectedext-v*tag). - Dispatch the workflow again with
-f version=X.Y.Z -f publish_marketplace=true --ref ext-vX.Y.Z. Itspublishjob waits for the operator to approve themarketplaceenvironment deployment, downloads the canonical release VSIX, requires its SHA-256 to equal the staged VSIX, then publishes it withvsce publish --oidc(Trusted Publishing; no stored PAT). A tag cut before Trusted Publishing still carries the PAT workflow, so publish such a release with--ref main; the SHA-256 check still binds the upload to the canonical release asset.
- Back-merge the release tip to
developwith--no-ff(issue #417) so the version bump, receipt, and agreement return to integration. - Assert
git merge-base --is-ancestor <release-tip> mainand… develop— the release tip is an ancestor of both, so the planes stay in sync. - Re-check the Marketplace listing (the gallery API lags a few minutes) with
npm run lba -- release-verify-published X.Y.Z. It also requires every listing link, Issues (Links.Support) included, to name the canonical repository (#56), and it downloads the VSIX the Marketplace serves and theext-vX.Y.ZGitHub Release asset and requires both to equal the reviewed artifact (the signed visual-verdict target inrelease-agreement.json, #71). A successful query records~/lba-vm-share/marketplace-verification-X.Y.Z.jsonwith the three hashes, allowing the resumable driver to recognize phase 13 only after the required release-tip back-merge todevelopis also proven. Record the closeout in the regenerateddocs/testing/test-report.mdcounts.
| Item | Location |
|---|---|
| Node pin |
.nvmrc (sourced by every release-path workflow) |
| Cross-plane attestation |
~/lba-vm-share/attestation-X.Y.Z.json (host) |
| WIN staging net frame |
~/lba-vm-share/staged-frame-WIN-X.Y.Z.json (host) |
| Signed visual verdict |
~/lba-vm-share/visual-verdict-X.Y.Z.json (host) |
| Marketplace verification |
~/lba-vm-share/marketplace-verification-X.Y.Z.json (host) |
| Composite receipt (committed) | reviewer-workstation/composite-release-decision-receipt.json |
| Release agreement (committed) | tools/release-governance/release-agreement.json |
| Marketplace publish credential | none stored: Trusted Publishing policy on the svelderrainruiz publisher for extension-release.yml + environment marketplace
|
ext-v* tag push |
an authorized bypass token (protected tag) |
Generated from docs/release/release-runbook.md on develop. Edit the source in the repository, not this page.