Repository navigation
Call SOUL.md the immovable principles and other instructions guidance, and let a smaller interface cost a small visible difference - #7133
Conversation
…rface cost a visible difference The maintainer asked for these rules to be scaled back on 24 November, after the package-interface redesign ended at 81 functions, 25 manifest keys and 225 styling names against an agreed plan of 17, 17 and about 35. A sort of the 81 functions found 11 that a stated guarantee needs. The rest stayed because three rules were read past their words, and because the root told a survey to "keep anything users would notice losing". What the guidance says now: - The root's opening: `SOUL.md`'s guarantees are the only ones Leaf owes. An area's `AGENTS.md` describes the current design, and a change may replace that design with a simpler one that still meets the values and principles, rewriting the rule and showing what a user will see differently. - "Waiving a guarantee" covers a guarantee `SOUL.md` states. It covered any `AGENTS.md`, so no agent could trade a bullet of an area's file. - "The maintainer decides": work that stops short of a result an agreed plan names reports the shortfall first, as a miss, and proposes the change to a rule that stopped it. - "Keep the package interface small": a name whose work is to keep a look, a first paint or a behaviour exactly as it was goes, and the change shows the difference. - "Regular maintenance": a look, a first paint and exactly how a thing moves are not features, where the text said to keep anything users would notice losing. - "far above its size" reads "far above the bytes it loads", since the sentence is about startup bytes and was read as the interface's size. - `browser/AGENTS.md`: a manifest fact exists for what the server or `page check` acts on, no longer for the first paint. A spec yields to a simpler design that meets its goal. A row of "One answer for each question" is no reason to export its owner to packages. - `packages/AGENTS.md`: a look matched exactly, a final box before the module draws and a behaviour kept as it was are wants, and none is a reason recorded for a name that stays. Three situations join `evals/root-guidance`: a manifest key that only keeps a first paint exact, a closing report on a build that ended short of its plan, and a mechanism whose removal a reader would notice for a third of a second.
Scored with `pnpm run eval:root-guidance --repeat 3`, the root text before this branch already reports a build that ends short of its plan as a miss: 3 of 3 on both wordings. The same run shows what did dilute the plan. Asked whether to remove a manifest key that only keeps a first paint exact, the old text kept the key 3 of 3, citing "a guarantee `SOUL.md` or an `AGENTS.md` states", and the new text removes it 3 of 3. So the paragraph added a second rule for a failure whose cause the branch already changes, and its situation measured nothing.
leaf-agent
left a comment
There was a problem hiding this comment.
The new root paragraph says a shift as a widget first draws breaks no guarantee, but this PR leaves the browser specs that forbid that shift unchanged. So the guidance now gives a reader two directions, and the opening paragraph's own rule ("it rewrites the rule") is skipped in the PR that sets it.
In browser/AGENTS.md, "Leaf's interface", one spec reads: "Without a gesture, as when news arrives or a widget finishes loading, a box may grow or shrink into free room, but reading content and controls stay put". Another reads "generated interface appears in its final position". tests/shift_watch.js enforces the first one, and its credits cover "the page before it presents" but not a module that draws after the page shows. Take the 50 px case in first-paint-key: the move of the content below the widget is the movement the spec forbids, and the watch would fail the change the eval's rubric calls a pass. A session that reads both files has to pick one. The new opening says area rules are replaceable, so a session would likely follow the root, but the spec and its check stay as a trap for every session that reads only browser/AGENTS.md.
The sentence is also categorical where SOUL.md is not. "Incoming updates preserve their reading position" covers a widget that first draws in a live revision or a thread message while the user reads. Scroll anchoring absorbs growth above the screen, but not a widget on screen that grows over the text below it. Scoping the sentence to the page's first load would keep the claim true. Or this PR could rewrite the two specs (and the watch's credit) to say what the root now allows.
…dance, and close what a review found The maintainer read the first wording on 24 November and asked for less "this is only": say what is. `SOUL.md` holds the immovable principles. Every other instruction is guidance, weighed against other guidance, and the opening no longer calls an area's rule "the current design". A fresh review and the pull request's reviewer found ways the first wording would still keep a name, or lose a call: - "Regular maintenance" defined a feature as "something a user or an author can do with Leaf", which every name of the interface is. A feature is now what a user does or an author builds, by whatever route, and a name is not one. - "A shift as a widget first draws breaks none" covered a widget that a live revision brings while the user reads. It now says "on a loading page". - "A smaller interface is worth a visible difference" gains "small". - The list of look, first paint and exact behaviour stood in six places. The root's "Keep the package interface small" keeps it and the others point there. - A module header records what an alternative cost when tried, for a later change to weigh again, where it recorded "why that alternative fails". A first form of these fixes told the author to write the code in a name's place, and `tabs-place-off-the-api` fell from 3 of 3 to 0 of 3: the agent had the widget keep its own place. The paragraph now says a promise the user is owed on every widget is Leaf's to keep from outside, and the situation passes 3 of 3 again. `first-paint-key` quotes a spec that stands, with the check that enforces it, in place of a sentence this branch removed. `name-is-not-a-feature` joins the situations: a colleague calls a manifest key a feature that only the maintainer may take away.
The root now says a shift as a widget first draws on a loading page breaks no guarantee, and the pull request's reviewer found two specs of "Leaf's interface" still asking for the opposite. "Controls stay where the user aims" no longer counts a widget finishing loading among the changes that keep content put, and "Room is held only for what will be drawn" no longer asks generated interface to appear in its final position. Once the page has loaded, news and a live revision still move nothing the user reads or aims at. The `keeps-first-box` check stays until the manifest keys it guards go.
…ng a spec the branch removed
…maintainer's picks (#7195) Adds a `SOUL.md` principle, "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. Root `AGENTS.md` adds 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. > _This was written by Claude Code on behalf of max-sixty_
Scales back the rules that the package-interface redesign followed when it kept names. The redesign ended at 81 functions, 25 manifest keys and 225 styling names against an agreed plan of 17, 17 and about 35, and a sort of the 81 functions found 11 that a stated guarantee needs.
The root now opens by saying what each text is:
SOUL.mdholds the immovable principles, and every other instruction is guidance, weighed against other guidance. Where a rule pulls against a simpler design that servesSOUL.mdas well, the change takes the better, rewrites the rule and shows what a user will see differently. "Waiving a guarantee" covers a guaranteeSOUL.mdstates, where it covered anyAGENTS.md. A name whose work is to keep a look, a first paint or a behaviour exactly as it was goes, at the price of a small visible difference, and a promise the user is owed on every widget is Leaf's to keep from outside. "Keep anything users would notice losing" leaves "Regular maintenance", and a name of the interface is not a feature. The first paint leaves the rule for a manifest key and two interface specs.SOUL.mdis unchanged.To weigh: the opening lets a change depart from a rule that records a past call of the maintainer's, so long as it rewrites the rule and shows the difference. The
keeps-first-boxcheck stays until the keys it guards go, in the change that removes them.The maintainer asked for these edits on 24 November, read the first wording, asked for the opening as it now stands, and asked for the merge.
pnpm run eval:root-guidance --repeat 3: asked whether to remove a manifest key that only keeps a first paint exact, the old text keeps the key 3 times of 3 and the new text removes it 3 of 3. The same holds for a mechanism whose removal a reader would notice for a third of a second. The other 36 situations pass on the new text wherever they pass on the old.