writing.md: add the code comments rule #63
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/memory!63
Loading…
Reference in a new issue
No description provided.
Delete branch "agent/code-comments-rule"
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?
writing.mdgains a short "Code comments" section, andnix.mdgains the long form of one trap the comment-cutting PRs cite by pointer: a comment in code is a contract, a trap, or a pointer, and everything else moves out or is deleted. Nothing changes for any running machine; this is a memory rule that the comment-cutting PRs in allod/archetypes cite and that outlives them. What proves it is the diff itself, ten lines of prose, and the tracked memory-budget hook passing. If it is wrong, revert the one commit.What changed
nix.md: a new entry, "An agenix ciphertext argument is a path, never a string", the reasoning thatnix/builders/dev.nixnow cites as(nix.md)instead of carrying inline.A new
## Code commentssection inwriting.md, placed before "Where this applies", stating the three kinds of comment that survive and five rules: name the thing, never its position; one paragraph per binding; an enforceable "don't" becomes the check (architecture.mdprinciple 14); the test for a block is whether a good reader would plausibly make a wrong edit without it; no trap is lost when comments are cut.The section is the rule allod/archetypes#101 asks for, so it opens first and that issue's PRs cite it.
Risk
R0. Prose only; the memory budget hook (
.hooks/memory-budget --worktree) passes,writing.mdis 3.9 KB andnix.md18.3 KB against a 24 KB cap.Validation
.hooks/memory-budget --worktree: exit 0.Refs allod/archetypes#101