Skip to content

Say when Leaf should pass guidance back to the authoring agent - #2886

Merged
max-sixty merged 3 commits into
mainfrom
ask-readability
Oct 14, 2026
Merged

max-sixty merged 3 commits into
mainfrom
ask-readability

Conversation

@max-sixty

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

Copy link
Copy Markdown
Owner

/developing-leaf's "Be a helpful linter" covered a check that second-guesses a component that already refuses, but not when Leaf should pass guidance back at all. The lf-ask heading check refused an <hgroup> for weeks after the ask's title moved to a name rule that reads one (fixed in #2876), and an audit found the same drift in other widgets' refusals and in layout selectors keyed on child order.

The section, renamed "When to pass guidance back to the authoring agent", now starts from one question: is involving the author worth the interruption and the upkeep? It asks, in order, whether Leaf should provide the behavior itself, refuse because a necessary guarantee fails, report evidence the author must weigh, or put reusable knowledge in the instructions, and says nothing otherwise. A reader's current limits don't by themselves justify a restriction, and a contract's reader, validation, dependent layout rules and instructions change together. The wording comes from an independent review (gpt-6-astra); an earlier draft on this branch sorted demands into three kinds, which mixed channels with mechanisms.

The precision and recall paragraph from #2888 now says the rates inform the call rather than gate it, weighed with what a missed failure costs and whether agents improve the page after the message.

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

The `lf-ask` heading check refused an <hgroup> for weeks after the ask's
title moved to a name rule that reads one, and an audit found the same kind
of drift in other widgets' refusals and in layout selectors keyed on child
order. "Be a helpful linter" covered a check that second-guesses a component
that already refuses, but not one guarding a reader that never refuses, nor
structure-keyed layout, nor what to do when a reader changes.

Its opening paragraph now sorts each demand into a refusal, which calls the
code it protects and refuses only what that code can't read; a layout or
runtime rule keyed on structure, which depends only on the structure its
mechanism needs; and advice. Changing a reader updates its guards in the same
commit. The partial-checker case and its examples move into the refusal
bullet.

A scratch A/B (3 runs per arm) on a sibling refusal (an untitled board
column) and a sibling layout rule (a panel's figure grid) passed on both
arms, so the cold cases did not separate them. On a guardrail, wrapped
options an `lf-options` can't pick, the new text refused exactly the options
the widget can't read, through its own query, in 3 of 3 runs; the old text
moved the report into the widget in 3 of 3.

Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
leaf-agent
leaf-agent previously approved these changes Oct 14, 2026
max-sixty and others added 2 commits October 14, 2026 13:15
The three kinds of demand mixed channels with mechanisms, and "refuse only
what the reader can't read" was wrong: the Ask title check requires a
heading for the outline, which the name rule doesn't need. An independent
review (gpt-6-astra) cut the question by what involving the author is
worth. The section, renamed "When to pass guidance back to the authoring
agent", now asks in order whether Leaf should provide the behavior itself,
refuse because a necessary guarantee fails, report evidence the author must
weigh, or put reusable knowledge in the instructions, and says nothing
otherwise. The partial-checker case stays in the refusal paragraph with its
examples.

The precision and recall paragraph from #2888 now says the rates inform
the call rather than gate it, weighed with what a missed failure costs and
whether agents improve the page after the message.

Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
@max-sixty max-sixty changed the title State what code may demand of authored markup Say when Leaf should pass guidance back to the authoring agent Oct 14, 2026
@max-sixty
max-sixty merged commit 24c9412 into main Oct 14, 2026
3 checks passed
@max-sixty
max-sixty deleted the ask-readability branch October 14, 2026 20:34
max-sixty added a commit that referenced this pull request Oct 15, 2026
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_

---------

Co-authored-by: Claude Opus 5.5 (1M context) <[email protected]>
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