Skip to content

Test Plan Part 2

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

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

ID Requirement Level Approach
T-001 LBA-REQ-001 Build/package Package the .vsix; assert no vi-history-suite-private module on the dependency graph; verify the moved-module manifest matches the packaged surface.
T-002 LBA-REQ-002 Deployment Install the same artifact on a Codespace and a Vagrant golden VM; assert activation first-run signal on both; assert prerequisite checks fire with remediation when a prerequisite is absent.
T-003 LBA-REQ-003 Unit + integration Validate a run result against its schema; assert metrics and pictures share one run clock; assert reproducibility within the documented variance bound.
T-004 LBA-REQ-004 Unit (viewer logic) + browser Pointer and keyboard drag map to a selected time within bounds; Home/End jump to run start/end; selected time updates continuously; no out-of-range selection.
T-005 LBA-REQ-005 Unit (indexing) + browser Nearest-at-or-before rule resolves the correct picture index; moving the cursor updates the picture in lockstep; the "no frame at this time" state renders when appropriate.
T-006 LBA-REQ-006 Deployment Spawn N VMs from the declarative topology; assert each activates with a unique identity and publishes results; assert clean teardown leaves no orphaned listeners/locks.
T-007 LBA-REQ-007 Integration TCP delivers ordered claim/handoff/ack/done; UDP presence beacons flow; a dropped UDP beacon does not corrupt TCP-ordered state; a dropped TCP peer is detected; a late joiner reconstructs session state; no path touches github.com at run time; assert the bus carries inter-actor communication only — no run data, run/frame metadata, or images.
T-008 LBA-REQ-008 Static / CM Assert README.md and docs/cm/cm-plan.md name repo-standards-review v0.15.0 (commit 3d4a10f1); assert the docs/ lane layout matches the standards runner; assert requirement IDs are unchanged after a simulated move.
T-009 LBA-REQ-009 Integration Assert captured pictures are written to the VM-local mprr long-packet ring buffer and their index/timestamp to the short-packet stream (per mprr ADR-0024); assert the run-result frame ref resolves against the local mprr review-capture store; assert nothing from the ring buffer crosses the bus (the bus is inter-actor comms only).
T-010 LBA-REQ-010 Integration + static Assert the viewer operates over the actor's own local run history (no cross-VM read, no run data on the bus); assert completed runs are concentrated to the operator's host by an explicit out-of-band step (not the bus); assert the host-side ollama comparison layer consumes the concentrated corpus.
T-011 LBA-REQ-011 Unit (deterministic logic) Build the correlation over a synthetic CPU/RAM/disk series with a pre/post trigger; assert each sample maps to the correct frame index (null before frame zero), the trigger resolves to a frame index, samples split pre/post correctly, and each metric's pre/post window (count/mean/min/max) and post-minus-pre delta are correct; assert null counters are skipped and invalid input fails closed.
T-012 LBA-REQ-012 Deterministic (embed round-trip) Assert lbabus agents emits the version-pinned base instructions embedded in the binary and that agents --out/--check round-trip (embedded == source, exit 0); assert a tampered copy is detected as drift (exit 3). Gated on every release by the ci-agents harness stage; the reqs-coverage check (experiments/reqs-coverage/verify-reqs-coverage.mjs) enforces that this row's cited evidence resolves.
T-013 LBA-REQ-013 Retired (superseded) RETIRED under ADR-0048: the priority + addressing envelope (post --priority, poll/wait --to-me/--min-priority, the CollabMessage/Priority model + the fixture-priority mock cases) was removed with the GitHub-Discussion transport (ADR-0047). The live-only net bus carries no priority/addressing, so there is nothing to assert; LBA-REQ-013 is superseded, not tested.
T-014 LBA-REQ-014 Deterministic (fixture) + maintainer (cross-plane) Assert the mprr short-ring core is deterministic and has teeth (verify-mprr-ring 9/9: ring write/wrap/zero-copy-view, overwrite fail-closed, blockId + boundary-variation, admission fail-closed, deterministic authoritative ingest, jittered non-authoritative, non-monotonic rejection, viewer-series projection determinism). Assert the store pairs two planes' runs of a shared benchmarkId and reports numeric deltas + a digests section where the deterministic seriesHash matches (match:true) and the per-plane screenshot pngSha256 is a witness (match:false), failing closed on a single-plane compare (verify-benchmark-store 6/6). Gated by local gates #27 (benchmark-store-receipt-green, asserts the seriesHash matches cross-plane) and #28 (mprr-short-ring-model-green). Maintainer cross-plane evidence: each plane runs node playwright/screenshot.mjs + node experiments/benchmark-store/register-mprr-run.mjs; PROVEN 2026-07-31 — a real WIN Node run (win32/x64, Node v22.15.0) independently produced the identical deterministic seriesHash and cross-plane-comparison-proven-green gates the cross-plane match + zero metric deltas. The synthetic identical-to-LINUX WIN pngSha256 placeholder was removed; the per-plane WIN screenshot visual witness is a pending maintainer step (browser, non-CI).
T-015 LBA-REQ-015 Deterministic (fixture) + maintainer (real report) Assert summarizeViAnalyzerReport is deterministic + ORDER-INDEPENDENT (verify-vi-analyzer-result 6/6: counts + verdict, order-independent resultHash, all-pass, resultHash-tracks-content, benchmark-metrics projection, rejects invalid result + duplicate viPath). Gated by local gate #30 (vi-analyzer-result-model-green). The Windows clean room installs the toolkit (cleanroom/docker-windows/install-vi-analyzer.ps1, PR #72). Maintainer real-report evidence: a plane runs LabVIEWCLI RunVIAnalyzer, the report is summarized, and the resultHash compared cross-plane; Proven when a real report is summarized on both planes and the resultHash matches.
T-016 LBA-REQ-016 Static / CM Assert docs/cm/cm-plan.md states the GitFlow feature/release/hotfix branch rules (feature from and back into develop; release from develop, merged to main and develop, then deleted; hotfix from main, merged to main and develop), the merge method by branch type (squash for feature; --no-ff merge commit for release/hotfix back-merges), SemVer tags on main, and coverage retained on the tagged release path; assert docs/architecture/adr/ADR-0010-gitflow-branch-governance.md records the decision. Mirrors the authoritative repo-standards-review CM gate (all 9 GitFlow signals + SemVer + coverage-on-release), which reports cm PASS. Gated by gitflow-branch-governance-documented in verify-local-gates.
T-017 LBA-REQ-017 Deterministic (offline) Assert the committed dep-manifest.json passes the verifier, and that the verifier FAILS CLOSED on each defect class (bad schema, malformed SHA, unknown plane, missing python bitness, bad pinStatus, resolved-but-empty version), while allowing tbd-* pins to omit their concrete value. Gated in verify-local-gates.
T-018 LBA-REQ-018 Deterministic (offline, mock adapter) Assert the delegation harness end-to-end via the mock provider (no GPU / no network): lba-uplift-task@v1 validation accepts a good task and rejects bad schema/domain; the provider seam returns the {provider,model,text,ms,ok} contract; the acceptance gate passes a good draft and FAILS a weak one; the receipt matches lba-uplift-delegation-receipt@v1; the registry routes a CLAIM only to a live capability-matched worker; the worker pool bounds concurrency; and each uplift domain (coverage-lift, evidence, risky-test, vipm-gate, vipm-routing) gates fail-closed. Gated in verify-local-gates.
T-019 LBA-REQ-019 Deterministic (offline, host-free) Assert the MCP surface across three legs (no real VS Code, no display, no live lbabus): the pure JSON-RPC handler answers initialize / tools/list / tools/call and returns -32601 / -32602 for an unknown method / tool; activate() registers the MCP provider under the SAME id the manifest contributes; and the spawned stdio entry round-trips initialize + tools/list + tools/call (deterministic get_benchmark_series) over newline-delimited JSON-RPC. The bundled scripts/mcpToolDoc.mjs --check keeps docs/mcp-tools.md in sync. Gated in npm test.
T-020 LBA-REQ-020 Deterministic (offline) Assert the release gate clears a <component, version> only when BOTH required planes record agreed:true, and FAILS CLOSED on a missing / withheld / unparseable sign-off (exit 1) or a usage error (exit 2); covers the bare-SemVer + tagged-form (collab-cli-vX.Y.Z / ext-vX.Y.Z) normalization and the --component selector. Wired before the publish job in extension-release.yml.
T-021 LBA-REQ-021 Deterministic (offline) Assert the correspondence engine FAILS CLOSED (exit 1) when a governed test file (test/*.mjs, experiments/**/verify-*.mjs, *.selftest.mjs, *.playwright.{mjs,cjs}, playwright/*.mjs, tools/**/verify-*) is absent from every RTM CodeRef (rule TR-1), and PASSES when all correspond; AD-1 (every ADR traces to a requirement and is registered in overview.md) and VW-1 (every requirement described by an architecture view) also FAIL CLOSED on a broken correspondence. Gated in verify-local-gates.
T-022 LBA-REQ-022 Deterministic (offline) Assert the generator DERIVES the traceability matrix from the canonical sources (SRS ids/titles, RTM status/TestID/CodeRef, overview.md addressing view, ADR index "Traces to") and that --check FAILS CLOSED (exit 1) when docs/requirements/traceability-matrix.md drifts from the sources, and PASSES when current. Gated by traceability-matrix-current in verify-local-gates.
T-024 LBA-REQ-024 Deterministic (offline) Assert the corroboration quorum compare (compare-witnesses.mjs) computes the tiered-anchor graded confidence and PASSES only on a >=majority concurrence over the OS-independent anchors with a distinct-environment (non-N-of-a-kind) witness set and a consensus gate verdict of pass; FAILS CLOSED on a sub-majority OS-independent divergence, an N-of-a-kind set, or a non-pass verdict; tolerates one Linux-only (pngSha256) divergence by majority; a single-witness input yields an error. Self-test 7/7, gated by acg-quorum-compare-witnesses in verify-local-gates. Also assert the witness-bundle assembler (assemble-witness.mjs) maps a witness's gate/render/capability receipts into the canonical quorum bundle, FAILS CLOSED on any missing release-gating anchor (verdict/version/sourceCommit/seriesHash/pngSha256, or a Linux witness's Ubuntu codename), and that three assembled witnesses corroborate end to end through the quorum (self-test 9/9, gated by acg-quorum-assemble-witness). Also assert the committed real-grid evidence corroborates -- a noble codespace bundle + the host LINUX bundle (both lbabus 0.13.0 @ the same commit, byte-identical seriesHash+pngSha256) yield verdict=pass, re-derived tamper-evidently by acg-quorum-live-corroboration, tolerating only the graded Ubuntu-codename divergence.
T-025 LBA-REQ-025 Deterministic (offline) Assert the provenance/attestation engine (attest.mjs) signs a witness bundle into an Ed25519 enrolled-key attestation and VERIFIES it, FAILING CLOSED on a tampered bundle, an un-enrolled identity, a rogue key presented for an enrolled identity, or a corrupted signature; and that verify-before-consume BLOCKS a release unless every witness attestation verifies against the enrolled allowlist, the witnesses are distinct enrolled identities (non-N-of-a-kind), and the quorum re-computed over exactly the attested bundles passes. Self-test 10/10, gated by acg-provenance-attest in verify-local-gates. Also assert the live enrolled-key chain: the committed codespace + host attestations over their real bundles verify against the committed enrollment allowlist, yielding consume:true (distinct identities, re-computed quorum pass), re-derived tamper-evidently by acg-provenance-verify-before-consume.
T-026 LBA-REQ-026 Deterministic (offline) Assert the witness-independence engine (independence.mjs) counts a witness toward the quorum ONLY when its plane/os environment is enrolled, its identity is recorded in the provenance, and it does not duplicate an already-counted environment; a quorum is independent iff >= quorumMin distinct enrolled environments remain, else it is rejected (fail-closed). Covers distinct->independent, N-of-a-kind rejected, non-enrolled excluded, duplicate collapses, identity-less excluded, cross-OS independent, single-witness rejected, and assertIndependentQuorum throwing. Self-test 9/9 gated by acg-independence-quorum; the committed live {CODESPACE/linux, LINUX/linux} grid is independent with recorded identities, re-derived tamper-evidently by acg-independence-live.

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

Clone this wiki locally