Skip to content

fix(eval): preserve planned repeats through aggregation and reverification - #6017

Draft
katerynaCh wants to merge 92 commits into
NVIDIA-NeMo:mainfrom
katerynaCh:kchumachenko/planned-repeat-accounting
Draft

katerynaCh wants to merge 92 commits into
NVIDIA-NeMo:mainfrom
katerynaCh:kchumachenko/planned-repeat-accounting

Conversation

@katerynaCh

Copy link
Copy Markdown
Contributor

Depends on #5135. This PR is stacked on the benchmark branch and should merge only after #5135. Once that PR lands, this branch will be rebased onto main and retargeted so the diff contains only repeat-accounting changes.

What does this PR do?

Prevents an incomplete repeated evaluation from being reported as complete when an entire repeat is absent from the saved results.

For example, an evaluation requests two attempts for each of three tasks. If only attempt 0 succeeds for every task, the three surviving rows still look balanced: every task has one result. Inferring completeness from those rows loses the fact that six measurements were requested. The same problem occurs when unsuccessful attempts are written to failure sidecars rather than the scored output.

This change carries the requested attempt plan from materialized inputs to aggregation:

  • Adds optional expected_rollout_indices to AggregateMetricsRequest, mapping each task index to its planned rollout indices.
  • Supplies that inventory during collection and offline aggregation, including attempts with failures or no result. Runtime repeat overrides are reflected in the materialized plan.
  • Supplies the same inventory during reverification, including runs combining cached and newly graded results.
  • Matches the plan to the original environment identity. Materialized inputs may identify an agent while saved results identify the environment that ran it; grouping these differently previously lost the plan during reverification. The implementation preserves separate environments sharing an agent and respects resource routing, including resource-only reverification configurations. It rejects ambiguous original environment assignments instead of guessing.
  • Makes the visual benchmark aggregator withhold headline metrics until planned measurements are present and valid. Partial metrics remain available. An unavailable or interrupted attempt inventory does not establish completeness.

Validation

Final commit: 5b36ae84d1c97e75ab1e97cd6b8c196153b45b55.

3,288 tests passed. The following pytest arguments were executed through an isolated Python runner that selected this checkout and its test helpers, avoiding another editable Gym installation:

pytest \
  tests/unit_tests/eval/test_rollout_reverification.py \
  tests/unit_tests/eval/test_journal_reverification.py \
  tests/unit_tests/eval/test_compare.py \
  tests/unit_tests/rollouts/test_rollout_collection.py \
  tests/unit_tests/rollouts/test_rollout_health.py \
  tests/unit_tests/rollouts/test_rollout_records.py \
  resources_servers/opencode_multimodal_benchmarks/tests \
  resources_servers/gdpval/tests/test_multistage_journal_fingerprint_components.py \
  resources_servers/gdpval/tests/test_multistage_orchestrator.py \
  responses_api_agents/remote_agent/tests/test_app.py \
  tests/unit_tests/test_public_api_facades.py \
  -q --disable-warnings --tb=short

Checks cover uniformly missing or masked repeats, restored completeness after recovery, failure-sidecar accounting, cached/fresh reverification, original environment routing, ambiguous routes, interrupted materialized records, and compatibility with existing aggregation callers.

pre-commit run --all-files
git diff --check

Available pre-commit checks and diff whitespace checks passed. The private guardword catalog was unavailable locally, so that scan still requires remote CI. The commit has a DCO sign-off.

Rollouts

Verified the missing-repeat bug with the same synthetic aggregation fixture against parent commit cdc828124 and this branch at 5b36ae84d. The fixture requests three tasks × two repeats, then removes repeat 1 from every task while retaining the full six-attempt plan.

  • Before: the three surviving results incorrectly produce complete: true and headline metrics.
  • After: the same three results produce complete: false; headline metrics are withheld and partial metrics remain available.
  • All six results present: both revisions report completeness and identical scores.

This before/after reproduction covers VStar, HRBench8K, and VTCBench. It specifically tests missing repeats without removing any task entirely.

As a separate compatibility check, re-aggregating 191 saved VStar results with their materialized plan preserved completeness and 92.67% accuracy. Removing one result produced a partial report. That single-repeat check exercises existing missing-task detection; it is not evidence of the missing-repeat bug.

No fresh model or judge calls were needed for this aggregation-only change. Agent execution and per-rollout grading are unchanged. The compatibility check reused saved results without modifying the source artifacts.

Compatibility and benchmark impact

The aggregation request field is optional and defaults to None, meaning the planned inventory is unknown. Existing aggregators can continue using verify_responses and ignore the new field. Normal collection and supported aggregation/reverification paths supply the inventory automatically when materialized inputs are available.

