Skip to content

Read an eval page's bound data under the run's state home, so a case that installs a package scores - #6889

Merged
max-sixty merged 3 commits into
mainfrom
fable-prose-core
Nov 23, 2026
Merged

max-sixty merged 3 commits into
mainfrom
fable-prose-core

Conversation

@max-sixty

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

Copy link
Copy Markdown
Owner

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

Since #6619 the authoring harness read a finished page's bound data in its
own process, so the page's layer composed against this machine's packages.
A case that installs a fixture package into the run's state home, as
numeric-grid-shows-shape/installed-package does, then errored on every arm
once its page was valid: unknown package 'team-charts'. A child process now
reads the data under the run's state home.

@leaf-agent leaf-agent left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

If the child process fails, the reason is lost. With capture_output=True and check=True, a failed read raises CalledProcessError, and its message gives only the argv (the whole -c program) and the exit status. The child's stderr, where the real exception is, never shows up anywhere. Before this change the in-process read surfaced the exception itself. That's how RegistryError: … unknown package 'team-charts' was found in the first place. The next layer or data failure here would show up as a bare "exit status 1" in the eval's error column. The suggestion below raises with the child's stderr instead.

Comment thread dev/leaf_dev/authoring_eval.py Resolved
A page selecting a package installed only under one state home reads its bound
patch there, and the read fails under another. dev-tests runs nightly, so no
pull request job runs this.
@max-sixty
max-sixty marked this pull request as ready for review November 23, 2026 19:24
With check=True the failure named only the argv and exit status, so the eval's
error column lost the exception the in-process read used to show. The test now
checks the read fails because the package is missing.
@max-sixty
max-sixty merged commit 8c9a570 into main Nov 23, 2026
8 checks passed
@max-sixty
max-sixty deleted the fable-prose-core branch November 23, 2026 19:52
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