Repository navigation
On a branch cut from origin/main, commit 5c182c0 (local branch goal/20-scripts-musebench-import-score) is cherry-picked: - #17
Merged
Conversation
…reports)
scripts/musebench/cohort.py: a cohort is a JSON list of track ids or {"track_ids": [...]}; load() rejects empty,
duplicated or malformed lists, restrict() keeps eval-manifest order and errors on ids not in the eval manifest,
and the fingerprint is sha256 of the sorted ids (same set -> same fingerprint, whatever file or order).
import_scores.py --cohort: imports only the cohort rows, so coverage is relative to the cohort (scored + failed ==
cohort size, a cohort row without a score is a 'missing' failure); score lines for eval rows outside the cohort
are ignored, not counted as unmatched (the scorer may have run the full set); run_manifest.json records
cohort {path, size, sha256}.
report.py --cohort: reports only the cohort rows and records run.cohort. A run imported for a cohort must be
reported with the same cohort (exit 2 on a missing or different one), so a pilot run cannot pass as a full one.
Without --cohort nothing changes: no cohort key, and the report equals build_full_report on all rows.
Both scripts load cohort.py by file path because they drop their own directory from sys.path (select.py
shadows the stdlib module). Tests: tests/test_musebench_cohort.py (list/object forms, malformed files,
unknown id, cohort import+report coverage, mismatch refusal, unchanged full-cohort report).
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.
Milestone of an auto-claude run.
Check:
export XDG_RUNTIME_DIR="${XDG_RUNTIME_DIR:-/run/user/$(id -u)}" && systemd-run --user --scope -q -p MemoryMax=6G ~/RTX_ENV/bin/python -m pytest -m "not slow" -q -p no:cacheprovider && ~/RTX_ENV/bin/python scripts/check_docs.py && test -f scripts/musebench/cohort.py && ~/RTX_ENV/bin/python scripts/musebench/report.py --help | grep -q -- "--cohort" && ~/RTX_ENV/bin/python scripts/musebench/import_scores.py --help | grep -q -- "--cohort" && ls tests/test_musebench_cohort*.py && ! grep -rnE "/home/unohee|/media/unohee" artifactbench scripts --include='*.py'Plan: .claude/auto-plan.md (local to the run).