rebuild-vm: run verify-vm after a development VM's switch #74
No reviewers
Labels
No labels
blocked
bug
decision
duplicate
enhancement
help wanted
invalid
landed?
question
ready-to-merge
stale
wontfix
bug
duplicate
enhancement
help wanted
invalid
question
wontfix
No milestone
No project
No assignees
2 participants
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
allod/nexus!74
Loading…
Reference in a new issue
No description provided.
Delete branch "agent/rebuild-verify"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
rebuild-vmnow runsverify-vmafter a development VM's switch, so a rebuild that advertises a repo the machine never cloned reports it missing instead of leaving a dangling memory link to be found at the next agent session. For a running machine nothing else changes: the switch itself is identical, a privacy VM (no forge key) is not verified, and a healthy dev VM prints the verifier's one passing line. Repair stays the explicitverify-vm --repair <vm>, which the failure line names, with the target override carried through when one was given. What proves it: the mockedrebuild-vmsuite (17 cases, 5 new) in theprovisioning-contractcheck. If it is wrong, revert; the verifier is additive and nothing on a machine is written by it.Closes allod/nexus#71
Refs allod/strategy#62
Risk
R2: a localized behavior change in one host-side script, additive after the switch, with the verifier itself unchanged. The worst credible failure after validation is a false failure line after a successful switch, which the operator resolves by reading the verifier's own output. Rollback is a straight revert.
Validation
bash tests/rebuild-vm.sh: 17 passed, including call order (nixos-rebuild then verify-vm), target override reaching the verifier and its repair hint, a privacy VM never verified, and a failing verifier failing the rebuild after the switch ran.nix build .#checks.x86_64-linux.provisioning-contract: green.provision-vmalready uses and was not acted on.5b63f13befto72b6e490fb