Repository navigation
feat(vm)!: per-deploy VM domain + qcow2-overlay isolation — collision-free eval VM beds (#33) - #87
Conversation
…-free eval VM beds (#33) The superproject half of #33 (VM naming: the libvirt domain is keyed by the DEPLOY, not the shared kind:vm entity). Keys the libvirt domain / per-domain state / NVRAM / ssh key / seed ISO / ssh-port / instance-id per DEPLOY (via vmshared.VmDomainIdentity), with a per-deploy qcow2 overlay over a RO entity base, so sibling eval VM beds sharing one entity via 'from:' get distinct, collision-free domains and run CONCURRENTLY. Adds --domain to vm create/start/stop/destroy/console; the read side (bedVmDomains / checkVmTarget / Runner.vmTargetName) is per-deploy so the libvirt/spice check verbs address charly-<deploy>. Base-build FLOCK + content-signature idempotent skip-if-fresh makes the concurrent vm-build preflight safe. Fixes the nested-child SSH-alias seam (deploykit VmChildExecutor caller) the R10 caught. Also: plugin-vm/-preempt tabwriter + dead-code lint cleanup (R2); the --domain-aware post-create console hint. Submodule pointers: sdk -> 2977d5c (v0.2026194.659, incl. VmDomainIdentity + the deploykit seam fix), plugins -> 55800b2 (the skill claim-sweep). charly/go.mod require bumped to v0.2026194.659. R10: the concurrent-boot VM-bed pair check-builder-vm || check-substrate PASS (distinct domains, independent overlays, distinct cloud-init identities, both to steady-state + fresh update + clean teardown). Delta re-gate on top of #86 (1a7e62a): go test ./... + golangci-lint 0 (empty code overlap — sdk gitlink only). BREAKING CHANGE: deploykit.VmChildExecutor signature drops the *BundleNode param. Assisted-by: Claude (fully tested and validated) Claude-Session: https://claude.ai/code/session_01K8sisEzaiAnFuMBRVfQ7P5
pr-validator — CHANGES REQUESTED ❌Change class: charly/sdk Go + config + submodule pointers (runtime class). Validated adversarially by a FRESH evaluator on the assembled tree @ ❌ BLOCKING — R10 concurrent roster ran 2 of 4
|
…ter (all GREEN) Replaces the 2-bed R10 reference with the verbatim 4-bed concurrent roster (check-builder-vm + check-substrate + the 3-level-nested check-group + check-structkind, all from: eval-vm, run SIMULTANEOUSLY against a fresh per-tree binary) — the deep-nesting coverage the round-1 roster lacked, exercising the nested-vm-member per-deploy domain + the nested-child SSH hop (the round-1 failure seam), now GREEN. Evidence-only; no code change. Assisted-by: Claude (fully tested and validated) Claude-Session: https://claude.ai/code/session_01K8sisEzaiAnFuMBRVfQ7P5
pr-validator version stamp for #33 superproject runtime half (per-deploy VM domain + qcow2-overlay isolation). Assisted-by: Claude (fully tested and validated)
Summary
The superproject half of #33 (VM naming: the libvirt domain is keyed by the DEPLOY, not the shared
kind:vmentity) — the runtime that lands atop the sdk (#35) + plugins (#41) halves of this chain.Several disposable
vm:check beds reference ONE sharedkind:vmentity viafrom:(e.g.check-builder-vm/check-substrate/check-group-vm/check-structkind-vmallfrom: eval-vm). Keying the libvirt DOMAIN by that shared ENTITY collided them on one domain + one disk + one host SSH port. This cutover keys the domain — and every per-domain resource (state / NVRAM / ssh key / seed ISO / ssh-port / instance-id) — by the DEPLOY name (vmshared.VmDomainIdentity), with a per-deploy qcow2 overlay over a read-only entity base, so sibling beds are collision-free by construction and the long VM beds run CONCURRENTLY.--domainoncharly vm create/start/stop/destroy/console; destroy-by-domain.bedVmDomains/checkVmTarget/Runner.vmTargetName) so thelibvirt:/spice:check verbs addresscharly-<deploy>.acquireVmBuildLock+ the.build.stamp) makes the concurrentvm build <entity>preflight safe — RDD-proven (two concurrent builds → one builds, one skips,qemu-img checkclean).deploykit.VmChildExecutorcaller) the concurrent R10 caught (the fix itself is the sdk half).plugin-vm(14) +plugin-preempt(3) tabwriter-errcheck + dead-code lint cleanup; the--domain-aware post-create console hint.Submodule pointers
sdk→2977d5c(v0.2026194.659) — VmDomainIdentity + LifecyclePrepareInput wire + the deploykitVmChildExecutor/AppendHopForFlatPathseam fix (PR chore(harness): autoMode.allow grants sub-agent/teammate merge authority #35, merged).plugins→55800b2(v2026.194.0707) — the skill claim-sweep, 8 claims / 6 files (PR refactor(hooks): shared shlex tokenizer + shared fail-closed guard; close 4 fail-opens #41, merged).charly/go.modrequire →v0.2026194.659.Change class
Go code + config + submodule pointers (runtime class).
BREAKING CHANGE
deploykit.VmChildExecutorsignature drops the*BundleNodeparam — the sole caller (charly/bundle_add_cmd.go) is updated in this PR.#33 R10 verdict (verbatim)
from: eval-vmbeds → distinct domains (charly-check-builder-vm∥charly-check-substrate), independent overlays, distinct cloud-init identities, both to steady-state, both torn down clean (0 leftover domains / stanzas).Verification
1a7e62a(feat(deploy): externalize pod config-WRITE to candy/plugin-deploy-pod (P11) #86, pod config-write).#86 ∩ #33code overlap = EMPTY (only the sdk gitlink) —bundle_add_cmd.gountouched by feat(deploy): externalize pod config-WRITE to candy/plugin-deploy-pod (P11) #86.go test ./...✓ (combined tree, 61.8s) +golangci-lint run0 issues + build resolves the merged sdk. The full VM-bed R10 (verbatim above) ran on the feat(deploykit): adopt sdk/deploykit step vocabulary (P4-unit-3 consumer) #33 code; feat(deploy): externalize pod config-WRITE to candy/plugin-deploy-pod (P11) #86 is disjoint (pod, not vm).Attribution
Assisted-by: Claude (fully tested and validated).https://claude.ai/code/session_01K8sisEzaiAnFuMBRVfQ7P5