Skip to content

fix(rollouts): retry unanswered ended allocations - #6064

Closed
giuliolovisotto wants to merge 3 commits into
pull-request/6070from
glovisotto/ignore-non-retryable-aggregate
Closed

giuliolovisotto wants to merge 3 commits into
pull-request/6070from
glovisotto/ignore-non-retryable-aggregate

Conversation

@giuliolovisotto

@giuliolovisotto giuliolovisotto commented Nov 12, 2026 •

Copy link
Copy Markdown
Contributor

What does this PR do?

Stacked on #6070 through its upstream pull-request/6070 mirror. Merge that PR first, then retarget this PR to main.

An omitted, unrouted failure diagnostic can leave an execution reservation permanently unresolved, even after its allocation ends. Scheduler-confirmed recovery now closes an eligible unanswered diagnostic as one nonterminal rollout_allocation_ended infrastructure failure, allowing another attempt within the saved budget. The original diagnostic remains in the sidecar.

Recovery passes authorization bound to the exact inspected manifest. A plain resume, a changed manifest, a live or unconfirmed allocation, saved answers/grades, pending rejudgments, selected model/verification causes, incomplete failure evidence and protected producer stops cannot authorize this closure. Recovery previews the same failure charge without modifying artifacts.

This replaces this PR's earlier automatic-zero approach. Exhausted infrastructure attempts remain incomplete and unscored; the existing --extend-attempts can grant more attempts. No new CLI flag or scoring policy is introduced. No separate issue: this is a focused recovery follow-up to #6070.

Validation

  • Reconciled with parent fix(rollouts): retry masked infrastructure faults and report unsettled masked rows #6070 at dba8cf3f990b3e691a25b64b9dbc87b1b5207aa3.

  • PYTHONPATH=. python -m pytest -n 4 -q -o addopts='' tests/unit_tests/orchestration/test_unrouted_allocation_recovery.py tests/unit_tests/orchestration/test_allocation_cut_recovery.py tests/unit_tests/orchestration/test_masked_infrastructure_recovery.py tests/unit_tests/orchestration/test_requeued_chain_sentinel.py tests/unit_tests/rollouts/test_rollout_store.py tests/unit_tests/rollouts/test_saved_generation_admission.py — 340 passed (isolated cache).

  • Added a requeue continuation regression using the real manifest reader, generated shell and Store writer; it fails if either the reader output or shell export is removed.

  • Legacy terminal-timeout regression fails before the fix. Recovery honors the saved timeout-retry policy while protecting producer stop decisions, saved answers and grades, and final zeros.

  • python -m pre_commit run --all-files passes.

  • npm --prefix fern run check passes with zero errors and one warning.

  • Independent code review: Ship; its completed checks passed the new regression file (49 tests), allocation/requeue tests (78), and Store tests (128).

  • An additional broad parallel run was inconclusive: 5,602 passed, 178 failed and 69 errored before interruption; its truncated output does not establish which failures are regressions. The separately rerun Store file passed all 128 tests. No full-suite pass is claimed.

Rollouts

N/A for new model generation: this changes persisted rollout recovery, not an agent or environment. Tests use real Store artifacts and the real recovery/continuation entry points, with scheduler commands simulated. They cover bounded retries, explicit attempt extension, unchanged scores, read-only inspection, stale admission, saved-answer/grade protection, model/verification attribution, unrelated recovered observations and idempotent failure recording. Failure fixtures use the collector’s typed compatibility record helpers.

Compatibility and benchmark impact

Existing eligible diagnostic rows can be recovered without rewriting their history. The additional failure consumes one attempt at the existing execution number. require_complete continues to reject unresolved or exhausted work; an infrastructure failure does not become a scored zero. Saved grades remain unchanged. When a read-only recovery preview exhausts the budget, saved coverage stays unresolved until an authorized writer records the failure; inspection reports the exhausted failure kind in the meantime.

Checklist

  • I have read the contributing guidelines.

  • The change is focused.

  • Focused checks pass locally; the inconclusive broad run is disclosed above.

  • Documentation updated.

  • Pre-commit checks pass locally.

  • New source files include the required Apache-2.0 SPDX header.

  • All commits have DCO sign-off.

  • @codex

@copy-pr-bot

copy-pr-bot Bot commented Nov 12, 2026

Copy link
Copy Markdown

Auto-sync is disabled for draft pull requests in this repository. Workflows must be run manually.

Contributors can view more details about this message here.

@giuliolovisotto
giuliolovisotto force-pushed the glovisotto/ignore-non-retryable-aggregate branch from 677e973 to 939331f Compare November 12, 2026 16:57
@giuliolovisotto giuliolovisotto changed the title feat(eval): exclude non-retryable failures during aggregation fix(eval): score non-retryable failures as zero Nov 12, 2026
@giuliolovisotto
giuliolovisotto force-pushed the glovisotto/ignore-non-retryable-aggregate branch from eebe78a to c0d79fc Compare November 13, 2026 13:32
@giuliolovisotto giuliolovisotto changed the title fix(eval): score non-retryable failures as zero fix(rollouts): retry unanswered ended allocations Nov 13, 2026
@giuliolovisotto
giuliolovisotto changed the base branch from main to pull-request/6070 November 13, 2026 13:32
Do not relabel model, verification, or incomplete failure evidence
as an allocation-ended infrastructure failure. Use collector-shaped
fixtures and retain saved-grade protection.

Signed-off-by: Giulio Lovisotto <[email protected]>

@AdamRajfer AdamRajfer 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.

🤖 Adam’s AI assistant (reviewed for Adam)

Approving. This now matches the failure contract we discussed: an execution left with only a diagnostic after its allocation ended is closed as a non-terminal rollout_allocation_ended infrastructure failure. It retries within the budget, never becomes a zero, and keeps require_complete blocked once exhausted, with --extend-attempts to reopen. Saved answers and grades, pending re-judgments, model, verification and judge causes, and explicit producer actions stay protected. Binding the closure to the scheduler-confirmed allocation end and the exact inspected manifest digest is a good guard.

One non-blocking follow-up: when the preview alone exhausts the budget, no writer runs. --inspect then reports rollout_allocation_ended, while the Store's coverage still shows an unresolved reservation until a recovery with --extend-attempts. The run blocks either way, but it would be clearer if coverage named the kind in that case too, the way masked_exhausted does in #6070.

Merge order: #6070 first, then retarget this to main.

Reconcile the latest parent recovery policy while preserving unanswered
allocation retries. Honor saved legacy timeout retries without reopening
producer stops or retained results, and cover requeue manifest admission.

Refs #6064, #6070

Signed-off-by: Giulio Lovisotto <[email protected]>
@copy-pr-bot
copy-pr-bot Bot deleted the branch pull-request/6070 November 16, 2026 11:44
@copy-pr-bot copy-pr-bot Bot closed this Nov 16, 2026
giuliolovisotto added a commit that referenced this pull request Dec 2, 2026
Reconcile unanswered diagnostics only after confirmed allocation end. Preserve saved policy and prior failure guards, and keep planning aligned with writer attempt budgets across recovery and requeue paths.

Refs #6064

Signed-off-by: Giulio Lovisotto <[email protected]>
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