Repository navigation
fix(eval): make rollout timeouts explicit failures (HUD-2099) - #504
Merged
jdchawla29 merged 1 commit intoJul 26, 2026
Merged
jdchawla29 merged 1 commit into
jdchawla29 merged 1 commit into
Conversation
jdchawla29
reviewed
Jul 24, 2026
jdchawla29
requested changes
Jul 24, 2026
jdchawla29
force-pushed
the
chinmay/hud-2099-hard-rollout-timeout
branch
from
July 26, 2026 01:51
0d8ddd5 to
d7fe8c8
Compare
jdchawla29
force-pushed
the
chinmay/hud-2099-hard-rollout-timeout
branch
from
July 26, 2026 02:58
d7fe8c8 to
0541bcc
Compare
jdchawla29
force-pushed
the
chinmay/hud-2099-hard-rollout-timeout
branch
from
July 26, 2026 03:09
0541bcc to
6b9788a
Compare
jdchawla29
force-pushed
the
chinmay/hud-2099-hard-rollout-timeout
branch
from
July 26, 2026 03:38
6b9788a to
20a1a9b
Compare
There was a problem hiding this comment.
Cursor Bugbot has reviewed your changes using default effort and found 1 potential issue.
❌ Bugbot Autofix is OFF. To automatically fix reported issues with cloud agents, enable autofix in the Cursor dashboard.
Reviewed by Cursor Bugbot for commit 20a1a9b. Configure here.
jdchawla29
force-pushed
the
chinmay/hud-2099-hard-rollout-timeout
branch
from
July 26, 2026 03:45
20a1a9b to
59ce4f9
Compare
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
Runwithstop_reason="timeout"while preserving partial trace evidenceHUDRuntime.run_timeout, make hosted timeouts explicit failures, and reject implicit timeout rewards or incomplete Run groups in trainingRoot cause
The previous implementation applied the deadline to selected awaits and treated an agent timeout as a successful graded trajectory. Grading and provider cleanup could still hold the batch open, and timeout failures had no explicit GRPO policy.
The corrected contract has one owner per concern: the rollout owns the deadline and terminal receipt, the client owns immediate transport abort, providers keep ownership of teardown, and the training client validates timeout rewards and complete Run groups.
User impact
A stuck rollout cannot leave
Taskset.run()waiting indefinitely. Timeouts are visible execution failures, cleanup continues through the provider lifecycle, and GRPO callers must drop the failed group or assign an explicit reward.Validation
uv run pytest -q— 733 passeduv run ruff format . --checkuv run ruff check .uv run pyright— 0 errors (optional-dependency warnings only)