Skip to content

Software Requirements Specification Part 4

github-actions[bot] edited this page Nov 19, 2026 · 1 revision

labview-benchmark-actor — Software Requirements Specification (part 4 of 11)

ID Requirement Rationale Fit Criterion Verification
LBA-REQ-041 The system shall route each distributed task only to an instance advertising the capability the task requires, so a fail-closed gate proves every task ran on a capability-matching instance. The distributed executor (ADR-0028) is heterogeneous, but LabVIEW lives only on capable instances (the host and LabVIEW VMs) — a VI task sent to a node-only codespace would fail. Capability-aware routing sends each task only where it can run (ADR-0029, operator directive). routeByCapability groups tasks by required capability and capacity-weight-splits each group across only the advertising instances (throws if none can); host advertises labview iff LabVIEWCLI present, codespaces node only; validateRouting fails closed unless every task ran capability-matched, the re-route reproduces the shards, disjoint + covered + distinct + rg-only + all passed. Run node experiments/parallel/verify-capability-routing.selftest.mjs (5/5); gated by capability-aware-routing in verify-local-gates. Live: LabVIEW probe -> host, 43 node tasks across 3 instances.
LBA-REQ-042 The system shall confirm cross-plane LabVIEW liveness by running the known-answer activation probe on every LabVIEW plane, so a fail-closed gate proves at least two independent LabVIEW planes are activated and operational. Real cross-plane comparison (the North Star) needs more than one activated LabVIEW plane; the capability router (ADR-0029) now reaches the host plus a LabVIEW VM (the Phase 1 golden VM, ADR-0023). Running the known-answer probe on each plane and asserting the answer proves independent, activated, operational planes to compare across (ADR-0030). runCrossPlaneLiveness.mjs discovers LabVIEW planes (host + running VMs answering ls LabVIEWCLI over ssh), runs LabVIEWCLI RunVI on each concurrently; validateLiveness fails closed unless >= 2 distinct planes each returned the known answer and are activated. Run node experiments/activation/verify-cross-plane-liveness.selftest.mjs (4/4); gated by cross-plane-labview-liveness in verify-local-gates. Live: host + Ubuntu golden VM, both LabVIEW 2026, 7+5=12.
LBA-REQ-043 The system shall verify cross-plane benchmark determinism by comparing the same VI Analyzer config's deterministic resultHash across every LabVIEW plane, so a fail-closed gate proves the planes agree. Cross-plane liveness (ADR-0030) proved >= 2 activated planes; the North Star is objective, reproducible cross-plane COMPARISON. LBA-REQ-015's resultHash is machine-independent, so running the same config on each plane and matching the hashes proves benchmark equivalence, not a subjective claim (ADR-0031). runCrossPlaneViAnalyzer.mjs runs the shipped LabVIEWCLIExampleProject on each LabVIEW plane concurrently, computes each resultHash via summarizeViAnalyzerReport (LBA-REQ-015); validateComparison fails closed unless >= 2 distinct planes carry an identical resultHash. Run node experiments/vi-analyzer/verify-cross-plane-comparison.selftest.mjs (4/4); gated by cross-plane-vi-analyzer-determinism. Live: host + Ubuntu golden VM, 69 tests, byte-identical resultHash.
LBA-REQ-044 The system shall provision the from-scratch Ubuntu golden VM with a remotely automatable base before human login, preserve that proof in every production golden clone, then install both LabVIEW 2026 Community and VIPM, so fail-closed gates block the build when OpenSSH, Git, supported guest utilities, LabVIEW, or VIPM are omitted. ADR-0023's golden VM is Ubuntu + LabVIEW + VIPM, but a clean Ubuntu clone required a 20+ minute graphical-login/manual-SSH bootstrap and later Git installation before maintained provisioning could begin. VirtualBox's supported unattended post-install hook makes the base remotely automatable without moving LabVIEW or activation into that early trust boundary; binding the receipt into production packaging prevents later clones from losing the proven base. build-virtualbox.sh supplies the maintained base-bootstrap.sh post-install template, an explicit host-loopback-only NAT forward, and a credential file rather than a credential argument; the bootstrap installs/enables OpenSSH, Git, and virtualbox-guest-utils, then emits a first-boot receipt. The production golden Vagrantfile revalidates that receipt on each clone, and golden-activation-cycle.ps1 binds it plus exact definition metadata into the package receipt before any halt or package mutation. The separate provision-guest.sh installs ni-labview-2026-community (NI apt, committed key) + VIPM from packages.jki.net. Run node test/ubuntu-base-bootstrap.mjs, node test/ubuntu-golden-box.mjs, and node experiments/provisioner/verify-provisioner-labview-vipm.selftest.mjs; the tests fail closed on a missing package/service/hook, secret-bearing CLI value, non-loopback NAT rule, missing or stale receipt, definition drift, incomplete package guard, or omitted later install.
LBA-REQ-045 The system shall provide a human-assisted terminal bridge to the golden VM that lets an automation agent drive the VM's interactive shell while a human types any password or token directly on the VM, so a fail-closed gate proves credentials never transit the agent. Agent-driven golden-VM onboarding (ADR-0023) needs secrets -- LabVIEW and VIPM activation, sudo -- that must never pass through the agent or the model; a shared tmux session on the VM lets the agent drive while the human supplies credentials in-band, at the prompt (ADR-0032). tools/vm-bridge/vm-bridge.sh is a shared tmux session on the VM; the agent drives via tmux send-keys/capture-pane over ssh (run/send/keys/read), secret? detects a credential prompt to hand off, attach prints the human's one-line attach; checkVmBridge fails closed unless the bridge is secret-safe (no --password/read -s/sshpass) and the receipt shows the agent detected but never answered a prompt. Run node experiments/vm-bridge/verify-vm-bridge.selftest.mjs (4/4); gated by vm-bridge-human-assisted-secret-safety. Live: agent drove the scratch VM; a real password: prompt was detected (exit 42) + handed off, never answered.
LBA-REQ-046 The system shall prove VIPM functionally installs a LabVIEW community package into the golden VM's LabVIEW package library, so a fail-closed gate blocks the claim unless the operator-designated self-test package installed cleanly with its files landing in vi.lib. LBA-REQ-044 proves the provisioner installs the VIPM tool; the golden VM is "Ubuntu + LabVIEW + VIPM" (ADR-0023) only once VIPM WORKS to install a package. The operator designated g-cli (wiresmith_technology_lib_g_cli) as the VIPM self-test; installing it exercises real dependency resolution. The operator installed g-cli via VIPM Desktop (Community Edition) on lba-golden; validateVipmInstallReceipt fails closed unless every package installed cleanly (No Errors, > 0 files), vi.lib gained files, the designated package is present, and the verdict-bearing digest is intact. Run node experiments/vipm-install/verify-vipm-package-install.selftest.mjs (8/8); gated by vipm-functional-package-install. Live: VIPM 26.3.1-4000 installed g-cli 3.0.1.98 + deps -> 279 files in vi.lib.
LBA-REQ-047 The system shall stream the golden VM live status and analyze a captured timeline for idle spans, so a fail-closed gate proves the committed idle-time analysis is correctly derived from the samples. The human-assisted golden-VM workflow has long stretches of "dead time" invisible to both human and agent (e.g. LabVIEW idle while VIPM silently waits to connect); a live monitor plus a deterministic idle-time analysis surface and quantify that dead time (advances ADR-0023 Phase 1). vm-live-status.sh streams overall CPU busy% + LabVIEW cpu/mem + vipm/Xvfb over the bridge and captures NDJSON series; vmStatusAnalysis.mjs derives idle vs busy spans, idle%, longest idle run; validateStatusTimelineReceipt fails closed unless the committed analysis re-derives from the samples and the digest is intact. Run node experiments/vm-live-status/verify-vm-live-status.selftest.mjs (7/7); gated by vm-live-status-idle-analysis. Live: 44s capture on lba-golden, 63.6% idle, longest idle run 18s.
LBA-REQ-048 The system shall benchmark the golden VM by mass-compiling the public icon-editor source with LabVIEWCLI, so a fail-closed gate proves the committed benchmark result is correctly derived and cross-plane comparable. The golden VM exists to run objective, reproducible benchmarks (the North Star cross-plane comparison); a MassCompile of a pinned public source (ni/labview-icon-editor) is a real LabVIEW workload whose machine-independent result (VI count + bad count + success) is comparable across planes, with the compile time as the performance metric. Replaces the deferred VI Analyzer benchmark. LabVIEWCLI -OperationName MassCompile compiles the icon-editor resource/ source headless-as-actor; massCompileBenchmark.mjs records the result + a timing-invariant resultHash; validateMassCompileReceipt fails closed unless the resultHash re-derives, the verdict matches, the bad-VI list is consistent, and the digest is intact. Run node experiments/mass-compile/verify-mass-compile-benchmark.selftest.mjs (7/7); gated by mass-compile-benchmark. Live: MassCompile of icon-editor resource/ on lba-golden = 307 VIs/CTLs, 0 bad, succeeded, 24s.
LBA-REQ-049 The system shall verify the golden-VM provisioner installs every headless-LabVIEW prerequisite -- Xvfb, VI Server (TCP 3363) configuration for both LabVIEW executable basenames, quoted access lists, and the post-install reboot -- so a fail-closed gate proves a fresh one-command provision yields a headless-benchmark-ready VM. The First Win is a one-command golden VM, but a fresh provision was NOT headless-ready until three fixes were applied by hand during bring-up (Xvfb, VI Server config for both labview.conf and labviewcommunity.conf, a post-install reboot); folding those into provision-guest.sh and gating the provisioner's completeness keeps that hard-won knowledge from silently regressing. provision-guest.sh installs Xvfb, writes the VI Server config into both exe-basename config files with quoted access lists, and addresses the reboot; provisionerReadiness.mjs validates the committed receipt against the ACTUAL script text and fails closed if any prerequisite is missing, the ready verdict is forged, or the digest is tampered. Run node experiments/provisioner-readiness/verify-provisioner-readiness.selftest.mjs (7/7); gated by provisioner-headless-readiness. Live: the hardened provision-guest.sh satisfies all 6 headless-readiness checks.
LBA-REQ-050 The system shall unify the golden-VM LabVIEW benchmarks into a cross-plane grid that records, per benchmark, the machine-independent identity on each plane and the performance metric, so a fail-closed gate proves identities agree across planes and no determinism violation is admitted. The golden VM exists to enable objective, reproducible cross-plane comparison (the North Star); a single generated grid that shows every benchmark's identity agreement across planes plus its performance is the artifact that comparison is for, and gating it fail-closed makes a cross-plane determinism violation impossible to merge. benchmarkGrid.mjs assembles the committed per-benchmark cross-plane receipts into cross-plane-benchmark-grid@1, deriving per-benchmark identity agreement + consensus and rendering docs/benchmarks/benchmark-grid.md; validateBenchmarkGrid fails closed on a benchmark whose planes disagree, a forged agreement/verdict, or a tampered digest. Run node experiments/benchmark-grid/verify-benchmark-grid.selftest.mjs (7/7); gated by cross-plane-benchmark-grid. Live: VI Analyzer (host + scratch VM) resultHash 0419a449; Mass Compile icon-editor resource/ resultHash bf722123 agrees across the OS axis -- host + lba-golden VM (Linux) + win-VITLT-SERGIO (Windows LabVIEW 2026), 3/3 planes; compile 39s host / 24s VM / 211s Windows.
LBA-REQ-051 The system shall build the ni/labview-icon-editor Editor Packed Library inside the NI LabVIEW container as a benchmark, so a fail-closed gate proves the committed build result is correctly derived and cross-plane comparable. The operator-directed 2-actor icon-editor grid reproduces the project's real CI (one actor builds the PPL, one runs the LUnit tests); the builder is the icon-editor's own Editor Packed Library build spec, which native LabVIEWCLI ExecuteBuildSpec runs in the NI LabVIEW container (nationalinstruments/labview:2026q1-linux) where LabVIEW is licensed + headless -- no g-cli required for the build. LabVIEWCLI -OperationName ExecuteBuildSpec builds the Editor Packed Library from lv_icon_editor.lvproj -> lv_icon.lvlibp; pplBuildBenchmark.mjs records the machine-independent build identity + build time; validatePplReceipt fails closed unless the resultHash re-derives, the verdict matches, and the digest is intact. Run node experiments/ppl-build/verify-ppl-build-benchmark.selftest.mjs (7/7); gated by ppl-build-benchmark. Live: the NI container built lv_icon.lvlibp (2.9 MB) from icon-editor @9545c48 in 59s, succeeded.

Generated from docs/requirements/srs.md on develop. Edit the source in the repository, not this page.

Clone this wiki locally