Repository navigation
Give the turn-end fork each guidance paragraph's example, which shows recommended - #6443
Merged
Merged
Conversation
…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
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.
recommended in the guidance on choices, which the turn-end fork reads wholerecommended
leaf-agent
approved these changes
Nov 19, 2026
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_
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.
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_paragraphnow returns a paragraph with any fenced example directly after it, as the agent reads them, so the fork seesrecommendedon the advised option without a reference stating the rule again. The comment onGUIDANCEsays 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
recommendedan 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.pypasses.