Repository navigation
Check every focus ring at every Tab stop of every example - #3137
Conversation
The nightly ring test walked each sampled page's Tab order only to ask whether a stop showed focus at all, so a ring that was drawn but cut or covered went unseen unless a ring case happened to sample it. The walk now reads every ring each stop lights (`ring_faults`), naming a ring that stays lit across stops once, and it walks every example, the feature gallery and the comparison fixture rather than only the sampled pages; the checks add about a minute. The census found these, each fixed where its cause is: - lf-activity bounded the whole feed, so its scroller cut off the full-width Show activity toggle's ring. The bound moves to the list, as a captured document's does, and the toggle stays in view above the scrolling feed. - lf-tally's Next on me sat a space from the chip after it, which painted over the ring's edge; the button keeps the ring's room after it. - lf-text-document's listing and lf-trace's canvas drew an inset ring that their positioned lines and viewer painted over. Each now draws the ring on a later box above them, as the Threads list and pane bodies do. - Focus landings kept exactly the ring's 5px at a scroller's edge, and the browser's rounding took up to 1.5px of it, so a code block Tab brought to a pane's top lost its ring's top edge. A new token, `--focus-ring-landing`, keeps two pixels to spare and replaces the ring's room in every scroll margin. - code-comparison made its code blocks scroll a second time around the block's own scroller, clipping the block's ring whole. The checker also reported a shot's rail buttons as covered by the image under them, though the rail stands above it at z-index 1. When neither side ranks at the sampled point, it now orders them by whether the control is lifted above a cover that is not. Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
… margin The checker compared a control's innermost z-index with its cover's outermost one, so a control in a zero layer could hide a real cover; both sides now read the outermost stacking level below the box holding both. The annotation card's message body was the one scroll margin left on the ring's room alone. Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
…ols as hidden CI's run of the walk, which opens Threads, found four more faults. A picture closing a compact thread's transcript stood flush with the pinned reply row, which painted over the foot of its ring; the transcript now keeps the ring's room above the row. The others were page controls under the open panel where it overlays a narrow window: the checker counted a control as behind a cover only when the same box stood over its interior, and only 4px in. It now counts any box of the cover's surface, at the control's own edge. A stop whose rings read faulty is read again once the page is at rest. Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
leaf-agent
left a comment
There was a problem hiding this comment.
The focused ring journey is still red locally, so I’m withholding approval. uv run pytest -q tests/journeys/test_render_controls.py::test_each_sampled_focus_ring_is_shown_whole_in_its_surface reached the triage board’s target hints sample, where the test expected .lf-key-hint.lf-current and found no matching drawn ring (test_render_controls.py:4687). This run does not establish whether the Tab walk changed the hint state or the sample lost the ring for another reason; that path needs a stable passing check before this PR lands.
CI's run on the previous head found triage-board's current target hint unlit once the walk-only examples were served ahead of it; local runs, throttled to 6x included, did not reproduce it. The sampled pages now run first, as they did before the walk took in every example. Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
leaf-agent
left a comment
There was a problem hiding this comment.
The sampled-page reorder leaves the focused ring journey red on this head. uv run pytest -q -n0 tests/journeys/test_render_controls.py::test_each_sampled_focus_ring_is_shown_whole_in_its_surface still fails at triage-board’s target hint. The new diagnostic shows the hint is current and its focus shadow is visible, but reports rule ''. At that failure, Chrome’s matched styles include :is(.lf-target-picker-hints, .lf-go-to-hints) .lf-key-hint.lf-current with box-shadow: var(--focus-shadow); its DevTools declaration is {'name': 'box-shadow', 'value': 'var(--focus-shadow)'} with no text field. _winning_declaration in tests/render_cases_layout.py discards declarations without text, so this authored rule cannot satisfy the assertion. Fix the rule reading rather than depending on page order; the added diagnostic now makes the false negative reproducible.
…reverted)" This reverts commit 94c269e.
CI's Linux Chromium listed the chrome sheet's target-hint rule without source text, so every property read as a shorthand's expanded longhand and the hint's ring came back drawn by no rule. Where a rule lists no property with text, its properties and shorthand entries are its declarations. The sampled pages go back to running in corpus order: the order was not the cause. Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
leaf-agent
left a comment
There was a problem hiding this comment.
The expanded ring walk is still red on this head. uv run pytest -q -n0 tests/journeys/test_render_controls.py::test_each_sampled_focus_ring_is_shown_whole_in_its_surface finished with two faults in code-comparison: the focused lf-tab ring is reported under the playground preview on its left and bottom edges, and the lf-ask ring extends 5px outside its enclosing lf-tabs band on three edges. The previous target-hint failure is gone, but these new faults contradict the PR’s claim that the walk is clean on every page. Please resolve the reported paint or the checker’s reading, whichever the browser evidence supports, before this new gate lands.
Main's code-comparison became a workspace whose page tabs fill the window, and the walk found two rings cut there. The set is the body's scroller, so the Ask filling it lost its ring's sides to the scroller's edges; the set now keeps the ring's room inside them, with a margin that gives the inline room back. And a focused page tab's inset ring ran under the playground's stage; it is drawn on a later box above the panel's contents, which the panel's zero layer holds under it and under the strip. Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
main's #3137 drew a page tab's focus ring on a box above what the tab holds, since a playground's stage painted over the ring on the panel itself. A view has the same shape, and the focus-ring sweep found the same fault on code-comparison's Compare view, so views take the same rule. The page-tab height rules main touched stay deleted with page tabs. Two journeys still named the feature gallery's single contents map and sidebar (`#bg-contents`, `#bg-sidebar`), which this branch split into one per view; they now name the open view's. Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
The trace canvas ring moved to its `::after` box in #3137 so the viewer no longer paints over it. The pointer clipping test still inspected the canvas element’s old `outline-offset`, so it failed even while its clipping checks passed. Read the ring through the shared paint checker after confirming the canvas holds focus; this preserves the focus visibility assertion at the surface that now draws it. [Main CI run 39292373577](https://github.com/max-sixty/leaf/actions/runs/39292373577) failed `test_trace_pointer_annotation_stays_inside_the_panned_image_viewport` at that stale assertion. The focused test failed on current `main` before this change and passes with it. Pre-commit checks pass for the changed file. Co-authored-by: leaf-agent <[email protected]>
#3137 moved the canvas's inset ring onto its ::after, above the input's marks, and left the canvas's own outline none. The pointer-annotation test still read the outline offset off the canvas, so it failed on main too. It now checks the ring on ::after: drawn and inset. Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
…weep (#5291) A sweep on 2026-11-03 found 39 capabilities implemented more than once in Leaf. Tend's review had approved all 10 of the introducing pull requests checked, and 15 nightly surveys that carried the instruction to look for "several implementations of one capability" reported none. This changes the instructions behind both, and adds a weekly sweep for what review still misses. - **Review loads `/developing-leaf`.** running-tend's Review threshold named that skill's "Weigh what a change adds" without saying to load it, and none of 11 production reviews on 2026-11-03 did. The section now opens "Load `/developing-leaf`"; 16 of 16 replayed reviews then loaded it. - **"What it repeats"** joins "Weigh what a change adds": search for the question each new helper, constant, selector, style rule or inline check answers rather than its name, count a copy whose comment names its source as a copy, and export, move or generate the owner rather than copy it. "Regular maintenance" points its "Several implementations of one capability" bullet at it, since the nightly survey reads one file at a time. - **Weekly: duplicate implementations** sweeps one area a week, chosen by ISO week number modulo 4, searching the whole tree by question. Each copy's introducing pull request goes in the sweep's description, so the copies added since the area's last sweep show what review let through. Replaying four pull requests that each introduced a copy (#3832, #5196, #2345, #3137), reviewers caught the copy 2 of 9 times with the old text, 3 of 8 when told to load the skill, and 5 of 8 with "What it repeats", whose wording was revised after the replay. That difference is within noise at this size, and no arm caught a one-line copy inside a new helper; the weekly sweep is there for those. This changes agent instructions, so it lands with the control-plane owner's approval (running-tend, "Landing"). > _This was written by Claude Code on behalf of max-sixty_
The nightly ring test walked each sampled page's Tab order only to ask whether a stop showed focus at all. A ring that was drawn but then cut or covered went unseen unless a ring case happened to sample it. The walk now reads every ring each stop lights (
ring_faults), and names a ring that stays lit across stops only once. It also walks every example, the feature gallery and the comparison fixture, not just the sampled pages. The added checks take about a minute.Run on
main, the walk found these faults. Each was confirmed against screenshot pixels and is fixed where its cause is:lf-activitybounded the whole feed, so its scroller cut off the ring of the full-width Show activity toggle. The bound moves to the list, as a captured document's does (--lf-bound-box), and the toggle stays in view above the scrolling feed.lf-tally's Next on me sat one space from the chip after it, and the chip painted over the ring's edge. The button now keeps the ring's room after it.lf-text-documentlisting and thelf-tracecanvas drew inset rings that their positioned lines and viewer painted over. Each now draws its ring on a later box above them, as the Threads list and pane bodies do.--focus-ring-landing, keeps two pixels to spare and replaces the ring's room in every scroll margin. Scroll padding is unchanged.main, incode-comparison), the tab set is the body's scroller, and the Ask filling it lost its ring's sides to the scroller's edges. The set now keeps the ring's room inside its edges, and a negative margin gives the inline room back. A focused page tab's inset ring ran under the playground's stage, so it is now drawn on a later box above the panel's contents.code-comparisonwrapped its code blocks in a second scroller around the block's own, which hid the block's ring entirely.The checker also reported a shot's rail buttons as covered by the image beneath them, although the rail stands above the image at z-index 1. When neither side ranks at the sampled point, the checker now orders them by the outermost stacking level each side paints at inside the box that holds both. It also counts a control as behind a cover when any box of the cover's surface, such as the open Threads panel where it overlays a narrow window, stands over the control's own edge. A stop whose rings read as faulty is read again once the page is at rest. A playground choice with the old gap is still reported. CI's Linux Chromium sometimes lists a rule without its source text, and the reading of which rule drew a ring now accepts such a rule. Before this change, it reported triage-board's target hint as a ring drawn by no rule.
With these fixes, the test passes locally on today's
mainwith the Threads panel open, and the walk is clean on all 22 pages.