Skip to content

Ask only for the structure four rules read - #2917

Merged
max-sixty merged 5 commits into
mainfrom
ask-readability
Oct 15, 2026
Merged

max-sixty merged 5 commits into
mainfrom
ask-readability

Conversation

@max-sixty

@max-sixty max-sixty commented Oct 15, 2026 •

Copy link
Copy Markdown
Owner

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-value may now stand at any depth within its lf-playground-output (x-within). The output fills value slots wherever they are, but page check refused one inside a <strong>.

lf-trace-compare now takes each direct child that is or holds an lf-trace as 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 direct lf-trace children, 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-child margin resets on section.panel and lf-card are gone, because each holder already declares the frame trim that does the same job. aside.sidebar now declares --lf-block-frame: trim instead of its first- and last-child resets. A probe of margins and heights showed no change.

task end no 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_ids had no other caller and goes with it.

This was written by Claude Code on behalf of max-sixty

max-sixty and others added 3 commits October 14, 2026 17:16
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 leaf-agent left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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
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]>
@max-sixty
max-sixty merged commit 6f5f80b into main Oct 15, 2026
3 checks passed
@max-sixty
max-sixty deleted the ask-readability branch October 15, 2026 01:15
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants