{"id":"XE-16874","kind":"bounty","visibility":"public","source":"github","source_repo":"xeprotocol/xe","source_ref":"681","source_url":"https://github.com/xeprotocol/xe/issues/681","reporter_id":2920,"title":"[Low] VM health is never checked; Get/List always report \"running\"","area":"node-api","claimed_tier":null,"assessed_tier":null,"verdict":"duplicate","duplicate_of":"XE-1787","tracked":false,"internal_ref":"","internal_url":"","status":"closed","closed_reason":"duplicate","github_state":"open","disclosed_at":null,"award_xe":null,"award_approved":false,"paid_ref":"","created_at":"2026-11-17T06:55:57.188218+00:00","updated_at":"2026-11-22T23:26:12.820657+00:00","source_created_at":"2026-11-17T06:53:53+00:00","told_at":"2026-11-22T23:26:12.867565+00:00","status_changed_at":"2026-11-22T23:26:12.836722+00:00","url":"https://bounty.xe.network/XE-16874","body":"## Summary\n\nVM 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.\n\n## Root Cause\n\n- `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.\n- `List()` (`vm/lima_manager.go:216-231`) does the same for every entry (`:224`).\n- Grep for health/`IsRunning` across `vm/`, `node/vm.go`, and `node/node.go` finds no health-check or auto-recovery code anywhere.\n\n## Impact\n\nA 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.\n\n## Verification\n\nExecuted in-package test with a fake limactl whose `list --json` returns empty (no instances exist):\n\n```\nlimactl list --json output: \"\" (no instances exist)\nGet() status for a non-existent Lima instance: \"running\"\nList() reports 1 VM(s) as \"running\"\n```\n\n## Note on related reports\n\nDistinct 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.\n\n## Suggested fix\n\nVerify 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\"`.\n","patch_refs":[],"thread":[{"id":18813,"source":"desk","source_ref":"reply:16490","author":"Joseph Denne","team":true,"body":"Thanks. This is the same finding as https://bounty.xe.network/XE-1787, which was filed first; the programme pays the\nfirst verifiable submission, so this one closes as a duplicate. If you believe it is a different\nbug, file a new report that links https://bounty.xe.network/XE-16874 and says what differs; it is read like any other.","created_at":"2026-11-22T23:26:12.820657+00:00"}]}