Move guest behavior checks into minimal VM fixtures #6
Labels
No labels
bug
duplicate
enhancement
help wanted
invalid
question
wontfix
bug
duplicate
enhancement
help wanted
invalid
question
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
allod/vm#6
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
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?
Move guest-behavior assertions into minimal
allod/vmfixtures so the module owner reports guest regressions directly andallod/archetypescan stay focused on runtime selection and wiring.Primary goals:
vm— add minimal NixOS fixtures inallod/vmfor guest behavior currently proven by the heavierallod/archetypesruntime-module-selectionreporter.allod/vmdemonstrably becomes the reporter by failing on matching sabotage before the heavierarchetypesreporter is removed.allod/archetypesresponsible for selecting and wiring the right guest modules against inventory/runtime facts, not re-proving behavior owned byvm.check.shfromallod/archetypesand return to nativenix flake checkonce flake-check performance improves enough to fit within dev-VM headroom.Current state and specifics
allod/archetypes#31tracks bringing the composition root's flake-check memory peak back under dev-VM headroom. The current pressure point is theruntime-module-selectioncheck, which carries guest-behavior assertions and sabotage fixtures in the archetypes composition root because the microVM adoption arc needed those assurances quickly.That was useful for integration, but it gives
archetypestoo much behavioral ownership and makes the expensive composition root report failures that should be caught closer to the guest module definitions.allod/strategy#20already framesallod/vmas the owner of shared guest behavior; this issue is theallod/vmside of moving those checks to that design.Migrate assertions in coherent groups, for example by persistent store/volume behavior, guest credential/materialization behavior, guest networking/interface behavior, and shared guest policy behavior. The exact grouping can change during implementation, but each group should be internally complete and reviewable.
For each group, first add the minimal
allod/vmfixtures and sabotage cases. Then proveallod/vmis the reporter by making the matching sabotage fail there. Only after that proof should the heavierallod/archetypesreporter for the same behavior be deleted or reduced to a selection/wiring assertion.Scope
In scope: minimal
allod/vmguest fixtures, paired sabotage cases, and check coverage that proves guest behavior at the module owner.Out of scope: changing inventory/runtime fact contracts, changing Nexus host lifecycle behavior, or removing
allod/archetypesintegration checks beforeallod/vmreports the same guest-behavior failure. The broader memory-reduction arc remains tracked byallod/archetypes#31andallod/strategy#20; once that arc brings native flake-check performance back within dev-VM headroom,allod/archetypesshould removecheck.shand restorenix flake checkas the repo gate.Part of allod/strategy#20
Refs allod/archetypes#31