verifiers 0.3.2.dev81__py3-none-any.whl → 0.3.2.dev83__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.
@@ -14,7 +14,6 @@ from openai import APIStatusError, AsyncOpenAI
14
14
  if TYPE_CHECKING:
15
15
  # The harness bundles this module into the generated script before execution.
16
16
  from verifiers.v1.harnesses.utils.compaction import ( # noqa: TC004
17
- CompactionFailed,
18
17
  Compactor,
19
18
  bound_tool_message,
20
19
  compactable,
@@ -226,10 +225,6 @@ async def run_chat_loop(
226
225
  while True:
227
226
  try:
228
227
  completion, messages = await compactor.complete(messages)
229
- except CompactionFailed:
230
- # The context is exhausted and could not be summarized: end the run
231
- # cleanly with what the conversation holds - still a trainable sample.
232
- return
233
228
  except APIStatusError as error:
234
229
  # Null cannot compact, so context exhaustion ends it with the transcript so far.
235
230
  if args.bash or not is_context_overflow(error):
@@ -310,10 +305,7 @@ async def run_chat_loop(
310
305
  messages.append(tool_message)
311
306
  tool_result_tokens += estimated_tokens(str(tool_message["content"]))
312
307
  if compactor.reached(completion, tool_result_tokens) and compactable(messages):
313
- try:
314
- messages = await compactor.compact(messages)
315
- except CompactionFailed:
316
- return
308
+ messages = await compactor.compact(messages)
317
309
 
318
310
 
319
311
  def parse_args() -> argparse.Namespace:
@@ -260,19 +260,9 @@ class ModalRuntime(Runtime):
260
260
  if routes is None:
261
261
  domains, cidrs = ["*"], ["0.0.0.0/0"]
262
262
  else:
263
- domains = list(
264
- dict.fromkeys(
265
- domain
266
- for domain in [
267
- *(
268
- _egress_domain(route, framework=True)
269
- for route in routes
270
- ),
271
- *(_egress_domain(rule) for rule in self.config.allow),
272
- ]
273
- if domain is not None
274
- )
275
- )
263
+ domains = [_egress_domain(route, framework=True) for route in routes]
264
+ domains.extend(_egress_domain(rule) for rule in self.config.allow)
265
+ domains = list(dict.fromkeys(d for d in domains if d is not None))
276
266
  cidrs = []
277
267
  # Always send both lists: leaving the setup CIDR grant would bypass domains.
278
268
  # The awaited RPC applies the policy and closes newly disallowed connections.
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.5
2
2
  Name: verifiers
3
- Version: 0.3.2.dev81
3
+ Version: 0.3.2.dev83
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
@@ -118,7 +118,7 @@ verifiers/v1/harnesses/terminus_2/harness.py,sha256=DMTY1bzvydyjHqzmvBSBGKJsmUzY
118
118
  verifiers/v1/harnesses/terminus_2/program.py,sha256=X8MZdyItU3gbXGXnGOlJ9LWcUTnqIDaxlhkZvoRiqKY,2703
119
119
  verifiers/v1/harnesses/utils/__init__.py,sha256=eTS-Ft2HwoLiYn5u1t_KueLmaZB_W12cdYmcVsE-G5A,364
120
120
  verifiers/v1/harnesses/utils/compaction.py,sha256=DeY6CYLEsv7-vJm26sT2mRaPHu3W2ywiZhvFr_pi6Hg,10495
121
- verifiers/v1/harnesses/utils/core.py,sha256=x3znrq2CkXmdXRCOtamhHN86fI5EaD6zr7krV6n0BnI,15221
121
+ verifiers/v1/harnesses/utils/core.py,sha256=LS02ZCK7X7xdgHJQGr1BlASkKWclr1pgICS9ZY7d7P8,14899
122
122
  verifiers/v1/harnesses/utils/install.py,sha256=BDkkUVZ1brSzCrbQOvMO5mVIE2DsV2pE7rTC5yROYUw,2992
123
123
  verifiers/v1/harnesses/utils/launch.py,sha256=RqPuUY-kT2XVuLSGtXW7kRQEaP-o2KzkiJ7vcoo2neM,2883
124
124
  verifiers/v1/harnesses/utils/mcp.py,sha256=oNhKfLjAW-wScJcDIsW_HfuvKY-JkaGBBZrRLqgRK1g,7355
@@ -143,7 +143,7 @@ verifiers/v1/mcp/toolset.py,sha256=G2wzNdEMGLXoQUcrwF0TartJkqokNPI3o7YUOAaaa6U,1
143
143
  verifiers/v1/runtimes/__init__.py,sha256=ppc1R_sx-aMcuJSx4t99rTSjloUXI0M6EUj676-1PeY,2862
144
144
  verifiers/v1/runtimes/base.py,sha256=gIITMMOxCIquPIElQVs-QSYfMgO5ceEKlgNvsMpYN8c,17638
145
145
  verifiers/v1/runtimes/limiters.py,sha256=C6cWDD4pwyFwUY4QFke3oiMXwydSNIfSbJSIglUC2kE,3062
146
- verifiers/v1/runtimes/modal.py,sha256=cD9YJohIcwa2EzxYQsKmPkeGqjt7gh5Z7mNiz4LYLWs,18168
146
+ verifiers/v1/runtimes/modal.py,sha256=PRuCds6Rfjzeb1Csq6Oo08m4Wk3BLy8jHI_wjJ6wezU,17903
147
147
  verifiers/v1/runtimes/prime.py,sha256=VWzskEtMEwND6tKKhRtFM5m4Qzt001xCaI4zKqNon80,19490
148
148
  verifiers/v1/runtimes/subprocess.py,sha256=QmpQ235_xrX6gowrr8557VgbydOXpLbfFq0KKGfJThk,8774
149
149
  verifiers/v1/runtimes/docker/__init__.py,sha256=2YJtjOVSA4OgxXgeIlFW3Ps01KEfLNT_pcat2k3_bm0,21116
@@ -190,8 +190,8 @@ verifiers/v1/utils/prime.py,sha256=UTYRjp9cbjNb6CVmBHda-1wWZAIIfxNOmTyNuT7_wL4,9
190
190
  verifiers/v1/utils/retries.py,sha256=Y2ZgrAjn-qNkRKZP_RVNL_7EK0iaRcZeCa404lpGYi4,5417
191
191
  verifiers/v1/utils/score.py,sha256=493yJVMw8teCu9JxapxMFPFzI0hNUqdo0Y2nGW4kckk,6200
192
192
  verifiers/v1/utils/version.py,sha256=-obEo_-l9-D8FLef4hYxncOe-uJpxrM1g2Hig_37Sgs,1607
193
- verifiers-0.3.2.dev81.dist-info/METADATA,sha256=TN6AKnKbh-zqiYkXiNxGvUQDEFFYDE3qFqlBglfX3-g,4237
194
- verifiers-0.3.2.dev81.dist-info/WHEEL,sha256=zOwg4jB6zX2kU910N-cMawjivD6tO8NEWvE12je1bVk,87
195
- verifiers-0.3.2.dev81.dist-info/entry_points.txt,sha256=uqQje0TMsr7k6nXlWxlPs13Si0evb3pVCEDF6c-YL80,241
196
- verifiers-0.3.2.dev81.dist-info/licenses/LICENSE,sha256=v0RrUsdV3IDoZhrRce297IXS3xMHNJ-_LdLpFAUWb9k,1072
197
- verifiers-0.3.2.dev81.dist-info/RECORD,,
193
+ verifiers-0.3.2.dev83.dist-info/METADATA,sha256=E8-kbdJxuiezuzfDG51kDUEbimJ4vEhT4MpYYnM6oDc,4237
194
+ verifiers-0.3.2.dev83.dist-info/WHEEL,sha256=zOwg4jB6zX2kU910N-cMawjivD6tO8NEWvE12je1bVk,87
195
+ verifiers-0.3.2.dev83.dist-info/entry_points.txt,sha256=uqQje0TMsr7k6nXlWxlPs13Si0evb3pVCEDF6c-YL80,241
196
+ verifiers-0.3.2.dev83.dist-info/licenses/LICENSE,sha256=v0RrUsdV3IDoZhrRce297IXS3xMHNJ-_LdLpFAUWb9k,1072
197
+ verifiers-0.3.2.dev83.dist-info/RECORD,,