Skip to content

LBA REQ 045

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

LBA-REQ-045: Human-assisted VM bridge

Status

Proven

Area

Deployment / onboarding (ADR-0032 -- human-in-the-loop secret safety)

Statement

The system shall provide a human-assisted terminal bridge to the golden VM that lets an automation agent drive the VM's interactive shell while a human types any password or token directly on the VM, so a fail-closed gate proves credentials never transit the agent.

Rationale

Agent-driven golden-VM onboarding (ADR-0023) needs secrets -- LabVIEW and VIPM activation, sudo passwords -- that must never pass through the automation agent or the LLM. A shared tmux session that lives on the VM lets the agent drive every non-secret step while the human supplies a credential in-band, exactly at the prompt (ADR-0032).

Acceptance Criteria

  • tools/vm-bridge/vm-bridge.sh drives the VM's shell over ssh via tmux send-keys/capture-pane (run/send/keys/read) and offers a human attach.
  • secret? detects a credential prompt so the agent hands off instead of answering.
  • The bridge is secret-safe: no --password/--token flag, no read -s, no sshpass, no credential env var. checkVmBridge fails closed on any of these.
  • Live evidence: the agent drove the scratch VM and a real password: prompt was detected (agent exit 42) + handed off to the human, never answered; the receipt records it.

Verification

Historical statement (no longer implemented)

Supersession

Change Guidance

The checker experiments/vm-bridge/checkVmBridge.mjs plus its self-test are gated by vm-bridge-human-assisted-secret-safety in verify-local-gates and mapped in the RTM. Authored under the singular-requirement directive (one shall).

TestID

T-045

CodeRef

tools/vm-bridge/vm-bridge.sh; experiments/vm-bridge/checkVmBridge.mjs; experiments/vm-bridge/verify-vm-bridge.selftest.mjs; experiments/vm-bridge/fixtures/vm-bridge-receipt.json; experiments/verify-local-gates.mjs

RTM Status

Proven

Clone this wiki locally