Repository navigation
Write five of the maintainer's calls into the root AGENTS.md, and say who decides what - #6023
Conversation
A fresh agent given only SOUL.md and the root AGENTS.md was asked what it would do in sixteen situations, nine of them calls the maintainer made in the last six weeks. It gave his answer in 42 of 48 runs. Every miss was one of two calls about looks: it put a better-looking control against 107 KB to the maintainer as a decision, and it drew candidate looks of Leaf's own where the shipped library has a design. In both it quoted the root file's own text, "When the user is to choose among designs" and "says what the user gains and why it can't wait". With this change it gives his answer in 48 of 48. - "Use dependencies" moves up among the principles and says a control's look starts from the shipped library's design. - The browser-startup rule says a better look or a more immediate answer is gain enough, to take and report rather than ask about. - "The maintainer decides" gathers the calls that are his, which sat in "Stage", "Where instructions live", "Working on the repository" and developing-leaf: what Leaf is for, waiving a guarantee, taking a feature away, lifting a restriction, an open design. It adds three he has made: a broken guarantee is a defect and not a call, low use on his own pages is not enough to propose a removal, and a choice that recurs gets a rule proposed rather than a question. - "Pages across Leaf updates" keeps what a page records and points to layer-registry.md, "Page protocol", for when to bump, which the browser build checks. The two sentences only the root held move there. - A preamble says how the values, the principles and the rest relate, and "Where instructions live" says a section of rules opens with its goal and that a call the maintainer makes goes into the guidance, since a note in one agent's memory reaches no other agent. - "the user" names the person using a page; the person an agent works for is "the maintainer". SOUL.md is unchanged.
A session changing leaf-dev bench or a workflow loads the root file and dev/AGENTS.md, and the rule that no test passes or fails on a reading lives in tests/AGENTS.md. Read alone, the root's budgets led a fresh agent to keep the daily run's growth gates in 3 of 3 runs; with the pointer it turns them into reported readings in 3 of 3, which is what the maintainer chose in #5522.
…ding in the same section
…otices (#6215) The page protocol marks which Leafs can serve and write a page, so it moves only when a Leaf at the current number would misread an event or record another Leaf at that number wrote. Root `AGENTS.md`, "Pages across Leaf updates", now states that once, with what keeps the number: anything the serving Leaf supplies, including how it parses and draws what the page keeps, even where a logged message or a comment's quote then draws or resolves differently. `layer-registry.md`, "Page protocol", keeps only how the number is enforced and how records carry it (834 → 393 words). Gone: #6208's notice that a message Markdown dialect change bumps the protocol, the same notices on the kernel registry's `$passages` (including the `closing`/`opening` lists #6216 just added) and `$names` (the latter about vendored registries pages no longer keep), `$events.description`'s claim that the protocol covers the served state, and the layer-registry paragraphs that copied `session_runtime.py`'s header or described superseded behavior. **To weigh:** the policy accepts that a passage-reading change can move an old comment onto another occurrence of its quote, and a dialect change can drop a logged widget's action from its thread's history. Codex found both cases; a bump prevents neither, since renewing a page keeps its log for the new Leaf to read by its own rules. Max asked for this after #6208. Reviewed by Codex, whose two findings are fixed. On eight bump questions, six Sonnet runs of the new text answered all 48 as intended, keeping bumps for a renamed field, a non-skippable kind and a changed token meaning. #6023 (draft) rewrites the same `AGENTS.md` section, so whichever lands second resolves a conflict. `pre-commit`, the registry and protocol build tests, and the `AGENTS.md` tests pass. > _This was written by Claude Code on behalf of max-sixty_
Each conflict keeps main's text and carries this branch's changes onto it. - AGENTS.md: "The maintainer decides", the opening paragraph, the benchmark clause, the control-look line, the "Where instructions live" additions and the looks-over-bytes sentence sit on main's restructured sections. The removal bullet points to "Regular maintenance", which main gave the propose-with-losses sentence. "Pages across Leaf updates" stays as main's #6215 wrote it, since that change already gave the bump rules one home. - src/leaf/layer-registry.md: main's text; #6215 moved the sentences this branch added there into the root file, which the section now points to. - running-tend: "The maintainer decides" joins main's list of the sections the review applies.
Rewrites the root `AGENTS.md` so a reader who has only the file can
parse each sentence on the first read. Below "Repository map" no rule
changes: pronouns give way to their nouns, a rule is split from its
mechanism and its reason, and Tend and the server's "reading" are
defined where they first appear. "Keep the layer open" now defines a
content widget, says what core code may not do, and limits the rule
against naming widgets to Leaf's own instructions (`SKILL.md`, its
references, and the entries in `browser/registry.json` and the kernel
registry), leaving a package's guidance free to name any widget, as the
maintainer decided. The defects a review reports in instruction text
become a list, with a new item for a sentence its reader can parse only
on a second read, and Tend's review threshold names that list instead of
the label "public surface traps". In the maintainer's sections above
"Repository map", only the three readings the maintainer picked change:
when Leaf adds code to prevent a failure ("Leaf's role"), that contract
prose may be edited for clarity ("Stage"), and that the code making a
change records it ("Responsiveness").
**To weigh:** Fresh readers given only the file flagged 60 and 72 of
about 250 sentences as needing a second read on `main`; on this branch
two readers of the draft flagged 31 each and a reader of the final text
28, none unsettled. Below "Repository map" that is 41 and 53 down to 13,
13 and 8. Most of what remains sits in the maintainer's sections, whose
proposed rewrite (9 flags in one read) waits on the maintainer. Asked
ten questions about rules the rewrite touched, fresh agents given only
the old file said it left the question open in 6 of 30 answers, and
given the new file in none; every new-file answer matched the code.
Codex compared old and new for changed rules and false claims, and its
eight findings on the first draft are fixed. The file grows from 5,538
to about 6,270 words, since a sentence that names its noun and splits
off its reason is longer. A full-file rewrite conflicts with the open
drafts that edit this file (#6023, #6024, #5979, #5970); it leaves the
`hooks/` line that #6574 edits alone.
Asked by max-sixty, who picked the three readings on the survey page; he
hasn't read this diff. Prose only; pre-commit passes.
> _This was written by Claude Code on behalf of max-sixty_
Each conflict in AGENTS.md keeps main's rewritten wording and carries this branch's change onto it: "The maintainer decides" takes the restriction and open-design passages, "Use dependencies" sits among the principles with the control-look sentence, and the benchmark, counts, where-a-call-goes and looks-over-bytes additions sit in main's sentences.
leaf-agent
left a comment
There was a problem hiding this comment.
The "Taking a feature away" bullet sets a new standard of evidence, but "Regular maintenance" still gives the old one and doesn't point to the bullet. Its "A mechanism users wouldn't miss" item still counts "a public API whose only callers are tests or a single example" as a sign for removal. It also still says "Taking a feature away is the maintainer's call" on its own terms. running-tend sends the nightly survey to "Regular maintenance", not to "The maintainer decides". So a survey session that reads only that item can still propose a removal because a feature has few callers on the maintainer's pages, and the bullet says that isn't enough. The bullet points to "Regular maintenance", but nothing there points back. One fix is to move the evidence bar into the "Regular maintenance" item, which owns removal proposals, and leave the bullet as a pointer. That would also make the description's claim that the scattered statements are now one section hold for this one.
… say when the simple fix is enough The review found two statements of what a removal proposal rests on, with the survey reading only the older one. "Regular maintenance" now holds the rule and "The maintainer decides" points to it. "Fix the underlying issue" gains the paragraph that keeps a fix from taking on work nobody measured as a cost.
Writes five calls Max has made into the root
AGENTS.md, where today's text leads an agent to the opposite answer, and gathers in one section the calls that are his.SOUL.mdis unchanged.Why. A fresh agent given only today's root and
SOUL.md, asked what it would do in sixteen situations written from his recent calls, gave his answer in 39 of 48 runs, and in 25 of 48 on sixteen further calls another agent mined from PR threads. With this change it is 46 and 32. Five calls move from 0 of 3 to 3 of 3: take the better-looking control and report its bytes, start a control's look from the shipped UI library, don't propose removing a feature on his own usage record, never pass or fail on a benchmark, and make the simple fix without also saving work nobody measured.What it removes. The restriction paragraph from "Stage" and the open-design sentence from "Working on the repository", which now sit in "The maintainer decides".
What it costs. The root grows from 6,497 to 6,962 words, read by every session in the repository.
What users would see differently. Nothing; no code changes.
To weigh. The preamble, "The maintainer decides" beyond what it gathers, and the three additions to "Where instructions live" move no score; they are structure, and the first to strike for length. "Use dependencies" moves above "Repository map", so its diff shows as a delete and an add.
Asked for by Max, who read each change beside the call it comes from and chose to land it as written.
pre-commitpasses. An independent reviewer read the first version old against new, and Tend's review of this one is folded in: "Regular maintenance" now holds the removal rule and the new section points to it.