verifiers 0.3.2.dev67__py3-none-any.whl → 0.3.2.dev69__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.
@@ -7,6 +7,7 @@ direction (a program in the sandbox reaching a host service) is the shared host-
7
7
  """
8
8
 
9
9
  import asyncio
10
+ import base64
10
11
  import contextlib
11
12
  import logging
12
13
  import math
@@ -366,6 +367,21 @@ class PrimeRuntime(Runtime):
366
367
  raise SandboxError(f"prime background launch failed: {e}") from e
367
368
 
368
369
  async def _read(self, path: str, max_bytes: int | None = None) -> bytes:
370
+ if max_bytes is not None and self.config.vm:
371
+ try:
372
+ # VM execute_command uses bash and returns the complete output stream.
373
+ result = await self._client.execute_command(
374
+ self.info.id,
375
+ f"set -o pipefail; head -c {max_bytes} -- {shlex.quote(path)} | base64",
376
+ working_dir=self.config.workdir,
377
+ env=self.process_env({}),
378
+ timeout=EFFECTIVELY_UNBOUNDED_SECONDS,
379
+ )
380
+ except Exception as exc:
381
+ raise SandboxError(f"read {path!r}: {exc}") from exc
382
+ if result.exit_code:
383
+ raise SandboxError(f"read {path!r}: {result.stderr.strip()[-500:]}")
384
+ return base64.b64decode(result.stdout)
369
385
  if max_bytes is not None:
370
386
  return await super()._read(path, max_bytes)
371
387
  # Avoid background-job log limits and base64 overhead by downloading binary data directly.
@@ -534,9 +534,6 @@ def parse_task(task_dir: Path, idx: int, harbor_config: HarborConfig) -> HarborD
534
534
  if task
535
535
  else []
536
536
  )
537
- # Older registry entries stored one author in [metadata].
538
- if not authors and meta.get("author_name"):
539
- authors = [Author(name=meta["author_name"], email=meta.get("author_email"))]
540
537
  if harbor_config.ignore_timeouts:
541
538
  agent_timeout = scoring_timeout = None
542
539
  else:
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.5
2
2
  Name: verifiers
3
- Version: 0.3.2.dev67
3
+ Version: 0.3.2.dev69
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
@@ -144,7 +144,7 @@ verifiers/v1/runtimes/__init__.py,sha256=ppc1R_sx-aMcuJSx4t99rTSjloUXI0M6EUj676-
144
144
  verifiers/v1/runtimes/base.py,sha256=VMxYMnGE_zj4k1VseTxEtKhzOZroahRnZSfvruDenEw,17468
145
145
  verifiers/v1/runtimes/limiters.py,sha256=C6cWDD4pwyFwUY4QFke3oiMXwydSNIfSbJSIglUC2kE,3062
146
146
  verifiers/v1/runtimes/modal.py,sha256=wUNik2Wul1YISausdABIMAoSaTA0MNDwKUayKxVLwAA,13342
147
- verifiers/v1/runtimes/prime.py,sha256=fbyR5s3WqsJNWki3eHJa83j4iobnqDugdJWm8GwEs7w,18494
147
+ verifiers/v1/runtimes/prime.py,sha256=7LIu-ciN_VT8GU6xD3W29k4ZJN1TpcL_5libDUN0VU0,19304
148
148
  verifiers/v1/runtimes/subprocess.py,sha256=QmpQ235_xrX6gowrr8557VgbydOXpLbfFq0KKGfJThk,8774
149
149
  verifiers/v1/runtimes/docker/__init__.py,sha256=JN0mI10a_BKQpRRJKX_NqStAoODAEk2dAJF9mrz69ug,20972
150
150
  verifiers/v1/runtimes/docker/egress.py,sha256=iFH_1XotlEM-OCaW7GNu3TWVEq1sqesKYweyVBX8g90,14360
@@ -157,7 +157,7 @@ verifiers/v1/serve/types.py,sha256=CjZ6PWQlzSRkBG77gXfzKHnw_S_qKUm9dZSSxVgkv1w,1
157
157
  verifiers/v1/tasksets/__init__.py,sha256=5hTKSPLXSZTgKBbeKQI7FEp06c0ZsaQfuwvrvVFLgb8,712
158
158
  verifiers/v1/tasksets/harbor/__init__.py,sha256=JxThzHFYEkuSfQbVf3pEnjordgdfe4MU-QOsSSbyovU,326
159
159
  verifiers/v1/tasksets/harbor/env.py,sha256=rZEh-1IaHpfsrwSOn7qTq7uV0K7cZZ28bHB7BEWQdnc,3622
160
- verifiers/v1/tasksets/harbor/taskset.py,sha256=tAbjebVkecz8YJ0o-PW4wWn2LDF-YNcb4gj6f1XvgT4,32405
160
+ verifiers/v1/tasksets/harbor/taskset.py,sha256=q4Eo8vcD-3zXB7eDygUcJddmf5KpY2IBUoIlyJ_D3VU,32210
161
161
  verifiers/v1/tasksets/lean/__init__.py,sha256=oyv-GbJQBvCyGwo7Ysxm2NjZW-aX4j1uDoHU0f-E7xQ,767
162
162
  verifiers/v1/tasksets/lean/scoring.py,sha256=sfzsT6MUK0zdMgAQ57_P_0CBaPHy3M7go71QMr5hDrs,10599
163
163
  verifiers/v1/tasksets/lean/taskset.py,sha256=Jax76i22G9dOAswQHiWujVbFIM_PUz5yGJI_ShR4n8Y,9238
@@ -189,8 +189,8 @@ verifiers/v1/utils/prime.py,sha256=UTYRjp9cbjNb6CVmBHda-1wWZAIIfxNOmTyNuT7_wL4,9
189
189
  verifiers/v1/utils/retries.py,sha256=Y2ZgrAjn-qNkRKZP_RVNL_7EK0iaRcZeCa404lpGYi4,5417
190
190
  verifiers/v1/utils/score.py,sha256=493yJVMw8teCu9JxapxMFPFzI0hNUqdo0Y2nGW4kckk,6200
191
191
  verifiers/v1/utils/version.py,sha256=-obEo_-l9-D8FLef4hYxncOe-uJpxrM1g2Hig_37Sgs,1607
192
- verifiers-0.3.2.dev67.dist-info/METADATA,sha256=myWa0MmU39_txvHu9pILuABHbwhNrDybNBAaeXqb3I8,4204
193
- verifiers-0.3.2.dev67.dist-info/WHEEL,sha256=zOwg4jB6zX2kU910N-cMawjivD6tO8NEWvE12je1bVk,87
194
- verifiers-0.3.2.dev67.dist-info/entry_points.txt,sha256=uqQje0TMsr7k6nXlWxlPs13Si0evb3pVCEDF6c-YL80,241
195
- verifiers-0.3.2.dev67.dist-info/licenses/LICENSE,sha256=v0RrUsdV3IDoZhrRce297IXS3xMHNJ-_LdLpFAUWb9k,1072
196
- verifiers-0.3.2.dev67.dist-info/RECORD,,
192
+ verifiers-0.3.2.dev69.dist-info/METADATA,sha256=B7eBrvCxW5X6Hmj6jqQXQmVDyUH912GaawkvdJ3md10,4204
193
+ verifiers-0.3.2.dev69.dist-info/WHEEL,sha256=zOwg4jB6zX2kU910N-cMawjivD6tO8NEWvE12je1bVk,87
194
+ verifiers-0.3.2.dev69.dist-info/entry_points.txt,sha256=uqQje0TMsr7k6nXlWxlPs13Si0evb3pVCEDF6c-YL80,241
195
+ verifiers-0.3.2.dev69.dist-info/licenses/LICENSE,sha256=v0RrUsdV3IDoZhrRce297IXS3xMHNJ-_LdLpFAUWb9k,1072
196
+ verifiers-0.3.2.dev69.dist-info/RECORD,,