Cut the shipped module scripts' comments to contracts, traps and pointers #105
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!105
Loading…
Reference in a new issue
No description provided.
Delete branch "agent/comments-module-scripts"
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 three shell scripts under
modules/that are shipped into dev machines (pi-provider-reconcile.sh,pi-provider-token-select.sh,sync-pr-branch-protection.sh) lose 13 comment lines and keep every contract and trap; not one non-comment line moves. Because the script text is copied into the store, this does move one machine's toplevel derivation (allod-dev, the only dev machine on the template data) and thepi-provider-lifecyclecheck on both data sets, and nothing else; that is why these three files are a PR of their own rather than part of allod/archetypes#104. What proves it is the comment-only gate, the derivation-path comparison showing exactly those three moves, and./check.shgreen on this branch, which builds and runs thepi-provider-lifecyclecheck that executes the two Pi scripts through every reconcile and token-select path. The third script has no check that executes it, before or after this change; its witnesses arebash -nand the build. If it is wrong, revert the one commit.What changed
pi-provider-reconcile.sh73 to 64,pi-provider-token-select.sh14 to 14 (a compressed block and a reshapedusage:header cancel out),sync-pr-branch-protection.sh12 to 8. Ten ledger entries were in scope for the cold review.pi-provider-reconcile.shandpi-provider-token-select.share built aswriteShellApplicationpackages bychecks/pi-provider-lifecycle.nixand executed bychecks/pi-provider-lifecycle/run.shacross the empty-set, missing-secret, concurrent-writer, rollback and legacy-retirement paths, and the token and credential selection modes.sync-pr-branch-protection.shis ahome.filesource inmodules/agent-hooks.nix;consumed-file-carve-outobserves its store path but nothing underchecks/executes it.writing.md(allod/memory#63).Risk
R1. Comment-only in shell text, shown by the comment-stripped diff against master and
bash -n; the derivation-path capture moves for exactly the one machine and one check that carry the scripts, and that check's build and run are green. The residual risk is a compressed trap insync-pr-branch-protection.shthat a reader no longer notices, and that script has no executing witness; the cold review asked the per-block question and found nothing. Rollback is a straight revert.Validation
non-comment lines changed: 0 (files checked: 3).nixprocess per item on master and on this branch: 4 machines, 19 checks on template data, 19 checks on the fork fixtures, plusvmFacts,libandnixosModules. Three lines differ: theallod-devtoplevel, and thepi-provider-lifecyclecheck on template data and on the fork fixtures. All 42 other lines identical../check.shon this branch:All 32 steps passed (checks: 19 built).gpt-5.6-terraon codex, high effort), asked per deleted or compressed block what wrong edit it prevented and what prevents it now:FINDINGS: 0, after reading the three scripts,modules/agent-hooks.nix, the README and 10 ledger entries (the transcript shows the reads; an empty review was ruled out before it was read as approval).Refs allod/archetypes#101
ac885fb552to5384f7bc86