Skip to content

devcloud vm: kept by default, one count cap, no lifetime cap (M7a) - #420

Merged
SSFSKIM merged 2 commits into
mainfrom
vm-keep-default
Oct 28, 2026
Merged

SSFSKIM merged 2 commits into
mainfrom
vm-keep-default

Conversation

@SSFSKIM

@SSFSKIM SSFSKIM commented Oct 28, 2026

Copy link
Copy Markdown
Owner

A VM is usually made for sustained work, so devcloud vm up now makes a kept VM (no lease; it runs until down) unless --ttl gives 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.

  • Default lifetime. [caps] lease_default takes keep (its default) or a duration.
  • One count cap. [caps].unconfirmed (was throwaway) counts every VM made without --confirmed, kept or leased. A session may keep a VM without the person, within that cap.
  • No lifetime cap. lease_max and lease's --confirmed are gone. Once a VM may be kept without a yes, capping a lease's length bounds nothing.
  • Count stays honest. lease keep and the reaper's relabel no longer set devcloud-confirmed, so keeping a VM never takes it out of the count.
  • Reaper excess, bounded. The reaper deletes an excess VM only within 2 h of its creation, which is the lost-race case it exists for. An older one over the cap (a lowered cap) is named, never deleted.
  • ls columns. ls shows AGE and SPENT (list price × age), and its header is unconfirmed n/cap.
  • Old profiles refused. A profile still naming throwaway or lease_max is refused, with a message naming what replaced it.
  • devcloud 0.13.0.

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 is keep and --ttl 100h passes the caps; 16 vCPU and --disk 500 exit 4. ls shows the new columns, and the old profile keys are refused with the replacement named.

Sminos-Session: devcloud setup#639ca648 (macbook on macbook)

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
SSFSKIM merged commit 2643432 into main Oct 28, 2026
10 checks passed
SSFSKIM added a commit that referenced this pull request Oct 28, 2026
devcloud 0.14.0: install the kept-by-default driver (#420)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant