verifiers 0.3.2.dev145__py3-none-any.whl → 0.3.2.dev147__py3-none-any.whl

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
verifiers/v1/rollout.py CHANGED
@@ -209,7 +209,7 @@ class Rollout:
209
209
  self.runtime_config.type,
210
210
  )
211
211
  loop = asyncio.get_running_loop()
212
- setup_deadline: float | None = None
212
+ setup_timeout: asyncio.Timeout | None = None
213
213
  try:
214
214
  runtime_env = dict(self.task.runtime_env())
215
215
  if self._borrowed_runtime is None:
@@ -237,12 +237,12 @@ class Rollout:
237
237
  else loop.time() + self._timeouts.setup
238
238
  )
239
239
  async with (
240
- asyncio.timeout_at(setup_deadline),
240
+ asyncio.timeout_at(setup_deadline) as setup_timeout,
241
241
  boundary(TaskError, "task setup"),
242
242
  ):
243
243
  await invoke(self.task.setup, {"trace": self.trace, "runtime": runtime})
244
244
  async with (
245
- asyncio.timeout_at(setup_deadline),
245
+ asyncio.timeout_at(setup_deadline) as setup_timeout,
246
246
  boundary(HarnessError, "harness setup"),
247
247
  ):
248
248
  await self.harness.setup(runtime)
@@ -281,7 +281,7 @@ class Rollout:
281
281
  # execution policy while preserving the framework routes the agent uses.
282
282
  await runtime.prepare_execution([self._endpoint, *self._urls.values()])
283
283
  async with (
284
- asyncio.timeout_at(setup_deadline),
284
+ asyncio.timeout_at(setup_deadline) as setup_timeout,
285
285
  boundary(HarnessError, "opening harness session"),
286
286
  ):
287
287
  harness_data = self.trace.task.data
@@ -349,9 +349,9 @@ class Rollout:
349
349
  **session_kwargs,
350
350
  )
351
351
  except TimeoutError as e:
352
- # The setup deadline's own expiry is a timeout; a TimeoutError with no
353
- # expired deadline (a runtime's own I/O) stays the raw failure.
354
- if setup_deadline is not None and loop.time() >= setup_deadline:
352
+ # Only an expired setup context owns the timeout; I/O between these
353
+ # contexts can time out independently after the deadline passes.
354
+ if setup_timeout is not None and setup_timeout.expired():
355
355
  self.timeout("setup")
356
356
  else:
357
357
  self.fail(e)
@@ -277,7 +277,11 @@ class Runtime(ABC):
277
277
  f"&& uv sync --script {shlex.quote(path)} -q --no-config "
278
278
  f"&& uv python find --script {shlex.quote(path)} --no-config"
279
279
  )
280
- result = await self.run(["sh", "-c", command], env or {})
280
+ # Bootstrap dependencies before task networking is restricted;
281
+ # keep task offline settings on the returned program's processes.
282
+ result = await self.run(
283
+ ["sh", "-c", command], {**(env or {}), "UV_OFFLINE": "false"}
284
+ )
281
285
  if result.exit_code != 0:
