Repository navigation
Keep a dashboard's or tuning page's working state in the first window - #3957
Merged
Merged
Conversation
Leaf dashboards read as documents. For the release-rollout request ("I glance
at it every few minutes ... the state has to read at a glance"), fresh Opus
5.5 authors on main followed page-layout.md's "a release dashboard" to a
sidebar page in document type: a 46px title and a 3-line lede, then metrics
and decision prose, with the trend chart, region table and checks below a
1600x1000 window (pages 2229-2692px). The HTML control fitted status, metrics,
chart, regions, checks, decision and log in that window, and both 21:28 pair
judgments preferred it.
page-authoring.md, "Composing a page": the bullet for a screen the reader
works in now covers what it missed, settings tuned against their evidence and
a dashboard glanced at between other work. It states the goal (keep the
working state in the reader's window, since a glance or a tuning pass doesn't
scroll), keeps title and premise to a line or two, and gives main
density-working; a dashboard is a sidebar page with its regions side by side.
"A desktop interface the reader tunes" alone read as a UI design, so
configuration authors chose a column page.
Theme: a working-density page keeps the working title (22px) on a sidebar
page instead of the wide-page 46px one, and starts 28px from the window's top
rather than 72px, so the panels get that room.
Evidence, fresh Opus 5.5 authors at 1600x1000, base = main:
- Dashboard, 2+2 (narrower first wording) then 2+2 (this wording): all 5
candidate authors put density-working on the page and fitted regions,
metrics, chart and decision in the first window (1463-1810px pages); base
0 of 4 fitted them all. Pairs on the first 2+2: 3 of 4 judgments for the
candidate. Candidate vs HTML: 2 of 2 for Leaf (HTML's decision control
didn't record a choice; the judge still credited HTML's use of space).
- Configuration, 2+2: candidate first pages (before any window preference)
1454 and 1944px with all six alerts or three in the first window, base
3332 and 2124px with one; both arms reach a fitting page after the
preference. A document control kept the reading column and document type.
- Live judges passed every candidate sample (9 of 9).
- Later pairs with this wording: dashboard candidate 4 of 4 judgments against
base; configuration 1 of 4 (both arms fit after the window preference;
the judges preferred base's final-record details).
Screens: .tmp/overnight/c2/, .tmp/overnight/c3/.
Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
page-authoring.md tells authors to state a section's finding in its heading,
and the theme sets a section.panel heading in the label voice: 10.5px tracked
small capitals meant for a region's name. On dashboards the two met as long
all-caps sentences: 7 of 7 Leaf dashboards with panels written without this line had at
least one panel heading over 40 characters, up to a three-line, 129-character
cause ("CAUSE, CONFIRMED BY PAYMENTS AT 15:52: PAYMENTS-SDK 7.2 CUT THE CONNECT
TIMEOUT FROM 10 S TO 3 S, AND ONLY EU-WEST CALLS ADYEN EU"). The section.panel
registry entry already says "a short heading that names it", but the general
finding rule won.
"Reading cost" now says a panel heading is set in small capitals, which read
as a name, so it names the region in a few words and the panel's first line
states the finding.
Evidence: the two fresh Opus 5.5 dashboard authors given this line (run
20261024-205859-d_xpsabm) wrote 9 panel headings, the longest 20 characters
("Rollout by region", "Event log", "Decision for eu-west"), each followed by
its finding ("Stages 1% -> 10% -> 50% -> 100%. Only eu-west is out of line.").
Count with .tmp/overnight/panelheads.py.
Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
authoring-revisions.md says how an applied lf-options decision becomes a
record (`settled`), and said nothing for a playground. Fresh Opus 5.5
configuration authors recording the user's six final settings did one of
two things on main: left the playground live with its controls still
authored at today's values, so the page said "Final" while the preview, and
Reset, showed today's settings and any exploration (a pair judge flagged
the conflict: B-explore.png), or folded the tuner into a <details>, so the
evidence behind the record sat behind a disclosure. HTML controls kept the
evidence open beside a final table with a "Back to final" control, and won
4 of 4 judgments against the Leaf pages.
The paragraph now says an applied playground becomes a record too: author
each control at the chosen value, so the preview, Reset and the page's
account of the choice agree, and keep it and its evidence open beside what
came of the choice. Reset then brings an exploring user back to the record.
Evidence (run 20261024-223844-21mfswkb, configuration --base --repeat 2):
candidate authors 2 of 2 authored every control at the chosen value and kept
the tuner open ("Reset returns here"); base 0 of 2 (today's values, or the
tuner in a disclosure). Across every later configuration run, authors with
this line did so 7 of 8 times, authors on main 0 of 4. Pair judgments:
candidate 4 of 4 against base, each citing all six alerts, evidence and
routing visible together in the final record. Against the earlier HTML
controls the candidate took 1 of 4 judgments, up from 0 of 4; HTML still won
on its separate final table and aligned rows. Screens: .tmp/overnight/c4/.
Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
Adds what the 2026-10-24 /grinding-ui run retained and rejected, with the page heights, pair judgments and HTML comparisons behind each, and the HTML advantages the judges still named, so the next campaign starts from them. Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
leaf-agent
approved these changes
Oct 25, 2026
max-sixty
added a commit
that referenced
this pull request
Oct 25, 2026
The reader picks the next item in a side-list queue by its summary, and `page-layout.md` asks authors to start each summary with what the item is about. Summaries were set at the label size, 10.5px at working density, the same size as "To answer" and a group's small capitals, in a 16rem column. In a fresh Opus 5.5 escalation queue at 1600x1000, 1473 of the first window's characters were 10.5px, nearly all of them summaries. The plain HTML control set its list at 13px in a 330px column, and the pair judge credited HTML with "clearer typography ... more comfortable desktop controls". Summaries now take `--t-working-label`, the rung between the name's size and the label size: 12px at working density and 13px at the root, against names of 12.5px and 14px. The list column widens from 16rem to 18rem. A page of parts' list shares the rule. Row heights don't change, since the summary keeps its stated 17px line. A long summary may wrap one line more, and a phone's row strip still reserves one line. Using the names' own size (`--t-5`) was tried first and rejected, because it made a part's summary as large as the next part's name in code-comparison's list. Measured effect: in the overnight campaign's end-state comparison, direct pairs of the campaign branch against main favoured the branch on the queue task in 4 of 4 judgments. Two of those judgments named the larger summaries. That branch also carried the guidance changes in #3957, so this measures the two together. Evidence (local, in the campaign worktree `/Users/maximilian/workspace/leaf.agent-a10f091f355e3a600`): - `.tmp/overnight/c5/queue-list-base.png` and `.tmp/overnight/c5/queue-list-after.png` show the queue list. - `.tmp/overnight/c5/parts-base.png` and `.tmp/overnight/c5/parts-after.png` show a page of parts. - The stills alert-queue, alert-queue-touch, side-tab-focus and alert-queue-tally are in `.tmp/stills/run-adlp9r05`. They were taken at the rejected `--t-5`. Checks, on this branch cherry-picked onto current main: - `tests/browser/widgets/test_tabs.py`, `tests/browser/test_render_aim.py` and `tests/browser/controls/test_rings.py` with `-k "side or queue or repeated_summary or parts"`: 28 passed. - `pnpm run test:runtime`: 550 passed. - `pnpm run check:browser` passes, so the generated `packages/default/theme.css` matches its source. - pre-commit passes. This was a commit on the same campaign branch as #3957. It goes on its own because it is a theme change to a different surface, and the known short-window regression on that branch doesn't involve it. #3853 also edits `tabs.css` (a phone's queue row) and merges cleanly with this change. > _This was written by Claude Code on behalf of max-sixty_ 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.
Leaf dashboards and tuning pages were written as documents. The test was a release-rollout request: "I glance at it every few minutes ... the state has to read at a glance". Fresh Opus 5.5 authors on main followed
page-layout.md's "a release dashboard" to a sidebar page set as a document. Each page opened with a 46px title and a three-line lede, then metrics and decision prose. The trend chart, region table and checks fell below a 1600x1000 window, on pages 2229-2692px tall. The plain HTML control fitted status, metrics, chart, regions, checks, decision and log in that one window.On the same run's dashboards, panel headings came out as long all-caps sentences, such as a three-line, 129-character cause. And when the user's final settings were recorded on a configuration page, authors either left the playground authored at today's values under a "Final" heading, or folded it into a
<details>.This PR makes four changes, one per commit.
page-authoring.md, "Composing a page"). The bullet for a screen the reader works in now also covers settings tuned against their evidence and a dashboard glanced at between other work. It states the goal: keep the working state in the reader's window, since a glance or a tuning pass doesn't scroll. It keeps the title and premise to a line or two and givesmaindensity-working. A dashboard is a sidebar page with its regions side by side.page-layout.mdsays whatdensity-workingdoes on a column or sidebarmain.browser/styles/theme.css). On a working-density page, a sidebar page keeps the working title (22px) instead of the wide-page 46px title, and the page starts 28px from the window's top instead of 72px. Only the column and sidebar Layouts read--page-pad-start. Among the examples, onlyexamples/developer/playwright-trace-gallery.html(alayout-column density-workingmain) changes, by that head room.page-authoring.md, "Reading cost"). Asection.panelheading is set in small capitals, which read as a region's name. So the heading names the region in a few words, and the panel's first line states the finding.authoring-revisions.md). An applied playground becomes a record. Each control is authored at the chosen value, so the preview, Reset and the page's account agree. The playground stays open beside its evidence.notes/agent-usability-evals.md.Known regression: the dashboard at a short window
At a 900x600 window, the branch lost the dashboard 2 of 2, one sample per arm. The guidance steers a dashboard to a sidebar page. Main's author wrote a workspace with a compact header and independently scrolling columns, and that did better at that height. The other short-window tasks went to the branch on configuration (2 of 2) and split on the queue (1 of 2), so the branch took 3 of 6 at 900x600, against 17 of 24 at 1600x1000. A likely next step is for the dashboard bullet to prefer a workspace when the reader's window is short. That hasn't been tried.
Measured effect
All authors were fresh Opus 5.5 Claude Code sessions at 1600x1000, with Sol live and pair judges, and base = main.
Window guidance and theme:
density-workingon the page and fitted regions, metrics, chart and decision in the first window. Of 4 base authors, none fitted them all.Panel headings:
Applied playground:
End state:
That branch also carried the playground label-choice fix (#3953), the queue summary size (#3955) and the diff fix (#3951).
Evidence (local, in the campaign worktree
/Users/maximilian/workspace/leaf.agent-a10f091f355e3a600):.tmp/overnight/c2/(base-1, base-2, cand-1, cand-2, html)..tmp/overnight/c3/..tmp/overnight/c3/heights.tsv..tmp/overnight/c4/config-final-{base,cand}-*.png..tmp/overnight/panelheads.py..tmp/overnight/page-quality.md..tmp/eval/.Checks
These ran on this branch cherry-picked onto current main.
tests/browser/widgets/test_workspaces_and_bounds.py,tests/browser/test_render_gate.py,tests/browser/margin/test_rail.pyandtests/browser/widgets/test_tabs.pywith-k "workspace or sidebar or wide or release_page or working_prose_density or page_form_decides or title": 43 passed, 1 failed.test_a_release_page_is_wide_and_keeps_the_log_on_its_newest_line(lp-stepsright edge 1531, expected 1536). It fails the same way on main, so this change doesn't cause it.tests/model/test_interact_layer.pyandtests/model/test_delivery.pywith-k "skill or reference": 4 passed.pnpm run test:runtime: 550 passed.pnpm run check:browserpasses (the generatedbrowser/theme.cssmatches its source).No open PR changes the same guidance or theme rules. #3898, #3913 and #3923 also append sections to
notes/agent-usability-evals.md, so whichever lands second resolves that conflict by keeping both sections.