Repository navigation
Conversation
A MetricName or bare str primary_metric names one of the task's own metrics, but get_primary_metric only resolved a Metric instance and returned None for a name. A task left unresolved contributes nothing to a parent suite's average-of-averages, which then silently falls back to whichever metric name its children share. This changes the task hash of the 78 RULER tasks, which name their primary metric "recall": TaskConfig.to_dict serializes the resolved metric where it used to serialize None. No other registered task's hash changes. Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
Covers a string primary_metric resolving to its Metric, an unknown name resolving to None, and RULER's "recall" primary now serializing as the metric rather than None. Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #453 +/- ##
=======================================
Coverage ? 55.33%
=======================================
Files ? 446
Lines ? 39894
Branches ? 6270
=======================================
Hits ? 22076
Misses ? 16512
Partials ? 1306 ☔ View full report in Codecov by Harness. 🚀 New features to boost your workflow:
|
This branch has not been deployed
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.
TaskConfig.get_primary_metricresolves aprimary_metricgiven as aMetricinstance, but returnsNonewhen it is given by name (aMetricNameor plain string). A task left unresolved contributes nothing to a parent suite's average-of-averages, and the suite silently falls back to averaging whichever metric name its children happen to share. This PR resolves a name to the task's metric of that name.This changes task hashes.
TaskConfig.to_dictserializes the resolved primary metric, which used to beNonefor named primaries. I iterated the task registry and compared hashes before and after. Exactly the 78 RULER tasks change (ruler_cwe,ruler_fwe,ruler_niah_*,ruler_qa_*andruler_vtat all sizes), because they name their primary metric"recall". No other registered task changes. New RULER results will appear as a separate task variant from earlier ones in the results views.Split out of #281 at reviewer request. HELMET no longer depends on this change, because each HELMET task now passes its
Metricinstance directly.Tests: a named primary resolves to its
Metric, an unknown name resolves toNone, and RULER's"recall"primary now serializes as the metric. The full unit suite passes (2984 passed, 35 skipped).🤖 Generated with Claude Code