Repository navigation
devcloud vm: kept by default, one count cap, no lifetime cap (M7a) - #420
Merged
Merged
Conversation
The person's decision: a VM is usually made for sustained work, so it runs until down unless --ttl gives it a lease. A session may keep one without the person within one cap of 3 unconfirmed VMs; the lifetime cap goes, and a forgotten VM is announced by the idle notice instead of deleted. Sminos-Session: devcloud setup#639ca648 (macbook on macbook)
up without --ttl makes a kept VM (the profile's [caps] lease_default, keep unless it names a duration). The count cap, now [caps].unconfirmed, counts every VM made without --confirmed, kept or leased; the lifetime cap and lease's --confirmed are gone, since a lease only changes when a VM ends. lease keep and the reaper's relabel leave devcloud-confirmed alone, so keeping a VM never takes it out of the count. The reaper deletes an excess VM only within 2 hours of its creation (a driver's lost race) and names an older one. ls shows each VM's age and cost so far. A profile still naming throwaway or lease_max is refused, naming the replacement. devcloud 0.13.0. Sminos-Session: devcloud setup#639ca648 (macbook on macbook)
SSFSKIM
added a commit
that referenced
this pull request
Oct 28, 2026
devcloud 0.14.0: install the kept-by-default driver (#420)
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
A VM is usually made for sustained work, so
devcloud vm upnow makes a kept VM (no lease; it runs untildown) unless--ttlgives it one. Spec:docs/doperpowers/specs/2026-10-21-devcloud-vm-driver-design.md, §2, §4.5 and the Decision Log entry dated 2026-10-27; this is M7a of its M7.[caps] lease_defaulttakeskeep(its default) or a duration.[caps].unconfirmed(wasthrowaway) counts every VM made without--confirmed, kept or leased. A session may keep a VM without the person, within that cap.lease_maxandlease's--confirmedare gone. Once a VM may be kept without a yes, capping a lease's length bounds nothing.lease keepand the reaper's relabel no longer setdevcloud-confirmed, so keeping a VM never takes it out of the count.lscolumns.lsshows AGE and SPENT (list price × age), and its header isunconfirmed n/cap.throwawayorlease_maxis refused, with a message naming what replaced it.The guard against a forgotten kept VM, the idle notice (M7b), is a separate PR built in parallel.
Tests: the driver unit suite (340) passes locally. I also ran
--dry-runs against a real profile: the default iskeepand--ttl 100hpasses the caps; 16 vCPU and--disk 500exit 4.lsshows the new columns, and the old profile keys are refused with the replacement named.Sminos-Session: devcloud setup#639ca648 (macbook on macbook)