Skip to content

Show the material a page's claims rest on, collapsed where it is long - #6619

Merged
max-sixty merged 5 commits into
mainfrom
leaf-show-sources
Nov 20, 2026
Merged

max-sixty merged 5 commits into
mainfrom
leaf-show-sources

Conversation

@max-sixty

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

Copy link
Copy Markdown
Owner

Leaf's authoring instructions now ask a page to put the material behind each claim on the page: the cases behind a count, the records of what happened, the code, the diff, quoted rather than retold, with everything behind a count kept on the page and collapsed as "Reading cost" says. page-authoring.md gains "Show what a claim rests on", which takes over the narrower clause in "Show the subject" that asked only for a cited rule to be quoted. A fresh author subagent is handed that material (SKILL.md), a worker's brief asks for it with each finding (conversation-loop.md), authoring-evidence.md asks for the exact patch of any edit a claim or decision turns on, not only one under review, and SOUL.md states the property under "Make the work concrete and playable".

max-sixty asked for this: "leaf pages are overly hesitant to provide source material: cases of what happened / code diffs / code snippets." On 16 of his pages from 4–20 November, read as they stood at his first comment, 197 of 348 claims of those kinds stood on the author's word alone, and 5 kept their material in a disclosure.

Three new authoring cases, tagged evidence, with fixtures in leaf-assets: findings-show-their-cases (a worker's counts over 24 real fork asks), merge-decision-shows-the-diff (#6555's merge decision) and diagnosis-quotes-code-and-log (an incident outside Leaf). Claude Code, 3 runs per arm: base already shows one case, the diff and the code (3/3 each); the change puts every ask behind a count on the page in 2/3 against 0/3, and keeps the answer and decision leading the page (3/3 each); with the SOUL.md line every rubric scored 3/3. Authoring evals now pass the judge the page's bound data (metadata.page_data), since a patch view keeps its diff there rather than in the HTML.

What this doesn't fix, Ref #5401: replayed from just before the session that wrote "3 of 7" with no ask shown, base showed an ask 1/6, this branch without the SOUL.md line 2/6 and with it 2/4, all within noise. The failure lives in long sessions writing sections themselves, which this text reaches no better than #5401's paragraph did. max-sixty picked adding the SOUL.md line.

Reviewed by a fresh Claude Code reviewer and by Codex; their findings are folded in. Tests: dev/tests/test_evals.py catalog and saved-output grading.

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

leaf-agent
leaf-agent previously approved these changes Nov 20, 2026
…t rests on

max-sixty picked adding the line on the report page for this branch. It sits
under "Make the work concrete and playable", beside the subject of a judgment,
and page-authoring.md's "Show what a claim rests on" owns the detail.
Replays of the motivating late session showed an ask 2/4 with the line against
2/6 without it, within noise.
@max-sixty
max-sixty merged commit a863261 into main Nov 20, 2026
6 checks passed
@max-sixty
max-sixty deleted the leaf-show-sources branch November 20, 2026 22:04
max-sixty added a commit that referenced this pull request Nov 23, 2026
…that installs a package scores (#6889)

`numeric-grid-shows-shape/installed-package` errors on every arm once
its author writes a valid page: `RegistryError: this Leaf cannot compose
the page's layer: unknown package 'team-charts'`. Since #6619 the
authoring harness reads a finished page's bound data in its own process,
so the page's layer composes against this machine's packages rather than
the run's state home, where `metadata.installed` put the case's fixture
package. The read now runs in a child process under the run's state
home.

The child uses this checkout's Leaf, as the in-process read did, not the
arm's, so an old `--base REF` arm keeps working. A read that fails
raises with the child's stderr, so the eval's error column still shows
the exception. Found while scoring #6885; max-sixty asked for the merge
from a summary on the session's Leaf page and hasn't said he read the
diff.

Tests: the case, run once on Claude Code, reaches its grader and passes,
where both arms errored 4 of 4 before. A new test in
`dev/tests/test_evals.py` installs the fixture package under one state
home, reads a bound patch back under it, and checks that under a
different one the read fails naming the missing package. The `dev-tests`
job runs only on the nightly schedule, so this pull request's checks
don't run the new test; it passes locally.

> _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