Repository navigation
Give the agent and Leaf one face each for every word about the work, and name the fonts --font-* - #4804
Merged
Conversation
The semantic news notice was one string, so the panel's field drew "Not answered" and "Interrupted mid-answer" upright, though every other seat sets Leaf's reading of an answer in italic (glossary.md, "Reader-facing words"). `semanticNewsNotice` now returns parts, each in the voice of whoever says it: the agent's quoted words, Leaf's reading of what became of an answer, and the interface's counts and "New on me". A notice may be a string or such parts (notifications.js, `noticeText`); the live region hears them as one line, and the field and the folded leaf's peek draw Leaf's runs in italic. A notice with no Leaf run keeps the plain placeholder.
Main's #4790 and this branch each rebuilt dist/kernel, and the textual merge of the two left leaf.js and kernel.json stale for the merged sources.
…e and renderer
Every word a surface shows about the work is now said by the agent or by Leaf, and
each speaker has one face on every surface: the agent's words upright, Leaf's in
italic. `browser/runtime/voice.js` holds the one shape, a part `{text, voice}` made by
`agentSays` or `leafSays` (a plain string is the interface's own words: a name, an
offer of a press, a position), and the one renderer, `voiced`, with `wordsText` for
titles and the live region and `voiceOf` for the field's native placeholder.
Before, Leaf's words were marked three ways (a status part without a `source` was
Leaf's; All pages rows and notices carried a `voice`, a notice's null meaning the
interface) and drawn by hand in each seat, with defaults that drew an unvoiced word
as the agent's. Threads' "Resolved" was upright while the field's was italic, a margin
entry's "3m ago · <agent line>" and the On agent summary's sentences were upright,
and Page Map rows and the margin's held description drew "Delivered" upright.
Every producer now makes parts: `thread/workflow.js` (`workflowWord` replaces
`workflowLabel` and `workflowVoice`, `todoWord` replaces `todoLabel`,
`threadAttention` returns a `word`, `NOT_ANSWERED` and `RESOLVED` are parts),
`activity-words.js` (the status's `voice` field is gone; its parts say it),
`semantic-news.js`, `notifications.js` (`noticeWords`: a notice given as a string is
Leaf's), `margin-model.js` (an entry's line is a part, so `contextVoice` is gone),
`annotation-inventory.js`, `queues.js` and `obligations/answer.js`. Every seat draws
them with `voiced`: the floating panel's field, menu, peek, Threads rows, On me and
On agent lists and summary, All pages; message heads; the working message; margin
entries and their held description; Page Map rows.
Which words each speaker says changes as the user asked on 30 October 2026, "one
font & voice for anything from the agent, and then another for leaf notifications",
with Leaf speaking for the agent "where it's sufficiently reliable what the agent
would be saying":
- The agent's voice now also says Replying (its reply is streaming), Edited (in a
notice), and how it ended its own to-do or answered an update (Done, Answered).
- Leaf's italic now also says what it counts or reports that was upright before:
"2 unread", "New on me", "2 replies in 1 thread", "Waiting on me", "Resolved", every
notice ("Resolved the thread", "Updated to v4"), how the user's obligations ended
("Answered: Fast", "Withdrawn"), and the On agent summary's sentences, where the
agent's line now stands in its own face without quotation marks.
- Names, offers and positions stay upright: a thread's title, Draw mode, Reply,
"3 of 11", a time.
The glossary's "Reader-facing words" states the rule; `browser/AGENTS.md` names
`voice.js` as its owner.
Page Map rows name an item by words someone says where the row reports it, as a receipt's row already does: "Waiting on me" and "Paragraph changed since v1" are Leaf's, and an agent's to-do row says its running line in the agent's voice (`words` on an inventory item, drawn by `voiced`). The panel's notice test now checks the voice the field's native placeholder wears, since a notice all Leaf says no longer draws a rich placeholder; the field's placeholder sits in a closed shadow root, so the test reads the voice on its host.
The notice a thread shows for news held back while the user reads ("1 new reply ·
1 thread reopened") is Leaf's news, so its facts and counts wear Leaf's italic, as
"New on me" does in the panel's field.
# Conflicts: # dist/kernel/kernel.json # dist/kernel/runtime/bundle-layer-client.js
"Voice" now means only who says a word (`data-voice`, voice.js): the `--voice-*` tokens are values for the `font` shorthand, so they are `--font-*`, and prose that called a typographic register a voice says font or face. The model test that holds every interface rule to a declared font is test_interface_fonts.py. Each speaker's words now wear one face on every seat: the agent's regular and upright, as its messages are set, and Leaf's in that face's italic. A seat sets only their size and leading. Before, a voiced word took its seat's weight, so the agent's line and Leaf's notices read at 500 in the field and held news at 600; the field's notice and error now stand out by colour alone.
…'s face
A message's "Not answered" and what an answer leaves now read in their
speaker's face, so their seats' 600 weight did nothing and is gone; the
failure stands apart from the time by colour and italic, and its test reads
the words rather than the seat. Held news measured its short form ("2 new")
in the press's face, though the words draw it in Leaf's.
leaf-agent
approved these changes
Oct 31, 2026
max-sixty
added a commit
that referenced
this pull request
Oct 31, 2026
… control default weighs nothing (#4805) Markup's reading face (`reading.css`) now stands in a cascade layer of its own, `lf-reading-face`, the first sublayer of the tier its sheet composes into: `lf-base` in the document and `lf-shadow` in a declared tree. Every component, package and theme rule of the tier outranks it whatever its weight. So the native control default no longer needs a class's weight to beat the face's element rules, and the fonts check loses its one named exemption. ### What changes - **The native control default weighs nothing** (`surfaces.css`): one weightless rule naming `--font-ui`, beside a weightless rule for the face classes' ink, which stays separate so a page's own bare `<button>` keeps the browser's ink as before. `tests/model/test_interface_fonts.py` drops `CONTROL_DEFAULT` and its skip, and `test_interact_layer.py` reads the two rules. - **The frame reset joins the face's layer**, so the face's own frames (a quotation, a disclosure, a cell) still outrank `* { --lf-block-frame: 0 }`. Left above them, it stopped a disclosure trimming its last child's margin. - **Workarounds the layer settles are gone:** the face's key rules no longer exclude `.lf-key-badge`, whose own rule outranks them; inline code drops `display`, `contain` and `isolation`, which answered a source renderer's reset that #1599 already scoped to its source blocks; three of About's declarations that restated the face exactly go. - **lf-call-diff's location link** states its own hover underline colour, which the face's heavier `a:hover` used to supply. - **package-themes.md** tells theme authors their rules outrank the face at any weight. Chromium 156 and Firefox 157 both rank a weightless rule of the tier over a (0,1,1) face rule, in the document and in a shadow root. ### The dialogs keep the reading face The session's Leaf page asked whether Leaf's dialogs should stop wearing the reading face. Measured by turning it off for the chrome (threads and Markdown keep it) over 34 dialog, panel and thread states, and by dropping each About, command reference and Page Map declaration in turn: About takes its terms' weight, inline code chips, list spacing, the disclosure's padding and the copyable text's ground from the face, and would need about nine rules to restate them, while the command reference and Page Map take nothing visible. A reset deletes no rule, since the browser's own heading and paragraph defaults need the same restatements, so the chrome keeps the face. ### Checks - `leaf-dev stills` on 28 states against main after #4804 (About light and dark, the command reference, Page Map, page search, On me, the leaf's menu, the plan panel, threads and replies, tasks, diff, walkthrough and native code, playground controls, gallery and theme, a phone table, a scrolled Markdown preview): no face appears on one side only, and the one computed difference in every state is the panel's Send, whose line height goes from 20.3px to 21px. Send's own rule (`font: inherit`, floating-panel.css) now outranks the default as its comment intends, where the class-weighted default used to override its leading; Send is an icon centred in a box of fixed height, so it draws the same pixels. About differs by more than antialiasing only in its fingerprint, runtime ids and port. An earlier run over all 302 states found the same single difference. - `tests/model/test_interact_layer.py` and `tests/model/test_interface_fonts.py` pass on the branch merged with main. > _This was written by Claude Code on behalf of max-sixty_
max-sixty
added a commit
that referenced
this pull request
Oct 31, 2026
Main renamed the interface's voices to fonts (#4804) and added --font-goal. The per-part rule in base.css now resolves --font-message, --font-name and --font-goal on the root and each chrome part, and the package-themes reference and the restyle test name the fonts. The kernel manifest is rebuilt from main's.
leaf-agent
added a commit
that referenced
this pull request
Nov 1, 2026
The touch checks counted retained DOM nodes rather than visible keyboard hints. The composer keeps an empty badge when a placeholder needs rich content, and the existing `.lf-key-badge:empty` rule hides it with `display: none`; the failing CI screenshot shows no key badge. Both touch checks now require zero visible badges, preserving the guarantee that a phone advertises no keyboard shortcuts without constraining the retained renderer's structure. Runtime behavior is unchanged. The reported field assertion fails on current main with one retained badge. After the assertion correction, both focused touch tests pass (2 passed): ```sh uv run pytest tests/browser/navigation/test_key_surfaces.py -q -n0 -k 'field_names_no_key_to_a_finger or coarse_pointer_keeps_useful_status' ``` The rich placeholder supports the separate speaker faces introduced in #4804 and the reply arrangement in #4510; this repair keeps those choices. The existing placeholder-text checks and navigation checks remain in place. Closes #4923 — automated triage Co-authored-by: leaf-agent <[email protected]>
leaf-agent
added a commit
that referenced
this pull request
Nov 22, 2026
This week's duplicate sweep of `dev/`, `build/`, `tests/` and `worker/` (week 47) moves six duplicated helpers onto one home each and moves every caller. Behavior stays the same. The touched model tests, the dev js_facts tests and the Worker's routing, storage and index tests pass. A script compared the old and new outputs of the consolidated `leaf_dev` functions and the seeded-log reads across the corpus, and they match. | Question | Home | Copies removed (introducing PR) | |---|---|---| | Which stylesheets do the core and the bundled packages ship, leaving out vendored files? | new `interact_support.shipped_sheets` | `sheets()` in `test_interface_fonts.py` (#4804) and `test_theme_tokens.py` (#6025). Five inline loops in `test_interact_layer.py` (#3138, #3886) | | Run `tests/js_facts.mjs` | `interact_support.js_facts` (#2666) | its own subprocess call in `dev/tests/test_js_facts.py` (#5118) | | Lowercase hex of bytes in the Worker | `routing.hex`, which is `newSessionId` (#313) renamed, plus a `sha256Hex` in `storage.ts` | the publication-identity and chunk-digest copies in `storage.ts` (#2652) | | Is this pid alive? | `leaf.machine.pid_alive` | `_alive` in `tests/process/test_codex_tool.py` (#3331). `running()` in `test_interact_layer.py` (#1774) | | Read an example's seeded log | `read_event_lines(seed_log(source))` (#4484) | inline parsers in `test_render_pages.py`, `test_interact_product.py` (#924) and `test_render_gate.py` (#509). The last one split lines with `splitlines()`, which also breaks at U+2028 | | Paths of the bundled registries and packages; which registry keys name elements | `leaf.schema.ASSETS` / `BUNDLED_PACKAGES` / `DEFAULT_PACKAGE`, `leaf.registry.contract.is_element_name`, `docs.registries()` | `docs.py`'s own `ASSETS`/`PACKAGES` (#3593) and its `startswith("lf-")` checks (#2660). `logs usage`'s hand-written regex and registry list (#5970). `ROOT / "packages" / "default"` in `stills.py` (#3927) and `test_product_page.py` (#3593) | `is_element_name` and the two checks it replaces give the same answer for every key in the bundled registries today. A selector key such as `lf-options.selected` would have passed the `lf-` prefix test. <details><summary>Sets found and left alone</summary> - **Sets an open PR is changing.** Nothing in this diff overlaps another open PR's hunks. #6732 moves tests out of `test_render_gate.py`, `test_render_pages.py` and `test_interact_layer.py`, but none of the tests changed here. - **Changes to browser tests with nothing run to check them.** The WCAG contrast computation exists as about 11 copies across browser, journey and model tests. Other copies: about 9 `EDITOR_ROOTS` shadow-root keepers, the `/api/interaction` batch predicates, CDP `touch()` closures, one-line patch templates, reply-holding route handlers, and the `data-lf-entry` runtime-module import snippet in `dev/leaf_dev/states.py` and in tests. Each would mean editing browser tests that this sweep can't run on a shared host. They suit a sweep that can run those tests. - **Vendor bundling.** `build/browser/build.mjs` builds signals-core and Lit with esbuild calls that repeat `build/vendor.mjs`'s `bundle()`. Merging them changes build options and needs a full `check:browser` byte comparison, so it was left for a change that runs that. - **Copies that are near but not the same.** `_build.py`'s `check_links` repeats `leaf_website.released_path`, but it also needs the matched page's root and kind. The list of API-key variables an eval drops is repeated across Python and the Promptfoo configs, as subsets and supersets of one another. The Codex token-expiry check has different thresholds, 1 h and 60 s. - **Too small to be worth it.** Picking a free loopback port (`eval_user.py`, `interact_support.available_loopback_port`). The XDG state root in `leaf_dev.state_home` and `leaf.state.state_home`. The `settled` helper in two `tests/runtime` files. </details> Co-authored-by: leaf-agent <[email protected]>
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.
Every word Leaf's chrome shows about the work is now said by the agent or by Leaf, and each speaker has one face on every surface: the agent's words regular and upright, as its messages are set, and Leaf's in that face's italic. A surface sets only their size. Before, each surface marked Leaf's words its own way and an unmarked word drew as the agent's, so Threads said "Resolved" upright while the field said it in italic, and a word took its seat's weight: the field's notice at 500, a thread's held news and a message's "Not answered" at 600.
One shape and one renderer.
browser/runtime/voice.jsdefines a word part,{text, voice: "agent" | "leaf"}, made byagentSaysandleafSays, andvoiced, which renders each part as<span data-voice>. A plain string is the interface's own words: a name, an offer of a press, a position in a walk. Every producer of words about the work makes parts:thread/workflow.js(workflowWord,todoWord,threadAttention().word),activity-words.js,semantic-news.js,notifications.js(noticeWords),margin-model.js,annotation-inventory.js,queues.jsandobligations/answer.js. Every seat draws them throughvoiced, and one rule incomponents/controls.cssgives each speaker its face. The field's native placeholder can't hold spans, so it wears its run's one voice (voiceOf,floating-panel.css); a run whose speakers differ draws as spans.Who says what. The agent says its status line, its messages and its to-dos' titles, and Leaf speaks for it where what it would say is reliable: On it, Replying, Your turn, Answered, Done, Edited. Leaf says everything else about the work: counts and news ("2 unread", "New on me"), "Waiting on me", "Resolved", every notice, a thread's held news, "Answered:" before the user's answer, and the sentences of the On Claude summary. A count that belongs to a name ("On me 3", the Resolved group's count) is the interface's.
glossary.md, "Reader-facing words", states the rule.Fonts are
--font-*. "Voice" now means only who speaks, so the theme's--voice-*tokens are--font-*, andtests/model/test_interface_voices.pyistest_interface_fonts.py.Behavior the tests now record: Page Map, margin and Threads words carry their speaker; the On Claude summary drops the quotation marks around the agent's line, which stands in its own face; an all-Leaf notice in the field marks the field
data-voice="leaf"; a message's "Not answered" stands apart from its time by colour and italic rather than weight.Tested: the runtime tests,
check:browser, pre-commit, the font model test, focused browser tests of the panel, margin, Page Map, On me and held news, and before/after stills of the states that show these words.