Record that reading a config option does not force NixOS assertions #38
No reviewers
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
2 participants
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
allod/memory!38
Loading…
Reference in a new issue
No description provided.
Delete branch "agent/nix-assertions-need-toplevel"
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?
A check that reads a marker option off a built NixOS system proves the module was composed but forces none of its assertions —
config.assertionsis reached only throughsystem.build.toplevel. A fixture violating the composed module's own contract therefore reads green. Found while adding the guest-module selection check in allod/archetypes#23, where a microvm fixture would have passed with allod/vm's persistent-volume contract unevaluated.Also records the ordering subtlety: compare the marker first and force second, because forcing first reports a wrong-module composition as whatever that module's option surface breaks on rather than as the mismatch the check names.
Refs allod/archetypes#22