Repository navigation
fix(rollouts): retry unanswered ended allocations - #6064
giuliolovisotto wants to merge 3 commits into
Conversation
|
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. |
677e973 to
939331f
Compare
Signed-off-by: Giulio Lovisotto <[email protected]>
eebe78a to
c0d79fc
Compare
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
left a comment
There was a problem hiding this comment.
🤖 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]>
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]>
What does this PR do?
Stacked on #6070 through its upstream
pull-request/6070mirror. Merge that PR first, then retarget this PR tomain.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_endedinfrastructure 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-attemptscan 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-filespasses.npm --prefix fern run checkpasses 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_completecontinues 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