Skip to content

LBA REQ 059

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

LBA-REQ-059: Host<->VM-agent closed loop over the lbabus net TCP bus

Status

Proven

Area

Deployment / agentic (ADR-0039 -- host<->VM-agent closed loop over TCP, off GitHub Discussions)

Statement

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.

Rationale

drive-agent-chat.sh drove the VM's chat FIRE-AND-SCREENSHOT (a human read PNGs); there was no programmatic read-back, so the host agent could not close the loop. The verdict announcement (LBA-REQ-058) rode a GitHub Discussion; an operator directive ("TCP, deprecate the use of github discussions") moves coordination onto the private TCP bus that already exists (lbabus net, LBA-REQ-007, ADR-0003/0004).

Acceptance Criteria

  • await-agent-reply.mjs runs lbabus net listen, parses the rendered frame, and returns the VM agent's reply CORRELATED by --task + --type; it FAILS CLOSED on a task mismatch or a timeout (never accepts an uncorrelated frame as the answer).
  • drive-agent-closed-loop.sh composes the two halves: it starts the awaiter, then keyboard-injects the prompt PLUS a deterministic report-back line (single-line; a newline would submit early) so the VM agent replies over TCP.
  • The net envelope type set carries RESOLVED/REFINE/BLOCKED (option A), so a signed verdict announces over net as a first-class semantic event (pass->RESOLVED), preserving ADR-0038's semantics off the Discussion bus.
  • Comms-only holds (ADR-0003): the reply/announcement is a one-line status only, never run data.

Verification

Historical statement (no longer implemented)

Supersession

Change Guidance

await-agent-reply.mjs (+ .selftest.mjs), drive-agent-closed-loop.sh, and closed-loop-readback-proof.sh live under reviewer-workstation/; the net type set is BusWire.Types in tools/collab-cli/Net.cs. The FULL retirement of the GitHub-Discussion transport is deferred (ADR-0039 Consequences). Authored under the singular-requirement directive (one shall).

TestID

T-059

CodeRef

reviewer-workstation/await-agent-reply.mjs; reviewer-workstation/await-agent-reply.selftest.mjs; reviewer-workstation/drive-agent-closed-loop.sh; reviewer-workstation/drive-agent-chat.sh; reviewer-workstation/closed-loop-readback-proof.sh; reviewer-workstation/closed-loop-readback-receipt.json; experiments/verify-local-gates.mjs

RTM Status

Proven

Clone this wiki locally