282
286
  raise RuntimeError(
283
287
  "failed to prepare uv script: "
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.5
2
2
  Name: verifiers
3
- Version: 0.3.2.dev145
3
+ Version: 0.3.2.dev147
4
4
  Summary: Verifiers: Environments for LLM Reinforcement Learning
5
5
  Project-URL: Homepage, https://github.com/primeintellect-ai/verifiers
6
6
  Project-URL: Documentation, https://github.com/primeintellect-ai/verifiers
@@ -7,7 +7,7 @@ verifiers/v1/errors.py,sha256=QFbKFrma1STrN7abYcU2LBQOQBpj43Rm-nOwL9EFeUM,5743
7
7
  verifiers/v1/graph.py,sha256=3HtCYL36MDAoiBk7u8yi6FxUBkIqQ7VYn9_IL0NEOog,41559
8
8
  verifiers/v1/harness.py,sha256=incFERkwxSPQvBCWc0BVQPg9IAEMTeelBq4USKWLxWo,15669
9
9
  verifiers/v1/judge.py,sha256=uqn-djkK2_7Q3kOjkDo6ipOvV_HOvuLa9y6AoDjRux8,9618
10
- verifiers/v1/rollout.py,sha256=oGC_LqiE5IZwyT2M0Ij4zOmKzUlDJ4-m94oOAlZ-_xA,25393
10
+ verifiers/v1/rollout.py,sha256=WiMCJyAypsR1OaXvzJQx7G-T67v__AnnDNoXotuI_VE,25444
11
11
  verifiers/v1/semantic.py,sha256=VQ_buw6Ya6QtRoh_fiYI5Avs5RmIQCfWH0H0bQc4aoc,4704
12
12
  verifiers/v1/session.py,sha256=qVMgKmqkItemR3uYUDAFuDz7huP593kHQbge8FlRba8,28420
13
13
  verifiers/v1/state.py,sha256=EckF2bWp-vV4b1jYJ9sLI5xrfGuI5spIgYYwW926toI,595
@@ -141,7 +141,7 @@ verifiers/v1/mcp/server.py,sha256=Jqi8OMT8DnoZegXqM3UNNRzhVnbdrPEwx0DjOJo_K2A,13
141
141
  verifiers/v1/mcp/toolset.py,sha256=G2wzNdEMGLXoQUcrwF0TartJkqokNPI3o7YUOAaaa6U,1007
142
142
  verifiers/v1/runtimes/__init__.py,sha256=JQlQ029J14asfYb-UxpENshMyPztWbSL0-ZqSyD6Xtk,3318
143
143
  verifiers/v1/runtimes/apptainer.py,sha256=Ru9QJna_l0goIzg71G-4RU_D-7wZUNz139S5TEvbzog,8211
144
- verifiers/v1/runtimes/base.py,sha256=rp_-azdmK-TIJyFZ26FPIhXlVriVANebUNi26d9jHgA,17916
144
+ verifiers/v1/runtimes/base.py,sha256=GN2vTW3oSYpRcop_DRQYi7X31BG4NrzMrnkNiWSDp64,18160
145
145
  verifiers/v1/runtimes/container.py,sha256=_hNhGOo1Zvorj7THSj2UrZTkgewySUVJe4Kd777-QnI,12563
146
146
  verifiers/v1/runtimes/limiters.py,sha256=rOfQJcMdYcLSKq8AL9O09BfGOLqpYmNgrCxXXNcHLmU,2849
147
147
  verifiers/v1/runtimes/modal.py,sha256=ZHA4vtNIZwTV-bnVUlambgc8l34j_ZulvtrwvvkE2Kg,17945
@@ -192,8 +192,8 @@ verifiers/v1/utils/scope.py,sha256=bzUEiWDOVdbj7dXOwGOlzsQ_-Xu0j9NR5TalQB-8TS8,8
192
192
  verifiers/v1/utils/score.py,sha256=493yJVMw8teCu9JxapxMFPFzI0hNUqdo0Y2nGW4kckk,6200
193
193
  verifiers/v1/utils/trace_store.py,sha256=RsCDonGR-bs-tvEstcppiJm3jFmAdIiG83fA5KtCbAw,2801
194
194
  verifiers/v1/utils/version.py,sha256=-obEo_-l9-D8FLef4hYxncOe-uJpxrM1g2Hig_37Sgs,1607
195
- verifiers-0.3.2.dev145.dist-info/METADATA,sha256=_vuo-Vw8YJCPIyPhW5EO25Vj4NsnIoMoiyC3j6hToL0,4161
196
- verifiers-0.3.2.dev145.dist-info/WHEEL,sha256=THafob7ofN-NsuMN7Mg4qZyHaQI7KkD-QlcQatYhXPo,87
197
- verifiers-0.3.2.dev145.dist-info/entry_points.txt,sha256=iugElcdWPKbQM7uFF0lZ8iUpHsNr17-BwEAAjJWxV3U,259
198
- verifiers-0.3.2.dev145.dist-info/licenses/LICENSE,sha256=v0RrUsdV3IDoZhrRce297IXS3xMHNJ-_LdLpFAUWb9k,1072
199
- verifiers-0.3.2.dev145.dist-info/RECORD,,
195
+ verifiers-0.3.2.dev147.dist-info/METADATA,sha256=GlTJjj6uj00nP8F28dj-J7O8t2rMipShpCBpBbErjnw,4161
196
+ verifiers-0.3.2.dev147.dist-info/WHEEL,sha256=W3fkpkm7-wf9vBI5Z-7s0eWkeM-spu78I8Neb98DeEg,87
197
+ verifiers-0.3.2.dev147.dist-info/entry_points.txt,sha256=iugElcdWPKbQM7uFF0lZ8iUpHsNr17-BwEAAjJWxV3U,259
198
+ verifiers-0.3.2.dev147.dist-info/licenses/LICENSE,sha256=v0RrUsdV3IDoZhrRce297IXS3xMHNJ-_LdLpFAUWb9k,1072
199
+ verifiers-0.3.2.dev147.dist-info/RECORD,,
@@ -1,4 +1,4 @@
1
1
  Wheel-Version: 1.0
2
- Generator: hatchling 1.32.3
2
+ Generator: hatchling 1.32.4
3
3
  Root-Is-Purelib: true
4
4
  Tag: py3-none-any