Commit e59b3b9
committed
Run setup before the agent and skip verify on a non-zero agent exit
Addresses review: run_rollout ran setup after create() had already started the
agent, so setup raced the agent over the workspace. create() now takes
start_agent (default True, so the loop-owning training path is unchanged), the
server passes start_agent=False, runs setup, then calls session.start_agent(),
giving the correct setup then agent then verify order. A non-zero agent exit is
now treated like a timeout, so a crashed agent no longer runs verify or earns a
reward.
AI-assisted.1 parent bec6fe5 commit e59b3b9
2 files changed
Lines changed: 19 additions & 12 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
225 | 225 | | |
226 | 226 | | |
227 | 227 | | |
| 228 | + | |
228 | 229 | | |
229 | 230 | | |
230 | 231 | | |
231 | 232 | | |
232 | 233 | | |
233 | 234 | | |
| 235 | + | |
| 236 | + | |
| 237 | + | |
234 | 238 | | |
235 | 239 | | |
236 | 240 | | |
| |||
239 | 243 | | |
240 | 244 | | |
241 | 245 | | |
242 | | - | |
| 246 | + | |
| 247 | + | |
| 248 | + | |
243 | 249 | | |
244 | 250 | | |
245 | 251 | | |
| |||
256 | 262 | | |
257 | 263 | | |
258 | 264 | | |
| 265 | + | |
259 | 266 | | |
260 | 267 | | |
261 | 268 | | |
| |||
312 | 319 | | |
313 | 320 | | |
314 | 321 | | |
315 | | - | |
| 322 | + | |
| 323 | + | |
316 | 324 | | |
317 | 325 | | |
318 | 326 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
331 | 331 | | |
332 | 332 | | |
333 | 333 | | |
334 | | - | |
| 334 | + | |
335 | 335 | | |
336 | 336 | | |
337 | | - | |
| 337 | + | |
338 | 338 | | |
339 | 339 | | |
340 | 340 | | |
341 | | - | |
342 | | - | |
343 | | - | |
344 | | - | |
345 | | - | |
346 | | - | |
347 | | - | |
| 341 | + | |
| 342 | + | |
348 | 343 | | |
349 | 344 | | |
350 | 345 | | |
| |||
356 | 351 | | |
357 | 352 | | |
358 | 353 | | |
359 | | - | |
| 354 | + | |
360 | 355 | | |
| 356 | + | |
361 | 357 | | |
362 | 358 | | |
363 | 359 | | |
| |||
367 | 363 | | |
368 | 364 | | |
369 | 365 | | |
| 366 | + | |
| 367 | + | |
| 368 | + | |
370 | 369 | | |
371 | 370 | | |
372 | 371 | | |
| |||
0 commit comments