Repository navigation
Test Plan Part 7
| ID | Requirement | Level | Approach |
|---|---|---|---|
| T-097 | LBA-REQ-097 | Deterministic (offline) + local continuous integration | Assert experiment-governance/KPI bundle 1.0.1; derive active governance from RTM paths and require explicit owner/requirement/lifecycle/production-boundary overrides for every remainder. Reject unclassified/prohibited references and unresolved replacements. Full local KPI requires a clean worktree and retains exact source commit, VSIX hash/size, coverage counters, local-gate counters, correspondence counters, and duplicate package equality before verdict. Covered by test/experiment-governance.mjs, test/local-kpi-core.mjs, test/branch-coverage.mjs, and experiment-lifecycle-local-kpi. |
| T-098 | LBA-REQ-098 | Deterministic (offline) | Assert the signed autonomous actor protocol (ADR-0081): an enrolled requester may issue one short-lived, nonce-bound, plane-targeted, allowlisted workload request naming the exact candidate commit/tree/bundle SHA-256; the actor returns an enrolled signature over a response bound to that request digest. autonomousActorProtocol.selftest.mjs proves authorized request, success, and BUSY paths while rejecting expiry, replay, an unallowlisted workload, request/response mutation, un-enrolled requesters, request rebinding, or an unbounded failure. Gated by mesh-autonomous-actor-protocol. |
| T-099 | LBA-REQ-099 | Deterministic (offline) + live Windows | Assert the persistent lbabus autonomous actor service (ADR-0082): the service/daemon tests prove exact candidate matching, durable replay state, BUSY behavior, interrupted recovery, bounded output, strict CLAIM binding, cursor/send retry, local keys, and listener lifecycle. autonomousActorPowerShell.selftest.mjs proves PowerShell canonical JSON/SHA-256 parity with attest.mjs and statically excludes Node from the Windows guest path; the Windows provisioner requires native Desktop PowerShell 5, guest-local Ed25519, Startup persistence, and a narrow inbound firewall rule. Live reviewer evidence proves reboot persistence and an enrolled controller-signed request returning fixed LabVIEW result 3 in an actor-signed response accepted by validateActorResponse. lba actor-service-check runs all 31 cases; gated by mesh-autonomous-actor-service. |
| T-100 | LBA-REQ-100 | Deterministic (offline) + live-evidence compatible | Assert the fail-closed autonomous N>=3 controller decision (ADR-0083): buildAutonomousN3Dispatch requires distinct LINUX+WIN actors and emits one signed actor-specific request per roster entry; decideAutonomousN3 revalidates requester and actor signatures, request/task/plane/candidate binding, exact response cardinality, SUCCESS, and the fixed observed=expected=3 PASS result before consume:true. The 10-case selftest admits a complete signed N=3 set and rejects missing, duplicate, unknown-task, malformed/candidate-drifted, tampered, signed-wrong-answer, and requester-tampered sets. lba actor-n3-decide applies the reducer to explicit local inputs; gated by mesh-autonomous-n3-controller. |
| T-101 | LBA-REQ-101 | Deterministic (offline, host-free) | Assert the active-capture MCP resource surface using temporary Global Storage fixtures: pathless opaque session discovery for each lifecycle state; monotonic frame/sample cursors and bounded batches; explicit resource reads only for structurally complete, CRC-valid, size-bounded, SHA-256-verified PNGs; deterministic file replacement/growth refusal with capped reads; path traversal/symlink/oversize/malformed/partial/stale/gapped evidence refusal; no capture lifecycle mutation; and a spawned stdio MCP resource/list/read round-trip. Gated in npm test. |
| T-065 | LBA-REQ-065 | Deterministic (offline) | Assert the coordination default is net with a graceful no-op when unconfigured (ADR-0045): package.json labviewBenchmarkActor.busTransport defaults to net (Discussion is the legacy opt-out), the extension/MCP provider+stdio/post-verdict default to net, and the CLI degrades gracefully -- Net.cs exits 0 with a hint for net poll with no receive-log (softened from fail-closed) and for net send --skip-if-no-peer with no peer (no dead loopback); the extension routes the send side via --skip-if-no-peer when no host is set. Covered by npm test (extension activation + busSendArgs no-peer omits --hosts; MCP busEnvFromConfig net default) + the net-coordination-log receipt (pollWithoutLogGraceful). Gated by net-default-graceful (Net.cs graceful branches + net default in package.json/extension) + bus-transport-select (default === 'net') in verify-local-gates. |
| T-064 | LBA-REQ-064 | Deterministic (offline) | Assert the release publish workflow carries NO GitHub-Discussion verdict announce (ADR-0044): .github/workflows/extension-release.yml has no dotnet run ... LbaBus.csproj and no Announce the reviewer verdict on the coordination bus step, documents the COMMITTED signed verdict as the durable record (LBA-REQ-064), and RETAINS the Stage the signed reviewer verdict for keyless counter-sign step. Gated by release-no-discussion-announce in verify-local-gates. The verdict is still announced off-CI by the extension + post-verdict.mjs over net (LBA-REQ-061/063); this removes the last GitHub-Discussion dependency from the publish pipeline. |
| T-028 | LBA-REQ-028 | Deterministic (offline) + live loopback evidence | Assert a witness verdict beacons as a valid bus-msg@1 NOTE (task acg-verdict, carrying the small verdict + bundle digest, comms-only), survives the real 4-byte length-prefixed wire round-trip (encodeFrame/createFrameDecoder), and FAILS CLOSED on a wrong schema/task or a missing witness/digest/verdict; the MeshLedger dedups by witness (highest seq wins, stale rejected) with a tamper-evident ledgerHash; and quorumFromLedger resolves each beaconed witness to its bundle by digest (fail-closed on missing/mismatch) then runs the quorum. Self-test 8/8 gated by acg-mesh-verdict-beacon. Live loopback evidence: the real {codespace, host} verdicts beaconed over bus-msg@1 127.0.0.1 TCP -> ledger -> quorum pass (0.917), committed as mesh-loopback-receipt.json and re-derived tamper-evidently by acg-mesh-loopback-evidence. |
| T-029 | LBA-REQ-029 | Deterministic (offline) | Assert the ACG MCP surface (grid-tools.mjs) exposes the grid operations over the JSON-RPC 2.0 MCP contract: initialize returns the protocol + serverInfo, tools/list publishes the ADR-0020 tools (spin_up_witness/run_quorum/get_confidence/verify_attestation/teardown/verify_inclusion/verify_before_install), and tools/call composes the engines (run_quorum corroborates; get_confidence returns the graded confidence; verify_inclusion + verify_before_install verify transparency-log inclusion per ADR-0022 and fail closed on a mismatch/sub-quorum; spin_up_witness/teardown return provisioning plans), failing closed on an unknown tool (-32602) with tool-execution failures riding isError in the result envelope. Also spawn server.mjs and assert a real stdin/stdout JSON-RPC round-trip. Self-test 13/13 gated by acg-mcp-grid-surface in verify-local-gates. |
| T-027 | LBA-REQ-027 | Deterministic (offline) | Assert the human sign-off gate (sign-off.mjs) records an Ed25519 sign-off (from either reviewer station, WINDOWS_VM or LINUX_CODESPACE) over the exact machine-quorum verdict, and that gateReleasePublish allows publish ONLY when the machine quorum passes AND >= minReviewers distinct enrolled reviewers have a verified approve sign-off -- BLOCKING on a missing sign-off, an un-enrolled reviewer, a reject decision, a failing quorum (the sign-off does not substitute for it), a replayed sign-off over another verdict, a tampered signature, or an unknown station; multi-reviewer-ready. Self-test 10/10 gated by acg-reviewer-sign-off. Live evidence: the real corroborated {codespace, host} release is BLOCKED pending human sign-off (publish:false, quorumPass:true), re-derived by acg-reviewer-release-decision. |
| T-023 | LBA-REQ-023 | Deterministic (offline) | Assert the Actor Corroboration Grid end-to-end gate (grid.mjs runGrid) composes every sub-engine into one release decision: a release is machine-corroborated ONLY when independence (distinct enrolled environments) AND the quorum (majority over the anchors) AND the attestation (verify-before-consume) AND the mesh (beacon->ledger->quorum) all pass, and RELEASED only when a recorded human sign-off also accompanies the verdict -- failing closed on an N-of-a-kind set, a sub-majority quorum, a tampered attestation, or a missing sign-off. Self-test 6/6 gated by acg-grid-e2e. Live evidence: the real {codespace, host} grid corroborates through every machine stage (machineCorroborated:true) and is held only at the human gate (released:false), re-derived by acg-grid-run-live. |
| T-102 | LBA-REQ-102 | Host-free + Windows live proof | Verify standalone desktop command registration, bounded interval validation, no LabVIEW lookup/launch, truthful desktop-capture metadata, and unchanged 12-fps LabVIEW capture. Exercise pathless desktop lifecycle/resources with temporary fixtures. Actual Windows desktop recording and model interaction require separately retained private live evidence. |
| T-103 | LBA-REQ-103 | Deterministic (offline) + publish verification | Run the wiki-vault gate (node experiments/verify-local-gates.mjs), which runs python3 .repo-standards-review/wiki_generate.py: assert no generator problem and one page per RTM requirement and per test-plan item, each requirement page linking its RTM test; generate twice (--out, then --check from a second process) and assert no difference; assert .obsidian/app.json and the open-in-Obsidian how-to on Home; assert that the generated wiki has no aliased `[[a |
| T-104 | LBA-REQ-104 | Deterministic (offline) | Run node test/wiki-submission.mjs: offline fixtures with a fake network accept a valid submission and reject a bad schema, an unlisted owner or author (before any fetch), an oversize body, file or total, a tampered hash, duplicate keys, excessive depth, path traversal, a symlink, a missing canonical evidence file, a test id unknown to upstream, and a result, commit or platform that disagrees with the evidence; and an unset, empty or garbage allow-list rejects all, every authorization failure gives the same output, and a canary login never appears in any output or in the tree. |
- The cursor and picture-panel behavior is verified in a real browser
(headless is acceptable) over a synthetic run result, mirroring the parent
repo's preview-viewer harness practice — assert cursor tracking, keyboard
paging, synchronized picture updates, and the no-frame state, not just
Node-level logic.
[Assumption]browser harness stays out of hosted CI (it ships as a maintainer harness), consistent withvi-history-suite.
Test coverage is measured with c8 (V8 coverage) and enforced by the PR Coverage Gate
(.github/workflows/coverage.yml, status context PR Coverage Gate / coverage): npm run test:coverage
runs the suite under c8, emits a Cobertura coverage/cobertura-coverage.xml (the retained coverage
artifact), and FAILS below the line-coverage threshold (fail-under). The thresholds are parametrized in
coverage-thresholds.json (the single knob) and RATCHET upward gradually -- npm run coverage:bump raises
each floor toward the measured coverage by at most step, capped at target, and never lowers a floor.
Adoption floors: lines/statements 70%, functions 58%, branches 45% (measured 73/73/62/49%). Gated locally by
coverage-artifact-meets-floor in verify-local-gates.
Local CI/CD is testing for this package: the retained experiment receipts
and the RTM Proven evidence are re-validated by a real, re-runnable pass/fail
gate rather than trusted as static files.
-
Gate:
node experiments/verify-local-gates.mjs(dependency-free ESM). It asserts the bus-prototype receipt is green (12/12), the OCR-primitive engine is available with byte-exact readback, the shared retained inputs (ground-truth-ledger.json,surface-metadata.json) are present, every RTMProvenrow cites an existing evidence path, and the CPU/RAM/disk resource-usage correlation receipt is green (LBA-REQ-011). Exit code is non-zero on any failure. -
Cross-platform by design. The seeded workflow
.github/workflows/lba-local-gates.ymlruns the gate on both alinux-nativeand awindows-nativerunner. That parity is the near-term horizon — linux-native mirroring the same mprr ring-buffer read/replay capability windows-native has (best effort). The ring-buffer read/replay path is already cross-platform (the mprrReviewCaptureTransportReadertargetsnet8.0plain, build-proven on windows-native); only surface render and theWindows.Media.Ocrimage-derived-timing production remain windows-bound. - The workflow is dormant while the package is a subtree and activates at
the standalone repository root (LBA-REQ-008,
docs/cm/cm-plan.mdmove step 2).
Generated from docs/testing/test-plan.md on develop. Edit the source in the repository, not this page.