Repository navigation
Say when Leaf should pass guidance back to the authoring agent - #2886
Merged
Merged
Conversation
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
previously approved these changes
Oct 14, 2026
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]>
leaf-agent
approved these changes
Oct 14, 2026
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]>
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.
/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. Thelf-askheading 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.