Skip to content

Point the browser guidance at its module headers instead of a stale file table, move the renderer contract beside its owners, and correct two claims on the site - #6024

Merged
max-sixty merged 4 commits into
mainfrom
fable-prose
Nov 22, 2026

Conversation

@max-sixty

@max-sixty max-sixty commented Nov 15, 2026 •

Copy link
Copy Markdown
Owner

Cuts from the maintainer guidance a list the code already keeps, moves one contract to the file whose readers act on it, and corrects two claims on the site. No rule changes.

What it removes. From browser/AGENTS.md: the table of runtime files by concern. 73 of the runtime's 194 top-level modules are missing from it, while 287 of its 290 modules state their concern in a header, so the section now points to the headers and to the tested owner index below it. From the root AGENTS.md: the renderer contract (present(), whenDocumentPresented(), PRESENTATION_DOM), which only browser code acts on and now sits in browser/AGENTS.md, "One writer for each fact", in the root's wording.

What it costs. A reader who used the table to find an owner reads module headers or the owner index instead. The root file goes from 6,497 to 6,387 words and browser/AGENTS.md from 10,769 to 10,552.

What users would see differently. Two claims on the site now match the code: a sent comment, reply or reaction can be withdrawn (src/leaf/events.md, "Undo"), and a bounded box opens at its newest entry only with data-bound="end".

To weigh. "Runtime ownership" gains a heading, "What a style rule costs", over its paragraphs on :has() and ::highlight(), and two counts in that file become plain plurals.

Asked for by Max. pre-commit and tests/model/test_owner_index.py pass. An independent reviewer read old against new for every hunk before the merge from main, and the merge took main's text wherever main had already made the same cut.

This was written by Claude Code on behalf of max-sixty

… move the renderer contract beside its owners, and correct three claims on the site

browser/AGENTS.md listed the runtime's files by concern in a table that 73 of
the runtime's 188 top-level modules were missing from, though 285 of its 288
modules state their concern in a header. The table goes; the paragraph points
at the headers and the tested owner index. Three clauses there told when a
behavior changed and what it did before, which a commit holds. The renderer
contract (present(), whenDocumentPresented(), PRESENTATION_DOM) sat in the root
file though only browser code acts on it, and moves to "One writer for each
fact". The paragraphs on what a :has() or ::highlight() rule costs get a
heading of their own.

On the site, How it works said a sent message cannot be withdrawn and that undo
depends on whether the agent has picked a gesture up; events.md says a comment,
reply or reaction can be withdrawn and that the agent's progress decides
nothing. Extending said a bounded box opens at its newest entry, which only
data-bound=end does.

tests/AGENTS.md and developing-leaf name the maintainer where "the user"
meant the person an agent works for beside the person using a page.

No rule changes: browser/AGENTS.md goes from 9,559 to 9,241 words and the root
file loses 66.
… depth, drop the dated clause's copy in the keyboard guidance, and say undo takes back a gesture

The reviewer found no rule, qualifier or check name lost. Its findings: the
command for reading headers missed modules two directories down and was written
from the repository root in a file whose paths are relative to browser/; the
same dated clause stood in keyboard/AGENTS.md, which keeps its reason and loses
the date; How it works still called what z withdraws an action, where events.md
says the newest gesture, a comment included; and developing-leaf named one
person two ways after a single sentence changed, so that file is as it was.
max-sixty added a commit that referenced this pull request Nov 17, 2026
…s that made it (#6212)

Removes the history the tree had collected in module headers, comments,
test docstrings and eval-case comments: dates of decisions, who asked
when, the incidents and sessions behind them, replay and pass counts, PR
numbers cited as provenance, and accounts of earlier versions. Each
decision stays with its reason, whether the user made it, and the
alternatives a later change might reach for, now stated as rejected with
why they fail. The removed history stays in the commits that added it
(`git log -L`). #6210 changes the two rules that produced it.

Lines matching a dated-history pattern outside `notes/`, `examples/` and
fixtures go from 264 to 17; the rest are page and prompt data, a page
revision's "first version", and three `browser/AGENTS.md` clauses #6024
already removes. Provenance PR numbers leave code comments; one open
`TODO(#4041)` stays. `src/leaf/clerk.py`'s docstring goes from 250 lines
to 190.

What to weigh: a figure that a constant, bound or budget is sized from
stays (`DEADLINE_S`, `ROLLOUT_MS`, `FEW`), and so does a version that
bounds an observation (a Playwright build, a Claude Code version). An
observation of a browser or of Claude Code that carried a date now says
what the code guards against ("Chromium can leave … hovered"), since
dropping the date alone would have asserted a law. `notes/` keeps its
dated research. Every hunk is a comment, docstring or string; no
assertion changed. `packages/default/styles/sample.css` also loses a
paragraph that described the suggestion as boxless, which `base.css` no
longer makes it.

Conflicts: open PRs that touch these 423 files, such as #6156 in
`forks.py`, will resolve comment hunks when they next merge `main`.

Asked for by Max on #6160's review. Six agents swept by area; an
independent Codex pass per area compared old and new text claim by
claim, and a second pass checked the fixes; their findings are fixed.
`pre-commit` passes on every changed file, as do the tests that read
them.

> _This was written by Claude Code on behalf of max-sixty_
max-sixty added a commit that referenced this pull request Nov 20, 2026
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_
Main cut the dated history clauses itself and rewrote the undo paragraph on the
site, so those hunks take main's text. This branch keeps the runtime file table's
replacement, the renderer contract's move beside its owners (in main's wording),
and the two site corrections that still hold.

@leaf-agent leaf-agent left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The description no longer matches the diff after the merge from main, and it becomes main's commit message when the PR is squashed. Main had already cut the dated clauses and rewritten the undo paragraph, so the diff no longer does three things the body still claims. It removes no "three clauses saying when a behavior changed" and doesn't touch browser/runtime/keyboard/AGENTS.md. It makes two corrections on the site, not three: nothing in the diff changes what the site says about z or about the agent picking up a gesture. The word counts may be stale too. The body also doesn't mention that the diff splits a new ### What a style rule costs heading out of "Runtime ownership". Rewrite the body to match the merged diff before marking the PR ready.

@max-sixty max-sixty changed the title Cut the stale file table and dated history from the browser guidance, and correct three claims on the site Point the browser guidance at its module headers instead of a stale file table, move the renderer contract beside its owners, and correct two claims on the site Nov 21, 2026
@max-sixty
max-sixty marked this pull request as ready for review November 22, 2026 01:54
@max-sixty
max-sixty merged commit 87d1fa6 into main Nov 22, 2026
7 checks passed
@max-sixty
max-sixty deleted the fable-prose branch November 22, 2026 02:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants