Repository navigation
Description
VM track of the deployment-architecture epic (design: PR #5764 §6).
Current state (2026-11-04 inventory): virtualisation.libvirtd.enable = true in the laptop profile and zero guest definitions anywhere — no libvirt XML, no nixvirt, no virsh-managed domains in any repo. Seeds present: microvm.nix is a flake input with one defined VM (prometheus, qemu, 2 vCPU/1 GB, virtiofs /nix/store share) whose profile is commented out on amd (nixos/hosts/default.nix:30); the flake has lib.make-vm-configurations machinery (per-host vm_<host> NixOS variants).
Work:
- Evaluate nixvirt (declarative libvirt domains/networks/pools as Nix) vs flake-generated libvirt XML as the renderer for libvirt guests; record the pick and why in this issue. microvm.nix is the presumptive answer for ephemeral/agent-class guests — confirm or refute.
- Define the guest generation shape: {domain definition, disk image (flake-built), NixOS source rev}; data volumes attach to generations, never live inside them.
- Land the first declarative guests: bring
prometheusunder generation discipline (enable the microvm profile deliberately or supersede it), plus one libvirt guest end-to-end if a real need exists — otherwise the renderer + a throwaway test guest that is defined, started, rolled back, and destroyed as the acceptance proof. - Write the mutable carve-out list (starts empty): guests that may drift in data but not OS definition (DB hosts, lab stateful nodes), and the rule that full drift requires a named waiver with owner + reason.
Acceptance: at least one guest of each class (microVM, libvirt) can be defined/started/rolled back from flake state alone on a clean checkout; the carve-out list exists in the flake (even if empty) with the waiver rule stated; deploy vm:<name> integration is specced (implementation may ride the deploy tool's later target classes).
Acceptance criteria
- The renderer pick for libvirt guests (nixvirt vs flake-generated libvirt XML) is recorded in this issue with the reasoning; microvm.nix's role for ephemeral guests is stated.
- Declarative guest definitions exist in the repo for the guest set the deployment-architecture epic calls for, with the mutable carve-out list written down explicitly.
- A guest can be defined, rendered, and started from the declarative definition alone (no hand-built libvirt state).
Activity
developing-today commentedon Nov 5, 2026
CODE-1458
developing-today commentedon Nov 5, 2026
agent-note:v1
task: 10178
lane: code-u
state: handed-off
summary: Task 10178 claimed by lane code-u; execution-lane assignment returned opencode, so this task is handed off to the opencode claimant per the worker runbook §1b. Issue #5772 is OPEN with no hard-stop labels on fresh check; claim labels synced (queue/claimed + work/assigned + status/in-progress).
next: opencode-claimant launches the bound opencode session for task 10178.
developing-today commentedon Nov 5, 2026
agent-note:v1
task: 10178
lane: code-u
state: handed-off
summary: Task 10178 re-claimed by lane code-u after the first opencode handoff's lease expired without a claimant launch; execution-lane assignment again returned opencode, so the task is handed off to the opencode claimant again per the worker runbook §1b. Issue #5772 remains OPEN, claim labels already in place from the first handoff.
next: opencode-claimant launches the bound opencode session for task 10178.
dezren39 commentedon Nov 5, 2026
🤖 Agent note · handed off
149 remaining items
dezren39 commentedon Nov 23, 2026
fleet shell targetsreports laptop and Codespace unreachable, with only local execution available.main; no source changes made.dezren39 commentedon Nov 23, 2026
Agent note — picked up (task 14378, lane oc-code-03)
Fresh verification 2026-11-23: #5772 OPEN, no hard-stop labels (task/triage, status/parked, queue/parked, work/assigned); gate #10083 still OPEN (non-reproducing since 2026-11-18 triage, not cleared); no open PRs for #5772. Static deliverables from PR #9186 confirmed present (nixos/vm-guests/default.nix: renderer nixvirt/microvm.nix, empty carveOuts/waivers + waiverRule; discipline doc with deploy vm: spec). Worktree clean, no source changes. Host seat is amd, but this is a shared multi-lane scheduled run, so no nixos-rebuild switch or guest lifecycle ops here.
Next: park for a quiesced amd host window + fresh terminal disposition for #10083, then run the doc section 5 lifecycle proofs. Do not close #5772 on the desk-work slice.
dezren39 commentedon Nov 24, 2026
Agent note — picked up, revalidated, parked (2026-11-24, lane oc-code-07)
nix-instantiate --eval --strict nixos/vm-guests/default.nixexits 0 (renderer nixvirt/microvm.nix, guests.prometheus defined-not-enabled, empty carveOuts/waivers + waiverRule). microvm profile still commented out at nixos/hosts/default.nix:37.developing-today-fleet commentedon Nov 26, 2026
Agent note — revalidated and parked (2026-11-26, lane code-f)
doc/2026-11-12_vm-guests-generation-discipline.md§5.host-proof-pendingand parked with an external ready condition: a dedicated, quiesced AMD host window. At that visit, rerun the section 5 proofs and record outputs here; do not close VMs: declarative guest definitions (nixvirt / microvm.nix) + mutable carve-out list #5772 before both proofs pass.developing-today-fleet commentedon Nov 26, 2026
Fresh recheck (2026-11-26): #5772 remains OPEN and the lifecycle proofs remain outstanding. Dependency #10083 is now CLOSED. The current machine is reachable and load is 6.73/7.71/9.29 on 16 CPUs, but the shared checkout has 237 modified/untracked paths from concurrent work; I made no host or repository changes and will not run NixOS switches or guest lifecycle operations in this state. Resume during a dedicated quiesced AMD host visit for the section 5 microVM and nixvirt proofs.
developing-today-fleet commentedon Nov 27, 2026
Fresh revalidation (2026-11-27, lane oc-code-08):
doc/2026-11-12_vm-guests-generation-discipline.md§5: microVM profile switch/build/start/rollback and nixvirt guest define/start/rollback/destroy.fleet shell targetssays laptop/Codespace unreachable; local AMD host has 16 CPUs and load average 19.24/15.33/12.16. Shared/home/user/git/codecheckout has 248 modified/untracked paths from concurrent work. I made no host or source changes and did not run disruptive lifecycle operations.Parked for an external ready condition: a dedicated quiesced AMD host window with the shared checkout clear of concurrent modifications. Do not close #5772 until both §5 lifecycle proofs are recorded.
dezren39 commentedon Nov 28, 2026
Agent note — lane 1237-D verified park (alpha DRIVE 2026-11-28): host-proof remainder, not a Git-API slice.
doc/2026-11-12_vm-guests-generation-discipline.md§5: microVM profile enable/rebuild/start/rollback + nixvirt guest define/start/rollback/destroy on the hostamd.dezren39 commentedon Nov 29, 2026
🤖 Census note — 2026-11-29 (lane CEN-C04, full-census pass)
Verdict: blocked on a dedicated quiesced AMD host window. Rechecked firsthand. Landed: PR #9186 (renderer decision, guest registry + mutable carve-out list with waiver rule,
deploy vm:spec). Dependency #10083 is CLOSED. Sole remaining acceptance / blocker: the live AMD-host lifecycle proof indoc/2026-11-12_vm-guests-generation-discipline.md§5 — microVM profile enable/rebuild/start/rollback plus nixvirt guest define/start/rollback/destroy on hostamd. Prior firsthand checks found the shared host busy (load ~19/15/12 on 16 CPUs) with a heavily modified shared checkout; a NixOS switch or guest lifecycle run is not safe to improvise in that state. Resume condition: a quiesced host window with the shared checkout clear.Census actions: no label changes — labels already sane.
developing-today-fleet commentedon Nov 29, 2026
Census 2026-11-29 (Felix):
prometheusseed and the flake's make-vm-configurations machinery), and the first deliverable already landed: PR vm-guests: renderer decision, guest registry + carve-out list, deploy vm: spec (#5772) #9186 (renderer decision, guest registry + mutable carve-out list with waiver rule,deploy vm:spec). Dependency id: cargo-fmt-check nix derivation unbuildable locally — zig 0.16 OptimizeMode has no 'small' member in the check closure #10083 is CLOSED.doc/2026-11-12_vm-guests-generation-discipline….developing-today-fleet commentedon Nov 29, 2026
Issue census — 2026-11-29
Gaps found: no kind/, no effort/, no app//area/ label; no acceptance criteria section (the body is a single flowing brief with no headers).
Strengths: current state verified at inventory time (libvirtd enabled, zero guest definitions anywhere, microvm.nix seed and the commented-out prometheus profile located precisely), the evaluation ask (nixvirt vs flake-generated XML, pick recorded with reasoning) is explicit, and it is tied to the deployment-architecture epic via PR #5764 §6.
Actions: added labels kind/infrastructure, effort/m, area/infra; appended a
## Acceptance criteriasection derived from the body's own work list (original text untouched). Priority unchanged (normal). Parked/assigned labels left as they stand.developing-today-fleet commentedon Nov 29, 2026
oc-code-07 revalidation — 2026-11-29
doc/2026-11-12_vm-guests-generation-discipline.md§5. No repository or host changes were made.Disposition: keep #5772 open and park task 14378 until the AMD host is quiesced and its shared checkout is clear. Then perform both lifecycle proofs and record evidence before closing. No files or host state were changed.