An open source, non-profit web search engine
Make the run judge whether the change earns its lines
Daoud Clarke7aa1eb0221d3
diff --git a/.github/claude/run.md b/.github/claude/run.mdindex c14d1b0..e6d1b15 100644--- a/.github/claude/run.md+++ b/.github/claude/run.md@@ -102,7 +102,7 @@ with write access labels it, and an automation that could label its own would beitself. At most one per run, and never for a style preference, for something a plansection already covers, or for anything you could simply have fixed here.-## 3. Both gates must pass+## 3. Both gates must pass, and the change must earn its linesAny action that changes code has to leave the branch green:@@ -117,6 +117,26 @@ red branch wakes another run to fix what this one could have. If something is gebeyond this change to fix, say exactly what fails and why — never describe a run as greenwhen it is not.+Then read the whole change as a stranger would, before anyone else does:++```+git diff origin/main...HEAD+```++Green is not the same as worth having. Every line you added has to be worth reading again+in a year, and lines are the cost a reviewer pays whether or not they were worth it. Cut+what does not earn its place: a branch defending against something that cannot happen, a+test that restates the implementation instead of pinning behaviour, a comment narrating+what the code already says, an abstraction with one caller, a helper this codebase already+has under another name.++A smaller change that does the same thing is a better change. If the honest answer is that+the issue did not need this code at all, or needed a tenth of it, act on that: cut it back,+or commit nothing and say why. Neither is a failed run.++Do this before section 4, so that whatever survives is what gets reviewed, and say what you+cut and why in your final message.+## 4. Have the change reviewed, in a fresh context**If you committed anything, do this before you push.** A change reaches a human only