<!-- XE-16874 · [Low] VM health is never checked; Get/List always report "running" · testnet -->
*Markdown view of <https://bounty.xe.network/XE-16874>. The page is the record; this is the same page for reading.*

XE-16874 · Bounty

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

Closed · duplicate
—
[xe#681](https://github.com/xeprotocol/xe/issues/681)
filed 2026-11-17 06:53 UTC
by kecedanzz77-bit

Verdict
:   Duplicate

Tier
:   —

Claimed
:   —

Area
:   Node / API

Duplicate of
:   [XE-1787](https://bounty.xe.network/XE-1787) triaging

Tracked
:   —

Updated
:   2026-11-22 23:26 UTC

Told
:   2026-11-22 23:26 UTC

### Patches

None linked.

### History

- [770257](https://bounty.xe.network/log/770257) 2026-11-22 23:26 UTC reply.mirror\_failed
- [769881](https://bounty.xe.network/log/769881) 2026-11-22 23:26 UTC proposal.adopted
- [769880](https://bounty.xe.network/log/769880) 2026-11-22 23:26 UTC reply.sent
- [769879](https://bounty.xe.network/log/769879) 2026-11-22 23:26 UTC ticket.status new → closed
- [768855](https://bounty.xe.network/log/768855) 2026-11-22 23:25 UTC proposal.adopted
- [768854](https://bounty.xe.network/log/768854) 2026-11-22 23:25 UTC ticket.facts area
- [768853](https://bounty.xe.network/log/768853) 2026-11-22 23:25 UTC proposal.adopted
- [768852](https://bounty.xe.network/log/768852) 2026-11-22 23:25 UTC ticket.facts
- [768851](https://bounty.xe.network/log/768851) 2026-11-22 23:25 UTC proposal.adopted
- [768850](https://bounty.xe.network/log/768850) 2026-11-22 23:25 UTC ticket.facts
- [766591](https://bounty.xe.network/log/766591) 2026-11-22 23:17 UTC note.added
- [766589](https://bounty.xe.network/log/766589) 2026-11-22 23:17 UTC proposal.created

[Full history](https://bounty.xe.network/log?ref=XE-16874) · [JSON](https://bounty.xe.network/v1/tickets/XE-16874) · [markdown](https://bounty.xe.network/XE-16874.md)

### 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 Denne**team2026-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.
