Repository navigation
score.py: read trial results in sorted order so ties and the interval reproduce (methodology 1.10.4) - #29
Merged
reason-machines[bot] merged 1 commit intoNov 23, 2026
Conversation
… reproduce (methodology 1.10.4) Co-authored-by: svemyh <40596752+svemyh@users.noreply.github.com>
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.
On main (1378608), two tests in
tests/test_score.pyfail depending on the filesystem's directory order. This fails CI on #28 (run):test_strict_requires_one_harness_digestexpects| harness digest | 2: sha256:aaa (1), sha256:bbb (1) |but getssha256:bbb (1), sha256:aaa (1)test_cost_falls_back_to_the_reported_cost_when_usage_is_incompleteexpects| token usage | 2: incomplete (1), unknown (1) |Cause:
trials()iteratesjob.glob("*/result.json")unsorted, soCounter.most_common()breaks ties in filesystem order.Fix:
What else glob order changed (and no longer does)
ci95()is seeded, but it bootstrapstask_meansinby_taskinsertion order, which came from the glob. On a 40-task, 3-attempt synthetic tree, shuffled glob orders gave intervals of (0.417, 0.575), (0.425, 0.575) and (0.417, 0.583). With the fix, all orders give (0.417, 0.575).--strictflagged check, and the last floating-point digit of the summed means.(job, started_at, trial dir)), and cost.Methodology: because a pass's interval can now differ from one computed before on another filesystem, this follows the patch-release convention (1.10.1–1.10.3) and adds 1.10.4 with a changelog row saying pass@1, screened and cost are unchanged.
Checks
Path.globforced to reverse order,python3 /tmp/rev_glob_run.py=unittest discover tests):FAILED (failures=2), the same two tests as CIRan 26 tests ... OKpython3 -m unittest discover -s tests, 3 runs in a row:OKeach time