Skip to content

fix(eval): make rollout timeouts explicit failures (HUD-2099) - #504

Merged
jdchawla29 merged 1 commit into
hud-evals:mainfrom
ChinmayK0607:chinmay/hud-2099-hard-rollout-timeout
Jul 26, 2026
Merged

jdchawla29 merged 1 commit into
hud-evals:mainfrom
ChinmayK0607:chinmay/hud-2099-hard-rollout-timeout

Conversation

@ChinmayK0607

@ChinmayK0607 ChinmayK0607 commented Jul 22, 2026 •

Copy link
Copy Markdown
Contributor

Summary

  • enforce one deadline across provisioning, task start, agent execution, grading, and provider cleanup
  • return a terminal errored Run with stop_reason="timeout" while preserving partial trace evidence
  • abort the client transport and cancel the lifecycle task without making the batch wait for teardown
  • make environment-server shutdown cancel active handlers and suspended task state at the owning layer
  • propagate HUDRuntime.run_timeout, make hosted timeouts explicit failures, and reject implicit timeout rewards or incomplete Run groups in training

Root 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 passed
  • uv run ruff format . --check
  • uv run ruff check .
  • uv run pyright — 0 errors (optional-dependency warnings only)

Comment thread hud/eval/run.py Resolved
Comment thread hud/eval/run.py Resolved
Comment thread hud/eval/run.py Resolved
Comment thread hud/eval/runtime.py Resolved
Comment thread hud/eval/run.py Resolved
Comment thread hud/eval/run.py Resolved
@jdchawla29
jdchawla29 force-pushed the chinmay/hud-2099-hard-rollout-timeout branch from 0d8ddd5 to d7fe8c8 Compare July 26, 2026 01:51
@jdchawla29 jdchawla29 changed the title fix(eval): hard rollout wall-clock timeout for HUDRuntime training (HUD-2099) fix(eval): make rollout timeouts explicit failures (HUD-2099) Jul 26, 2026
Comment thread hud/eval/run.py Resolved
Comment thread hud/eval/run.py Resolved
Comment thread hud/eval/run.py Resolved
@jdchawla29
jdchawla29 force-pushed the chinmay/hud-2099-hard-rollout-timeout branch from d7fe8c8 to 0541bcc Compare July 26, 2026 02:58
Comment thread hud/eval/runtime.py Resolved
Comment thread hud/environment/server.py Resolved
Comment thread hud/clients/client.py Resolved
@jdchawla29
jdchawla29 force-pushed the chinmay/hud-2099-hard-rollout-timeout branch from 0541bcc to 6b9788a Compare July 26, 2026 03:09
Comment thread hud/eval/run.py Resolved
Comment thread hud/eval/runtime.py Resolved
@jdchawla29
jdchawla29 force-pushed the chinmay/hud-2099-hard-rollout-timeout branch from 6b9788a to 20a1a9b Compare July 26, 2026 03:38

@cursor cursor Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Cursor Bugbot has reviewed your changes using default effort and found 1 potential issue.

Fix All in Cursor

❌ 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.

Comment thread hud/eval/runtime.py Resolved
@jdchawla29
jdchawla29 force-pushed the chinmay/hud-2099-hard-rollout-timeout branch from 20a1a9b to 59ce4f9 Compare July 26, 2026 03:45
@jdchawla29
jdchawla29 merged commit 57f8098 into hud-evals:main Jul 26, 2026
4 of 5 checks passed
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