Repository navigation
Ask only for the structure four rules read - #2917
Merged
Merged
Conversation
Applies "When to pass guidance back to the authoring agent" to four rules that asked for more than their reader needs: - `lf-playground-value` may stand at any depth within its `lf-playground-output` (`x-within`), since the output fills value slots wherever they are; `page check` refused one inside a `<strong>`. - `lf-trace-compare` takes each direct child that is or holds an `lf-trace` as one view, so a recording wrapped in a `<figure>` with its caption gets a chooser button and shows and hides with its wrapper, before upgrade and after. It used to read only direct `lf-trace` children and leave a wrapped one out of the chooser and always visible. - The `:last-child` margin resets on `section.panel` and `lf-card` go: each holder already declares the frame trim that does this. `aside.sidebar` declares `--lf-block-frame: trim` in place of its first- and last-child resets. Probed margins and heights are unchanged. - `task end` no longer notes that a finished element still stands among the open work; "Keep the current page current" already says to move it, so the note repeated known guidance. `work.open_ids` had no other caller. Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
# Conflicts: # skills/leaf/scripts/leaf/cli.py # skills/leaf/scripts/leaf/findings.py # skills/leaf/scripts/leaf/todos.py # tests/model/_regtest_outputs/test_todos.test_ending_a_section_todo_done_names_the_section_left_among_the_open_work__0/snapshot.yaml
Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
leaf-agent
reviewed
Oct 15, 2026
leaf-agent
left a comment
Collaborator
There was a problem hiding this comment.
The new view may be a wrapper without an ID, but #draw() passes that wrapper to keepView. The shared view store saves member.id and reopens a view by matching that ID. If the reader selects a recording inside an anonymous <figure> and reloads, the stored ID is empty and the comparison opens the first recording again, despite the x-views reload contract. Please keep a stable identity for the selected recording through the shared prepaint and reload path, and exercise a wrapper without an ID in the reload test.
A view of a shown-one-at-a-time holder may now be a wrapper with no id, such as a <figure> holding an lf-trace. The tab-local view store kept `member.id`, so an anonymous wrapper was stored as "" and a reload reopened whichever anonymous member came first. It now keeps the member's own id or the first id inside it, and reopens the member holding that element. The paired-results fixture wraps both recordings in id-less figures, and its test reloads after choosing the second. Rebuilds skills/leaf/assets/theme.css and the default package's theme.css, which the first commit's CSS edits left stale. Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
leaf-agent
previously approved these changes
Oct 15, 2026
The pre-upgrade rule's `:has(lf-trace)` stood before a combinator whose last compound names nothing (`:is(lf-trace, :has(lf-trace))`), which Chrome restyles from the document root (test_no_has_rule_restyles_the_whole_document). A comparison always holds recordings, so the holder needs no condition. Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
leaf-agent
approved these changes
Oct 15, 2026
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.
Applies "When to pass guidance back to the authoring agent" (#2886) to four rules that asked for more structure than their reader needs.
An
lf-playground-valuemay now stand at any depth within itslf-playground-output(x-within). The output fills value slots wherever they are, butpage checkrefused one inside a<strong>.lf-trace-comparenow takes each direct child that is or holds anlf-traceas one view. A recording wrapped in a<figure>with its caption gets a chooser button and shows and hides with its wrapper, both before upgrade and after. Before, the compare read only directlf-tracechildren, so a wrapped recording had no button and stayed visible. A wrapper needs no id: the tab-local view store, which a reload reopens from, now keeps a member's own id or the first id inside it, and reopens the member holding that element.The
:last-childmargin resets onsection.panelandlf-cardare gone, because each holder already declares the frame trim that does the same job.aside.sidebarnow declares--lf-block-frame: triminstead of its first- and last-child resets. A probe of margins and heights showed no change.task endno longer notes that a finished element still stands among the open work. "Keep the current page current" already tells the agent to move it, so the note repeated known guidance.work.open_idshad no other caller and goes with it.