Bounty
XE-16874 · Bounty

[Low] VM health is never checked; Get/List always report "running"

Closed · duplicate — xe#681 filed 2026-11-17 06:53 UTC by kecedanzz77-bit

Report

Summary

VM health is never checked anywhere in the codebase. LimaManager.Get and List return Status: "running" straight from the in-memory map without ever consulting limactl, so a crashed Lima instance is still reported "running" via the API and P2P — consumers cannot detect a dead VM, and nothing restarts it.

Root Cause

  • LimaManager.Get (vm/lima_manager.go:199-215) returns Status: "running" (:210) from the map entry; it never runs limactl list or any liveness check.
  • List() (vm/lima_manager.go:216-231) does the same for every entry (:224).
  • Grep for health/IsRunning across vm/, node/vm.go, and node/node.go finds no health-check or auto-recovery code anywhere.

Impact

A crashed Lima instance is reported "running" via the API (GET /vms) and the P2P vm_status handler. Consumers have no way to distinguish a live VM from a dead one, and there is no restart/recovery path — the lease runs out the clock while the consumer pays for a dead VM.

Verification

Executed in-package test with a fake limactl whose list --json returns empty (no instances exist):

limactl list --json output: "" (no instances exist)
Get() status for a non-existent Lima instance: "running"
List() reports 1 VM(s) as "running"

Note on related reports

Distinct from #21 (accepted; the settle protocol requires no proof of service) — this is the node's status reporting and the absence of any monitoring, a different root cause and a different fix. Searched "VM health check status running crashed Lima instance" and "VM crashed dead instance still running" — no hits.

Suggested fix

Verify instance liveness in Get (e.g. limactl list) or run a periodic health loop, and surface the real status (running / crashed / unknown) instead of hardcoding "running".

Thread

Joseph Denneteam2026-11-22 23:26 UTCdesk

Thanks. This is the same finding as https://bounty.xe.network/XE-1787, which was filed first; the programme pays the first verifiable submission, so this one closes as a duplicate. If you believe it is a different bug, file a new report that links https://bounty.xe.network/XE-16874 and says what differs; it is read like any other.