An agent spends thirty minutes on something you expected to take ten. It makes a mistake, recovers, tries another approach, and keeps going. Eventually, you start wondering whether it needs more time or whether you’re paying to watch it get stuck.
This comes up when building tasks for post-training: should we limit how long an agent can work, and how do we choose that limit?
My recommendation is to give every rollout a finite budget, then calibrate that budget against the outcome you care about. A ten-minute timeout is a meaningful requirement if the work must finish within ten minutes. It’s a much weaker choice if ten minutes simply feels like enough.
Time and cost deserve separate budgets. An agent rebooking a flight needs to finish while the alternative flight is still available. An agent preparing a report overnight might have hours available, but spending more than the report is worth would still make little sense.
Those constraints can move independently. A run can spend several minutes waiting for a tool without generating many tokens. Another can consume substantial compute quickly by working in parallel. Tracking both tells you whether the agent is too slow, too expensive, or both.
For a production task, start with the actual deadline and acceptable cost. For a capability evaluation, give the agent enough room to demonstrate whether it can solve the problem, while retaining a hard ceiling on the experiment. Report the budget alongside the score so readers know what “success” means.
A timeout doesn’t automatically make a benchmark weaker. It makes the benchmark measure success within that time allowance. The problem is presenting that result without explaining the constraint.
To choose an initial allowance, I would use a small calibration exercise:
- Measure the unavoidable work. Understand how long builds, tests, downloads, and tool calls take on the evaluation hardware. A task with a five-minute compilation step needs room for the agent to inspect the code, make a change, and validate it.
- Try several budgets. Run representative tasks repeatedly with the same model, tools, and resources. Ten, twenty, and forty minutes could be an illustrative starting experiment; they aren’t universal recommendations.
- Compare what additional time buys. Record full success, useful partial progress, cost, and the reason each attempt stopped. If doubling the allowance produces substantially more correct solutions, the shorter cap may be hiding capability. If it mostly produces repeated mistakes, inspect those trajectories.
- Choose and document the policy. State when the clock starts, which activities count, and what happens at the deadline. Keep those rules consistent across the systems being compared.
The clock itself needs some care. Environment preparation, agent execution, and final grading are different stages. Harbor, for example, exposes separate agent and verifier timeouts in its task configuration. A slow grading suite shouldn’t silently consume the agent’s solving allowance. In a user-facing product, however, the end-to-end waiting time still matters.
When a run takes too long, the transcript can explain why. The agent might be working through a difficult dependency, repeatedly misusing a tool, misunderstanding the instruction, or waiting on infrastructure. Each calls for a different fix. Anthropic’s guidance on agent evaluations emphasizes reviewing transcripts alongside outcomes; a final score alone misses much of what happened during the attempt.
An unclear tool description won’t become clearer because we reduce the timeout. Likewise, extending the deadline won’t necessarily resolve a loop. Before changing the allowance, look at what the agent is doing with the time it already has.
There are also ways to make a deadline less wasteful. Where the task allows it, have the agent save useful intermediate work. If it is extracting information from documents into a form, independently validated sections may remain valuable even when the entire form is unfinished.
That doesn’t require replacing full-task success with partial credit. You can report both: whether the complete task passed, and which independently useful components were completed. For reinforcement learning, any partial reward should correspond to verified progress toward the objective. Producing more files or taking more steps is not, by itself, progress.
A deadline reminder can also help the agent prioritize finishing and checking its work. The reminder should give accurate remaining time or a clearly defined remaining turn allowance. It changes the agent’s operating conditions, so include it consistently in the evaluation protocol. A reminder may help; it is something to test rather than assume.
I would start a new task with a generous, finite allowance, inspect repeated runs, and tighten the budget as the evidence becomes clearer. When the task has a real deadline, use that deadline from the beginning.
The useful question is how much additional correct work another minute buys. Answering that gives you a reason to extend the run, stop it, or improve the environment before trying again.