Skip to content

Hold a check or command note to its precision and recall - #2888

Merged
max-sixty merged 3 commits into
mainfrom
diagnose-stale-leaf-pages
Oct 14, 2026
Merged

max-sixty merged 3 commits into
mainfrom
diagnose-stale-leaf-pages

Conversation

@max-sixty

Copy link
Copy Markdown
Owner

developing-leaf priced 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.

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

max-sixty and others added 3 commits October 14, 2026 12:27
`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]>
@max-sixty
max-sixty merged commit b6d3ea7 into main Oct 14, 2026
2 of 3 checks passed
@max-sixty
max-sixty deleted the diagnose-stale-leaf-pages branch October 14, 2026 19:52
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]>
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