Skip to content

LBA REQ 056

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

LBA-REQ-056: Handoff Beacon -- agent->human request (human-step barrier)

Status

Proven

Area

Deployment / agentic (ADR-0036 -- agent->human request beacon, under the Handoff Beacon Protocol ADR-0035)

Statement

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.

Rationale

The capture-status beacon (LBA-REQ-055) let the agent AWAIT a human step (Stop). This closes the OTHER direction: the agent's ASK -- "run this VI", "activate LabVIEW", "log in to VIPM" -- was invisible except through chat, so it re-asked and wasted turns. 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 exactly when the human answers.

Acceptance Criteria

  • buildAgentRequest / buildOpDone derive the agent-request@1 / op-done@1 payloads; validateAgentRequest / validateOpDone fail closed on a wrong schema, an empty id/title, or an unknown outcome; selectPendingRequest returns the newest unanswered request (deterministic), so an answered ask is never re-surfaced.
  • The extension watches handoff/requests/ and surfaces the newest pending request as a showInformationMessage with "Mark step done" (prompts an optional note) and "Skip"; both actions are also palette commands (labviewBenchmarkActor.markStepDone / .skipStep), so the barrier is answerable without a mouse; the answer is written to handoff/done/<id>.json.
  • reviewer-workstation/request-step.sh writes the request beacon into the VM (via the same pure builder) and runs the guest poll ONCE, blocking until the op-done answer resolves (done|skipped) or a bounded timeout -- the one sanctioned poll in the flow.

Verification

Historical statement (no longer implemented)

Supersession

Change Guidance

The experiments/handoff-beacon/handoffRequest.mjs builder + self-test are gated by handoff-request in verify-local-gates and mapped in the RTM; the builder is staged into media/ and loaded by src/extension.ts. This is the agent->human tier of the Handoff Beacon Protocol (ADR-0035); the keyless-signed reviewer verdict beacon + the bus post ship as their own governed slices. Authored under the singular-requirement directive (one shall).

TestID

T-056

CodeRef

experiments/handoff-beacon/handoffRequest.mjs; experiments/handoff-beacon/handoffRequest.selftest.mjs; reviewer-workstation/request-step.sh; reviewer-workstation/request-step.ps1; reviewer-workstation/build-agent-request.mjs; src/extension.ts; experiments/verify-local-gates.mjs

RTM Status

Proven

Clone this wiki locally