Repository navigation
Release Runbook Part 1
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. From 1.6.7: the release operator checks the full reviewer infrastructure receipt against the selected baseline in private, before signing. Hash the exact retained receipt bytes with SHA-256. Put only the three-field record inrelease-components.jsonbefore building:schemaisreviewer-infrastructure@1,baselineis the baseline version (e.g.v0.1.0), andreceiptSha256is the 64-character lowercase hex digest. Keep the receipt private. - 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.
When the infrastructure record is present, the stage command adds its digest to those evidence entries.
If setting the target manually, preserve the stage evidence and add exactly one
--evidence "reviewer-infrastructure-receipt-sha256:<receiptSha256>" to the same set-target command.
Before signing, the reviewer confirms the target carries the digest of the privately checked receipt.
On a Windows host that runs the reviewer guest under Hyper-V, use the scripts in reviewer-workstation/hyperv/
(see its README for prerequisites and every parameter). Run them elevated, with -CandidateRepo pointing at the
candidate checkout and -Credential holding the guest account. Same artifacts and gate fields as above:
.\reviewer-workstation\hyperv\win-plane-validate.ps1 -VMName <vm> -Credential $c -CandidateRepo <candidate> -Branch release/X.Y.Z
.\reviewer-workstation\hyperv\release-stage-win.ps1 -VMName <vm> -Credential $c -Version X.Y.Z -Commit <sha> -Vsix <vsix> `
-Attestation <attestation.json> -CandidateRepo <candidate> -VisualKey <visual.pem> -SwitchName <switch> -LbabusExe <lbabus.exe>
.\reviewer-workstation\hyperv\render-verdict.ps1 collect -VMName <vm> -Credential $c -Version X.Y.Z -Out <verdict.json>
.\reviewer-workstation\hyperv\render-quorum.ps1 all -VMName <vm> -Credential $c -Version X.Y.Z -Attestation <attestation.json> -CandidateRepo <candidate>
Add -WhatIf to any of them to print the ordered plan without running it.
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 live publish gates clear. Both preflight and the workflow'sagreementjob runscripts/verify-reviewer-infrastructure.mjsagainst the sealed candidate. A pass proves the signed verdict commits to the public digest, not that the infrastructure matches the receipt. Published releases are not re-checked. The visual key must havevalidFromandvalidThroughboth equal toX.Y.Zand thevisualpurpose. Ranges are insufficient for this gate. Supply stable versions without leading zeros; pre-release versions and duplicate JSON member names are rejected.
- 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).
Generated from docs/release/release-runbook.md on develop. Edit the source in the repository, not this page.