Repository navigation
Pin the stored task hash of every registered spec - #514
Merged
Merged
Conversation
A task hash identifies stored results, and nothing caught a change that moved one. Add a golden test of the hash of every task and single variant, with OLMO_EVAL_JUDGE unset and set, built through the same configure_task the runner uses, so it pins the hash runs store. An intended change shows up as a reviewed diff to task_hashes.json. configure_task is extracted from prepare_task_items without a change in behavior. AGENTS.md says what to do when the test fails. Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
Review of the hash test found that it missed the stacked-variant specs suites run, that CTC_SUITE_DATA_ROOT reached 199 pinned hashes from a developer's environment, and that its failure message asked for a compatibility entry when a spec was only added. The test now also pins every spec a suite expands to, clears the environment variables tasks read into their config, lists added, removed and changed specs apart with old and new hashes, and reads the registry through its public functions. The AGENTS.md rule defers to "Spec meaning is fixed", says a removed spec is a retirement, and says what the test cannot catch; CONTRIBUTING.md points to it. configure_task is exported. Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
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.
Adds a golden test that pins the stored task hash of every registered spec, so a change that moves a hash fails CI until it is acknowledged.
A task hash identifies stored results. Until now, nothing caught a change that moved one, short of reviewers noticing.
What it adds
tests/evals/tasks/test_task_hashes.py. It hashes 2,681 specs: every task, every single variant, and every spec a suite expands to, including stacked variants such asarc_easy:rc:olmo3base. It hashes each once withOLMO_EVAL_JUDGEunset and once set, clears the environment variables tasks read into their config (such asCTC_SUITE_DATA_ROOT), and compares withtask_hashes.json. A failure lists added, removed and changed specs separately, with old and new hashes. When a change is intended, regenerate the file withuv run pytest tests/evals/tasks/test_task_hashes.py --update-task-hashes; the moved hashes then show up as a diff to review.configure_taskinrunners/asynq/preparation.py. This is the part ofprepare_task_itemsthat builds a task's stored config, extracted with no change in behavior. The test hashes through it, so it pins the hash runs actually store and not a proxy.docs/result-compatibility.mdnaming the specs.Validation
main's runner code.CTC_SUITE_DATA_ROOT; both are fixed. The test passes with that variable set.HOME, temp dir and working directory.All pass: 4,433 passed, 36 skipped.
This PR comes from #512, which unifies the LLM-judge code. #512 builds on it, so its diff shows only the hashes it changes.
🤖 Generated with Claude Code