Repository navigation
Hold a check or command note to its precision and recall - #2888
Merged
Merged
Conversation
`developing-leaf` already priced a check by how often it fires on pages that already work. It now names both rates and extends them to a note a command prints about what the agent should do next, such as `task end`'s: precision, the share of firings that were needed, and recall, the share of the failure's occurrences reached, both measured on real pages and sessions rather than on the failure that prompted it. A low-recall note fixes what its predicate sees and leaves the wider failure looking handled; `task end`'s fires only on to-dos opened on a page element, which 7 of 211 local pages had. Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
The case that prompted it, `task end`'s note, belongs in the commit that added the bar, not in the guidance. Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
…s missing Not every check or note has the pages or sessions to measure its precision and recall against, so the bar asks for an attempt and a stated estimate. 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 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]>
max-sixty
added a commit
that referenced
this pull request
Oct 14, 2026
`/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_ --------- 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-leafpriced a narrow check by how often it fires on pages that already work. It now names the two rates a check or a command's note about what the agent should do next has to clear, precision (the share of firings that were needed, so it doesn't spam the agent) and recall (the share of the failure's occurrences it reaches, so fixing the cases its predicate sees doesn't leave the wider failure looking handled), and asks for an attempt to measure both on real pages and sessions rather than on the failure that prompted it, with a stated estimate where the data isn't there.The case that prompted it:
task end's note (#2855) restructured 5 of 5 replays of the session it came from, yet fires only on to-dos opened on a page element, which 7 of 211 pages on this machine had.