Direct callers of the visual benchmark aggregator must supply expected_rollout_indices to establish planned-attempt completeness. Without it, the aggregator reports partial metrics rather than certifying a complete evaluation. Historical artifacts with unavailable plans or ambiguous routing may therefore no longer produce a headline score without supplying the original materialized inputs and routing evidence.

Correctness rewards, tool rewards, prompts, judge behavior, sampling, and training are unchanged. Complete evaluations retain their scores. Incomplete evaluations may lose a previously misleading headline score; partial metrics remain available. Execution-evidence forwarding remains separately opt-in and defaults to off.

Checklist

  • I have read the contributing guidelines.
  • The change is focused; unrelated "drive-by" edits are tracked as separate issues/PRs.
  • Tests added or updated and pass locally, or N/A for docs-only / non-code changes (so CI unit/server checks pass when applicable).
  • Documentation added or updated, or N/A with justification.
  • Pre-commit checks pass locally (pre-commit run --all-files) (so CI lint/format checks pass).
  • New source files include the required Apache-2.0 SPDX header.
  • All commits have DCO sign-off (git commit -s) (so the DCO check passes).

Register the multimodal harness and configure its conformance episodes.
Provision the pinned OpenCode runtime, image dependencies, and Bubblewrap
sandbox in CI so the checks run without manual environment setup.

Signed-off-by: Kateryna Chumachenko <[email protected]>
Provide an opt-in verifier entrypoint that removes trailing EOS markers before answer extraction. Preserve standard matching rules and the original response, with coverage for suffixes and case-sensitive comparisons.

Signed-off-by: Kateryna Chumachenko <[email protected]>
Preserve failed-rollout capture invalidation alongside typed upstream outcomes. Reuse upstream capture identity compatibility and adapt multimodal conformance to the endpoint map API.

Signed-off-by: Kateryna Chumachenko <[email protected]>
Adapt multimodal component dependency locks and judge failure retries to upstream contracts. Preserve the training capture and failed-rollout handling.

Signed-off-by: Kateryna Chumachenko <[email protected]>
…-onboarding-compliance

Signed-off-by: Kateryna Chumachenko <[email protected]>
…ce command denies

Signed-off-by: Kateryna Chumachenko <[email protected]>
Reuse the shared OpenSandbox policy helper while retaining namespace enforcement for local and Enroot execution. Translate multimodal network modes without changing the shared agent defaults, and preserve both harness conformance registrations.

Signed-off-by: Kateryna Chumachenko <[email protected]>
Use canonical sandbox network modes and explicit benchmark tool policies. Preserve a private Python runtime for sandbox execution and document the supported controls.

Add benchmark task-data validation, resumability coverage, and verifier evidence recording with representative fixtures.

Signed-off-by: Kateryna Chumachenko <[email protected]>
Separate infrastructure failures from model errors, repair benchmark extraction and pass@5 defaults, validate judges and task metadata, and fix process cleanup and configuration wiring. Remove BabyVision and document shared compatibility and source provenance. Host-proc isolation and Agent-X permission remain deferred.

Signed-off-by: Kateryna Chumachenko <[email protected]>
Use the deepest typed HTTP cause for native judge retry decisions instead of a proxy carrier status. Keep the controlled conformance model separate from enforced visual gateway budgets and cover both paths with regressions.

Signed-off-by: Kateryna Chumachenko <[email protected]>
@copy-pr-bot

copy-pr-bot Bot commented Nov 11, 2026

Copy link
Copy Markdown

This pull request requires additional validation before any workflows can run on NVIDIA's runners.

Pull request vetters can view their responsibilities here.

Contributors can view more details about this message here.

@katerynaCh

Copy link
Copy Markdown
Contributor Author

/ok to test 5b36ae8

@copy-pr-bot
copy-pr-bot Bot requested a deployment to public November 11, 2026 20:17 Abandoned
@copy-pr-bot
copy-pr-bot Bot requested a deployment to public November 11, 2026 20:19 Abandoned
@copy-pr-bot
copy-pr-bot Bot requested a deployment to public November 11, 2026 20:20 Abandoned
@copy-pr-bot
copy-pr-bot Bot requested a deployment to public November 11, 2026 20:21 Abandoned
@github-actions

github-actions Bot commented Nov 11, 2026 •

Copy link
Copy Markdown
Contributor

@katerynaCh
katerynaCh force-pushed the kchumachenko/planned-repeat-accounting branch from 2595e8a to e5ecf93 Compare November 12, 2026 16:46
@katerynaCh

Copy link
Copy Markdown
Contributor Author

/ok to test e5ecf93

This branch had an error being deployed

1 failed deployment
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area:evaluation Evaluation, rollout collection, reward profiling, comparison, and exporters bug Something isn't working

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants