Repository navigation
Give eval probes a page to ask Leaf for widget instructions, and make the 16 authoring conversions probes again - #6100
Merged
Conversation
… the 16 authoring conversions probes again #6073 turned 16 reply-only probes into authoring cases, because the rule each grades sits in a package's instructions, which an author reads through `leaf page instructions --use`, and a probe had no page and, in Claude Code, no shell. An authoring sample took 0.7M to 1.3M tokens and 2 to 9 minutes; one of these probes on Claude Code takes about 0.2M tokens and 77 seconds (median). A case now declares `metadata.page`, the packages its page takes beside the defaults, and its probe gets that page initialized under its working directory by the arm's launcher. The prompt names the page and says Leaf's commands run as `leaf`, through the `leaf` tool in Codex (`page_prompt` in `workflows/eval.yaml`). Claude Code probes may run `leaf page instructions`, `leaf page vocabulary` and `jq` besides their read-only tools, with the arm's launcher first on `PATH`. Codex probes approve the plugin's `leaf` tool, which runs any `leaf` command outside the read-only sandbox, where the launcher's `uv` can't take its cache lock. The 16 cases declare their pages in place of `authoring: true` and keep their prompts, which the page prompt asks to answer in the reply. Two runs each, at b90df8d: - Claude Code passed 26 of 32 for about $0.44 a run, running `leaf page instructions` in 21. It passed 2 of 2 on each of the 9 cases that also ran as authoring cases in #6073, all of which passed there. - Codex passed 24 of 32 for about $0.04 a run, every run through the `leaf` tool. Codex had not run these cases in either form. - The failures are in six cases, each comment recording its count: `playground-candidates-line-up` failed everywhere, as it did in 14 of 17 runs before #6073; `parts-take-their-own-layouts` (Claude Code) gave each reading part contents of its own; `playground-controls-stand-by-their-item` put the budget control in the preview; on Codex, `exhibit-playground-stays-in-the-column` restyled the document's own elements and `playground-presets-are-whole-designs` labelled columns inside the simulated diff. Without a working route, both harnesses had fallen back to reading the packages' files directly and passed the smoke case, so a probe can reach these rules either way; the page lets it take the route an author takes. `evals/README.md` and `instruction-changes.md` now say a case whose rule an author reads through `leaf page instructions` gives its probe a page, rather than authoring one.
leaf-agent
approved these changes
Nov 16, 2026
max-sixty
added a commit
that referenced
this pull request
Nov 16, 2026
… in two playground eval rubrics (#6111) After #6100 made them probes with a page again, `parts-take-their-own-layouts` and `playground-controls-stand-by-their-item` failed 5 of 8 runs, though every failing run had read the rule. The rubrics asked for more than the instructions do. The first required each reading part to be a `layout-column`, while `page-layout.md` gives a column part its own contents outline and `page-authoring.md` composes one as a `layout-sidebar`, which both Claude Code runs wrote. The second required the page budget in the playground's rail, a recipe #4991 cut from the playground's `author.md` in favour of keeping each control within sight of what it changes; three of four runs put the budget once beside the month's page count in the preview. Both rubrics now accept those, and still fail the shapes the cases were written for. The eight saved runs regraded 8 of 8. To weigh: if a setting every item shares should stand in the rail, the fix is to restore that sentence to `packages/playground/instructions/author.md` and keep the old rubric. Requested by max-sixty. Checks: the regrade above, `dev/tests/test_evals.py -k 'catalog or model_option or delegates'`, pre-commit. > _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.
#6073 turned 16 reply-only eval probes into authoring cases, because each grades a rule in a package's instructions, which an author reads with
leaf page instructions --use, and a probe had no page to run it on. This gives probes that page: a case declaresmetadata.page, the packages beside the defaults, and the runner initializes it under the probe's working directory with the arm's launcher. The prompt names the page and how Leaf's commands run (page_promptinworkflows/eval.yaml). Claude Code probes may runleaf page instructions,leaf page vocabularyandjqbesides their read-only tools; Codex probes approve the plugin'sleaftool, since the launcher'suvcan't take its cache lock inside the read-only sandbox. The 16 cases go back to probes, keeping their prompts.Two runs a case at b90df8d: Claude Code passed 26 of 32 at about $0.44 a run (an authoring sample took 0.7M–1.3M tokens against these probes' 0.2M), 2 of 2 on each of the 9 cases that also ran as authoring cases in #6073. Codex passed 24 of 32 at about $0.04, every run through the
leaftool. The failures are in six cases, each comment recording what failed;playground-candidates-line-upfailed in every run, as in 14 of 17 before #6073.To weigh: every probe column now has the narrow
Bashgrant and, on Codex, an approvedleaftool, which can run anyleafcommand (writes included) in the probe's scratch state, so probes that never mention a page may behave differently; six other probes passed 12 of 12 under it, as they passed before.Requested by max-sixty. Checks:
dev/tests/test_evals.py -k 'catalog or model_option or delegates', pre-commit, and the runs above.