verifiers 0.4.2.dev63__py3-none-any.whl → 0.4.2.dev64__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.
@@ -32,12 +32,15 @@ class CreationLimiter:
32
32
 
33
33
  def _reserve(self) -> float:
34
34
  os.makedirs(LIMITER_DIR, exist_ok=True)
35
- # Shared buckets require a clock comparable across the run's hosts.
36
- with open(self._path, "a+") as f:
35
+ # Write at offset zero without relying on the filesystem's append offset.
36
+ fd = os.open(self._path, os.O_RDWR | os.O_CREAT, 0o666)
37
+ with os.fdopen(fd, "r+") as f:
37
38
  fcntl.flock(f.fileno(), fcntl.LOCK_EX)
38
39
  try:
39
40
  f.seek(0)
40
- data = f.read().strip()
41
+ # Recover cursors padded with NULs by a write past the truncated EOF.
42
+ data = f.read().replace("\x00", "").strip()
43
+ # Shared buckets require a clock comparable across the run's hosts.
41
44
  now = time.time()
42
45
  slot = max(now, float(data) if data else 0.0)
43
46
  f.seek(0)
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.5
2
2
  Name: verifiers
3
- Version: 0.4.2.dev63
3
+ Version: 0.4.2.dev64
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
@@ -143,7 +143,7 @@ verifiers/v1/runtimes/base.py,sha256=Xl5jxNGnNhuWnrgh3h-nDOeMA9UX9MysYLmSuJPZQL4
143
143
  verifiers/v1/runtimes/compose.py,sha256=Q_0auxhXaGhIOrlisFXI8QRYV9DmewVuXG4ZZtfnrKA,15974
144
144
  verifiers/v1/runtimes/deployment.py,sha256=De6N15Vfe7JKn5VOqFwG22SU_lh0f09bJ57hqBi8D6I,7525
145
145
  verifiers/v1/runtimes/egress.py,sha256=4zsNS3Z2A2HyoCcbgaLizA30uJabYrbgYAYUfvyzeBk,23703
146
- verifiers/v1/runtimes/limiters.py,sha256=RWR4HdYoa72yeWF_lM7YRLflm10euE3_gPfNG0BuaOc,2742
146
+ verifiers/v1/runtimes/limiters.py,sha256=DITclh1rnJ1x_LeSaH7DJs4XB3FyhowJoIbLvzceRPw,2999
147
147
  verifiers/v1/runtimes/native_compose.py,sha256=8WBqWqyYWtohcrE_iq8SuuxsDFgK4Ncos8DxQS7FL_A,42335
148
148
  verifiers/v1/runtimes/private_network.py,sha256=69ad7-FuGOK9irTO0Iut4JQ23YQMiVzQVYbCVRmF1IM,6717
149
149
  verifiers/v1/runtimes/runtime.py,sha256=U_0G8DkeTPoyxQRN6Qmjll6FZ0bDwlijW4cC11wMbw4,10669
@@ -188,8 +188,8 @@ verifiers/v1/utils/scope.py,sha256=zbs4pj6AVk4jywlAJ3AX0Q0_kzB9dBB02nY-9H4ELdQ,8
188
188
  verifiers/v1/utils/score.py,sha256=493yJVMw8teCu9JxapxMFPFzI0hNUqdo0Y2nGW4kckk,6200
189
189
  verifiers/v1/utils/trace_store.py,sha256=Qo9qvsJAl8PoRUavjQAfUB2VNxmUtYQtU2ejLKPzY9c,3382
190
190
  verifiers/v1/utils/version.py,sha256=-obEo_-l9-D8FLef4hYxncOe-uJpxrM1g2Hig_37Sgs,1607
191
- verifiers-0.4.2.dev63.dist-info/METADATA,sha256=t_mrfqFQxzxV0HmCiG-7NZVWYDI6JPXIm4GSHCVmM1E,5116
192
- verifiers-0.4.2.dev63.dist-info/WHEEL,sha256=2iZrJkDIkeDh0k9SikKMqFuRP-ua6mb4Ir1AsER4BEw,87
193
- verifiers-0.4.2.dev63.dist-info/entry_points.txt,sha256=qdMg7ajiFpDsHf7tuPMRclJXizu1J6LTWawS5YS0B0I,137
194
- verifiers-0.4.2.dev63.dist-info/licenses/LICENSE,sha256=v0RrUsdV3IDoZhrRce297IXS3xMHNJ-_LdLpFAUWb9k,1072
195
- verifiers-0.4.2.dev63.dist-info/RECORD,,
191
+ verifiers-0.4.2.dev64.dist-info/METADATA,sha256=ARx-LV8fm-Z2gaCBri8K5HgO0BBPOqeKcBM0P5JboaQ,5116
192
+ verifiers-0.4.2.dev64.dist-info/WHEEL,sha256=2iZrJkDIkeDh0k9SikKMqFuRP-ua6mb4Ir1AsER4BEw,87
193
+ verifiers-0.4.2.dev64.dist-info/entry_points.txt,sha256=qdMg7ajiFpDsHf7tuPMRclJXizu1J6LTWawS5YS0B0I,137
194
+ verifiers-0.4.2.dev64.dist-info/licenses/LICENSE,sha256=v0RrUsdV3IDoZhrRce297IXS3xMHNJ-_LdLpFAUWb9k,1072
195
+ verifiers-0.4.2.dev64.dist-info/RECORD,,