Repository navigation
Software Requirements Specification Part 5
github-actions[bot] edited this page Nov 19, 2026
·
1 revision
| ID | Requirement | Rationale | Fit Criterion | Verification |
|---|---|---|---|---|
| LBA-REQ-052 | The system shall build the g-cli launcher from its Rust source and prove it on this host, so a fail-closed gate confirms the committed round-trip is correctly derived and cross-plane comparable. | The 2-actor icon-editor grid's TESTER actor drives LUnit via g-cli; on Linux g-cli ships no prebuilt binary -- its launcher is the rust-proxy crate (G-CLI/G-CLI) that opens a TCP server, launches LabVIEW on the target VI, and streams args/output/exit code back. Building it from source and proving a real LabVIEW round-trip is the enabler for that actor. |
cargo build --release builds the g-cli binary; gcliProxyBenchmark.mjs records the machine-independent proof identity (tool + version + source commit + operation + args in + echoed text + exit code + LabVIEW version/bitness); validateGcliReceipt fails closed unless the echo matches the args sent, the resultHash re-derives, the verdict matches, and the digest is intact. |
Run node experiments/g-cli-proxy/verify-g-cli-proxy-proof.selftest.mjs (7/7); gated by g-cli-proxy-proof. Live: g-cli 3.0.1 built from Rust in 6.7s, then drove host LabVIEW 2026 (headless) to echo hello/from/host and exit 0. |
| LBA-REQ-053 | The system shall run the ni/labview-icon-editor LUnit suite via g-cli as a benchmark, so a fail-closed gate proves the committed test inventory is correctly derived and cross-plane comparable. | This is the TESTER actor of the 2-actor icon-editor grid (companion to the builder, LBA-REQ-051): the Rust-built g-cli (LBA-REQ-052) runs the project's real unit tests, with the LUnit framework from the CORRECT icon-editor-developer.vipc (NOT the CI-runner runner_dependencies.vipc). |
g-cli --lv-ver 2026 --arch 64 lunit -- -r <report.xml> lv_icon_editor.lvproj discovers + runs the project's LUnit classes and emits a JUnit report; lunitTestBenchmark.mjs records the machine-independent test inventory (sorted class/case set + suite structure); validateLunitReceipt fails closed unless the inventory matches the total, the resultHash re-derives, the verdict matches, and the digest is intact. |
Run node experiments/lunit-test/verify-lunit-test-benchmark.selftest.mjs (7/7); gated by lunit-test-benchmark. Live: g-cli lunit ran the suite on lba-golden -- 4 classes / 25 cases (10 passed, 2 failed, 8 errored headless, 5 setup), well-formed report. |
| LBA-REQ-054 | The system shall assemble every committed benchmark receipt into a benchmark-type x plane coverage matrix (the Benchmark Observatory), so a fail-closed gate proves the suite-wide determinism ledger and coverage are correctly derived. | As the suite grows along its axes (benchmark type x plane x OS x hardware), one governed artifact must map what has been measured where, whether it reproduces, and what to measure next -- above the per-benchmark grid. |
benchmarkObservatory.mjs folds the VI Analyzer + Mass Compile + PPL build + LUnit test receipts into a coverage matrix + determinism ledger + frontier; validateObservatory fails closed on a determinism violation, a matrix that contradicts the receipts, a forged verdict, or a tampered digest; the generated docs/benchmarks/benchmark-observatory.md is drift-gated. |
Run node experiments/benchmark-observatory/verify-benchmark-observatory.selftest.mjs (8/8); gated by benchmark-observatory. Derived: 4 benchmark types x 5 planes, 2 cross-plane-proven, 0 violations, 13-cell frontier. |
| LBA-REQ-055 | The system shall emit a machine-readable capture-status beacon for each LabVIEW-launch capture (capturing -> stopped/failed), so a fail-closed gate proves the rich stop payload (wroteToDisk, peak write throughput + its frame, per-disk breakdown) is correctly derived and an agent can await a human-in-the-loop step. | The reviewer/agentic flow has human-in-the-loop steps (run a VI, then Stop the capture); without a signal the agent guesses or re-asks. A capture-status beacon makes the human's Stop an awaited, machine-observable event that also carries a pointer straight to the evidence. |
captureStatus.mjs derives the lifecycle beacon. The extension records the current Windows seat with ffmpeg gdigrab or the current Ubuntu Xorg seat with x11grab at 12 FPS; Ubuntu resolves the full desktop dimensions with xdpyinfo, requires DISPLAY, samples /proc CPU/RAM and disk throughput/utilization, and labels the record LINUX / ffmpeg-x11grab. |
Run the capture-status self-test plus node test/capture-platform.mjs; gated by handoff-capture-status and ubuntu-native-labview-capture. Live Ubuntu review must retain real full-size non-blank launch frames before verdict. |
| LBA-REQ-056 | The system shall surface an agent's request for a human step as an in-VM VS Code notification whose "Mark step done" / "Skip" actions emit a machine-readable op-done beacon, so a fail-closed gate proves the request/answer payloads are correctly derived and the agent can await a human-in-the-loop step it initiated. | The capture-status beacon (LBA-REQ-055) let the agent AWAIT a human step; the agent's own ASK ("run this VI", "activate LabVIEW") was invisible except via chat, so it re-asked. Making the ask a first-class, in-VM, machine-observable event (a reusable human-step barrier) lets the agent request a manual step and resume when the human answers. |
handoffRequest.mjs derives agent-request@1 + op-done@1 (validated fail-closed) + selectPendingRequest (newest unanswered); the extension watches handoff/requests/ and surfaces the ask as a notification with "Mark step done" (optional note) / "Skip" -- also palette commands -- writing handoff/done/<id>.json; reviewer-workstation/request-step.sh drops the request + polls the answer ONCE. |
Run node experiments/handoff-beacon/handoffRequest.selftest.mjs (5/5); gated by handoff-request. Live: the agent asked the human in the reviewer VM + resumed on the op-done beacon. |
| LBA-REQ-057 | The system shall emit a signed reviewer visual verdict (reviewer-verdict@1 mapping to acg-human-signoff-v1) for an extension release candidate, so a fail-closed gate proves the human's PASS/FAIL of the built candidate is Ed25519-signed by an enrolled reviewer and gates the release alongside the plane agreement. |
The reviewer VM exists for the human's VISUAL PASS/FAIL of a candidate; that verdict was informal (chat / a hand-edited signoff). Making it a signed, candidate-bound artifact turns the human gate into a governed, verifiable release input, signable IN the actual Windows or Ubuntu reviewer VM without OIDC. |
reviewerVerdict.mjs binds verdict/signature to one station; Codespaces minting is disabled until independent identity import exists. Ubuntu staging rejects unresolved Code wrappers, requires the actual product stopped, binds checkout/target/KPI/inventories/VM identity, verifies exact governed lbabus version/selfcheck/capabilities, and installs a freshly rehashed private VSIX copy before staging target/marker. Verdict rendering requires active-version equality and re-detects VM identity. Publication still requires verified approval, machine gate composition, scoped enrollment, and CI counter-signing. |
Run node experiments/handoff-beacon/reviewerVerdict.selftest.mjs and node reviewer-workstation/stage-ubuntu-vsix.selftest.mjs; gated by handoff-verdict and ubuntu-reviewer-candidate-staging. Live evidence is rendered and signed inside the named reviewer station. |
| LBA-REQ-058 | The system shall announce a signed reviewer verdict on the lbabus coordination bus with a semantic message type (pass -> RESOLVED, changes -> REFINE, fail -> BLOCKED) carrying the full signed verdict, so a fail-closed gate proves the announcement is correctly derived and remote actors see the human's PASS/FAIL. |
The reviewer's signed verdict (LBA-REQ-057) stayed local; the lbabus bus is how the planes coordinate, so a remote actor could not see that a human reviewed + PASSED a candidate. Announcing it makes the verdict a coordination event. |
buildVerdictBusPost derives the semantic lbabus post (type/task/ref/priority) from a signed verdict record; the extension posts it from the VM after signing (best-effort) + the release CI posts it after verify-visual-review; the full signed verdict JSON is the message body. |
Run node experiments/handoff-beacon/reviewerVerdict.selftest.mjs (7/7); gated by handoff-verdict. Live: the ext 0.5.0 PASS verdict maps to a RESOLVED post on the extension-release-0.5.0 task. |
| LBA-REQ-059 | The system shall close the host<->VM-agent coordination loop over the lbabus net TCP bus -- after driving the reviewer VM's Copilot agent, the host awaits the agent's reply frame correlated by task id (fail-closed on mismatch/timeout) and the signed reviewer verdict announces with a semantic net type (RESOLVED/REFINE/BLOCKED), so a fail-closed gate proves the read-back + the semantic types are correctly derived and coordination rides TCP, not a GitHub Discussion. |
drive-agent-chat.sh drove the VM's chat fire-and-screenshot with no programmatic read-back, and the verdict announcement (LBA-REQ-058) rode a GitHub Discussion; an operator directive moves coordination onto the private TCP bus (lbabus net, LBA-REQ-007) and deprecates Discussions. |
await-agent-reply.mjs runs lbabus net listen + correlates the VM agent's reply by task/type (fail-closed); drive-agent-closed-loop.sh composes inject (drive-agent-chat.sh) + await; the net type set gains RESOLVED/REFINE/BLOCKED (option A); guest->host proven in provider-delegation/vm-run-evidence.json. |
Run node reviewer-workstation/await-agent-reply.selftest.mjs (7/7); gated by closed-loop-readback. Live: 3 drives from the reviewer VM (senderId WIN) -- loop, benchmark review (2604 ms/5 PASS), verdict RESOLVED -- all over TCP. |
| LBA-REQ-060 | The system shall provide a live-only net coordination read side -- a per-actor local receive-log written by lbabus net listen --log and read by lbabus net poll (filtered by type/task; fail-closed without a log) -- so a fail-closed gate proves post->log->poll round-trips over TCP and coordination reads no longer depend on a GitHub Discussion. |
ADR-0039 moved the host<->VM-agent loop + verdict announcement onto net; an operator directive moves the REST of coordination off Discussions with a LIVE-ONLY model (no async store). The send side (net send) existed; the read side was missing. |
net listen --log <file> appends received frames to a per-actor JSONL receive-log; net poll reads + filters it (BusWire.ToJson/FromJson); no central/async store -- an offline peer misses the frame (accepted). |
Run bash experiments/net-coordination/net-coordination-log-proof.sh; gated by net-coordination-log (committed loopback receipt + Net.cs source). Loopback: post->log->poll round-trip + type filter + poll-without-log fails closed. |
| LBA-REQ-061 | The system shall let the extension select the coordination-bus transport -- GitHub Discussion (default) or the live-only lbabus net TCP bus (opt-in via busTransport/busNetHosts/busNetLog) -- so postNote/pollBus/the reviewer-verdict announcement ride net send/net poll when configured, and a fail-closed gate proves the switch + the Discussion-safe default. |
ADR-0040 gave net a live-only model; the extension still shelled the GitHub-Discussion post/poll. Step 2 lets it select the transport WITHOUT breaking existing users (Discussion stays default). |
busConfig reads the settings; busSendArgs builds the net send argv; postNote->net send, pollBus->net poll, the verdict->net send --message-file under net; Discussion default keeps busPostArgs/post + poll. |
Extension tests (busSendArgs + activation) in test/extension-activation.mjs; gated by bus-transport-select (source + package.json config assertion; Discussion default). |
| LBA-REQ-062 | The system shall let the extension's MCP coordination tools select the transport -- the provider passes the bus-transport config as env (COLLAB_TRANSPORT/NET_HOSTS/NET_LOG) and the stdio server routes poll_coordination_bus/post_coordination_note to net poll/net send under net (Discussion default) -- so the agent tool surface coordinates over TCP when configured, proven by a fail-closed gate. |
ADR-0041 migrated the extension commands; the MCP server (a separate stdio process) still shelled the Discussion poll/post. |
busEnvFromConfig maps busTransport/busNetHosts/busNetLog -> env on the McpStdioServerDefinition; pollBusArgs/postNoteArgs route to net poll/send under net; Discussion default keeps poll/post. |
test/mcp-server.mjs (busEnvFromConfig + stdio tools); gated by mcp-net-transport (src/mcp source assertion). |
| LBA-REQ-063 | The system shall let the reviewer-workstation verdict announcer (post-verdict.mjs) select the transport -- GitHub Discussion (default) or the live-only lbabus net TCP bus (opt-in via COLLAB_TRANSPORT/NET_HOSTS) -- so a signed verdict announces via net send with the same semantic type when configured, and a fail-closed gate proves the argv under both transports. |
ADR-0041/0042 migrated the extension + MCP; post-verdict.mjs (used by the release CI + by hand) still built only the Discussion post argv. | post-verdict.mjs reads COLLAB_TRANSPORT/NET_HOSTS: net -> net send --hosts --type --task --message-file, else post (unchanged); --print-args honors it so the release CI is unchanged at the default. |
Gated by post-verdict-net-transport (runs --print-args under both transports + asserts the argv). |
Generated from docs/requirements/srs.md on develop. Edit the source in the repository, not this page.