Repository navigation
Read an eval page's bound data under the run's state home, so a case that installs a package scores - #6889
Merged
Conversation
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
reviewed
Nov 23, 2026
leaf-agent
left a comment
Collaborator
There was a problem hiding this comment.
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.
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
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.
leaf-agent
approved these changes
Nov 23, 2026
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.
numeric-grid-shows-shape/installed-packageerrors 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, wheremetadata.installedput 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 REFarm 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.pyinstalls 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. Thedev-testsjob runs only on the nightly schedule, so this pull request's checks don't run the new test; it passes locally.