Repository navigation
fix(tier3): keep per-trial activation diagnostics for failed arms - #664
Merged
chrisknvidia merged 8 commits intoNov 16, 2026
Merged
Conversation
Signed-off-by: Christopher Kevin <christopherk@nvidia.com>
Signed-off-by: Christopher Kevin <christopherk@nvidia.com>
Signed-off-by: Christopher Kevin <christopherk@nvidia.com>
chrisknvidia
requested review from
mosheabr,
rmalani-nv and
rng1995
as code owners
November 16, 2026 12:09
Signed-off-by: Christopher Kevin <christopherk@nvidia.com>
Signed-off-by: Christopher Kevin <christopherk@nvidia.com>
Signed-off-by: Christopher Kevin <christopherk@nvidia.com>
rng1995
reviewed
Nov 16, 2026
rng1995
left a comment
Collaborator
There was a problem hiding this comment.
Reviewed at 987cdf4. The production changes hold up apart from the token double-count that Devin flagged on token_usage.py:231. I reproduced it and added a repro and fix suggestion to that thread, so I have not opened a duplicate.
What I checked and found correct:
- Failed arms keep scored and errored trials as
diagnostic_onlyrows, built fromdiagnostic_rewards*. - Errored attempts get
scored: falseand anattempt_unscoredactivation diagnostic. - Aggregate quality, lift,
dataset_summaryand resources still come from withheld or empty data. _condition_quality_availablecovers the same arm statuses thatload_agent_datawithholds, so the newresourcesgating changes nothing for succeeded arms.- Failed runs take the "Evaluation incomplete" branch, so per-trial failure counts never reach
_build_conclusions. - The CHANGELOG entry sits under Unreleased > Fixed.
tests/reporting/test_failed_arm_trials.py passes (12). Please add a no-trial_id case there with the fix.
A failed arm keeps each scored reward twice: as a diagnostic report trial and as a usage-only attempt. Token usage drops the trial when the usage-only copy carries the same trial_id, but rewards from older runs have no trial_id, so both copies carried None, nothing matched, and the attempt's tokens and observed-attempt count were counted twice. When a withheld arm's scored rewards are turned into the diagnostic trials and the usage-only copies, give every reward without a usable trial_id the name of the trial directory it was read from, so both copies share one identity. A trial directory holds one attempt, so two attempts never share it, even when they share a case ID (retries) and identical token counts. Rewards with a valid trial_id keep it, logical trial grouping is unchanged, and the rewards of an arm that succeeded load exactly as before. Signed-off-by: Christopher Kevin <christopherk@nvidia.com>
Signed-off-by: Christopher Kevin <christopherk@nvidia.com>
chrisknvidia
deleted the
fix/christopherk/failed-arm-trial-diagnostics
branch
November 16, 2026 13:39
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.
Summary
When a Tier 3 arm fails or is only partly scored, the report withholds that arm's aggregate quality and lift (unchanged). But it also dropped every per-trial row for the arm, so the per-trial activation projection (
activation_validation) disappeared, even for attempts that were scored. A failed run therefore gave no activation evidence at all, and an attempt missing from the report looked the same as one that never ran.After this change:
activation_validation.scored: falsewithobserved_activation: unknownand anattempt_unscoreddiagnostic. They are never shown asnot_invoked.dataset_summary, resources and BENCHMARK.md for the failed arm are unchanged. Retained rows are markeddiagnostic_onlyand kept out of those summaries.This is one behavior change spread over three modules, because the parts can't land separately:
tier3/harbor/report_data.pykeeps the diagnostic rows.evaluation/tier3_report.pyprojects those rows while keeping them out of score-bearing summaries.tier3/token_usage.pystops treating every canonical trial as scored.Landing only one or two of these would double-count tokens or score errored attempts. In arms that did not succeed, reward artifacts with
evaluation_statusfailed/errorare now classified as unscored. That way, retained errored rows projectunknownand each attempt is counted once with its correct status. On main, a real Codex attempt whose judge failed was loaded as a scored reward with trustednot_invoked. Succeeded arms are not touched. The collector never marks an arm succeeded when it contains failed rewards, and a test checks that a succeeded arm's aggregates don't change.Found during real Tier 3 runs on NVIDIA Build with OpenCode and Codex: one with-skill arm had 3 of 8 attempts scored, and the report's
trialslist for it was empty.Verification
tests/reporting/test_failed_arm_trials.py: retained scored rows, errored rows projectunknown, no token/attempt double counting, per-arm parity of quality, lift, case summaries, recommendations,dataset_summary, resources and BENCHMARK.md against the same payload with the diagnostic rows removed, succeeded-arm aggregates unchanged; 9 of 12 fail on main, all pass here)trialslist)make lintmake test(focusedtests/reporting+ token usage/report suites: 2483 passed; full suite left to CI)make buildRe-projecting a saved real failed run with this branch: an errored with-skill attempt now shows
observed_activation: unknownwithattempt_unscored, and a scored one showsnot_invoked/matchedwith its reward and trajectory artifact links.Release Impact
CHANGELOG.md