Google Cloud VMs for nub
Any time a task needs a real OS the Mac host + Docker can't give you — real Linux-kernel Landlock/seccomp/netns enforcement, real Windows AppContainer/MSVC, a clean high-RAM build box, a genuinely-clean first-run environment — spin up or start a VM. Project pullfrog; the existing boxes live in us-central1-a. gcloud runs through Keyward with none of its saved configuration (no default zone, region or account), so always pass --project pullfrog and --zone us-central1-a explicitly. Every gcloud below runs as keyward --reason "<what it is for>" -- gcloud …; see Auth.
⛔⛔ THESE ARE GOOGLE CLOUD BOXES — THE AWS FREEZE DOES NOT TOUCH THEM
Project pullfrog. An instruction that "the AWS account is frozen" says NOTHING about these, and reading it as covering them cost a whole session of 20-minute CI round-trips while two admin-capable Windows VMs sat idle and billing. The VMs are almost never the blocker — check before you route around them.
The standing instances (`gcloud compute instances list --project pullfrog` is the truth; this table rots)
| Name | OS | Purpose |
|---|---|---|
| nub-linux | Ubuntu 24.04 LTS, e2-standard-4 | Linux-kernel enforcement (Landlock/seccomp/bwrap/netns); carries a path-bound AppArmor bwrap-userns profile + apparmor_restrict_unprivileged_userns=1 reproducing a locked-down 24.04 host. The one box worth preserving — that profile is hand-built, so it auto-STOPs rather than auto-deletes. It carries an 8h maxRunDuration from before that flag was dropped for new boxes; that cap CANNOT be raised while it runs, so a job here longer than 8h gets stopped mid-flight. STOP keeps the disk, so restart and resume rather than losing it |
nub-corpus-linux, nub-win2 and nub-win3 were DELETED 2026-09-01 as part of the billing cleanup below, along with nub-win, nub-devloop and nub-win4 before them. Do not go looking for them, and do not treat their absence as an outage: recreate what you need from the recipes below, at the spec the job actually needs. The Windows boxes in particular were confirmed admin (IsInRole(Administrator)=True) with logman/wpr/tracerpt present, so a fresh Server 2022 box gives you full ETW kernel tracing the same way.
They are usually TERMINATED to save billing. Start what you need, and DELETE it when done — deleting is what stops the disk charge.
⛔ DO NOT PUT `--max-run-duration` ON A BOX YOU CREATE (reversed 2026-09-04)
A run-duration budget cannot be changed while the instance is running, and that is disqualifying. Measured 2026-09-04, on a box holding a 1h25m acceptance sweep that needed more time than its budget allowed:
ERROR: Max run duration cannot be changed while the instance is running.
gcloud compute instances update does not accept the flag at all; set-scheduling accepts it and the API refuses. --termination-time is refused the same way, and clearing the duration counts as changing it. The only way out is to stop the instance — which kills the work the box exists for. So the flag turns a recoverable "this is taking longer than I thought" into an unrecoverable one, and it does it at the exact moment the box is most valuable.
Use idle auto-stop instead (below). It targets the actual waste — a box sitting doing nothing — rather than capping useful work, and it can be tuned from inside the guest at any time.
The cost facts that motivated the budget are still true, and still worth knowing. Measured 2026-09-01: five boxes alive, four idle between 10 hours and 26 days, carrying $94/mo of disk that bills while TERMINATED. nub-win3 alone was ~$205/mo of runtime — 322 running hours in 30 days, of which $119 was Windows licensing rather than compute — on top of $34/mo for its 200 GB pd-ssd.
DELETEis what stops the standing charge. The boot disk isautoDeleteby default, so deleting the VM takes it too; merely stopping one leaves a 200 GBpd-ssdbilling ~$34/mo forever. Delete anything named-tmp,-probeor a builder the moment it is done.- Windows is where the money is. The licence is $0.046 per vCPU-hour, so an
e2-standard-8Windows box costs more in licence than in compute ($0.368/h vs $0.268/h). Size Windows boxes by what the job needs, and prefer--boot-disk-type pd-balanced($0.10/GB/mo) overpd-ssd($0.17) unless the disk is genuinely the bottleneck. - Verify a cleanup by listing EVERY instance and reading the list — never by grepping for the name you expected. A cleanup check that matched
nub-winpassed while its own box, namedwingrants-…, ran on for hours.
Automated short-lived builders under scripts/remote-build.ts are a separate case and still carry the flag: they run ~45m unattended, nobody is there to extend anything, and the launcher dying is a real leak path.
Idle auto-stop — the mechanism that replaces a run-duration cap
This is the cost mechanism, now that the run-duration cap is gone: it targets idleness directly rather than capping useful work. Every box ships it in the same create call so none exists without it, and the box powers itself off once nothing has happened for 30 minutes. GCE reports a guest shutdown as TERMINATED, so the disk survives and a start brings it back. It needs no credential and tells nobody: the maintainer does not want to hear about idle boxes, only for them to stop.
| OS | Script | Counts as busy |
|---|---|---|