Skip to content

Give the turn-end fork each guidance paragraph's example, which shows recommended - #6443

Merged
max-sixty merged 4 commits into
mainfrom
recommended-option-chip
Nov 19, 2026
Merged

max-sixty merged 4 commits into
mainfrom
recommended-option-chip

Conversation

@max-sixty

@max-sixty max-sixty commented Nov 18, 2026 •

Copy link
Copy Markdown
Owner

A choice Leaf's turn-end check posted typed "(recommended)" into its first option's label and title instead of setting recommended, so the thread card showed the word and no chip. The chip itself works in thread cards. The fork that writes those asks can't open files and reads its guidance as paragraphs cut from the references (GUIDANCE). The paragraph on choices said only "mark the one you advise (authoring-on-me.md, …)". The attribute is named where that pointer leads, and shown in the fenced example right after the paragraph, which the cut left out. reference_paragraph now returns a paragraph with any fenced example directly after it, as the agent reads them, so the fork sees recommended on the advised option without a reference stating the rule again. The comment on GUIDANCE says what the fork needs to write a message belongs in a paragraph or its example. The turn-end eval's judge now fails an advised option marked in words.

Two of the nine paragraphs have an example, adding 69 words to each turn end's uncached prompt. Following the paragraphs' pointers instead would pull in 16 whole sections, 8,841 words against 1,228 now.

Since #6289 made recommended an attribute, 2 of 13 fork asks that marked advice put the word in the title. No eval run or replay of the failing turn reproduced it on main: at that rate, too few runs posted an advised option to show it. On the eval's three choice cases, three runs per version, every advised option carried the attribute on main and here (3 of 3 each), none said it in words, and the judge passed 8 of 9 on each, both failures a question left inside a paragraph.

Max asked why the option wasn't a chip, on a Leaf page, and how to give the fork the guidance it needs without restating it. tests/model/test_clerk.py passes.

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

…e guidance the fork reads

A choice Leaf's turn-end check posted on 18 Nov typed "(recommended)" into
its first option's label and title instead of setting `recommended`, so
the card showed the word and no chip. The fork that writes those asks
can't open a file, and the paragraph it gets on choices ends "mark the
one you advise (`authoring-on-me.md`, "What a question holds")": the
paragraph naming `recommended` sits behind that pointer, and the session
it forked had never written or read the attribute.

The fork now also reads "Each option is a result the user can pick", the
paragraph the pointer leads to, which covers an option's title, `label`
and leading `<strong>`, chips, order and `recommended`. The comment on
`GUIDANCE` says a paragraph's pointer target belongs in the list too. The
turn-end eval's judge now requires the attribute for an advised option,
where it used to pass the word in the title.

Since #6289 made `recommended` an attribute, 13 fork asks marked an
advised option: 11 by the attribute, 2 by the word in the title. The
added paragraph is about 400 uncached tokens per turn end.
…whole

The previous commit gave the turn-end fork authoring-on-me's whole option
paragraph. That also changes the shape of every option the fork writes,
from a compact row to a card with a title, chips and a consequence, which
the reported failure doesn't need. "Ask for a pick" in threads.md now
names the attribute and what it draws instead, so the fork has it without
following the pointer, and agents reading the paragraph get it there too.

Turn-end eval, ask-choice, ask-question and ask-permission, two rounds of
three each, main against this commit: every advised option was marked by
the attribute on both (6 of 6 each), and none in words. The judge passed
17 of 18 on main and 15 of 18 here; every failure was the question
sitting inside a paragraph rather than on its own line, which varied as
much between main's two rounds as between the arms.
leaf-agent
leaf-agent previously approved these changes Nov 18, 2026
…ted rule

The fork reads its guidance as paragraphs cut from the references and
can't open anything else. The previous commit named `recommended` in "Ask
for a pick", a third statement of a rule that authoring-on-me.md and
lf-option's registry instructions already make. The example right after
that paragraph already shows `recommended` on the advised option, and the
agent reads the two together, so `reference_paragraph` now returns a
paragraph with any fenced example directly after it, and the sentence
goes back to its pointer. Two of the nine paragraphs have an example,
which adds 69 words to each turn end's uncached prompt.

Following the paragraphs' pointers instead would pull in whole sections:
their closure is 16 sections and 8,841 words against 1,228 now, most of
it guidance for other tasks, such as live samples and themes.

Turn-end eval, ask-choice, ask-question and ask-permission, three runs
each, main against this commit: every advised option carried the
attribute on both (3 of 3 each), none was marked in words, and no option
was marked where the agent advised none. The judge passed 8 of 9 on
each; both failures were a question left inside a paragraph.
@max-sixty max-sixty changed the title Name recommended in the guidance on choices, which the turn-end fork reads whole Give the turn-end fork each guidance paragraph's example, which shows recommended Nov 19, 2026
@max-sixty
max-sixty merged commit 88e76b9 into main Nov 19, 2026
5 checks passed
@max-sixty
max-sixty deleted the recommended-option-chip branch November 19, 2026 01:42
max-sixty added a commit that referenced this pull request Nov 19, 2026
…6456)

`leaf-dev eval run` kept each run under the checkout's `.tmp/eval/`, so
every path an eval agent read named the branch under test, and sample,
page and fixture directories named the case or task, whose names
describe the behavior being measured. Scoring #6443, every
turn-end-check prompt carried `leaf.recommended-option-chip`, the fix's
own name; an author's skill path also said `arms/head`.

Following Promptfoo's model (per-step workspaces with generic names
under the OS temp dir, its record in `~/.promptfoo`), a run now lives in
`$XDG_STATE_HOME/leaf-dev/eval/`, linked from `.tmp/eval/<run>`, and the
next `eval run` deletes a stored run whose link is gone. Arms, samples,
native-probe pages and regrade evidence take random names; a task's
fixtures sit at the root of the agent's working directory, and six
prompts now name them that way. Child environments drop variables naming
the checkout.

To weigh: the link-based deletion (`stored_run` in
`commands/eval/run.py`), which keeps a run as long as its worktree; and
`leaf-assets.json` moves to a pin whose only change is the audit
fixture's `candidates.json`.

Asked for by Max. Checked with a fork, two authoring cases (one with its
page-defects judge) and a native probe: no prompt, transcript or stream
names the worktree, case or arm. `dev/tests/test_evals.py` passes.

> _This was written by Claude Code on behalf of max-sixty_
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