Skip to content

fix(tier3): retain partial arm evidence in collector JSON - #670

Merged
chrisknvidia merged 8 commits into
mainfrom
fix/christopherk/keep-partial-baseline-attempts-json
Nov 16, 2026
Merged

chrisknvidia merged 8 commits into
mainfrom
fix/christopherk/keep-partial-baseline-attempts-json

Conversation

@chrisknvidia

@chrisknvidia chrisknvidia commented Nov 16, 2026 •

Copy link
Copy Markdown
Collaborator

Summary

When a Tier 3 arm executed only partly (for example, one baseline attempt was scored and another ended with a non-zero agent exit), the Harbor collector discarded the arm's scored evidence before writing result.json. The reward was extracted, but pass_at_k.<arm> became {} and the arm's score maps were cleared. As a result, the visible "1 of 2 attempts scored" could not be checked against the results JSON.

The collector now keeps the pass summary and per-arm scores for an arm with 0 < scored_attempts < expected_attempts:

  • Missing attempts stay unscored, with attempts_missing and no scored rows, and are not counted as failures (failed_cases counts only scored cases).
  • The aggregate rate / rate_interval stay null. The arm stays failed, and overall score, lift, completed-agent result and publication eligibility stay unavailable, as before.
  • The cross-agent comparison.json now also gates each arm on its own execution status, so a failed arm's retained scores report null there (and lift is null) even when the agent was tolerated as succeeded.
  • Arms with no scored attempts and arms with mixed score policies are still cleared. Succeeded arms are unchanged.

This builds on the merged change that keeps failed arms out of terminal quality headlines. It also works with the failed-arm per-trial diagnostics: attempts and tokens are not double-counted.

Verification

  • I am familiar with the Contributing Guidelines
  • Added or updated focused tests
  • Updated documentation for user-visible changes
  • Ran make lint
  • Ran make test
  • Ran make build
  • Did not add credentials, private datasets, or proprietary benchmark content

Ran ruff check and ruff format --check on the changed files. Ran tests/reporting (including test_failed_arm_trials.py), the Harbor collector tests and the result-display, benchmark-contract and results-location tests: 3413 passed, 95 skipped. In a real Docker/Harbor run where one Claude Code baseline attempt was interrupted after the other scored, result.json keeps the scored attempt (attempts_used: 1, max_attempts_possible: 2, rate: null), and the interrupted case has attempts_missing: 1.

Release Impact

  • No user-visible release note needed
  • Updated CHANGELOG.md

Signed-off-by: Christopher Kevin <christopherk@nvidia.com>
devin-ai-integration[bot]

This comment was marked as resolved.

chrisknvidia and others added 3 commits November 16, 2026 16:53
Signed-off-by: Christopher Kevin <christopherk@nvidia.com>
…sing

In a stop-on-pass run, an unscored attempt before the first pass was
labelled as skipped, so a crash followed by a pass hid the crash behind a
skipped marker and showed zero missing attempts. Only unscored attempts
after the first pass are skipped on purpose.

Missing attempts are now counted from the admitted attempt ordinals up to
the first pass, minus scored and recovered ones, so a slot the budget never
admitted is neither missing nor skipped. Applies to both arms.

Signed-off-by: Christopher Kevin <christopherk@nvidia.com>

@rng1995 rng1995 left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Reviewed the collector change and the comparison gating. The _build_comparison per-arm gating looks right. Two inline findings on the partial-arm retention; I reproduced the first locally against this head.

Signed-off-by: Christopher Kevin <christopherk@nvidia.com>

@rng1995 rng1995 left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Reviewed e5394b7, including the follow-up integrity gate and unresolved-case accounting. No additional actionable findings. Latest focused regression run: 45 passed, 140 deselected. The earlier broader collector/baseline-timeout/truth run on 2a2d91e had 451 passed, 4 skipped, and 4 engine tests failing because the local Harbor installation lacks harbor.agents.agent_auth_resolution; those failures do not exercise the changed collector paths.

@rng1995
rng1995 enabled auto-merge (squash) November 16, 2026 17:41

@devin-ai-integration devin-ai-integration Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Devin Review found 1 potential issue.

Devin Review

…s-json

Signed-off-by: Christopher Kevin <christopherk@nvidia.com>
…s-json

Signed-off-by: Christopher Kevin <christopherk@nvidia.com>
@chrisknvidia
chrisknvidia merged commit cc3563e into main Nov 16, 2026
27 checks passed
@chrisknvidia
chrisknvidia deleted the fix/christopherk/keep-partial-baseline-attempts-json branch November 16, 2026 18:29
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants