Repository navigation
Make a sidebar's track its aside, add a side-list queue and render-check screens, and isolate eval children - #1363
Merged
Merged
Conversation
The plain arm now takes out the current arrangement vocabulary: the Layout classes, lf-pane, data-width, data-rail, the margin idioms and data-lf-margin. It replaces the guide from "Composing a page" to "Draw the subject" whole, teaching the reading column as page CSS, and empties layouts.css. The first attempt leaked: plain authors grepped for a size the plain guide names and read layouts.css, or took layout-sidebar from the monitoring package's guidance, and three of six plain pages used the classes. So the leak check now covers every package's guidance and registry and the Layouts' stylesheet, and the five packages' sentences are rewritten in plain terms. score writes results/<batch>.json and summarize writes results/<batch>.md and every usable verdict, so a later run has something to compare against. The vocabulary counter follows the new terms and no longer counts layout-sidebar as a sidebar. At 7ea3819, three rounds of document, dashboard and queue: all 36 pages pass the render check, and no plain page uses the vocabulary. The blind judge preferred leaf in 9 pairs, plain in 3, and split 5 (1 discarded), against 4/11/3 on the first run's layout. Leaf wins every queue pair; it loses dashboards at 900px before the preference and documents after it. Leaf pages carry about 60% of the plain arm's CSS. Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
`layout-sidebar` took its last child as the side track, and a stacked row keeps source order, so on a phone the track always came after the whole body. In the arrangement eval every Leaf document moved its summary and contents into that track for a 900px preference, and on a phone the judge found them after ten screens of review (14 judgments against 1 for pages written in plain CSS). The track is now the Layout's `aside`, wherever it is written: before the body it stands on the left and comes first where the two stack, after it on the right and last. The rule names the element's meaning instead of its position, and a column page's sidebar is already an aside. The guide says to write the aside where a reader of the stacked page needs it. The four sidebar examples, the command-hub registry example and guidance, the how-it-works snippet and the wide-page contract fixture write their tracks as asides, each still after its body. A new test holds both orders at 1440px and on a phone; it fails on the old rule, where an aside written first took the body's share. The eval case sidebar-track-is-its-aside pins the guidance. Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
…stops at In the arrangement eval every Leaf dashboard and document read at 900px overrode layout-sidebar's flex bases or rebuilt it as a grid to keep its track beside the body, where the Layout already kept it: it stacks below a window of about 870px (30rem and 18rem bases, the gap, and a 4% gutter). No author could tell, since the guide gave no width. Every document in both arms also made its track sticky by hand, one under the banner and one taller than the window, so its end stayed hidden until the page ended. The guide's wide-page section now says where the two stack, and that a track shorter than the window sticks at `var(--lf-top)`, the banner's height, while a taller one stays in flow. The eval case sidebar-page-at-900px pins both. Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
The first judging failed every page that kept the summary in view with position: sticky, which the guide recommends; the case allows it now. Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
The arrangement eval's Leaf pages lost where a glance would have caught the fault: a drawing shrunk in a 504px body, four tiles wrapping 3 + 1, a pin over the end of a heading, a summary the phone put after the whole page. No author could see them. The render check reports what is broken and shows no picture, and authors screenshotted widths they chose (mostly 1400 and 900px); 2 of 18 looked at a phone, none of them in the Leaf arm. A passing `version check --render` now saves screens and names them: the page top to bottom at the desktop viewport and on a 390px phone, and one screen at each width where the page's own arrangement is at its tightest before it changes, or where its margin content changes. The sweep that already walks the loaded page from 360px to 1920px reads, at each width, how every flex or grid box the page wrote splits its children into rows; a change between two steps names the width and what changes (`main 1+2 → 1+1+1`). Judging the picture stays with the author: the pre-handover review says to read every screen. The screens are the command's (render_gate/screens.py), not the gate's: the render suite reads render_version and pays nothing for them. They go to one temporary directory per page, emptied at each check, since a file in the page directory would count as activity on the page. A test checks a sidebar page with a tile row gets desktop, phone and both arrangement screens, and that a second check replaces them. Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
… item In the arrangement eval five of six queue pages rebuilt "a list beside its detail" by hand. Two Leaf queues wrote 33 and 50 lines of script to mark the open ticket, hide the others and show each ticket's decision, reading it from the options' `chosen` attribute; a third showed its queue twice; two plain queues restyled lf-tabs' internal classes into a column. lf-tabs already is the selection: one panel on screen, a link, an Ask or a comment opening its own, the choice kept across a reload. `list="side"` stands the list in a column left of the open panel where the set holds both, and in a row above it below 36rem, as on a phone, so the open item never lands below the whole queue; the set is its own size container, and its parts ask it. The list is walked up and down as well as across. An lf-tab's optional `summary` stands under its name in a side list, the few words a queue's row needs. Every tab set's tabs count the Asks in their panel the user still owes, read from the page's one Ask selection (openAsks, watchAsks), so an answer waiting behind an inactive tab shows in the list that opens it. The authoring guide's workspace section says a queue is one side list and that no script should select, hide or mark items; its pane example is now a log beside its chart. A test holds the column at 1200px, the row on a phone, the walk, the summary, and an answer clearing only its own tab's count; it fails on the old widget. The eval case queue-is-a-side-list pins the guidance. Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
# Conflicts: # evals/README.md # tests/test_render_commands.py
Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
…xture The corpus floor wants every declared attribute on a page: the gallery's new scenario is a three-item queue with row summaries, one Ask whose count shows on its row, and the walk and the stacking width to inspect. The sidebar track test no longer closes the page the browser fixture owns. Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
# Conflicts: # evals/README.md
Checkpoint before replacing the per-finding patches with fixes at their causes. Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
…ome of their own The first pass answered each finding where it surfaced. This replaces those patches with fixes at the three mechanisms behind them. - lf-tabs: how a set is drawn is one fact, `data-lf-tabs-flow` (`page` or `box`), that the module writes once. The cover, the sticky strip, page-flow panels and each view's own scroll place all read it; history and fragments stay with the first set in main. A root side list is a box. It no longer undoes sticky with an override, and switching it no longer jumps the page to the top. - lf-tabs: every tab is named by its label. The name span carries `lf-tab-name`, which the selection faces key on, so the side summary no longer takes the selection face. Δ and owed-Ask counts are one path on every tab set again, as the design stated. Every boxed set's panel is a container, which fixes a board overflowing an embedded tab set. `data-lf-root-reading` had no reader and is gone. - The arrangement reading moves into the render-check probes as `arrangedBoxes`. It names boxes through locate.js's `at()` and counts items through `laidOutItems`, now shared with `splitEdges`. - The guide keeps a short sidebar track in view with a stretched aside and a sticky block inside it. A width query, which missed the Layout's content-driven stacking, is gone. Both sidebar eval cases grade that. - Eval children run under a home of their own, linked to the user's Library for the keychain login. Children given the user's home had appended their scripted preference to ~/.claude/CLAUDE.md six times. This replaces the project-only-settings flag. Tests: the side-list test now covers the tab name, row heights across an answer, the panel bound and a root side list's switch in a scrolling page. The command test names its box with a digit-leading id. Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
# Conflicts: # docs/registry.html # evals/README.md # notes/arrangement-eval/README.md # skills/leaf/assets/theme.css
Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
…he sidebar A page that scales with the window showed its drawings and Asks at nearly twice their size at 1730px, and no screen reached past the 1200px desktop. The check now also saves the page top to bottom at the sweep's widest width. The guide's sidebar example put "a review's summary and contents" in the track, which pulled a page read in order into `layout-sidebar`. The example is now a code review's verdict and file list, and the guide sends a reading page's contents to the margin. `sidebar-track-is-its-aside` moves to the same subject. Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
…DIR, and correct the records A child's home now stands beside its cwd rather than in it, so a child listing its own files never sees its host's. `CLAUDE_CONFIG_DIR` no longer reaches the child, where it would have pointed it back at a config directory of the user's. The docstring now says the home redirects `~` rather than guarding every path. The arrangement-eval README says the second run's phase-2 children read and wrote the user's CLAUDE.md. The evals README row for the reading-page change says its A/B measured the sticky change again, since its base predates it. The guide's and screens.py's wording of the three top-to-bottom passes is clearer. Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
# Conflicts: # docs/registry.html
Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
leaf-agent
reviewed
Sep 27, 2026
leaf-agent
left a comment
Collaborator
There was a problem hiding this comment.
The eval child's isolation fails on a repeated Linux phase and still exposes the user's full Library on macOS. The render-check screens also omit the end of long pages. Details are inline.
…ns stop short of a long page The child's home linked the user's whole ~/Library, which a bypass-permissions child could write through. On a host without one, the link dangled and a second call on the same cwd raised FileExistsError. The home now links ~/Library/Keychains alone, where the macOS login is, or copies ~/.claude/.credentials.json where that is the login, and checks its link without following it. The screens take a page's first eight screens per pass, but the contract said top to bottom. The contract now says so, and a pass that stops short labels itself with how many screens the whole page takes. Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
# Conflicts: # dev/leaf_dev/harness.py
leaf-agent
reviewed
Sep 27, 2026
leaf-agent
left a comment
Collaborator
There was a problem hiding this comment.
The eval child's copied login is readable by other local users under ordinary directory permissions. Details inline.
The home can hold a copy of the user's login. It is now mode 0700 even when it already exists, and the copy keeps the source file's mode. Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
leaf-agent
approved these changes
Sep 27, 2026
max-sixty
added a commit
that referenced
this pull request
Sep 28, 2026
…ng-leaf (#1371) `evals/README.md` held the suite's method and a Record table of every A/B. The table grew to two thirds of the file in three days and repeated each fix's commit message. Nothing said when a case measured during a fix should stay, so cases that passed on both arms stayed too: 6 of the 15 have never told two wordings apart. This change sets the rule for new cases and records where each old one stands; removing the six is a separate decision. - **Method** moves to `/developing-leaf`, "Score a guidance change", where the repo keeps its workflows, trimmed to what an agent running or adding a case needs. It runs A/Bs through `leaf-dev guidance-ab` (#1366), which no longer prints a Record row. - **Rule for adding a case:** it pins a clause no case pins, and it separated two arms, with the base failing most runs and the change passing every run, or a blunter draft failing a guardrail the change passes. That is usually one case per problem, rarely more than two. A case both arms passed goes in the commit message instead. - **History:** each case's Record history is now a comment at the top of its `case.yaml`: where it came from, and base against change at named commits. The rows for A/Bs that kept no case live in their commit messages (#1311, #1332). `tags` stay the suite's categories. - `AGENTS.md`, `dev/AGENTS.md` and `leaf_dev/harness.py` point at the new section. #1363's rows are in its three cases' comments. Two unopened branches that add rows will conflict on the deleted file; their rows move the same way. > _This was written by Claude Code on behalf of max-sixty_ 🤖 Generated with [Claude Code](https://claude.com/claude-code) --------- Co-authored-by: Claude Opus 5.5 (1M context) <[email protected]>
max-sixty
added a commit
that referenced
this pull request
Sep 29, 2026
A tab set whose list stands beside its panels (`lf-tabs list="side"`) is a box even as the page's first set: it keeps the page's history, but a switch leaves the page where it stands. That is right for a press, which the user makes at the list. Back or Forward is made from wherever they read, though. After reading deep into a long ticket, Back to a ticket taller than the screen clamped the page to its new end: at 390px the ticket's start sat 1,710px above the screen and the list 1,782px above, and 1200px behaved the same. Forward then landed partway into the long ticket. A history switch in a box now brings the set's start into view when the user stood below it, as a page-flow view without a stored place lands at its own start. A set already in view stays where it is. A review of #1363 inferred the case, and a probe confirmed it before this fix. Tests: the side-list test in `test_render_widgets.py` now reads deep, presses Back, and asserts the set's start is on screen; it fails with the fix removed. The tab-set tests in `test_render_widgets.py` and `test_render_navigation.py` pass, nightly included. > _This was written by Claude Code on behalf of max-sixty_ 🤖 Generated with [Claude Code](https://claude.com/claude-code) --------- Co-authored-by: Claude Opus 5.5 (1M context) <[email protected]>
max-sixty
added a commit
that referenced
this pull request
Sep 29, 2026
…1434) This records a third run of the arrangement eval, on main at 0feb179, after the five layout fixes of #1363 and #1395. Fresh agents write each page twice, once with Leaf's Layouts and once in their own CSS. A blind judge then picks between the two from screenshots at 1440px, 900px and 390px. It now prefers the Leaf page in 9 pairs and the plain one in 7, with 2 split, against 9, 3 and 5 in the second run. All 36 pages pass the render check, and no plain page used the Layout vocabulary. | Subject | Before the 900px preference (Leaf / plain / split) | After it | |---|---|---| | Dashboard | 0 / 1 / 2 (was 1 / 2 / 0) | 2 / 1 / 0 (was 1 / 0 / 1) | | Document | 0 / 3 / 0 (was 1 / 0 / 2) | 1 / 2 / 0 (was 0 / 1 / 2) | | Queue | 3 / 0 / 0 | 3 / 0 / 0 | The defects the five fixes targeted mostly dropped out of the judge's lists, counted by keyword and read as rough sizes. Side content that came last on a phone went from 5 against 1 to 0 against 3. A tile row wrapping 3 + 1 went from 8 against 0 to none. Leaf pages carry about 42% of the plain pages' CSS (154 lines against 354), and none needed a script of its own. Two causes now account for most of Leaf's losses: - **Lines cut off sideways**, 25 against 14. In 15 of the 25, a queue's log excerpt sits in `lf-code`, which doesn't wrap. - **Collapsed content**, 11 against 4. Leaf documents put the plan in a collapsed block, following the guidance to collapse supporting detail. Both are follow-ups, not part of this change. - `notes/arrangement-eval/results/r3-main-0feb.{json,md}` and `r3-main-0feb-reviews.json` hold the scores, the tables and every verdict. - `notes/arrangement-eval/plain_arm.py`: the plain arm edits Leaf's guidance at fixed text anchors, and one sentence in the assets registry had been reworded on main. This updates that anchor. - `notes/arrangement-eval/README.md` counts the runs. > _This was written by Claude Code on behalf of max-sixty_ 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-authored-by: Claude Opus 5.5 (1M context) <[email protected]>
max-sixty
added a commit
that referenced
this pull request
Sep 29, 2026
The five Layout classes are two kinds of thing: three page shapes that go on `main` (`layout-column`, `layout-wide`, `layout-workspace`) and two arrangements of a box's children (`layout-sidebar`, `layout-tiles`), which also widen `main` when put there. `layouts.css` already works this way, but the site and the guide didn't say so, and the site said several things that were wrong. **Site (`docs/how-it-works.html`, Layout tab).** The figure's middle panel showed `layout-sidebar` as "a wide page" and `layout-wide` appeared nowhere; it now draws `main.layout-wide`, and a new paragraph says sidebar and tiles arrange any box. The column page no longer "declares nothing" (every such page declares `layout-column`, and a `main` without a class is unarranged). The sidebar section no longer puts the status column last: since #1363 the track is the `aside` wherever it is written. **Guide (`page-authoring.md`).** The Layout table is split into the three page shapes and the two arrangements. It had said every Layout goes on any block; `layout-wide` and `layout-workspace` act only on `main`. **TODO.md.** The workspace columns setting is dropped: each page's pane grid is its own CSS, and the one number it shares with the Layout (720px) is already refused by `page check --render` when it drifts. The bullet's other half, the feature gallery's copy of the pane-scrolling rules, needs `layout-workspace` to work on a block, and the bullet now says what that takes. **Checks.** The layout guidance cases (`page-arrangement-uses-layouts`, `queue-is-a-side-list`, `sidebar-page-at-900px`, `sidebar-track-is-its-aside`, `workspace-header-is-one-row`, `workspace-stacks-where-the-layout-flows`) score 3 of 3 each, against 2 of 3 on two of them at the base. `uv run pytest tests --nightly-changed-since main` passes (1443). The Layout tab renders clean under `page check --render`. > _This was written by Claude Code on behalf of max-sixty_ 🤖 Generated with [Claude Code](https://claude.com/claude-code) --------- Co-authored-by: Claude Opus 5.5 (1M context) <[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.
Reran the arrangement eval, which pairs pages written with Leaf's Layouts against pages written in plain CSS. This builds the four changes its findings asked for. It also fixes the defects an independent review then found in them, each at its cause rather than where it surfaced, and isolates the eval's children from the user's home.
A sidebar's track is its
aside..layout-sidebar > asideis the track, wherever it is written. Source order is the reading order at every width, so a track written first stands on the left and comes first on a phone. The guide says where the Layout stacks. It keeps a short track in view by stretching theasideto the body's height and making the block inside it sticky. That needs no width query, which could only have encoded one of the Layout's two reasons to stack. A page read in order keeps its contents in the margin rather than in this Layout. The examples, the monitoring and command-hub guidance, and the command-hub registry example move toaside.page check --rendersaves screens for the author to read. It saves the page down its first eight screens at the desktop viewport, at the widest swept width (1920px) and on a phone, and says when a page runs on past them. It also saves one screen at each swept width where the page's own arrangement is at its tightest before it changes, and at each width where the margin content changes. The screens go to one directory per page under the state home, replaced whole at each check. The arrangement is read during the width sweep by a new render-check probe,arrangedBoxes, inlayout.js. It names boxes throughlocate.js'sat()and counts items throughlaidOutItems, which it shares withsplitEdges.lf-tabs list="side"is a queue beside the item it opens. The list is a column beside the open panel where the set holds both, and a row above it on a phone. Each row shows the panel'ssummary, and it walks up and down. How a set is drawn is one fact the module writes,data-lf-tabs-flow:pageis the root set with a row strip: a sticky cover strip and page-flow panels, each view keeping its own scroll place.boxis every other set, a root side list included. Its panels are bounded containers, and a switch leaves the page where it stands.History and fragments stay with the first set in
main. Every tab is named by its label. Every tab set counts the Asks the user still owes in each panel, next to the Δ count, through one path. A board in an embedded tab set no longer overflows it: this was a defect on main too, since no framed tab panel was a container.Eval children run under a home of their own.
claude_childgives each child a scratchHOMEbeside its cwd, private to the user (mode0700), with a link to~/Library/Keychainsalone for the macOS login (a copy of~/.claude/.credentials.jsonwhere that is the login), and keepsCLAUDE_CONFIG_DIRout of its environment. Before this, children told of a "standing preference" saved it where the skill says to, which was the user's real~/.claude/CLAUDE.md, six times. Earlier, the same leak had gone into auto-memory. The project-only-settings flag is gone, since the home now keeps the user's settings from loading.The branch also commits the eval's second run (
notes/arrangement-eval/results/), whose phase-2 numbers were made while the children could read the user's instructions (the README says so), and adds these eval cases:sidebar-track-is-its-asidesidebar-page-at-900pxqueue-is-a-side-listTheir A/B rows are in
evals/README.md.Tests: the four changed browser files pass locally with nightly tests included (
test_render_widgets,test_render_pages,test_render_commands,test_render_gate). So do the everyday gate and the runtime tests. The side-list test covers the tab's name, row heights across an answer, the panel bound, and a root side list switching in a scrolling page. The screens test names its box with a digit-leading id and checks the widest pass. The pull request'stestjob does not run these browser files, since all of them are nightly.🤖 Generated with Claude Code