Skip to content

Test Plan Part 4

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

labview-benchmark-actor — Test Plan (part 4 of 8)

ID Requirement Level Approach
T-048 LBA-REQ-048 Deterministic (offline) + live benchmark evidence Assert the golden-VM Mass Compile benchmark (ADR-0023 Phase 1; replaces the deferred VI Analyzer benchmark): validateMassCompileReceipt confirms the committed REAL receipts for the pinned ni/labview-icon-editor resource/ source (307 VIs/CTLs, 0 bad, operation succeeded) re-derive the same machine-independent resultHash across four planes while timing remains substrate-specific. The disposable Ubuntu 24.04 scratch-VM clone reproduced the consensus in 60s LabVIEW time / 60,582ms CLI wall time. The checker FAILS CLOSED on a tampered resultHash, a forged verdict, a bad-VI list inconsistent with its count, or a tampered digest. Self-test 8/8 gated by mass-compile-benchmark in verify-local-gates.
T-049 LBA-REQ-049 Deterministic (offline) static verification Assert the golden-VM provisioner is headless-LabVIEW ready (ADR-0023 Phase 1, the one-command First Win): validateReadinessReceipt re-derives the required checks from the ACTUAL cleanroom/ubuntu-labview/provision-guest.sh text and confirms the committed receipt records all of them present and ready -- Xvfb install, VI Server (:3363) config in BOTH labview.conf and labviewcommunity.conf, quoted access lists, and the post-install reboot; the checker FAILS CLOSED if the provisioner drops any step, a ready verdict is forged, or the digest is tampered. Self-test 7/7 gated by provisioner-headless-readiness in verify-local-gates.
T-050 LBA-REQ-050 Deterministic (offline) + live cross-plane evidence Assert the cross-plane benchmark grid (ADR-0031; roadmap Phase 4): validateBenchmarkGrid confirms the grid derived from committed per-benchmark receipts records each benchmark's identity agreement across planes and is OK. Mass Compile of the icon-editor resource/ source agrees on resultHash bf722123 across host, lba-golden, disposable Ubuntu scratch VM, and win-VITLT-SERGIO (4/4), with 39s/24s/60s/211s compile time as the substrate-specific performance metric. The committed docs/benchmarks/benchmark-grid.md is current; the checker FAILS CLOSED on a determinism violation, forged agreement/verdict, or tampered digest. Self-test 7/7 gated by cross-plane-benchmark-grid in verify-local-gates.
T-051 LBA-REQ-051 Deterministic (offline) + live build evidence Assert the icon-editor Packed Library build benchmark -- the builder actor of the 2-actor icon-editor grid (ADR-0033): validatePplReceipt confirms the committed REAL receipt (LabVIEWCLI ExecuteBuildSpec of the "Editor Packed Library" spec of lv_icon_editor.lvproj in the NI LabVIEW container nationalinstruments/labview:2026q1-linux -> lv_icon.lvlibp, 2.9 MB, 59s) re-derives its machine-independent resultHash (project + target + build spec + generated artifact + success) and verdict, and the digest is intact; the checker FAILS CLOSED on a tampered resultHash, a forged verdict, a build that produced no packed library, or a tampered digest. Self-test 7/7 gated by ppl-build-benchmark in verify-local-gates.
T-052 LBA-REQ-052 Deterministic (offline) + live build/round-trip evidence Assert the g-cli launcher proof -- the tester-actor enabler of the 2-actor icon-editor grid (ADR-0033): validateGcliReceipt confirms the committed REAL receipt (the rust-proxy crate G-CLI/G-CLI @662f75a built with cargo build --release -> g-cli 3.0.1, then a full host round-trip: g-cli launched Echo Parameters.vi on LabVIEW 2026, which echoed hello/from/host over TCP and exited 0) re-derives its machine-independent resultHash (tool + version + source commit + operation + args in + echoed text + exit code + LabVIEW version/bitness) and verdict, the echo matches the args sent, and the digest is intact; the checker FAILS CLOSED on a tampered resultHash, a forged verdict over a failed round-trip, an echo that does not match the args sent, or a tampered digest. Self-test 7/7 gated by g-cli-proxy-proof in verify-local-gates.
T-053 LBA-REQ-053 Deterministic (offline) + live test-run evidence Assert the icon-editor LUnit test benchmark -- the tester actor of the 2-actor icon-editor grid (ADR-0033): validateLunitReceipt confirms the committed REAL receipt (the Rust-built g-cli ran g-cli lunit -- -r <report> lv_icon_editor.lvproj on lba-golden, LUnit from icon-editor-developer.vipc, 4 classes / 25 cases: 10 passed, 2 failed, 8 errored headless, 5 setup) re-derives its machine-independent resultHash (the sorted class/case inventory + suite structure + total) and verdict, the inventory length matches the total, and the digest is intact; the checker FAILS CLOSED on a tampered resultHash, a forged verdict over an empty run, an inventory that disagrees with the total, or a tampered digest. Self-test 7/7 gated by lunit-test-benchmark in verify-local-gates.
T-054 LBA-REQ-054 Deterministic (offline, derived) Assert the Benchmark Observatory -- the suite-wide map above the cross-plane grid (ADR-0034): validateObservatory confirms the observatory DERIVED from every committed benchmark receipt (including Mass Compile host/golden/scratch-VM/win) re-derives its coverage matrix, determinism ledger, frontier, and verdict, and that the committed docs/benchmarks/benchmark-observatory.md is current. The new scratch-VM Mass Compile fills the eighth of twenty cells and reduces the frontier to twelve. The checker FAILS CLOSED on a determinism violation, contradictory coverage matrix, forged verdict, or tampered digest. Self-test 8/8 gated by benchmark-observatory in verify-local-gates.
T-055 LBA-REQ-055 Deterministic (offline) + live evidence Assert the Handoff Beacon lifecycle and native capture producer. captureStatus derives wrote-to-disk, peak frame/disk, and capturing/stopped/failed states and fails closed on malformed payloads. Windows uses gdigrab; Ubuntu Xorg uses x11grab; Ubuntu Wayland uses a persistent GJS client for GNOME Shell's visible-desktop recorder, launches LabVIEW in the inherited operator session, then Stop finalizes and extracts 12-FPS PNG evidence. Linux records CPU/RAM plus /proc/diskstats samples and labels the source ffmpeg-x11grab or gnome-shell-screencast. Tests fail if Wayland starts hidden Xvfb, moves LabVIEW off the inherited session, or omits recorder finalization. Live Ubuntu review must interact with visible LabVIEW, stop, and prove non-blank transition frames plus resource samples before rendering a verdict.
T-056 LBA-REQ-056 Deterministic (offline) + live evidence Assert the Handoff Beacon agent->human request payloads (ADR-0036): buildAgentRequest/buildOpDone derive the agent-request@1/op-done@1 beacons; validateAgentRequest/validateOpDone FAIL CLOSED on a wrong schema, an empty id/title, or an unknown outcome; selectPendingRequest returns the newest UNANSWERED request (deterministic) so an answered ask is never re-surfaced. Self-test 5/5 gated by handoff-request in verify-local-gates (+ an inline round-trip: two requests -> the newest-pending selector -> the human's op-done -> the next pending). The extension watches handoff/requests/ + surfaces the ask as a notification with "Mark step done" (optional note) / "Skip", both palette commands (markStepDone/skipStep), writing handoff/done/<id>.json; reviewer-workstation/request-step.sh drops the request + polls the answer ONCE. Live evidence: the agent asked the human in the reviewer VM and resumed on the op-done beacon.
T-057 LBA-REQ-057 Deterministic (offline) + live evidence Assert the reviewer VISUAL VERDICT (ADR-0037): buildReviewerVerdict/validateReviewerVerdict derive the candidate-bound reviewer-verdict@1; signReviewerVerdict binds it to an acg-human-signoff-v1 whose station must equal the verdict's station. The extension disables Codespaces verdict minting until independent identity import exists. stage-ubuntu-vsix.mjs rejects unresolved Code wrappers and requires the actual product executable stopped; binds checkout/target/KPI/gate/correspondence/VirtualBox identity; verifies exact lbabus version/selfcheck/capabilities; rehashes a private staged VSIX immediately before installation; then installs and stages the marker. After Code starts, verdict rendering requires active-version equality and current VM identity.
T-058 LBA-REQ-058 Deterministic (offline) + live evidence Assert the reviewer verdict BUS ANNOUNCEMENT (ADR-0038): buildVerdictBusPost derives the semantic lbabus post from a signed verdict record -- pass->RESOLVED / changes->REFINE / fail->BLOCKED, task = <component>-release-<version>, ref = the candidate commit, priority; a malformed record FAILS SAFE to BLOCKED. Self-test 7/7 gated by handoff-verdict. The extension busPostArgs + postVerdictToBus (best-effort) + the reviewer-workstation/post-verdict.mjs poster are unit-covered (the FULL signed verdict JSON is the --message-file body). Live evidence: the ext 0.5.0 PASS verdict posted to the lbabus bus as a RESOLVED message on the extension-release-0.5.0 task.
T-059 LBA-REQ-059 Deterministic (offline) + live evidence Assert the host<->VM-agent CLOSED LOOP over lbabus net TCP (ADR-0039): await-agent-reply.mjs's parseLine correlates the VM agent's reply by --type + --task and FAILS CLOSED on a mismatch/timeout (pure self-test 7/7); the committed closed-loop-readback-receipt.json records the loopback proof (a matching task closes the loop, a wrong task fails closed, the RESOLVED verdict type rides net) + the 3 live drives from the reviewer VM (senderId WIN); and tools/collab-cli/Net.cs BusWire.Types carries RESOLVED/REFINE/BLOCKED (option A). Self-test 7/7 gated by closed-loop-readback in verify-local-gates. Live evidence: 3 drives -- closed loop (lbabus ready on VM), release-with-review (ext 0.5.0 launch-to-ready 2604 ms/5 samples -> PASS via lba-benchmark-summary), and the signed verdict announced as a RESOLVED: PASS message on the extension-release-0.5.0 task -- all over TCP, no GitHub Discussion.
T-060 LBA-REQ-060 Deterministic (offline) Assert the LIVE-ONLY net coordination read side (ADR-0040): net listen --log appends received frames to a per-actor JSONL receive-log and net poll reads + filters it by --type/--task (mirroring the Discussion poll over TCP), failing closed with no --log/COLLAB_NET_LOG; the send side is the existing net send. Gated by net-coordination-log in verify-local-gates (the committed net-coordination-log-receipt.json loopback receipt: a NOTE + a RESOLVED post -> the receive-log -> net poll round-trips, --type filtering isolates each, and net poll with no log FAILS CLOSED) + a Net.cs source assertion (dispatch routes poll->CmdPoll, which reads --log). No github.com dependency.
T-061 LBA-REQ-061 Deterministic (offline) Assert the extension's coordination-bus TRANSPORT SELECTION (ADR-0041): busSendArgs builds the lbabus net send argv (net send [--hosts <peers>] --type <T> --task <task> --message-file <verdict>, omitting --hosts when no peer is configured); busConfig reads busTransport (discussion default
T-062 LBA-REQ-062 Deterministic (offline) Assert the MCP coordination tools' TRANSPORT SELECTION (ADR-0042): busEnvFromConfig maps the extension's busTransport/busNetHosts/busNetLog to the COLLAB_TRANSPORT/COLLAB_NET_HOSTS/COLLAB_NET_LOG env (empty -> Discussion default), and pollBusArgs/postNoteArgs route poll_coordination_bus->net poll --log + post_coordination_note->net send --hosts under net. Unit-covered in test/mcp-server.mjs (busEnvFromConfig net + Discussion cases; the provider yields a definition whose env comes from config; the transport-agnostic stdio poll/post tools stay soft-isError off-PATH). Gated by mcp-net-transport in verify-local-gates (a src/mcp source assertion of the switch + the env-passing provider). Tool schemas + the MCP tool doc unchanged.
T-063 LBA-REQ-063 Deterministic (offline) Assert post-verdict.mjs's TRANSPORT SELECTION (ADR-0043): with a signed verdict record, node post-verdict.mjs --verdict <r> --print-args emits the Discussion post --type RESOLVED --task extension-release-0.5.0 --priority ... --message-file argv by default, and under COLLAB_TRANSPORT=net + COLLAB_NET_HOSTS=10.0.2.2 emits net send --hosts 10.0.2.2 --type RESOLVED --task extension-release-0.5.0 --message-file (no --priority). Gated by post-verdict-net-transport in verify-local-gates (builds a signed verdict, runs --print-args under both transports, asserts the argv). The release CI (which calls --print-args) is unchanged at the Discussion default.
T-066 LBA-REQ-066 Deterministic (offline) Assert the coordination product surface is net-only (ADR-0046): the extension, MCP provider/server, and reviewer verdict poster build only lbabus net poll / net send arguments; no busTransport setting, COLLAB_TRANSPORT, Discussion post/poll argv, priority, or ref branch remains. The graceful --skip-if-no-peer / no-log behavior is preserved. Covered by test/extension-activation.mjs, test/mcp-server.mjs, and gates bus-transport-select, mcp-net-transport, post-verdict-net-transport, and net-default-graceful in verify-local-gates.

Generated from docs/testing/test-plan.md on develop. Edit the source in the repository, not this page.

Clone this wiki locally