Repository navigation
Compose Leaf pages around concrete cases - #4267
Merged
Merged
Conversation
leaf-agent
approved these changes
Oct 26, 2026
max-sixty
added a commit
that referenced
this pull request
Nov 15, 2026
…5901) This restores the "Show the subject" section at the top of `skills/leaf/references/page-authoring.md`. The section tells an author which form each kind of subject takes. Under it, a mechanism nothing can show yet is drawn, including where things sit, what calls or feeds what, and today beside the proposal. Numbers whose shape is the point become an `lf-chart`. #4267 and #4629 replaced the section with "Develop the work", which has one sentence on drawing. That sentence is removed here, since the section covers it. `SKILL.md`'s step that starts a fresh author now names both sections. The restored text differs from 2715471's in four places: - The screenshot bullet points to `authoring-evidence.md`, "Interactive and visual evidence", for capture detail (crops and shadows), which that reference now owns. - The link to `authoring-decisions.md` is dropped, because that file no longer exists. - The motion bullet stops at naming `lf-motion`, and the chart bullet's pointer to "Reading cost" is dropped. - The behavior bullet adds that an order of events between actors is an `lf-timeline`, as `authoring-evidence.md` says. ## Scores: head is no better than base In #5900's runs on Fable 5.2, 20ad05c's text gave 0 of 3 pages a chart of the measurements, and this variant 2 of 3. The new case, `mechanism-proposal-shows-its-measurements`, gives the author about 3,200 words of notes on a photo-upload pipeline moving its variant generation from the request to a queue and workers: the parts, one upload's path through them, timings measured against today's path, and three decisions. It asks for the proposal on a Leaf page. Two text rubrics judge the page's HTML. Paired against main, 4 runs per arm: | Model | Arm | Charts the timings | Draws one upload's path, or today beside the proposal | `lf-chart`s per page | | --- | --- | --- | --- | --- | | Opus 5.5 | base 5cc9aef | 4 of 4 | 4 of 4 | 3, 2, 3, 2 | | Opus 5.5 | this branch | 4 of 4 | 4 of 4 | 2, 2, 2, 3 | | Fable 5.2 | base 5cc9aef | 4 of 4 | 4 of 4 | 2, 3, 3, 2 | | Fable 5.2 | this branch | 4 of 4 | 4 of 4 | 2, 3, 2, 2 | ```sh uv run leaf-dev eval run mechanism-proposal-shows-its-measurements --harness claude-code --base 5cc9aef --repeat 4 -j 2 uv run leaf-dev eval run mechanism-proposal-shows-its-measurements --harness claude-code --base 5cc9aef --model claude-fable-5-2 --repeat 4 -j 2 ``` Base already charts, so this case doesn't reproduce #5900 and can't show the restored section helping. Every author on both arms read `authoring-evidence.md`, whose `lf-chart` line `SKILL.md` routes measured facts to, and none started a fresh author for the page. The judge's reasons match the pages: each has two or three `lf-chart`s of the timings, most of them response time and ready time against upload rate, and a sequence diagram, timeline or drawn figure of one upload, today's beside the proposal's in most. One page on this branch (Opus) failed its render check, where an `lf-chart` annotation overlapped a tick label at 360–480px. #5900's runs differ from these in the notes' length (about 9,500 words), the user's global instructions, xhigh effort, and possibly a fresh author started per `SKILL.md`, whose brief at base names only "Develop the work". I didn't test those. A variant that handed a fresh author only `page-authoring.md` was stopped early: four of the five authors that started loaded the Leaf skill on their own, so it didn't isolate the file. The case stays as a guard on the default: an author run costs about $2 and 8 minutes on Opus 5.5, and $4 on Fable 5.2. ## Also in this branch - `leaf-dev eval run --model` now sets the Claude Code author too. It was refused unless `--harness codex`, though authoring cases already passed it through; `claude_child`'s default bound the pin at import, and the read-only probe ignored it. - `SKILL.md`'s changed paragraph is rewrapped to the file's width. `tests/model/test_interact_layer.py` (175) and `dev/tests/test_evals.py` (13) pass, as do the pre-commit hooks on the changed files. Closes #5900 --------- Co-authored-by: leaf-agent <[email protected]> Co-authored-by: Maximilian Roos <[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.
Leaf authors can describe a proposed experience without producing material the reader can examine. Reframe the existing authoring workflow around choosing a concrete case, constructing the subject in that situation, and composing the explanation around it. The authoring reference supplies a populated example and consolidates the presentation guidance; there is no added prefatory essay or mandatory construction subagent.
Extend the existing evals with an existing-report continuation and a changing-traffic decision. Content rubrics judge useful relationships, arrangements and consequences instead of requiring particular HTML tags. Preserve evidence boundaries and appropriate uses of prose. The only runner change initializes the diagnostics report fixture.
Validation and limits: