Cut the wrapper scripts' comments to contracts, traps and pointers #102
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!102
Loading…
Reference in a new issue
No description provided.
Delete branch "agent/comments-wrappers"
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?
The four gate scripts (
check.sh,check-selftest.sh,fork-safety.sh,fork-safety-selftest.sh) lose 74 comment lines and keep every contract and trap: each head now states what the script does and refuses, names the traps in one sentence each, and points at the README,nix.md,testing.mdorshell.mdfor the reasoning instead of retelling it. 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,./check.shgreen, and both selftests green on this branch. If it is wrong, revert the one commit; no other repository reads these files.What changed
check.sh98 to 80,check-selftest.sh81 to 56,fork-safety.sh88 to 77,fork-safety-selftest.sh78 to 58. Fourteen blocks of three or more lines were compressed, none deleted outright: every block in these files carried a contract or a trap.fork-safety.sh's head keeps the fork-safe contract in one sentence and the traps (path:versus the git fetcher,path:on the repository root, onenixprocess per check,set -eand inverted commands) as one sentence each, pointing atnix.md,testing.mdandshell.md, which already hold the long form. The allod/archetypes#88 story is cited, not retold.writing.md(allod/memory#63).Per-block accounting (what wrong edit each compressed block was preventing, and what prevents it now) was the input to the cold review below.
Risk
R1. Comment-only: the parse-tree and comment-stripped-shell gate shows zero non-comment lines changed, and the four scripts are not part of any derivation, so no machine or check output moves. The residual risk is a compressed trap that a reader no longer notices; the cold review asked that question per block and found nothing. Rollback is a straight revert.
Validation
nix-instantiate --parseand comment-stripped shell text diffed against master,bash -non every script):non-comment lines changed: 0 (files checked: 4).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 this branch:All 32 steps passed (checks: 19 built)../check-selftest.sh:PASS../fork-safety-selftest.sh:PASS.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:FINDINGS: 0, after reading all four files and 17 ledger entries (the transcript shows the reads; an empty review was ruled out before it was read as approval).Refs allod/archetypes#101