Cut the builders' and flake's comments to contracts, traps and pointers #103
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/archetypes!103
Loading…
Reference in a new issue
No description provided.
Delete branch "agent/comments-builders"
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?
flake.nix, the four builder files undernix/builders/,nix/vm-facts.nixandnix/build-zola-site.nixlose 164 comment lines and keep every contract and trap: each builder argument now carries a one-line contract, the shared "an argument, never a read of the input" rule is stated once in the README's Builders section, and every trap (the agenix path-versus-string closure leak, the SSH alias glob, hostname-keyed identities, the fixture-substitution seam) stays as one sentence plus a pointer. Nothing a machine builds changes: not one non-comment line moved, and every machine's and every check's derivation path is byte-identical to master. What proves it is the comment-only gate, the derivation-path comparison, and./check.shgreen on this branch. If it is wrong, revert the two commits; no other repository reads these files.What changed
nix/builders/dev.nix102 to 41,hypervisor.nix29 to 13,privacy.nix7 to 6,shared.nix23 to 14,nix/vm-facts.nix7 to 6,nix/build-zola-site.nix14 to 11,flake.nix138 to 65. Of 25 blocks of three or more lines, 10 became a pointer to the README or an issue, 12 traps were compressed to the sentence that names the wrong edit, 2 contracts were merged into one paragraph, none was deleted outright.secrets ? secretsInputparagraph indev.nixand the "same widening the VM builders got" paragraph inhypervisor.nix, the two the allod/archetypes#93 review had to fix because they pointed by location, are one-line contracts per argument; the reasoning is one paragraph in README## Builders, cited as allod/archetypes#88.dev.nixpoints atnix.md, where allod/memory#63 lands its long form.## Public hostsno longer points at a comment inflake.nixby position; it cites allod/archetypes#55.writing.md(allod/memory#63).Risk
R1. Comment-only: the gate diffs the Nix parse tree (
nix-instantiate --parse, which drops comments) against master and reports zero non-comment changes, and the derivation-path witness covers every machine and every check on both data sets. The residual risk is a compressed trap that a reader no longer notices; the cold review asked that question per block. Rollback is a straight revert.Validation
non-comment lines changed: 0 (files checked: 7); README.md is the only other file changed.nixprocess per item on master and on this branch: 4 machines, 19 checks on template data, 19 checks on the fork fixtures, plusvmFacts,libandnixosModules. All identical../check.shon the move commit (2472fa5):All 32 steps passed (checks: 19 built).The one later commit changes a README line only.gpt-5.6-terraon codex, high effort), asked per deleted or compressed block what wrong edit it prevented and what prevents it now, with every new pointer verified against the README and the memory topic files: one finding, the README pointer by position, fixed indd73908. The transcript shows the diff and ledger reads.Refs allod/archetypes#101
dd73908e1eto9d134a3228