Skip to content

LBA REQ 047

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

LBA-REQ-047: Live golden-VM status and idle-time analysis

Status

Proven

Area

Deployment / onboarding (ADR-0023 Phase 1 -- live golden-VM visibility)

Statement

The system shall stream the golden VM live status and analyze a captured timeline for idle spans, so a fail-closed gate proves the committed idle-time analysis is correctly derived from the samples.

Rationale

The human-assisted golden-VM workflow has long stretches of "dead time" invisible to both human and agent -- LabVIEW sitting idle while VIPM silently waits to connect is the archetype. A live monitor that streams the VM's CPU busy% over the bridge, plus a deterministic idle-time analysis of a captured timeline, surface and quantify that dead time so it can be driven out (advances ADR-0023 Phase 1).

Acceptance Criteria

  • experiments/vm-live-status/vm-live-status.sh streams overall CPU busy% (plus LabVIEW cpu/mem + vipm/Xvfb presence) over the bridge and can capture an NDJSON series.
  • vmStatusAnalysis.mjs derives contiguous idle vs busy spans, idle %, and the longest idle run from a sample series.
  • validateStatusTimelineReceipt fails closed unless the committed analysis re-derives exactly from the samples and the digest is intact.
  • Live evidence: a real 44s capture on lba-golden (a mid-capture CPU burst) yielded 63.6% idle, two idle spans, longest idle run 18s; the receipt records it.

Verification

Historical statement (no longer implemented)

Supersession

Change Guidance

The analyzer experiments/vm-live-status/vmStatusAnalysis.mjs plus its self-test are gated by vm-live-status-idle-analysis in verify-local-gates and mapped in the RTM. Authored under the singular-requirement directive (one shall).

TestID

T-047

CodeRef

experiments/vm-live-status/vmStatusAnalysis.mjs; experiments/vm-live-status/vm-live-status.sh; experiments/vm-live-status/verify-vm-live-status.selftest.mjs; experiments/vm-live-status/fixtures/vm-status-timeline-receipt.json; experiments/verify-local-gates.mjs

RTM Status

Proven

Clone this wiki locally