Skip to content

LBA REQ 052

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

LBA-REQ-052: g-cli launcher built from Rust + proven on host

Status

Proven

Area

Deployment / benchmark (ADR-0033 -- the 2-actor icon-editor grid, tester-actor enabler)

Statement

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.

Rationale

The grid's TESTER actor runs the icon-editor LUnit suite via g-cli ... lunit. On Linux g-cli ships no prebuilt binary: the launcher is the rust-proxy crate (G-CLI/G-CLI) that opens a TCP server, launches LabVIEW on the target VI, and streams the VI's arguments / output / exit code back over the socket. Building it from source and proving a real LabVIEW round-trip on this host is the enabler for that actor.

Acceptance Criteria

  • cargo build --release builds the g-cli binary from the pinned source.
  • g-cli detects the host LabVIEW install and completes a full round-trip: it launches the target VI, which echoes the args back over TCP and sets the exit code.
  • 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 the rule, and the digest is intact.
  • Live evidence: g-cli 3.0.1 built from Rust in ~6.7s, then drove host LabVIEW 2026 (headless) to run Echo Parameters.vi, which echoed hello/from/host and exited 0.

Verification

Historical statement (no longer implemented)

Supersession

Change Guidance

The builder + validator experiments/g-cli-proxy/gcliProxyBenchmark.mjs plus its self-test are gated by g-cli-proxy-proof in verify-local-gates and mapped in the RTM. With the launcher proven, the tester-actor slice is realized by LBA-REQ-053 (g-cli lunit with the LUnit framework from icon-editor-developer.vipc, not runner_dependencies.vipc). Authored under the singular-requirement directive (one shall).

TestID

T-052

CodeRef

experiments/g-cli-proxy/gcliProxyBenchmark.mjs; experiments/g-cli-proxy/verify-g-cli-proxy-proof.selftest.mjs; experiments/g-cli-proxy/fixtures/g-cli-proxy-proof-receipt.json; experiments/verify-local-gates.mjs

RTM Status

Proven

Clone this wiki locally