Repository navigation
Add "Keep Leaf's code plain" to SOUL.md, and put a code price on the maintainer's picks - #7195
Merged
Merged
Conversation
…maintainer's picks `SOUL.md` gains a principle: Leaf's ingenuity lies in what its principles promise, not in technically difficult code; its code is the ordinary, idiomatic code of a web page and a local server; and complicated or unidiomatic code usually means a requirement held more exactly than the user needs, where giving up a tenth of the requirement is worth half the code. The paragraph takes the two sentences on a mechanism's cost and rare paths from "Keep the foundation small and extensible", which drops "difficult" from its "difficult behavior", and the two citations of the rare-path sentence move with it. Root `AGENTS.md`, "The maintainer decides", gains a bullet for the case an agent can't trade itself: when a guarantee, a root principle, or a pick the maintainer made expecting far less code is what keeps code complicated, the agent brings the maintainer the price and what the user would see with less, and keeps the requirement until they decide. "An open design" asks for each candidate's cost in code beside its picture, since a survey of the largest mechanisms built since October found most began as a pick made on looks alone. Scored with `pnpm run eval:root-guidance --repeat 3`, six situations added. Over three runs, letting go of focus under the panel by a second visibility reading went from 1 of 9 to 9 of 9 answers that relax the rule or bring its price instead, and the field editor's next key handler from 4 of 9 to 9 of 9; no existing situation regressed. A counterfactual on the root text before #7133 found the paragraph alone would not have stopped the package-interface dilution: `first-paint-key` and `noticed- is-not-kept` stayed 0 of 3, decided by the rules #7133 has since rewritten. To weigh: the editor, focus, scroll and drafts situations apply this principle to cases from #7185, #6815, #6951 and #6124 rather than replaying a call made on them. `drafts-keep-both` fails on both arms: answers drop the merges but keep a control the maintainer's pick (#6454) did without. max-sixty asked for the principle; Codex reviewed the draft, and its findings on the paragraph's reader, the escalation's wording and three rubrics are folded in.
leaf-agent
previously approved these changes
Nov 25, 2026
… its server "Keep Leaf's code plain" named a web page, a local server and the browser, which left out the harness hooks, the Pi extension and the Worker. The six situations the paragraph added score as before on the reworded text: five pass 3 of 3, and drafts-keep-both still fails.
leaf-agent
approved these changes
Nov 25, 2026
max-sixty
added a commit
that referenced
this pull request
Nov 26, 2026
…ntainer decides" (#7215) Root `AGENTS.md`, "The maintainer decides", opens again with main's "and take a call its guidance settles", which #7184 had replaced with "A call outside the list below is yours". The rest of #7184's opening stays: the work doesn't wait on the maintainer for a call outside the list, and the agent names the call so they can reverse it. In the root-guidance eval, #7184's text failed `filter-hooks-simply`, one of #7195's cases, in 9 of 18 samples, against none of 9 on the text before it: the agent built the in-process hooks gate as well as the narrow subscription, and two failing answers cited "is yours" as licence. With the clause restored, the case passes 10 of 12. #7184's eight cases pass 24 of 24, and main's 44 cases, this one among them, pass 117 of 132, against 112 for the merged text and 116 for the text before #7184. Found while scoring #7184; max-sixty approved this wording on a Leaf page. > _This was written by Claude Code on behalf of max-sixty_
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Adds a
SOUL.mdprinciple, "Keep Leaf's code plain": Leaf's ingenuity lies in what its principles promise, not in technically difficult code, and complicated or unidiomatic code usually means a requirement held more exactly than the user needs, where a tenth of the requirement is worth half the code. RootAGENTS.mdadds the escalation: when a guarantee, a root principle or a pick made expecting far less code is what keeps code complicated, the agent brings the maintainer the price and keeps the requirement until they decide. "An open design" now asks for each candidate's code cost beside its picture, since most of the largest mechanisms built since October began as a pick made on looks alone.pnpm run eval:root-guidance(six situations added, three runs): answers that relax the panel's let-go rule or bring its price rose from 1 of 9 to 9 of 9, and for the field editor's next key handler from 4 of 9 to 9 of 9, with no regressions. On the root text before #7133, the paragraph alone left the package-interface cases failing; those were decided by rules #7133 rewrote.To weigh: four situations apply this principle to past cases rather than replaying a call made on them.
max-sixty asked for this; Codex reviewed it.