Repository navigation
Make UI experiments inspectable and improve workspace controls - #4269
Merged
Merged
Conversation
leaf-agent
approved these changes
Oct 26, 2026
This was referenced Oct 26, 2026
leaf-agent
added a commit
that referenced
this pull request
Oct 26, 2026
The workspace tab test still expected its sole block to reach the panel's border edge after #4269 moved bottom chrome clearance inside the final reading region. That deliberate padding is the reported 72px gap. Measure against the panel's content box, retaining the checks that upgrade preserves the block's height and inline edges. This changes only the test, preserving #4269's layout and clearance behavior. The original assertion reproduces the reported failure on current main. The corrected test and all five `test_workspace_end_room_stays_inside_the_last_reading_region` cases pass locally (6 passed). Those cases protect the clearance transfer introduced by #4269. Standalone Ruff could not run because its executable is absent in this environment. Closes #4278 — automated triage Co-authored-by: leaf-agent <[email protected]>
leaf-agent
added a commit
that referenced
this pull request
Oct 26, 2026
The pane round-trip test scrolled only 300px from the top of wt-merge, then measured a Steps paragraph that was still below the phone viewport. #4269 changed panel clearance in flowing workspaces, exposing that setup's dependence on the preceding film's height. Restoring the earlier layout stylesheet makes the original test pass, but reverting that layout improvement would preserve the wrong premise. The test now brings Steps into view before its wheel gesture, waits for that gesture to move the document, and asserts that the measured passage is visible before resizing. Its existing two-pixel round-trip assertion remains unchanged. No product behavior changes. Validation: the original test reproduced the reported 791.125 → 687.125 failure on current main. The corrected test passes; disabling reading-region transition restoration as a temporary control makes it fail (156.125 → 1091.125), so it still protects reading continuity. Python compilation and `git diff --check` pass. Local Ruff checks could not run because the executable is absent; PR CI supplies the formatting gates. Closes #4275 — automated triage Co-authored-by: leaf-agent <[email protected]>
This was referenced Oct 26, 2026
max-sixty
added a commit
that referenced
this pull request
Oct 27, 2026
Main's #4269 filtered the eval user's selectable words by restating the pageWords boundary inline; this branch reads the same set from pageText, the runtime's canonical page reading, so the merge keeps pageText. Co-Authored-By: Claude Opus 5.5 <[email protected]>
leaf-agent
pushed a commit
that referenced
this pull request
Oct 27, 2026
…kspace pane holds (#3913) Closes #4033. The backlog item "Test the Layouts on agents" asked whether pages hold when an agent revises them into another shape, and whether a workspace works as a screen. This adds the cases and a workspace measurement for live judges, and records what the runs showed in `notes/agent-usability-evals.md` ("Layouts under revision, 2026-10-24"). It changes no shipped guidance: the two wordings scored for the most common failure did not hold up against a paired main arm. ## Cases - `document/live-status`, `dashboard/write-up` and `queue/hand-off` run their task's author, width preference, passage comment and browser decision, then send one revision that changes what the page is for: the review becomes the page the team follows during the rollout, the dashboard gains the incident write-up, the worked queue gains a hand-off. Each rubric checks the new use, the earlier record and the comment thread. `arrangement_eval` gains two optional scenario inputs for this: `revision`, sent as a fifth phase, and `request`, the task whose request a scenario starts from. - `dashboard/cold` asks a fresh author for "a dashboard" from mixed material, graded by an over-tiling rubric and `page_defects.py`. ## Pane readings `dev/leaf_dev/pane_readings.py` reads, at each judged viewport and before the live judge explores, every region Leaf scrolls inside a workspace shown on arrival (the runtime's reading-region inventory): its box, how many of its own heights it holds, the share of its box that no content comes near at its top and end, and the Tab press that first reaches it. `judge_pages` adds them to the judge's task and the judgment's metadata only when every page judged is a Leaf page, so a Leaf/HTML pair judge never sees measured defects on one side alone. A screen an author builds from its own grid CSS has no reading regions and goes unmeasured. The render check's `readViewChecks` measures overflow only for the panes a page writes and the Layout's body, not a widget's own regions such as a queue's list and ticket, which are most of what a workspace's reader scrolls, so it doesn't cover this reading. ## What the runs showed - Adding a document to a dashboard or queue was the revision that broke composition. On main, 4 of 12 judged authors built a page of parts (Claude Code 4 of 8, Codex 0 of 4); the rest put the document in a tab of the queue's list, a tab inside a workspace pane, a 2×2 grid of prose sections, or root page tabs each carrying a Layout, where `layouts.css` arranges nothing and the workspace silently flowed with the page. A scan of 517 saved pages found that last placement only once, so it gets no check. - The cold dashboards did not over-tile (4 of 4). - The width preference turned three of four dashboards in the first run into three-pane workspaces, each judged cramped at 900×600; #4098 holds that as the next item. - Tab reached every workspace pane whose content ran past its box. ## Guidance scored and dropped A first sentence on the parts bullet in `page-authoring.md` named the write-up and hand-off cases. Against the first run on main it built parts 4 of 4 on Claude Code (main 1 of 4) and 4 of 4 on Codex (main 0 of 3), but it restated the parts bullet for the evals' two cases and also turned both Claude Code live-status revisions into pages of parts, where a sidebar page fits. A goal-level rewrite for the whole list (choose the arrangement from what the page holds now, on each revision as on the first version) was scored with `--base` paired arms: | Arm | Harness | Dashboard and queue built as parts | Live status built as parts | Judge passes | | ------------ | ----------- | ---------------------------------- | -------------------------- | ------------ | | main | Claude Code | 3 of 4 | 1 of 2 | 3 of 6 | | goal wording | Claude Code | 4 of 4 | 1 of 2 | 4 of 6 | | main | Codex | 0 of 1 | not run | 0 of 1 | | goal wording | Codex | 0 of 2 | not run | 1 of 2 | Main on Claude Code built parts 3 of 4 times in the paired run, so the first wording's Claude Code gain was mostly sampling, and the goal wording changed nothing measurable on either harness. The guardrail `exhibit-playground-stays-in-the-column` passed 2 of 2 on both arms. Neither wording ships. Only the first wording moved Codex, which the note records as a lead. ## Harness fix The browser user's passage selection could land on the contents outline's copy of a heading, which Leaf echoes and offers no comment route for; one sample failed that way. `eval_user.py` now selects only words in the page's own reading (`pageText` from `check-api.js`), the words a comment can anchor to. This replaces the inline copy of the pageWords boundary that #4269 added to the same selector. On alert-review, dynamic-widgets, triage-board and release-notes that keeps 32, 6, 8 and 2 tab labels, board column headings and option labels that a skip of every generated word would drop, and leaves out chrome such as "To answer" and drag handles; replaying the failed sample now opens the selection comment route. ## Checks `uv run pytest dev/tests/test_evals.py dev/tests/model/test_eval_discover.py -q -n0`, the pre-commit hooks, `leaf-dev probe` of the selection rule on four examples, and the eval runs in the note (about $100 of Claude Code spend; Codex reports none). Not verified: two Codex queue samples on main failed in scratch cleanup ("Directory not empty") and were never judged; pane readings cover only a workspace shown on arrival; Codex's paired arms are one sample each. Calls Max may reverse: the revision rubrics name what the result must keep, and the queue rubric says the hand-off should not be confined to a tab beside the queue; dropping the guidance rather than shipping the first wording, which did move Codex. > _This was written by Claude Code on behalf of max-sixty_ --------- Co-authored-by: Claude Opus 5.5 (1M context) <[email protected]>
max-sixty
added a commit
that referenced
this pull request
Nov 5, 2026
…pane (#5564) On a phone a workspace flows: its grid of panes stacks and the page scrolls. Every pane of the grid still inherited the panel's foot room (`--lf-end-room`), so each pane above the last ended in an empty band the panel never covers. Where the workspace flows (Leaf's own `(width < 720px) or (height < 480px)`), no pane body scrolls, so the box of panes now pads its own end with the room and passes it to none of its panes. The page's end then clears the panel whatever the grid's arrangement or source order. A short, wide window, where panes stand side by side and the page scrolls, keeps one band below the grid instead of one in each pane. While the workspace is held, each pane keeps inheriting the room as before, since each pane's own body scrolls up to the window's foot. ## Evidence `leaf-dev probe`, scrolled to the document's end, with each version's `layouts.css` in turn. "Clears" means the page's last line of content stands above the panel. | Case | `main` | Last pane only (this PR's first commit) | Box of panes (this PR) | Flowing page ends like a document (alternative A) | | --- | --- | --- | --- | --- | | wt-merge, file-tree, rust-sort, review-queue at 390x844 | room in every pane; clears | room in the last pane; clears | room on the grid, none in panes; clears | room on the body, frames end 149px above the window's foot; clears | | Two cards side by side on a phone, the long one first | clears | the last two lines under the panel (y=831, panel 782) | clears | clears | | wt-merge at 844x390 | 72px in each pane | the same | 72px once, on the grid | 72px on the body | | wt-merge, review-queue at 1440x900 (held) | each pane 72px | the same | the same | the same | | alert-review's `main > footer` at 390x844 | footer pads 76px behind the panel | the same | the same | footer ends above the panel | | Two plain regions in `main` at 390x844 | each pads 76px | the same | the same | neither pads; body 76px | Net lines in `layouts.css` against `main`: +15 for last pane only, +14 for the box of panes, −1 for alternative A. A is the smallest, but it ends every frame above the panel's band in a flowing window and moves a `main > footer` bar above the panel. That reverses #4269 ("pane frames reach the bottom while their last controls remain reachable"), which `test_workspace_end_room_stays_inside_the_last_reading_region` holds at 695x988. The box of panes keeps the grid's frame reaching the window's foot, with its last 76px of the box under the panel. In the stills that leaves a 15px strip between the last pane's edge and the panel's row. Stills of each version at 390x844, at the document's end, are in the authoring worktree's `.tmp/footroom/` (`still-<version>-<case>-390x844.png`, where `main`, `C`, `B` and `A` are the four columns above). ## Test `test_the_page_end_clears_the_bottom_chrome_around_a_workspace` now also holds a grid that keeps two columns at every width, with its long pane first. At 390x844 and 844x390 neither pane keeps the room and the long pane's end clears the panel; at 1280x720 both panes keep it. Against `main`'s `layouts.css`, and against this PR's first commit, it fails with `assert 72 == 0`. Ran: `tests/browser/widgets/test_workspaces_and_bounds.py -k "page_end_clears or end_room_stays or plain_section or reaches_the_window_foot or bounds_independent or flowing_workspace_keeps_its_header or scrollbar_appears"` (11 passed), and the ten narrow-window workspace tests in `tests/browser/navigation/test_panes.py` (11 passed). ## Not changed Two or more plain regions directly in `main`, such as an aside and a section, still each pad their end with the room when they stack. No shipped workspace has more than one body (`page-layout.md` gives a workspace a header, one body and a footer), and the band wastes room without hiding anything. ## Not verified - Firefox, WebKit and iOS Safari for the box-of-panes version. Firefox was measured for this PR's first commit only. > _This was written by Claude Code on behalf of max-sixty_ --------- Co-authored-by: Claude Opus 5.5 <[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.
The UI grinding reports made it hard to identify the latest run, inspect matched outputs, or tell whether an intervention should be kept. This consolidates them into a workspace with Changes tested, Latest outputs, and All outputs, with explicit recommendations, native before/after viewers, frozen interactive exports, and separate checks and quality assessments. Short authoring runs retain their render captures and use the same evidence format as longer workflows.
The report exposed a shared layout defect: workspace containers reserved panel clearance outside nested panes, leaving a blank band below them. Clearance now follows the final reading region or footer, so pane frames reach the bottom while their last controls remain reachable. Playground choices also support a native select presentation, and small previews use their content height instead of an empty minimum-height well.
The grinding playbook and authoring/review guidance describe the report, evidence limits, and task-based review. Existing author trials remain mixed; this change does not claim a demonstrated overall quality gain.
Validation: 7 focused workspace browser tests, 4 focused playground browser tests, 3 Python eval tests, the Node eval test,
pnpm run check, rebuilt browser assets, and pre-commit checks. Independent review exercised the live report at desktop, 695-pixel window width, and phone width; the report render check passed. Additional integration smoke covered current run metadata through report generation and interactive export without modifying the source page log.