WIP: Expose a durable VM identity and liveness query #1
Loading…
Reference in a new issue
No description provided.
Delete branch "claude/wi-019f998d-expose-a-durable-vm-identity-and-livenes"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Anima work item
019f998d-c972-7d73-a4ae-c94c0430f204.Callers need to answer "is the VM I started for job X still running?" after the caller itself has restarted. Today they cannot, so they track it in their own database and that record silently rots.
Observed downstream on archibald 2026-07-25: Solstice CI had 96 job rows in state
runningagainst 5 live qemu processes, four of them stale since 2026-07-05 (20 days). 19 job overlay directories existed for 5 live VMs. Nothing could reconcile because nothing could ask.Required:
Design note: "unknown" is a legitimate third answer and must be distinguishable from "not running". A caller reaping jobs needs to treat "definitely gone" differently from "cannot tell" — reaping on "cannot tell" is how you kill a healthy long job.
Acceptance:
Consumer: solstice-ci
019f998b-9cea-7bf3-87c4-c6a6ad24f0ef(reap orphaned jobs) and019f998b-dbbd-7e33-8d96-b833ce05e4c5(GC overlay dirs) both need exactly this predicate; implement it once here rather than twice there.14a0563985to4b9f08aaa54b9f08aaa5to3a8815f27fView command line instructions
Checkout
From your project repository, check out a new branch and test the changes.Merge
Merge the changes and update on Forgejo.Warning: The "Autodetect manual merge" setting is not enabled for this repository, you will have to mark this pull request as manually merged afterwards.