Record inventory-owned platform rule #4
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "agent/inventory-owned-platform-memory"
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?
Closes #3
Summary
Add explicit shared memory that VM architecture and Nix system strings belong in inventory, not in consumer code or review artifacts.
The existing VM provisioning memory already listed
inventory/flake.nixas the source of truth for machine platform, type, and hardware. This PR makes the consumer rule explicit: derive architecture from inventory instead of copying literals such asx86_64-linuxinto profiles, checks, scripts, or plans.Changes
vm-provisioning.md: add a concise rule that architecture strings belong in inventory and consumers must derive them.nix.md: remove the genericx86_64-linuxhost-platform example and shownixpkgs.hostPlatform = lib.mkDefault platforminstead.nix.md: add a short Allod-specific note to threadplatformfrom inventory for VM configs.Validation
The scan confirms there is no remaining
x86_64literal in the touched memory docs, while the inventory-owned platform rule and derived host-platform example are present.Read-only review pass: no findings.
Checked:
git diff --check origin/master...HEADpasses;nix.mdandvm-provisioning.md;x86_64-linuxhost-platform example is removed from memory;@ -13,6 +13,8 @@ Repos: `profiles` for per-VM NixOS configs, `vm` for shared NixOS modules, `nexu- Forge key secrets: the encrypted secrets repo, not `profiles/secrets/`- VM SSH match blocks: the encrypted home configuration, not nexusNix system strings such as VM architecture belong in inventory data and `inventory.lib.supportedPlatforms`. Consumers must derive the target system from inventory or from the target NixOS configuration, for example `nixosConfigurations.<vm>.pkgs.stdenv.hostPlatform.system`; do not hardcode architecture strings in profiles, checks, scripts, or review plans.too wordy, make it concise, stop wasting tokens
Fixed in . Shortened the rule to:
Corrected reply: fixed in commit
42a9bc4.New wording:
Acknowledged review request: shorten the new VM provisioning architecture/source-of-truth memory sentence. I’ll make the wording concise and push an update.
Post-review update check: no findings.
Commit
42a9bc4shortens the VM provisioning rule. Validation after the update:The branch is clean and pushed.