verifiers 0.4.1.dev134__py3-none-any.whl → 0.4.1.dev136__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.
@@ -70,7 +70,7 @@ class CompactionConfig(BaseConfig):
70
70
  class RLMHarnessConfig(HarnessConfig):
71
71
  dialect: Literal["chat_completions"] = "chat_completions"
72
72
  version: str = Field(
73
- default="e4d4407f1fe6f4bd82b2c1da26ccd737627a6543", min_length=1
73
+ default="48da1d9c43bdcf2ef20b7cff9e4c6df800810b30", min_length=1
74
74
  )
75
75
  """Git ref (branch, tag, or commit) of nano-rlm to install. Must know every
76
76
  field this harness puts on the wire, i.e. be at least the default ref."""
@@ -104,6 +104,10 @@ class RLMHarnessConfig(HarnessConfig):
104
104
  """Allow unrestricted Git history queries (e.g. `git log --all`); `None` uses
105
105
  nano-rlm's default (false). Ordinary Git commands remain allowed either way;
106
106
  this is not filesystem or process isolation."""
107
+ network_guidance: bool | None = None
108
+ """Keep nano-rlm's prompt guidance that assumes outbound network access (installing
109
+ extra kernel packages, the online-solutions warning). `None` turns it off when the
110
+ box allows no network destinations and otherwise uses nano-rlm's default (on)."""
107
111
  max_total_turns: PositiveInt | None = None
108
112
  """Tree-total turn budget (one turn = one work-loop model call, any engine); every
109
113
  engine stops before its next call once spent. `None` = uncapped."""
@@ -197,6 +201,7 @@ class RLMHarness(ACPHarness[RLMHarnessConfig]):
197
201
  "delegation_prompt": self.config.delegation_prompt,
198
202
  "exec_timeout": self.config.exec_timeout,
199
203
  "allow_git": self.config.allow_git,
204
+ "network_guidance": self._network_guidance(runtime),
200
205
  "max_total_turns": self.config.max_total_turns,
201
206
  "max_total_tokens": self.config.max_total_tokens or None,
202
207
  "max_tool_output_bytes": self.config.max_tool_output_bytes,
@@ -251,6 +256,15 @@ class RLMHarness(ACPHarness[RLMHarnessConfig]):
251
256
  payload["builtin_tools"] = list(self.config.builtin_tools)
252
257
  return {RLM_RUNTIME_METADATA_KEY: payload}
253
258
 
259
+ def _network_guidance(self, runtime: Runtime) -> bool | None:
260
+ if self.config.network_guidance is not None:
261
+ return self.config.network_guidance
262
+ # The rollout's runtime config already carries the task's network policy.
263
+ policy = runtime.config
264
+ if isinstance(policy, NetworkPolicyConfig) and not policy.allow:
265
+ return False
266
+ return None
267
+
254
268
  async def prepare_acp(
255
269
  self,
256
270
  ctx: ModelContext,
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.5
2
2
  Name: verifiers
3
- Version: 0.4.1.dev134
3
+ Version: 0.4.1.dev136
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
@@ -122,7 +122,7 @@ verifiers/v1/harnesses/pi/harness.py,sha256=50Z8kuP1hBaUiXYYQJpcnLu252PNwhRMhmcE
122
122
  verifiers/v1/harnesses/prime_agent/__init__.py,sha256=xfPC4RrlnyYWaf38tPAOZq4YL6M55lMpj5BoRLmaK8I,171
123
123
  verifiers/v1/harnesses/prime_agent/harness.py,sha256=mkBYOdntYzUsj6KPc9Yh-sfZRA37qR_kzmUq0N7jFrQ,12597
124
124
  verifiers/v1/harnesses/rlm/__init__.py,sha256=hwx51xTdEWzzYgMj-p4ETNcptoub3IPMDbEdJ4uB8Ns,122
125
- verifiers/v1/harnesses/rlm/harness.py,sha256=P16AEoOIjavm4No99BatirZMYmk0NGKmYLWWxjRKrws,13869
125
+ verifiers/v1/harnesses/rlm/harness.py,sha256=_x8tCrcpdby4lMLe9y55QRyz76pCoQTLCH1cH35dLuY,14636
126
126
  verifiers/v1/harnesses/terminus_2/__init__.py,sha256=l1pwfg1HyVDEqT9efdnFWcXqaZwtKwe7TrplkyxZSA0,166
127
127
  verifiers/v1/harnesses/terminus_2/harness.py,sha256=smJbxdcQROXoS-Hg_ydcSQOiLd_IKmv1FbdNSJk5X40,3133
128
128
  verifiers/v1/harnesses/terminus_2/program.py,sha256=2n6XX6IFrI20_1woRjy6JZ6x_xcPqzYcSce0MFY99cE,2709
@@ -209,8 +209,8 @@ verifiers/v1/utils/scope.py,sha256=bzUEiWDOVdbj7dXOwGOlzsQ_-Xu0j9NR5TalQB-8TS8,8
209
209
  verifiers/v1/utils/score.py,sha256=493yJVMw8teCu9JxapxMFPFzI0hNUqdo0Y2nGW4kckk,6200
210
210
  verifiers/v1/utils/trace_store.py,sha256=Qo9qvsJAl8PoRUavjQAfUB2VNxmUtYQtU2ejLKPzY9c,3382
211
211
  verifiers/v1/utils/version.py,sha256=-obEo_-l9-D8FLef4hYxncOe-uJpxrM1g2Hig_37Sgs,1607
212
- verifiers-0.4.1.dev134.dist-info/METADATA,sha256=njtHWrqOV5t6jWE-6ZHhp6Edz1v8yainqUz_4l3mXQY,5265
213
- verifiers-0.4.1.dev134.dist-info/WHEEL,sha256=W3fkpkm7-wf9vBI5Z-7s0eWkeM-spu78I8Neb98DeEg,87
214
- verifiers-0.4.1.dev134.dist-info/entry_points.txt,sha256=O1bIO0gyJWuLfWtTGF0h-JkNz6FkyXP7Z9iMFYnjeMI,222
215
- verifiers-0.4.1.dev134.dist-info/licenses/LICENSE,sha256=v0RrUsdV3IDoZhrRce297IXS3xMHNJ-_LdLpFAUWb9k,1072
216
- verifiers-0.4.1.dev134.dist-info/RECORD,,
212
+ verifiers-0.4.1.dev136.dist-info/METADATA,sha256=TeU-Dx8RKSHnC5XQMaXr2CZR_GHJP_L6WHjsPkgsKao,5265
213
+ verifiers-0.4.1.dev136.dist-info/WHEEL,sha256=W3fkpkm7-wf9vBI5Z-7s0eWkeM-spu78I8Neb98DeEg,87
214
+ verifiers-0.4.1.dev136.dist-info/entry_points.txt,sha256=O1bIO0gyJWuLfWtTGF0h-JkNz6FkyXP7Z9iMFYnjeMI,222
215
+ verifiers-0.4.1.dev136.dist-info/licenses/LICENSE,sha256=v0RrUsdV3IDoZhrRce297IXS3xMHNJ-_LdLpFAUWb9k,1072
216
+ verifiers-0.4.1.dev136.dist-info/RECORD,,