Skip to content

Compose Leaf pages around concrete cases - #4267

Merged
max-sixty merged 2 commits into
mainfrom
codex/concrete-authoring
Oct 26, 2026
Merged

max-sixty merged 2 commits into
mainfrom
codex/concrete-authoring

Conversation

@max-sixty

@max-sixty max-sixty commented Oct 26, 2026 •

Copy link
Copy Markdown
Owner

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:

  • After integrating main: two Python runner smoke tests, one Node Promptfoo smoke test, fixture and worked-example markup checks, and all changed-file pre-commit hooks pass. The instruction merge received independent review.
  • In a preserved-snapshot, reduced pre-research Astra/high comparison, the baseline scored 0.25 and the simpler rewrite 0.72. Independent rendered review judged a narrow content improvement. This is one run per arm, not a reliability estimate or full conversation replay.
  • The final pre-integration compact Sol continuation and local-layout case still failed to construct concrete content. Arrangement and appropriate prose checks passed; the existing wording comparison-label criterion still failed. This PR retains those failures as follow-up work rather than claiming a general content-quality fix.

This was written by Codex on behalf of max-sixty

@max-sixty
max-sixty merged commit f9b8a71 into main Oct 26, 2026
4 checks passed
@max-sixty
max-sixty deleted the codex/concrete-authoring branch October 26, 2026 16:19
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]>
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