verifiers 0.4.2.dev58__py3-none-any.whl → 0.4.2.dev59__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/__init__.py +3 -0
- verifiers/v1/agent.py +3 -30
- verifiers/v1/cli/debug.py +1 -7
- verifiers/v1/cli/validate.py +1 -7
- verifiers/v1/configs/runtime.py +19 -6
- verifiers/v1/env.py +0 -2
- verifiers/v1/envs/agentic_judge/env.py +3 -9
- verifiers/v1/envs/best_of_n_judge/env.py +2 -13
- verifiers/v1/grading.py +4 -10
- verifiers/v1/harness.py +1 -7
- verifiers/v1/harnesses/bash/harness.py +0 -1
- verifiers/v1/harnesses/browser_use/harness.py +0 -1
- verifiers/v1/harnesses/null/harness.py +0 -1
- verifiers/v1/mcp/launch.py +5 -12
- verifiers/v1/runtimes/__init__.py +2 -0
- verifiers/v1/runtimes/backends/custom.py +7 -12
- verifiers/v1/runtimes/backends/docker.py +0 -11
- verifiers/v1/runtimes/backends/prime.py +0 -13
- verifiers/v1/runtimes/base.py +27 -50
- verifiers/v1/runtimes/runtime.py +2 -13
- verifiers/v1/runtimes/strategies.py +2 -2
- verifiers/v1/submission.py +4 -13
- verifiers/v1/task.py +1 -4
- verifiers/v1/tasksets/harbor/taskset.py +1 -5
- verifiers/v1/tasksets/nemo_gym/taskset.py +2 -1
- verifiers/v1/utils/compile.py +9 -62
- {verifiers-0.4.2.dev58.dist-info → verifiers-0.4.2.dev59.dist-info}/METADATA +1 -1
- {verifiers-0.4.2.dev58.dist-info → verifiers-0.4.2.dev59.dist-info}/RECORD +31 -31
- {verifiers-0.4.2.dev58.dist-info → verifiers-0.4.2.dev59.dist-info}/WHEEL +0 -0
- {verifiers-0.4.2.dev58.dist-info → verifiers-0.4.2.dev59.dist-info}/entry_points.txt +0 -0
- {verifiers-0.4.2.dev58.dist-info → verifiers-0.4.2.dev59.dist-info}/licenses/LICENSE +0 -0
verifiers/v1/__init__.py
CHANGED
|
@@ -47,6 +47,7 @@ if TYPE_CHECKING:
|
|
|
47
47
|
PrimeConfig,
|
|
48
48
|
PrimeVolume,
|
|
49
49
|
RuntimeConfig,
|
|
50
|
+
SandboxConfig,
|
|
50
51
|
)
|
|
51
52
|
from verifiers.v1.configs.sampling import Sampling, SamplingConfig
|
|
52
53
|
from verifiers.v1.configs.scoring import ScoringConfig
|
|
@@ -261,6 +262,7 @@ _NAME_TO_MODULE = {
|
|
|
261
262
|
"ModelRoute": "verifiers.v1.clients",
|
|
262
263
|
"RouteRejected": "verifiers.v1.clients",
|
|
263
264
|
"NetworkPolicyConfig": "verifiers.v1.configs.runtime",
|
|
265
|
+
"SandboxConfig": "verifiers.v1.configs.runtime",
|
|
264
266
|
"PATCH_CAP_BYTES": "verifiers.v1.utils.git",
|
|
265
267
|
"ParentLink": "verifiers.v1.semantic",
|
|
266
268
|
"PolicyEvent": "verifiers.v1.trace",
|
|
@@ -498,6 +500,7 @@ __all__ = [ # noqa: RUF022 - grouped by public API area
|
|
|
498
500
|
"BindMount",
|
|
499
501
|
"CustomRuntimeConfig",
|
|
500
502
|
"NetworkPolicyConfig",
|
|
503
|
+
"SandboxConfig",
|
|
501
504
|
"PrimeConfig",
|
|
502
505
|
"PrimeVolume",
|
|
503
506
|
"Env",
|
verifiers/v1/agent.py
CHANGED
|
@@ -38,7 +38,6 @@ from verifiers.v1.rollout import Rollout, RolloutTimeouts
|
|
|
38
38
|
from verifiers.v1.runtimes import (
|
|
39
39
|
Runtime,
|
|
40
40
|
RuntimeConfig,
|
|
41
|
-
backend_cls,
|
|
42
41
|
provision_backend,
|
|
43
42
|
runtime_is_local,
|
|
44
43
|
)
|
|
@@ -96,16 +95,6 @@ def resolve_rollout_timeouts(timeout: TimeoutConfig, task: Task) -> RolloutTimeo
|
|
|
96
95
|
)
|
|
97
96
|
|
|
98
97
|
|
|
99
|
-
def _check_artifact_runtime(runtime_config: RuntimeConfig) -> None:
|
|
100
|
-
"""Artifact collection reads the task's paths out of the box, so the box needs a
|
|
101
|
-
filesystem of its own."""
|
|
102
|
-
if not backend_cls(runtime_config).SUPPORTS_TASK_IMAGES:
|
|
103
|
-
raise TypeError(
|
|
104
|
-
"artifact collection requires a runtime with its own filesystem; the "
|
|
105
|
-
f"{runtime_config.type} runtime cannot run images"
|
|
106
|
-
)
|
|
107
|
-
|
|
108
|
-
|
|
109
98
|
def _check_borrowed_placement(
|
|
110
99
|
task: Task, runtime: Runtime, base_config: RuntimeConfig
|
|
111
100
|
) -> None:
|
|
@@ -146,13 +135,7 @@ def _check_borrowed_placement(
|
|
|
146
135
|
)
|
|
147
136
|
if task.data.image is None:
|
|
148
137
|
return
|
|
149
|
-
|
|
150
|
-
raise TypeError(
|
|
151
|
-
f"task {task.data.idx!r} requires image {task.data.image!r}, but the "
|
|
152
|
-
f"borrowed {runtime.type} runtime cannot run images; borrow a container "
|
|
153
|
-
"box (e.g. agent.provision(task)) or drop the task's image"
|
|
154
|
-
)
|
|
155
|
-
box_image = getattr(runtime.config, "image", None)
|
|
138
|
+
box_image = runtime.config.image
|
|
156
139
|
if box_image != task.data.image:
|
|
157
140
|
logger.warning(
|
|
158
141
|
"Running task %s in borrowed box %s on its image - the task requires %s "
|
|
@@ -609,7 +592,6 @@ class Agent:
|
|
|
609
592
|
self.trainable: bool = True
|
|
610
593
|
self._entered = False
|
|
611
594
|
self._server: InterceptionServer | None = None
|
|
612
|
-
self._warned_resources: set[tuple[str, str]] = set()
|
|
613
595
|
|
|
614
596
|
async def __aenter__(self) -> Self:
|
|
615
597
|
if self._entered:
|
|
@@ -765,8 +747,6 @@ class Agent:
|
|
|
765
747
|
attempt: int,
|
|
766
748
|
) -> Trace:
|
|
767
749
|
params = self._rollout_params(task, runtime, dict(shared_tools or {}), route)
|
|
768
|
-
if collect_artifacts:
|
|
769
|
-
_check_artifact_runtime(params["runtime_config"])
|
|
770
750
|
run = Rollout(
|
|
771
751
|
task=task,
|
|
772
752
|
on_trace=on_trace,
|
|
@@ -835,8 +815,6 @@ class Agent:
|
|
|
835
815
|
params = self._rollout_params(
|
|
836
816
|
task, runtime, dict(tools or {}), route or ModelRoute(self.ctx)
|
|
837
817
|
)
|
|
838
|
-
if collect_artifacts:
|
|
839
|
-
_check_artifact_runtime(params["runtime_config"])
|
|
840
818
|
run = Rollout(
|
|
841
819
|
task=task,
|
|
842
820
|
has_user=True,
|
|
@@ -888,9 +866,7 @@ class Agent:
|
|
|
888
866
|
runtime_config = runtime.config
|
|
889
867
|
run_is_local = runtime.is_local
|
|
890
868
|
else:
|
|
891
|
-
runtime_config = resolve_runtime_config(
|
|
892
|
-
self.runtime_config, task, self._warned_resources
|
|
893
|
-
)
|
|
869
|
+
runtime_config = resolve_runtime_config(self.runtime_config, task)
|
|
894
870
|
run_is_local = runtime_is_local(runtime_config)
|
|
895
871
|
validate_pairing(
|
|
896
872
|
harness,
|
|
@@ -916,7 +892,7 @@ class Agent:
|
|
|
916
892
|
"""Provision (and on exit tear down) a box from this agent's runtime
|
|
917
893
|
policy, resolved for `task` when given; share it via `run(..., runtime=runtime)`."""
|
|
918
894
|
config = (
|
|
919
|
-
resolve_runtime_config(self.runtime_config, task
|
|
895
|
+
resolve_runtime_config(self.runtime_config, task)
|
|
920
896
|
if task is not None
|
|
921
897
|
else self.runtime_config
|
|
922
898
|
)
|
|
@@ -947,11 +923,8 @@ class _EpisodeAgent(Agent):
|
|
|
947
923
|
completed: list[Trace],
|
|
948
924
|
on_trace: Callable[[Trace], None] | None,
|
|
949
925
|
on_discard: Callable[[Trace], None] | None,
|
|
950
|
-
warned_resources: set,
|
|
951
926
|
) -> None:
|
|
952
927
|
super().__init__(config, interception=interception)
|
|
953
|
-
# Resource warnings dedupe env-wide, not per episode.
|
|
954
|
-
self._warned_resources = warned_resources
|
|
955
928
|
self._name = name
|
|
956
929
|
self._shared_tools = shared_tools
|
|
957
930
|
self._task_cls = task_cls
|
verifiers/v1/cli/debug.py
CHANGED
|
@@ -25,7 +25,7 @@ from verifiers.v1.cli.resolve import (
|
|
|
25
25
|
with_positional_taskset,
|
|
26
26
|
)
|
|
27
27
|
from verifiers.v1.configs.cli.debug import DebugConfig
|
|
28
|
-
from verifiers.v1.runtimes import ProgramResult, Runtime,
|
|
28
|
+
from verifiers.v1.runtimes import ProgramResult, Runtime, make_backend
|
|
29
29
|
from verifiers.v1.state import state_cls
|
|
30
30
|
from verifiers.v1.task import Task
|
|
31
31
|
from verifiers.v1.trace import AgentInfo, Error, Trace, TraceTask
|
|
@@ -274,12 +274,6 @@ async def run_debug(config: DebugConfig) -> list[Trace]:
|
|
|
274
274
|
f"{type(taskset).__name__} is infinite - bound the run with -n"
|
|
275
275
|
)
|
|
276
276
|
tasks = list(taskset)
|
|
277
|
-
if not backend_cls(config.runtime).SUPPORTS_TASK_IMAGES and any(
|
|
278
|
-
type(t).NEEDS_CONTAINER or t.data.image for t in tasks
|
|
279
|
-
):
|
|
280
|
-
raise SystemExit(
|
|
281
|
-
"taskset needs a container runtime to debug - pass --runtime.type docker (or prime)"
|
|
282
|
-
)
|
|
283
277
|
|
|
284
278
|
out = output_path(config)
|
|
285
279
|
save_config(config, out, "debug.json")
|
verifiers/v1/cli/validate.py
CHANGED
|
@@ -35,7 +35,7 @@ from verifiers.v1.grading import (
|
|
|
35
35
|
scoring_network,
|
|
36
36
|
verifier_runtime,
|
|
37
37
|
)
|
|
38
|
-
from verifiers.v1.runtimes import
|
|
38
|
+
from verifiers.v1.runtimes import make_backend
|
|
39
39
|
from verifiers.v1.runtimes.deployment import Deployment
|
|
40
40
|
from verifiers.v1.state import state_cls
|
|
41
41
|
from verifiers.v1.task import Task
|
|
@@ -448,12 +448,6 @@ async def run_validate(config: ValidateConfig) -> list[dict]:
|
|
|
448
448
|
f"{type(taskset).__name__} is infinite - bound the run with -n"
|
|
449
449
|
)
|
|
450
450
|
tasks = list(taskset)
|
|
451
|
-
if not backend_cls(config.runtime).SUPPORTS_TASK_IMAGES and any(
|
|
452
|
-
type(t).NEEDS_CONTAINER or t.data.image for t in tasks
|
|
453
|
-
):
|
|
454
|
-
raise SystemExit(
|
|
455
|
-
"taskset needs a container runtime to validate - pass --runtime.type docker (or prime)"
|
|
456
|
-
)
|
|
457
451
|
mode = validation_mode(config)
|
|
458
452
|
checks = "gold+noop" if mode == "all" else mode
|
|
459
453
|
out = output_path(config)
|
verifiers/v1/configs/runtime.py
CHANGED
|
@@ -152,13 +152,28 @@ class NetworkPolicyConfig(BaseConfig):
|
|
|
152
152
|
return type(self).model_validate({**values, "allow": allow, "block": block})
|
|
153
153
|
|
|
154
154
|
|
|
155
|
-
class
|
|
156
|
-
|
|
155
|
+
class SandboxConfig(BaseConfig):
|
|
156
|
+
"""What every runtime provisions: a task image with a working directory and the
|
|
157
|
+
resources `TaskData.resources` requests. Network policy support is declared by also
|
|
158
|
+
inheriting `NetworkPolicyConfig`."""
|
|
159
|
+
|
|
157
160
|
image: str = "python:3.11-slim"
|
|
158
161
|
workdir: str | None = None
|
|
159
162
|
"""Working directory override; None uses the task's workdir, or /app."""
|
|
160
163
|
# TaskData.resources uses these units; non-default runtime config values take precedence.
|
|
161
164
|
cpu: float | None = None
|
|
165
|
+
"""CPU cores. None = the provider's default."""
|
|
166
|
+
memory: float | None = None
|
|
167
|
+
"""Memory limit in GB. None = the provider's default."""
|
|
168
|
+
gpu: str | None = None
|
|
169
|
+
"""GPU spec, e.g. "A100" or "A100:2" (a bare count = provider-chosen type)."""
|
|
170
|
+
disk: float | None = None
|
|
171
|
+
"""Disk in GB. None = the provider's default."""
|
|
172
|
+
|
|
173
|
+
|
|
174
|
+
class DockerConfig(SandboxConfig, NetworkPolicyConfig):
|
|
175
|
+
type: Literal["docker"] = "docker"
|
|
176
|
+
cpu: float | None = None
|
|
162
177
|
"""Pin the container to this many CPU cores. None = unlimited."""
|
|
163
178
|
memory: float | None = None
|
|
164
179
|
"""Hard memory limit in GB. None = unlimited."""
|
|
@@ -185,15 +200,13 @@ class PrimeVolume(BaseConfig):
|
|
|
185
200
|
read_only: bool = True
|
|
186
201
|
|
|
187
202
|
|
|
188
|
-
class PrimeConfig(NetworkPolicyConfig):
|
|
203
|
+
class PrimeConfig(SandboxConfig, NetworkPolicyConfig):
|
|
189
204
|
type: Literal["prime"] = "prime"
|
|
190
205
|
image: str = "python:3.11-slim"
|
|
191
206
|
"""Docker image to run. Any pullable ref works: on the first use of an image, the
|
|
192
207
|
platform auto-builds the VM image that the sandbox needs from it (~10 minutes)
|
|
193
208
|
and caches the result, so later sandboxes on the same ref start in
|
|
194
209
|
seconds."""
|
|
195
|
-
workdir: str | None = None
|
|
196
|
-
"""Working directory override; None uses the task's workdir, or /app."""
|
|
197
210
|
region: str | None = None
|
|
198
211
|
"""Region to provision in (None = provider-chosen)."""
|
|
199
212
|
labels: list[str] = Field(default_factory=list)
|
|
@@ -242,7 +255,7 @@ class PrimeConfig(NetworkPolicyConfig):
|
|
|
242
255
|
return self
|
|
243
256
|
|
|
244
257
|
|
|
245
|
-
class CustomRuntimeConfig(
|
|
258
|
+
class CustomRuntimeConfig(SandboxConfig):
|
|
246
259
|
type: Literal["custom"] = "custom"
|
|
247
260
|
import_path: str
|
|
248
261
|
"""Dotted path to a `RuntimeBackend` subclass, e.g. `my_package.runtime.MyBackend`."""
|
verifiers/v1/env.py
CHANGED
|
@@ -135,7 +135,6 @@ class Env(ABC, Generic[ConfigT]):
|
|
|
135
135
|
self._shared_tools: dict[str, SharedToolServer] = {}
|
|
136
136
|
self._interception: Interception | None = None
|
|
137
137
|
# Resource warnings dedupe env-wide (agents are per-episode).
|
|
138
|
-
self._warned_resources: set = set()
|
|
139
138
|
|
|
140
139
|
# --- the multi-agent surface (override these) ------------------------------
|
|
141
140
|
|
|
@@ -215,7 +214,6 @@ class Env(ABC, Generic[ConfigT]):
|
|
|
215
214
|
completed=completed,
|
|
216
215
|
on_trace=on_trace,
|
|
217
216
|
on_discard=on_discard,
|
|
218
|
-
warned_resources=self._warned_resources,
|
|
219
217
|
)
|
|
220
218
|
|
|
221
219
|
agents = Agents(self.config, make)
|
|
@@ -23,7 +23,6 @@ from verifiers.v1.judges.rubric import (
|
|
|
23
23
|
score_verdicts,
|
|
24
24
|
weighted_score,
|
|
25
25
|
)
|
|
26
|
-
from verifiers.v1.runtimes import backend_cls
|
|
27
26
|
from verifiers.v1.utils.compile import validate_pairing
|
|
28
27
|
|
|
29
28
|
VERDICT_FILE = "/tmp/verdict.json"
|
|
@@ -118,10 +117,7 @@ HINT_SECTION = """\
|
|
|
118
117
|
class JudgeTask(vf.Task):
|
|
119
118
|
"""The judge's verdict task: the solver task's world mirrored onto the minted
|
|
120
119
|
row, the trace record written (and any stale verdict removed) before the
|
|
121
|
-
judge starts, verdict scraped off the live box after it exits.
|
|
122
|
-
keeps `Agent.run`'s per-task backstop aligned with the judge's declared need."""
|
|
123
|
-
|
|
124
|
-
NEEDS_CONTAINER = True
|
|
120
|
+
judge starts, verdict scraped off the live box after it exits."""
|
|
125
121
|
|
|
126
122
|
def __init__(
|
|
127
123
|
self,
|
|
@@ -276,8 +272,8 @@ class AgenticJudgeEnv(vf.Env[AgenticJudgeEnvConfig]):
|
|
|
276
272
|
config.task.criteria()
|
|
277
273
|
|
|
278
274
|
def _check_agents(self) -> None:
|
|
279
|
-
"""
|
|
280
|
-
|
|
275
|
+
"""Refuse an impossible judge at construction, not after burning a full
|
|
276
|
+
solver run."""
|
|
281
277
|
judge = self._harnesses["judge"]
|
|
282
278
|
if not judge.EXECUTES_CODE:
|
|
283
279
|
raise ValueError(
|
|
@@ -318,8 +314,6 @@ class AgenticJudgeEnv(vf.Env[AgenticJudgeEnvConfig]):
|
|
|
318
314
|
workspace = (
|
|
319
315
|
policy.runtime if policy.mode == "isolated" else None
|
|
320
316
|
) or self.config.solver.runtime
|
|
321
|
-
if not backend_cls(workspace).SUPPORTS_TASK_IMAGES:
|
|
322
|
-
raise TypeError("agentic judging requires a container scoring workspace")
|
|
323
317
|
validate_pairing(self._harnesses["judge"], JudgeTask, workspace)
|
|
324
318
|
|
|
325
319
|
async def judge(solution: vf.Trace, runtime: vf.Runtime) -> None:
|
|
@@ -25,7 +25,6 @@ from verifiers.v1.envs.agentic_judge.env import (
|
|
|
25
25
|
TextSource,
|
|
26
26
|
)
|
|
27
27
|
from verifiers.v1.envs.best_of_n import BestOfNEnv, BestOfNEnvConfig
|
|
28
|
-
from verifiers.v1.runtimes import backend_cls
|
|
29
28
|
from verifiers.v1.utils.artifacts import _validate_restore
|
|
30
29
|
|
|
31
30
|
ATTEMPTS_DIR = "/tmp/attempts"
|
|
@@ -120,9 +119,7 @@ class Ranking(BaseModel):
|
|
|
120
119
|
class RankTask(vf.Task):
|
|
121
120
|
"""One judge's ranking task: every attempt's record and artifacts uploaded
|
|
122
121
|
under its label before the judge starts, the ranking scraped off the box after
|
|
123
|
-
it exits.
|
|
124
|
-
|
|
125
|
-
NEEDS_CONTAINER = True
|
|
122
|
+
it exits."""
|
|
126
123
|
|
|
127
124
|
def __init__(self, data: vf.TaskData, labels: dict[str, vf.Trace]) -> None:
|
|
128
125
|
super().__init__(data)
|
|
@@ -246,23 +243,15 @@ class BestOfNJudgeEnv(BestOfNEnv, vf.Env[BestOfNJudgeEnvConfig]):
|
|
|
246
243
|
"best-of-n-judge requires a judge harness that can execute code, but "
|
|
247
244
|
f"harness {judge.config.id!r} is a tool-less chat loop"
|
|
248
245
|
)
|
|
249
|
-
if not backend_cls(config.judge.runtime).SUPPORTS_TASK_IMAGES:
|
|
250
|
-
raise ValueError(
|
|
251
|
-
"best-of-n-judge requires a container judge runtime: "
|
|
252
|
-
"--env.judge.runtime.type docker|prime"
|
|
253
|
-
)
|
|
254
246
|
|
|
255
247
|
async def setup(self, agents: vf.Agents) -> None:
|
|
256
248
|
# The judges grade the policy; their tokens are never training data.
|
|
257
249
|
agents.judge.trainable = False
|
|
258
250
|
|
|
259
251
|
async def run(self, task: vf.Task, agents: vf.Agents) -> None:
|
|
260
|
-
# Artifacts need a runtime with its own filesystem; a subprocess attempt
|
|
261
|
-
# is ranked on its trace alone.
|
|
262
|
-
collect = backend_cls(self.config.agent.runtime).SUPPORTS_TASK_IMAGES
|
|
263
252
|
async with asyncio.TaskGroup() as tg:
|
|
264
253
|
runs = [
|
|
265
|
-
tg.create_task(agents.agent.run(task, collect_artifacts=
|
|
254
|
+
tg.create_task(agents.agent.run(task, collect_artifacts=True))
|
|
266
255
|
for _ in range(self.config.n)
|
|
267
256
|
]
|
|
268
257
|
attempts = [run.result() for run in runs]
|
verifiers/v1/grading.py
CHANGED
|
@@ -13,7 +13,6 @@ from verifiers.v1.runtimes import (
|
|
|
13
13
|
PrimeConfig,
|
|
14
14
|
Runtime,
|
|
15
15
|
RuntimeConfig,
|
|
16
|
-
backend_cls,
|
|
17
16
|
)
|
|
18
17
|
from verifiers.v1.task import Task
|
|
19
18
|
from verifiers.v1.trace import Error, Trace
|
|
@@ -57,26 +56,21 @@ def verifier_runtime(
|
|
|
57
56
|
# A task without its own image/workdir inherits the actual workspace's values,
|
|
58
57
|
# including a Compose image or split execution configuration.
|
|
59
58
|
task = task.with_data(
|
|
60
|
-
image=task.data.image or
|
|
61
|
-
workdir=task.data.workdir or
|
|
59
|
+
image=task.data.image or solver_runtime.config.image,
|
|
60
|
+
workdir=task.data.workdir or solver_runtime.config.workdir,
|
|
62
61
|
)
|
|
63
62
|
if policy.network is not None:
|
|
64
63
|
task = task.with_data(network=policy.network)
|
|
65
64
|
config = resolve_runtime_config(source, task)
|
|
66
65
|
if policy.runtime is not None and "image" in policy.runtime.model_fields_set:
|
|
67
66
|
config = config.model_copy(update={"image": policy.runtime.image})
|
|
68
|
-
if not backend_cls(config).SUPPORTS_TASK_IMAGES:
|
|
69
|
-
raise TaskError(
|
|
70
|
-
f"isolated verification requires an isolated filesystem; the "
|
|
71
|
-
f"{config.type} runtime cannot run images"
|
|
72
|
-
)
|
|
73
67
|
relative = [
|
|
74
68
|
a.source
|
|
75
69
|
for a in task.data.artifacts
|
|
76
70
|
if not PurePosixPath(a.source).is_absolute()
|
|
77
71
|
]
|
|
78
|
-
solver_dir = PurePosixPath(
|
|
79
|
-
grader_dir = PurePosixPath(
|
|
72
|
+
solver_dir = PurePosixPath(solver_runtime.config.workdir or "/app")
|
|
73
|
+
grader_dir = PurePosixPath(config.workdir or "/app")
|
|
80
74
|
if relative and solver_dir != grader_dir:
|
|
81
75
|
raise TaskError(
|
|
82
76
|
f"cannot restore relative artifacts {relative!r} from {solver_dir} into {grader_dir}; use matching workdirs or absolute paths"
|
verifiers/v1/harness.py
CHANGED
|
@@ -56,17 +56,11 @@ class Harness(ABC, Generic[ConfigT]):
|
|
|
56
56
|
EXECUTES_CODE: ClassVar[bool] = True
|
|
57
57
|
"""Whether the program hands the model local execution in the runtime — true for
|
|
58
58
|
every real harness; the tool-less chat loops (`null`) override to False. Read
|
|
59
|
-
where model-directed execution changes the rules
|
|
60
|
-
warning, the judge env's sandbox requirement."""
|
|
59
|
+
where model-directed execution changes the rules, e.g. the judge envs."""
|
|
61
60
|
SUPPORTS_SKILLS: ClassVar[bool] = False
|
|
62
61
|
"""Whether the program discovers SKILL.md skills — it calls
|
|
63
62
|
`install_skills` with a run-scoped discovery location; configuring
|
|
64
63
|
`skills` on a harness without support is rejected up front."""
|
|
65
|
-
NEEDS_CONTAINER: ClassVar[bool] = True
|
|
66
|
-
"""Whether the program must run in a container runtime: True for every harness
|
|
67
|
-
that installs and drives a third-party program — on the host (subprocess) it
|
|
68
|
-
leaks host state (auth, config, processes) both ways. Only the minimal
|
|
69
|
-
in-house loops (`bash`, `null`) override to False."""
|
|
70
64
|
|
|
71
65
|
def __init__(self, config: ConfigT) -> None:
|
|
72
66
|
self.config = config
|
|
@@ -53,7 +53,6 @@ class BashHarness(Harness[BashHarnessConfig]):
|
|
|
53
53
|
SUPPORTS_MCP = True
|
|
54
54
|
SUPPORTS_RESUME = True
|
|
55
55
|
SUPPORTS_TOOL_INTERCEPTION = True
|
|
56
|
-
NEEDS_CONTAINER = False
|
|
57
56
|
|
|
58
57
|
async def setup(self, runtime: Runtime) -> None:
|
|
59
58
|
await runtime.prepare_uv_script(CHAT_PROGRAM_SOURCE, self.config.resolved_env)
|
|
@@ -57,7 +57,6 @@ class BrowserUseHarness(Harness[BrowserUseHarnessConfig]):
|
|
|
57
57
|
SUPPORTS_MCP = True
|
|
58
58
|
SUPPORTS_RESUME = True
|
|
59
59
|
# The browser tool executes model-authored Python through a third-party daemon.
|
|
60
|
-
NEEDS_CONTAINER = True
|
|
61
60
|
|
|
62
61
|
async def setup(self, runtime: Runtime) -> None:
|
|
63
62
|
await runtime.prepare_uv_script(PROGRAM_SOURCE, self.config.resolved_env)
|
|
@@ -28,7 +28,6 @@ class NullHarness(Harness[NullHarnessConfig]):
|
|
|
28
28
|
SUPPORTS_RESUME = True
|
|
29
29
|
SUPPORTS_TOOL_INTERCEPTION = True
|
|
30
30
|
EXECUTES_CODE = False
|
|
31
|
-
NEEDS_CONTAINER = False
|
|
32
31
|
|
|
33
32
|
async def setup(self, runtime: Runtime) -> None:
|
|
34
33
|
await runtime.prepare_uv_script(CHAT_PROGRAM_SOURCE, self.config.resolved_env)
|
verifiers/v1/mcp/launch.py
CHANGED
|
@@ -29,10 +29,9 @@ from verifiers.v1.mcp.server import (
|
|
|
29
29
|
from verifiers.v1.mcp.toolset import BaseToolsetConfig, ToolsetTimeoutConfig
|
|
30
30
|
from verifiers.v1.runtimes import (
|
|
31
31
|
Runtime,
|
|
32
|
-
backend_cls,
|
|
33
32
|
provision_backend,
|
|
34
33
|
)
|
|
35
|
-
from verifiers.v1.runtimes.base import _ENSURE_UV
|
|
34
|
+
from verifiers.v1.runtimes.base import _ENSURE_UV, SERVICE_PORT
|
|
36
35
|
from verifiers.v1.state import State
|
|
37
36
|
from verifiers.v1.utils.aio import run_shielded
|
|
38
37
|
from verifiers.v1.utils.logging import get_logger
|
|
@@ -185,8 +184,8 @@ async def serve_in_runtime(
|
|
|
185
184
|
) -> int:
|
|
186
185
|
"""Start a server and return its bound port.
|
|
187
186
|
|
|
188
|
-
Exposed servers
|
|
189
|
-
|
|
187
|
+
Exposed servers bind the runtime's published `SERVICE_PORT`. Otherwise, the OS
|
|
188
|
+
chooses a port and reports it through a file. With a state channel, the server
|
|
190
189
|
fetches the current rollout task from the adjacent `/task` endpoint.
|
|
191
190
|
"""
|
|
192
191
|
# A shared server has a private service secret but no fixed state URL. Set
|
|
@@ -196,9 +195,9 @@ async def serve_in_runtime(
|
|
|
196
195
|
"VF_STATE_URL": state_url or "",
|
|
197
196
|
"VF_STATE_SECRET": state_secret,
|
|
198
197
|
}
|
|
199
|
-
if listen_all or
|
|
198
|
+
if listen_all or exposed:
|
|
200
199
|
env["MCP_HOST"] = "0.0.0.0"
|
|
201
|
-
fixed =
|
|
200
|
+
fixed = SERVICE_PORT if exposed else None
|
|
202
201
|
port_file = None
|
|
203
202
|
if fixed is not None:
|
|
204
203
|
env["MCP_PORT"] = str(fixed)
|
|
@@ -321,12 +320,6 @@ async def _serve(
|
|
|
321
320
|
"without a task service spec (it then joins the rollout's "
|
|
322
321
|
"private network)"
|
|
323
322
|
)
|
|
324
|
-
if not backend_cls(cfg.runtime).SUPPORTS_PORT_EXPOSURE:
|
|
325
|
-
raise ToolsetError(
|
|
326
|
-
f"server {server.server_name!r} runs in its own runtime, but the "
|
|
327
|
-
f"{cfg.runtime.type} runtime cannot expose a port; "
|
|
328
|
-
"use a runtime that supports port exposure"
|
|
329
|
-
)
|
|
330
323
|
backend = await stack.enter_async_context(provision_backend(cfg.runtime))
|
|
331
324
|
runtime = backend.bind()
|
|
332
325
|
|
|
@@ -10,6 +10,7 @@ from verifiers.v1.configs.runtime import (
|
|
|
10
10
|
NetworkPolicyConfig,
|
|
11
11
|
PrimeConfig,
|
|
12
12
|
RuntimeConfig,
|
|
13
|
+
SandboxConfig,
|
|
13
14
|
)
|
|
14
15
|
from verifiers.v1.runtimes.backends.custom import CustomRuntimeInfo, import_backend
|
|
15
16
|
from verifiers.v1.runtimes.backends.docker import DockerBackend, DockerRuntimeInfo
|
|
@@ -102,6 +103,7 @@ __all__ = [
|
|
|
102
103
|
"RuntimeConfig",
|
|
103
104
|
"RuntimeInfo",
|
|
104
105
|
"RuntimeProcess",
|
|
106
|
+
"SandboxConfig",
|
|
105
107
|
"backend_cls",
|
|
106
108
|
"make_backend",
|
|
107
109
|
"provision_backend",
|
|
@@ -7,10 +7,12 @@ provider can be used without upstreaming it.
|
|
|
7
7
|
region = "us-east-1"
|
|
8
8
|
|
|
9
9
|
The backend sets `config_class` to its own `CustomRuntimeConfig` subclass, which
|
|
10
|
-
validates every field next to `import_path
|
|
11
|
-
|
|
12
|
-
`
|
|
13
|
-
a
|
|
10
|
+
validates every field next to `import_path` and inherits the `SandboxConfig` fields
|
|
11
|
+
every runtime honors. The backend implements the full `RuntimeBackend` baseline, as
|
|
12
|
+
the built-in runtimes do; `is_local` and `SUPPORTS_DISK_LIMIT` declare its locality and
|
|
13
|
+
disk enforcement, and a config that inherits `NetworkPolicyConfig` enforces task network
|
|
14
|
+
policies. The framework refuses an undeclared network policy or disk limit before
|
|
15
|
+
provisioning."""
|
|
14
16
|
|
|
15
17
|
import importlib
|
|
16
18
|
from typing import Literal
|
|
@@ -48,14 +50,7 @@ def import_backend(import_path: str) -> type[RuntimeBackend]:
|
|
|
48
50
|
f"custom runtime {import_path!r} must be a RuntimeBackend subclass, "
|
|
49
51
|
f"not {backend!r}"
|
|
50
52
|
)
|
|
51
|
-
|
|
52
|
-
if backend.SUPPORTS_TASK_IMAGES or backend.SUPPORTS_COMPOSE:
|
|
53
|
-
missing = {"image", "workdir"} - config_class.model_fields.keys()
|
|
54
|
-
if missing:
|
|
55
|
-
raise TypeError(
|
|
56
|
-
f"custom runtime {import_path!r} runs task images, so its config_class "
|
|
57
|
-
f"must declare {sorted(missing)}"
|
|
58
|
-
)
|
|
53
|
+
plugin_config_class(backend)
|
|
59
54
|
return backend
|
|
60
55
|
|
|
61
56
|
|
|
@@ -29,7 +29,6 @@ import time
|
|
|
29
29
|
import uuid
|
|
30
30
|
from collections.abc import AsyncIterator
|
|
31
31
|
from pathlib import PurePosixPath
|
|
32
|
-
from typing import ClassVar
|
|
33
32
|
from urllib.parse import urlsplit
|
|
34
33
|
|
|
35
34
|
from verifiers.v1.configs.runtime import DockerConfig, NetworkPolicyConfig
|
|
@@ -207,12 +206,6 @@ async def _abort_process_startup(
|
|
|
207
206
|
class DockerBackend(RuntimeBackend):
|
|
208
207
|
"""A container reached through the docker CLI: every operation is an `exec`."""
|
|
209
208
|
|
|
210
|
-
SUPPORTS_TASK_IMAGES: ClassVar[bool] = True
|
|
211
|
-
SUPPORTS_USER_SWITCHING: ClassVar[bool] = True
|
|
212
|
-
SUPPORTS_STOP_CONFIRMATION: ClassVar[bool] = True
|
|
213
|
-
SUPPORTS_MEMORY_LIMIT: ClassVar[bool] = True
|
|
214
|
-
SUPPORTS_PORT_EXPOSURE: ClassVar[bool] = True
|
|
215
|
-
SUPPORTS_COMPOSE: ClassVar[bool] = True
|
|
216
209
|
is_local = True
|
|
217
210
|
|
|
218
211
|
def __init__(
|
|
@@ -281,10 +274,6 @@ class DockerBackend(RuntimeBackend):
|
|
|
281
274
|
and self.config.network_restricted
|
|
282
275
|
)
|
|
283
276
|
|
|
284
|
-
@property
|
|
285
|
-
def published_port(self) -> int:
|
|
286
|
-
return SERVICE_PORT
|
|
287
|
-
|
|
288
277
|
async def start(self) -> None:
|
|
289
278
|
started = time.perf_counter()
|
|
290
279
|
# Compose keeps its authored workdir; only standalone containers default to /app.
|
|
@@ -22,7 +22,6 @@ from prime_sandboxes.models import validate_egress_lists
|
|
|
22
22
|
from verifiers.v1.configs.runtime import NetworkPolicyConfig, PrimeConfig
|
|
23
23
|
from verifiers.v1.errors import SandboxError
|
|
24
24
|
from verifiers.v1.runtimes.base import (
|
|
25
|
-
SERVICE_PORT,
|
|
26
25
|
BaseRuntimeInfo,
|
|
27
26
|
ProgramResult,
|
|
28
27
|
RuntimeBackend,
|
|
@@ -138,13 +137,7 @@ class PrimeProcess(RuntimeProcess):
|
|
|
138
137
|
|
|
139
138
|
|
|
140
139
|
class PrimeBackend(RuntimeBackend):
|
|
141
|
-
SUPPORTS_TASK_IMAGES: ClassVar[bool] = True
|
|
142
|
-
SUPPORTS_USER_SWITCHING: ClassVar[bool] = True
|
|
143
|
-
SUPPORTS_STOP_CONFIRMATION: ClassVar[bool] = True
|
|
144
|
-
SUPPORTS_MEMORY_LIMIT: ClassVar[bool] = True
|
|
145
140
|
SUPPORTS_DISK_LIMIT: ClassVar[bool] = True
|
|
146
|
-
SUPPORTS_COMPOSE: ClassVar[bool] = True
|
|
147
|
-
SUPPORTS_PORT_EXPOSURE: ClassVar[bool] = True
|
|
148
141
|
|
|
149
142
|
def __init__(self, config: PrimeConfig, name: str | None = None) -> None:
|
|
150
143
|
ensure_prime_auth()
|
|
@@ -163,12 +156,6 @@ class PrimeBackend(RuntimeBackend):
|
|
|
163
156
|
self._exposed_ports: list[int] = []
|
|
164
157
|
self._expose_lock = asyncio.Lock()
|
|
165
158
|
|
|
166
|
-
@property
|
|
167
|
-
def published_port(self) -> int:
|
|
168
|
-
# Any port can be exposed. The public URL reaches the sandbox's routed
|
|
169
|
-
# interface, so listeners bind that address or all interfaces.
|
|
170
|
-
return SERVICE_PORT
|
|
171
|
-
|
|
172
159
|
def bind(self, *, env: Mapping[str, str] | None = None) -> Runtime:
|
|
173
160
|
return super().bind(env=env).with_user(self.user)
|
|
174
161
|
|
verifiers/v1/runtimes/base.py
CHANGED
|
@@ -52,11 +52,14 @@ _ENSURE_UV = (
|
|
|
52
52
|
f"|| {{ {{ {_INSTALL_CURL}; {_DOWNLOAD_UV}; }} && hash -r && uv_supports_scripts; }}"
|
|
53
53
|
)
|
|
54
54
|
|
|
55
|
-
# The
|
|
56
|
-
#
|
|
57
|
-
#
|
|
55
|
+
# The port every runtime publishes for a server hosted in it, e.g. a host loopback
|
|
56
|
+
# port on Docker. A server placed in a runtime binds this (on 0.0.0.0) and is reached
|
|
57
|
+
# at the URL `expose(SERVICE_PORT)` returns.
|
|
58
58
|
SERVICE_PORT = 8000
|
|
59
59
|
|
|
60
|
+
# Digest-keyed PEP 723 scripts inside the runtime's filesystem.
|
|
61
|
+
SCRIPTS_DIR = "/tmp/vf-scripts"
|
|
62
|
+
|
|
60
63
|
|
|
61
64
|
@dataclass(frozen=True)
|
|
62
65
|
class ProgramResult:
|
|
@@ -155,12 +158,18 @@ class RuntimeCache:
|
|
|
155
158
|
|
|
156
159
|
|
|
157
160
|
class RuntimeBackend(ABC):
|
|
158
|
-
"""Provider implementation for one container
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
`
|
|
161
|
+
"""Provider implementation for one sandbox: a container or VM booted from a task
|
|
162
|
+
image.
|
|
163
|
+
|
|
164
|
+
Every backend provides the same baseline: it boots `config.image` in its own
|
|
165
|
+
filesystem, runs commands as other existing users, enforces `config.memory`,
|
|
166
|
+
publishes `SERVICE_PORT` through `expose`, and confirms termination in
|
|
167
|
+
`verify_stopped`. It implements `start`, `exec`, `write`, `expose`,
|
|
168
|
+
`verify_stopped`, and `cleanup` or `teardown`, and may override `run`, `read`,
|
|
169
|
+
`prepare_execution`, and `host_url`. A config that inherits `NetworkPolicyConfig`
|
|
170
|
+
enforces network policies, and `SUPPORTS_DISK_LIMIT` declares a hard disk ceiling.
|
|
171
|
+
Tasks and harnesses use it through `Runtime` views (`bind`), which add user and
|
|
172
|
+
environment bindings.
|
|
164
173
|
"""
|
|
165
174
|
|
|
166
175
|
is_local: bool = False
|
|
@@ -168,32 +177,9 @@ class RuntimeBackend(ABC):
|
|
|
168
177
|
Docker does. Remote runtimes use a host `Tunnel` inward plus `expose`
|
|
169
178
|
outward."""
|
|
170
179
|
|
|
171
|
-
SUPPORTS_TASK_IMAGES: ClassVar[bool] = False
|
|
172
|
-
"""Whether the runtime boots a task image in its own filesystem. Tasks with an image,
|
|
173
|
-
container-only harnesses, and isolated grading require it."""
|
|
174
|
-
|
|
175
|
-
SUPPORTS_USER_SWITCHING: ClassVar[bool] = False
|
|
176
|
-
"""Whether handles can bind another existing user."""
|
|
177
|
-
|
|
178
|
-
SUPPORTS_STOP_CONFIRMATION: ClassVar[bool] = False
|
|
179
|
-
"""Whether `verify_stopped` can confirm the provider resource was terminated."""
|
|
180
|
-
|
|
181
|
-
SUPPORTS_MEMORY_LIMIT: ClassVar[bool] = False
|
|
182
|
-
"""Whether a positive `config.memory` enforces a runtime-wide memory ceiling."""
|
|
183
|
-
|
|
184
180
|
SUPPORTS_DISK_LIMIT: ClassVar[bool] = False
|
|
185
181
|
"""Whether a positive `config.disk` enforces a runtime-wide storage ceiling."""
|
|
186
182
|
|
|
187
|
-
SUPPORTS_PORT_EXPOSURE: ClassVar[bool] = False
|
|
188
|
-
"""Whether `expose` can publish a port inside this runtime to the outside, so a
|
|
189
|
-
server here is reachable from another runtime."""
|
|
190
|
-
|
|
191
|
-
SUPPORTS_COMPOSE: ClassVar[bool] = False
|
|
192
|
-
"""Whether the runtime can run a task's Docker Compose services."""
|
|
193
|
-
|
|
194
|
-
scripts_dir: ClassVar[str] = "/tmp/vf-scripts"
|
|
195
|
-
"""Digest-keyed PEP 723 scripts inside the runtime's filesystem."""
|
|
196
|
-
|
|
197
183
|
info: BaseRuntimeInfo
|
|
198
184
|
|
|
199
185
|
def __init__(self, name: str | None = None) -> None:
|
|
@@ -239,11 +225,10 @@ class RuntimeBackend(ABC):
|
|
|
239
225
|
started = time.perf_counter()
|
|
240
226
|
await run_shielded(self.teardown())
|
|
241
227
|
if first:
|
|
242
|
-
# A local runtime's id is its working directory; its last part is the name.
|
|
243
228
|
logger.debug(
|
|
244
229
|
"Stopped %s runtime %s in %s",
|
|
245
230
|
self.config.type,
|
|
246
|
-
|
|
231
|
+
self.info.id or self.name,
|
|
247
232
|
format_time(time.perf_counter() - started),
|
|
248
233
|
)
|
|
249
234
|
|
|
@@ -254,7 +239,7 @@ class RuntimeBackend(ABC):
|
|
|
254
239
|
`cleanup` keys off before its first await: if the event loop dies mid-teardown
|
|
255
240
|
(second Ctrl-C), the atexit backstop must still find the resource."""
|
|
256
241
|
try:
|
|
257
|
-
# Stop background commands before
|
|
242
|
+
# Stop background commands before freeing the resource they run in.
|
|
258
243
|
for process in self._background:
|
|
259
244
|
with contextlib.suppress(Exception):
|
|
260
245
|
async with asyncio.timeout(5):
|
|
@@ -269,11 +254,11 @@ class RuntimeBackend(ABC):
|
|
|
269
254
|
source of truth for teardown: usable from the atexit backstop where async machinery
|
|
270
255
|
is dead, and run off the event loop by `stop` on the normal path. Default no-op."""
|
|
271
256
|
|
|
257
|
+
@abstractmethod
|
|
272
258
|
async def verify_stopped(self) -> None:
|
|
273
259
|
"""Confirm provider termination after `stop`, or raise without returning a
|
|
274
260
|
result whose safety depends on cleanup. Ordinary rollout cleanup remains
|
|
275
261
|
best-effort; callers that execute untrusted submissions use this check."""
|
|
276
|
-
raise SandboxError(f"the {self.type} runtime cannot confirm termination")
|
|
277
262
|
|
|
278
263
|
@abstractmethod
|
|
279
264
|
async def exec(
|
|
@@ -381,21 +366,13 @@ class RuntimeBackend(ABC):
|
|
|
381
366
|
and self.config.network_restricted
|
|
382
367
|
)
|
|
383
368
|
|
|
384
|
-
@
|
|
385
|
-
def published_port(self) -> int | None:
|
|
386
|
-
"""A fixed port this runtime exposes to the outside at startup, declared up front to the
|
|
387
|
-
provider (some forward only ports named at creation). When set, a server placed
|
|
388
|
-
here binds it instead of a host-chosen free port, and `expose` returns its public URL.
|
|
389
|
-
`None` when a runtime can dynamically select and publish a free port."""
|
|
390
|
-
return None
|
|
391
|
-
|
|
369
|
+
@abstractmethod
|
|
392
370
|
async def expose(self, port: int) -> str:
|
|
393
|
-
"""Publish a port running *inside this runtime* to a URL reachable from the
|
|
394
|
-
|
|
395
|
-
|
|
396
|
-
|
|
397
|
-
|
|
398
|
-
return f"http://127.0.0.1:{port}"
|
|
371
|
+
"""Publish a port running *inside this runtime* to a URL reachable from the
|
|
372
|
+
host/outside, torn down with the sandbox in `stop()`. Every runtime publishes
|
|
373
|
+
`SERVICE_PORT`; some providers forward only ports named at creation, so other
|
|
374
|
+
ports may raise. The reverse of a host `Tunnel` (interception.tunnel, which
|
|
375
|
+
reaches a host port from inside a runtime)."""
|
|
399
376
|
|
|
400
377
|
|
|
401
378
|
async def _drain(stream: AsyncIterator[bytes]) -> bytes:
|
verifiers/v1/runtimes/runtime.py
CHANGED
|
@@ -17,6 +17,7 @@ from verifiers.v1.errors import SandboxError
|
|
|
17
17
|
from verifiers.v1.runtimes.base import (
|
|
18
18
|
_ENSURE_UV,
|
|
19
19
|
_INSTALL_CURL,
|
|
20
|
+
SCRIPTS_DIR,
|
|
20
21
|
ProgramResult,
|
|
21
22
|
RuntimeBackend,
|
|
22
23
|
RuntimeProcess,
|
|
@@ -38,10 +39,6 @@ class Runtime:
|
|
|
38
39
|
home: str | None = None
|
|
39
40
|
|
|
40
41
|
def __post_init__(self) -> None:
|
|
41
|
-
if self.user is not None and not self.backend.SUPPORTS_USER_SWITCHING:
|
|
42
|
-
raise ValueError(
|
|
43
|
-
f"the {self.backend.type} runtime cannot run as another user"
|
|
44
|
-
)
|
|
45
42
|
if self.user is None and self.home is not None:
|
|
46
43
|
raise ValueError("home requires a user binding")
|
|
47
44
|
object.__setattr__(self, "env", MappingProxyType(dict(self.env)))
|
|
@@ -80,10 +77,6 @@ class Runtime:
|
|
|
80
77
|
def network_restricted(self) -> bool:
|
|
81
78
|
return self.backend.network_restricted
|
|
82
79
|
|
|
83
|
-
@property
|
|
84
|
-
def published_port(self) -> int | None:
|
|
85
|
-
return self.backend.published_port
|
|
86
|
-
|
|
87
80
|
def host_url(self, url: str) -> str:
|
|
88
81
|
return self.backend.host_url(url)
|
|
89
82
|
|
|
@@ -172,11 +165,7 @@ class Runtime:
|
|
|
172
165
|
data = script.encode() if isinstance(script, str) else script
|
|
173
166
|
digest = hashlib.sha256(data).hexdigest()
|
|
174
167
|
# Each user needs its own writable script dir and uv environment.
|
|
175
|
-
directory =
|
|
176
|
-
self.backend.scripts_dir
|
|
177
|
-
if self.user is None
|
|
178
|
-
else f"{self.backend.scripts_dir}-{self.user}"
|
|
179
|
-
)
|
|
168
|
+
directory = SCRIPTS_DIR if self.user is None else f"{SCRIPTS_DIR}-{self.user}"
|
|
180
169
|
path = f"{directory}/{digest}.py"
|
|
181
170
|
if path not in self.backend.cache.uv_interpreters:
|
|
182
171
|
async with self.backend.cache.uv_locks.setdefault(path, asyncio.Lock()):
|
|
@@ -4,7 +4,7 @@ import asyncio
|
|
|
4
4
|
from contextlib import AsyncExitStack, asynccontextmanager
|
|
5
5
|
from functools import partial
|
|
6
6
|
|
|
7
|
-
from verifiers.v1.runtimes import PrimeBackend, PrimeConfig
|
|
7
|
+
from verifiers.v1.runtimes import DockerBackend, PrimeBackend, PrimeConfig
|
|
8
8
|
from verifiers.v1.runtimes.compose import compose_services
|
|
9
9
|
from verifiers.v1.runtimes.deployment import ServicesSpec, _DeploymentStrategy
|
|
10
10
|
from verifiers.v1.runtimes.private_network import lan_host, private_network
|
|
@@ -212,7 +212,7 @@ def _deployment_strategy(config, backend, spec, tool_vms=None):
|
|
|
212
212
|
if spec is not None:
|
|
213
213
|
if isinstance(backend, PrimeBackend):
|
|
214
214
|
return _NativeComposeDeployment()
|
|
215
|
-
if not backend
|
|
215
|
+
if not isinstance(backend, DockerBackend):
|
|
216
216
|
raise ValueError(
|
|
217
217
|
f"the task deploys Compose services, but the {backend.type} runtime "
|
|
218
218
|
"cannot run Compose services; use ServicesSpec on Prime or local Docker"
|
verifiers/v1/submission.py
CHANGED
|
@@ -34,24 +34,15 @@ async def run_submission(
|
|
|
34
34
|
Teardown is confirmed on every exit, including failures and cancellation,
|
|
35
35
|
before returning or raising.
|
|
36
36
|
"""
|
|
37
|
-
backend = backend_cls(config)
|
|
38
|
-
if (
|
|
39
|
-
not backend.SUPPORTS_TASK_IMAGES
|
|
40
|
-
or not backend.SUPPORTS_USER_SWITCHING
|
|
41
|
-
or not backend.SUPPORTS_STOP_CONFIRMATION
|
|
42
|
-
):
|
|
43
|
-
raise ValueError(
|
|
44
|
-
"submission execution requires isolation, user switching, and confirmed teardown"
|
|
45
|
-
)
|
|
46
37
|
if not isinstance(config, NetworkPolicyConfig):
|
|
47
38
|
raise TypeError("submission execution requires enforced network restrictions")
|
|
48
|
-
if not
|
|
39
|
+
if not backend_cls(config).SUPPORTS_DISK_LIMIT:
|
|
49
40
|
raise ValueError(
|
|
50
|
-
"submission execution requires enforced
|
|
51
|
-
f"the {config.type} runtime does not provide
|
|
41
|
+
"submission execution requires an enforced disk limit; "
|
|
42
|
+
f"the {config.type} runtime does not provide one"
|
|
52
43
|
)
|
|
53
44
|
for name in ("memory", "disk"):
|
|
54
|
-
value = getattr(config, name
|
|
45
|
+
value = getattr(config, name)
|
|
55
46
|
if (
|
|
56
47
|
not isinstance(value, (int, float))
|
|
57
48
|
or not math.isfinite(value)
|
verifiers/v1/task.py
CHANGED
|
@@ -14,7 +14,7 @@ import hashlib
|
|
|
14
14
|
import inspect
|
|
15
15
|
import json
|
|
16
16
|
from collections.abc import Callable, Mapping
|
|
17
|
-
from typing import TYPE_CHECKING, Any,
|
|
17
|
+
from typing import TYPE_CHECKING, Any, Generic, Self
|
|
18
18
|
|
|
19
19
|
from pydantic import BaseModel, ConfigDict, Field
|
|
20
20
|
from typing_extensions import TypeVar
|
|
@@ -154,9 +154,6 @@ ConfigT = TypeVar("ConfigT", bound=TaskConfig, default=TaskConfig)
|
|
|
154
154
|
|
|
155
155
|
|
|
156
156
|
class Task(Generic[DataT, StateT, ConfigT]):
|
|
157
|
-
NEEDS_CONTAINER: ClassVar[bool] = False
|
|
158
|
-
"""Whether the task needs a containerized environment (isolated filesystem, ...)."""
|
|
159
|
-
|
|
160
157
|
def __init__(self, data: DataT, config: ConfigT | None = None) -> None:
|
|
161
158
|
self.data = data
|
|
162
159
|
self.config = config if config is not None else self.config_type()()
|
|
@@ -414,11 +414,7 @@ class HarborTask(Task[HarborData, State, HarborTaskConfig]):
|
|
|
414
414
|
# of its own starts with an empty log directory: anything already there came
|
|
415
415
|
# from the image or from the agent's restored artifacts, not from this grader.
|
|
416
416
|
isolated = wipe or self.scoring.mode == "isolated"
|
|
417
|
-
setup = (
|
|
418
|
-
runtime.with_user("root")
|
|
419
|
-
if runtime.backend.SUPPORTS_USER_SWITCHING
|
|
420
|
-
else runtime
|
|
421
|
-
)
|
|
417
|
+
setup = runtime.with_user("root")
|
|
422
418
|
for view, command in (
|
|
423
419
|
(
|
|
424
420
|
setup,
|
|
@@ -17,6 +17,7 @@ from verifiers.v1.envs.single_agent import SingleAgentEnv
|
|
|
17
17
|
from verifiers.v1.mcp import SharedToolsetConfig, Toolset
|
|
18
18
|
from verifiers.v1.mcp.launch import _read_back_port, log_tail, reachable_url
|
|
19
19
|
from verifiers.v1.runtimes import Runtime, provision_backend
|
|
20
|
+
from verifiers.v1.runtimes.base import SERVICE_PORT
|
|
20
21
|
from verifiers.v1.task import Task, TaskConfig, TaskData
|
|
21
22
|
from verifiers.v1.taskset import Taskset, TasksetConfig
|
|
22
23
|
from verifiers.v1.trace import Trace
|
|
@@ -154,7 +155,7 @@ class NeMoGymEnv(SingleAgentEnv):
|
|
|
154
155
|
program,
|
|
155
156
|
{
|
|
156
157
|
"NEMO_GYM_RESOURCE_SERVER": entrypoint,
|
|
157
|
-
"NEMO_GYM_PORT": str(
|
|
158
|
+
"NEMO_GYM_PORT": str(SERVICE_PORT),
|
|
158
159
|
"NEMO_GYM_TOKEN": token,
|
|
159
160
|
},
|
|
160
161
|
log_file,
|
verifiers/v1/utils/compile.py
CHANGED
|
@@ -6,50 +6,22 @@ from collections.abc import Collection
|
|
|
6
6
|
|
|
7
7
|
from verifiers.v1.configs.runtime import NetworkPolicyConfig
|
|
8
8
|
from verifiers.v1.harness import Harness
|
|
9
|
-
from verifiers.v1.runtimes import
|
|
10
|
-
RuntimeConfig,
|
|
11
|
-
backend_cls,
|
|
12
|
-
)
|
|
9
|
+
from verifiers.v1.runtimes import RuntimeConfig
|
|
13
10
|
from verifiers.v1.task import Task
|
|
14
11
|
from verifiers.v1.utils.artifacts import validate_artifact_mounts
|
|
15
|
-
from verifiers.v1.utils.logging import get_logger
|
|
16
12
|
|
|
17
|
-
logger = get_logger(__name__)
|
|
18
13
|
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
"""Resolve a task's runtime config from `base`: inject the task's `image` (an
|
|
24
|
-
image needs a runtime supporting task images), apply its network policy, `workdir`,
|
|
25
|
-
and requested `resources` where the runtime supports them. Precedence: cli/toml >
|
|
26
|
-
task > default except that restrictions compose; an unsupported resource warns once
|
|
27
|
-
(deduped via `warned`)."""
|
|
14
|
+
def resolve_runtime_config(base: RuntimeConfig, task: Task) -> RuntimeConfig:
|
|
15
|
+
"""Resolve a task's runtime config from `base`: inject the task's `image`, apply its
|
|
16
|
+
network policy, `workdir`, and requested `resources`. Precedence: cli/toml > task >
|
|
17
|
+
default except that restrictions compose."""
|
|
28
18
|
config = base
|
|
19
|
+
fields = type(config).model_fields
|
|
29
20
|
updates: dict = {}
|
|
30
21
|
if task.data.image is not None:
|
|
31
|
-
if not backend_cls(config).SUPPORTS_TASK_IMAGES:
|
|
32
|
-
raise ValueError(
|
|
33
|
-
f"task {task.data.idx!r} requires image {task.data.image!r}, but the "
|
|
34
|
-
f"{config.type} runtime cannot run images; use a supported runtime"
|
|
35
|
-
)
|
|
36
22
|
updates["image"] = task.data.image
|
|
37
|
-
|
|
38
|
-
if (
|
|
39
|
-
task.data.workdir is not None
|
|
40
|
-
and workdir_spec is not None
|
|
41
|
-
and config.workdir == workdir_spec.default
|
|
42
|
-
):
|
|
23
|
+
if task.data.workdir is not None and config.workdir == fields["workdir"].default:
|
|
43
24
|
updates["workdir"] = task.data.workdir
|
|
44
|
-
if (
|
|
45
|
-
task.data.agent_user is not None
|
|
46
|
-
and not backend_cls(config).SUPPORTS_USER_SWITCHING
|
|
47
|
-
):
|
|
48
|
-
raise ValueError(
|
|
49
|
-
f"task {task.data.idx!r} runs its agent as {task.data.agent_user!r}, but "
|
|
50
|
-
f"the {config.type} runtime cannot run as another user; use a supported "
|
|
51
|
-
"runtime"
|
|
52
|
-
)
|
|
53
25
|
if task.data.network.network_restricted:
|
|
54
26
|
if not isinstance(config, NetworkPolicyConfig):
|
|
55
27
|
raise ValueError(
|
|
@@ -59,21 +31,9 @@ def resolve_runtime_config(
|
|
|
59
31
|
)
|
|
60
32
|
config = config.with_task_network_policy(task.data.network)
|
|
61
33
|
for resource, value in task.data.resources.model_dump(exclude_none=True).items():
|
|
62
|
-
|
|
63
|
-
if
|
|
64
|
-
key = (config.type, resource)
|
|
65
|
-
if warned is not None and key not in warned:
|
|
66
|
-
warned.add(key)
|
|
67
|
-
logger.warning(
|
|
68
|
-
"Ignoring resource %s - the %s runtime does not support it",
|
|
69
|
-
resource,
|
|
70
|
-
config.type,
|
|
71
|
-
)
|
|
72
|
-
elif (
|
|
73
|
-
getattr(config, resource) == spec.default
|
|
74
|
-
): # still the default → task may set it
|
|
34
|
+
# Still the default → the task may set it; a cli/toml value wins over the task.
|
|
35
|
+
if getattr(config, resource) == fields[resource].default:
|
|
75
36
|
updates[resource] = value
|
|
76
|
-
# else: cli/toml changed it from the default → it wins over the task
|
|
77
37
|
config = config.model_copy(update=updates) if updates else config
|
|
78
38
|
validate_artifact_mounts(config, (a.source for a in task.data.artifacts))
|
|
79
39
|
return config
|
|
@@ -104,16 +64,3 @@ def validate_pairing(
|
|
|
104
64
|
"`skills` is set. Run them with a harness whose program discovers "
|
|
105
65
|
"skills (e.g. --env.agent.harness.id claude-code)."
|
|
106
66
|
)
|
|
107
|
-
container = backend_cls(runtime_config).SUPPORTS_TASK_IMAGES
|
|
108
|
-
if harness.NEEDS_CONTAINER and not container:
|
|
109
|
-
raise ValueError(
|
|
110
|
-
f"Harness {harness.config.id!r} needs a container runtime "
|
|
111
|
-
f"(NEEDS_CONTAINER), but this run resolves to the {runtime_config.type} "
|
|
112
|
-
"runtime; use a supported runtime."
|
|
113
|
-
)
|
|
114
|
-
if task_cls.NEEDS_CONTAINER and not container:
|
|
115
|
-
raise ValueError(
|
|
116
|
-
f"{task_cls.__name__} needs a container runtime (NEEDS_CONTAINER), but "
|
|
117
|
-
f"this run resolves to the {runtime_config.type} runtime; use a "
|
|
118
|
-
"supported runtime."
|
|
119
|
-
)
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.5
|
|
2
2
|
Name: verifiers
|
|
3
|
-
Version: 0.4.2.
|
|
3
|
+
Version: 0.4.2.dev59
|
|
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
|
|
@@ -1,32 +1,32 @@
|
|
|
1
1
|
verifiers/__init__.py,sha256=F5IVMw6mhGaPBMCw7QKk0la_r5mMwydP2hdTTdQucik,352
|
|
2
|
-
verifiers/v1/__init__.py,sha256=
|
|
3
|
-
verifiers/v1/agent.py,sha256=
|
|
2
|
+
verifiers/v1/__init__.py,sha256=rBibZ3Gss1bmW5tdm6i-TkloXLTX2TGOjFmHU3G8FCk,18861
|
|
3
|
+
verifiers/v1/agent.py,sha256=x4jWG8rVxFgLbCVPEmsuzJuFDGtandLCWlvojyTvMcM,48462
|
|
4
4
|
verifiers/v1/delta.py,sha256=23USfU7G5L3TBnV3apyuOa0M_uQAgvTo6a4Ke4msRV0,12205
|
|
5
|
-
verifiers/v1/env.py,sha256=
|
|
5
|
+
verifiers/v1/env.py,sha256=0VQerxERqzkEUa5VF7hMXHD8gbojYCaioqrY3mEFz4U,19627
|
|
6
6
|
verifiers/v1/episode.py,sha256=ExeTkNEBsDuG40m6VogV6Gd4IHdO4SMPIzQSpt_V96U,6984
|
|
7
7
|
verifiers/v1/errors.py,sha256=OieUBIOZ6FW7oKygbXIRoag6RrPxKYpMPfEYPcCnVVE,5863
|
|
8
|
-
verifiers/v1/grading.py,sha256=
|
|
8
|
+
verifiers/v1/grading.py,sha256=HMSvFQVYWZw0IjRWNfkYRRmU4wa4ZLIKrzYfyteKmG8,9795
|
|
9
9
|
verifiers/v1/graph.py,sha256=ifZoODILT1Ek7vM55VZrxHiJErrTvvz-Ihg7oolMTig,48271
|
|
10
|
-
verifiers/v1/harness.py,sha256=
|
|
10
|
+
verifiers/v1/harness.py,sha256=nXDkkGfYn4KyWn0IqnUg-FFqXXFWI33-IFLzz4x4BCo,16756
|
|
11
11
|
verifiers/v1/judge.py,sha256=T-TyYVcLGIoyUADYKy_pCBj2CTLhERlct5pmmWqPpTA,10507
|
|
12
12
|
verifiers/v1/rollout.py,sha256=4dBl8wue2S49w0dbGk9b4-WMUaE86Izn4fagMRq3cz4,49994
|
|
13
13
|
verifiers/v1/semantic.py,sha256=nqKPPUoPL5Oh8Es_XjtcbDiQiIMKTYayXEm-EPB-jAE,5129
|
|
14
14
|
verifiers/v1/session.py,sha256=rxAiQpRtUqveKKyVPTVHPNOzAv4dZcEKzQutRbEkHKo,30873
|
|
15
15
|
verifiers/v1/state.py,sha256=EckF2bWp-vV4b1jYJ9sLI5xrfGuI5spIgYYwW926toI,595
|
|
16
|
-
verifiers/v1/submission.py,sha256=
|
|
17
|
-
verifiers/v1/task.py,sha256=
|
|
16
|
+
verifiers/v1/submission.py,sha256=K4WJ7twNQHhgeRVtZuJhdUxXSIxKyQlgWbpjaB_znfE,7630
|
|
17
|
+
verifiers/v1/task.py,sha256=BpE2OC_8chTC5nZmDFxK3hJEwACZ_lGCSVIcuW9zz7c,15775
|
|
18
18
|
verifiers/v1/taskset.py,sha256=PRwMfPtUL0Sg9pwKzJYnpLBDqJCmQ4skQPhF1oocyyw,9504
|
|
19
19
|
verifiers/v1/trace.py,sha256=o7vnIt3pXRbn5JT_gYO05YaL4NlP0k8T_UlpJK3oqnA,40595
|
|
20
20
|
verifiers/v1/types.py,sha256=0yhesjtRWnhgJz2cTJWWm4EaieE7ozXwH382onCHrMA,13104
|
|
21
21
|
verifiers/v1/acp/__init__.py,sha256=jY7nLAbB6uzSl-f6YCz05zBH5tarBLErNTkvV0vlaho,16613
|
|
22
22
|
verifiers/v1/acp/runner.py,sha256=sFsg0UgWeDjpjihejUidIV2yTapVj1Ap0cDTaEktjkI,15484
|
|
23
23
|
verifiers/v1/cli/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
24
|
-
verifiers/v1/cli/debug.py,sha256=
|
|
24
|
+
verifiers/v1/cli/debug.py,sha256=KTLvqWRG8Uz6J74cmvIEEIO2O9svARWGyrFqqJx6lEk,11321
|
|
25
25
|
verifiers/v1/cli/output.py,sha256=vCscZ-g-sa-SLWDDQNoXBWelC_Je8lBdodvZGOe__eo,3285
|
|
26
26
|
verifiers/v1/cli/resolve.py,sha256=Q1EHM7wWQo0YkwJA898qtZbYLaIkjIVq3Q7kUp2YIxs,4346
|
|
27
27
|
verifiers/v1/cli/resume.py,sha256=hqV5AxxqeIInJeEZQerQznuijhMNijFEFcHZIltfLdE,470
|
|
28
28
|
verifiers/v1/cli/run.py,sha256=fB3OyDGjj5leA0kCIuKiiMxJfhv_4afIUwT9_KDXXuE,4988
|
|
29
|
-
verifiers/v1/cli/validate.py,sha256=
|
|
29
|
+
verifiers/v1/cli/validate.py,sha256=PHs1rVkG_KyzbwO6Psn8InPSxGbX8xRjaiyUFxm7aoE,20764
|
|
30
30
|
verifiers/v1/clients/__init__.py,sha256=3rXv205sRheGvG8yNDmFwpq8qK9dlt7S_ia1zGWhNk0,598
|
|
31
31
|
verifiers/v1/clients/base.py,sha256=C0G5lRm3nxt1xmPoA2cweBgCnN2KcLepmCYq1vdDrnU,1691
|
|
32
32
|
verifiers/v1/clients/client.py,sha256=STtNVV8h-ZOtBtr1JH-NxXfuiY7Fehiw-l8hFmUTnq4,7880
|
|
@@ -42,7 +42,7 @@ verifiers/v1/configs/harness.py,sha256=I9DcHzml17T7SYHobP7E6jHwNSL2eSqEtckioQ2pG
|
|
|
42
42
|
verifiers/v1/configs/interception.py,sha256=3gFD8j1Mpvdl5WtXYRnZ66fAqMYi-NR5OjSbUm_IWJc,3778
|
|
43
43
|
verifiers/v1/configs/judge.py,sha256=nP5rE430PCtyLYIZ772EpWXEPZxg6GaiUgeGXOEj0v8,2222
|
|
44
44
|
verifiers/v1/configs/retries.py,sha256=GIrwS0lnMKnlQ_Wj1Z2J6NlEYK4jX5weZxYmQmLcpUI,1793
|
|
45
|
-
verifiers/v1/configs/runtime.py,sha256=
|
|
45
|
+
verifiers/v1/configs/runtime.py,sha256=ogrsyRZ_nOhP-VqyZiE91677ki5DBu2sS7cjzwuq_Do,12210
|
|
46
46
|
verifiers/v1/configs/sampling.py,sha256=bd6lietww4htrNYmUEqwK5yfKMhUT3nEjHoCg5xl_ys,1174
|
|
47
47
|
verifiers/v1/configs/scoring.py,sha256=8t5NrQU9b8R9dGdcG-aQm_U1m3TgeMIbw_XUN4esoF0,3115
|
|
48
48
|
verifiers/v1/configs/select.py,sha256=a72aweHXsA1B9i-ShR710NZr4ZFC-0xfSQ5J8aQGrew,5820
|
|
@@ -60,11 +60,11 @@ verifiers/v1/dialects/chat.py,sha256=ea_B3tEWgnYjGoyBJI-ysuRyEEMMcA1_H9M6nTf7jec
|
|
|
60
60
|
verifiers/v1/dialects/responses.py,sha256=aoRe94g_Wa2BfHfEUdM8XVesn-RcwfXHoXl1lN4r-qE,31272
|
|
61
61
|
verifiers/v1/envs/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
62
62
|
verifiers/v1/envs/agentic_judge/__init__.py,sha256=6vwtMCQ_cuvuubCF5-nrE5W7gGgzE-LIPKorkM5DXdw,309
|
|
63
|
-
verifiers/v1/envs/agentic_judge/env.py,sha256=
|
|
63
|
+
verifiers/v1/envs/agentic_judge/env.py,sha256=06PB1ckMTHw6XHhFW20gbnzcUG4mhdHgUrkoLi4IzZc,14645
|
|
64
64
|
verifiers/v1/envs/best_of_n/__init__.py,sha256=mubASiwXMNIhnQFDccNAc7yZ0OFsOVK8hH8WIx9b2A4,119
|
|
65
65
|
verifiers/v1/envs/best_of_n/env.py,sha256=KEUJBCVqblnXP_lEwm3mjGdaikBMkecz8UjOFPBhxc0,1987
|
|
66
66
|
verifiers/v1/envs/best_of_n_judge/__init__.py,sha256=xEe_uG3CHVa4psZOkbrQV8u9u63HK1iR-jvtuknUZOw,222
|
|
67
|
-
verifiers/v1/envs/best_of_n_judge/env.py,sha256=
|
|
67
|
+
verifiers/v1/envs/best_of_n_judge/env.py,sha256=ExtSzjpbtxVCzZhjwFSpkpsLGarewpqCaoxFLImdx3w,14119
|
|
68
68
|
verifiers/v1/envs/single_agent/__init__.py,sha256=r0edAc_6gtHBhPzeBGVcdHZZqSdCPZnLMje6eVgyz5U,138
|
|
69
69
|
verifiers/v1/envs/single_agent/env.py,sha256=iH-AnS5-5rDZM3MaYFxzaHSVqJAaw9mQJaaJvsDMMX4,854
|
|
70
70
|
verifiers/v1/envs/user_sim/__init__.py,sha256=nnT695HdqjAEouYL5wtVu6MhIp2wf5yuK-EYgxOVx0s,118
|
|
@@ -72,9 +72,9 @@ verifiers/v1/envs/user_sim/env.py,sha256=deI4r-Utn_v4E_Vb9P_X3LzFh2GRkCO4OlQt8BO
|
|
|
72
72
|
verifiers/v1/harnesses/__init__.py,sha256=SBNQmzQREsKG1ZLe1hAWdFWdXh11akXaF_9JbmJImg8,2203
|
|
73
73
|
verifiers/v1/harnesses/node.py,sha256=8S_mZrugKW3_VTUY6cxRPBFEuaVVK3TejgZxRdqL7LA,5172
|
|
74
74
|
verifiers/v1/harnesses/bash/__init__.py,sha256=IAV4eMMqDHSl-9ANb0Q3kxmBZ22SeHZFBM448X4gQio,140
|
|
75
|
-
verifiers/v1/harnesses/bash/harness.py,sha256=
|
|
75
|
+
verifiers/v1/harnesses/bash/harness.py,sha256=sxwh0PcJycc075Ogi1QQMmiEEaRLqfGsNUTHF1E9DqU,5650
|
|
76
76
|
verifiers/v1/harnesses/browser_use/__init__.py,sha256=yxm2IG5TDLadxZEkX8SL26XWbcPcODXcrJfPfm1GqwU,171
|
|
77
|
-
verifiers/v1/harnesses/browser_use/harness.py,sha256=
|
|
77
|
+
verifiers/v1/harnesses/browser_use/harness.py,sha256=p0V01Njg1l7HR-q8tRV0WeKeYcvclbwunxEWSCYG8Fs,5617
|
|
78
78
|
verifiers/v1/harnesses/browser_use/program.py,sha256=PS3rSp7H-UXRzEzZFRfSDeLlmk7_yAjUxzJ_HyG-oXY,10114
|
|
79
79
|
verifiers/v1/harnesses/claude_code/__init__.py,sha256=JkZQylMSA3o1fvBx_NM41y_umuahmOSqFjTrJ2hryTw,171
|
|
80
80
|
verifiers/v1/harnesses/claude_code/harness.py,sha256=V-xbC0FRBUt-Bm5aL7tp8a4mReCdc_pQ9qOomMpljZQ,5574
|
|
@@ -94,7 +94,7 @@ verifiers/v1/harnesses/mini_swe_agent/__init__.py,sha256=1OBu2Y-XqL72-dGhFdgB6sr
|
|
|
94
94
|
verifiers/v1/harnesses/mini_swe_agent/harness.py,sha256=qtd-PooeuFSmCB4funsIoR3cbswO2i_-qtm8GDkpex4,2821
|
|
95
95
|
verifiers/v1/harnesses/mini_swe_agent/program.py,sha256=m-WOBfwr5MexfnsbWLSapc_5Nt4zIi32dn3r4yfM0bc,530
|
|
96
96
|
verifiers/v1/harnesses/null/__init__.py,sha256=XDeKOPeoXUQi9US9_Z3_yH9YaZ4EiOMKJmUtNNdtD7s,127
|
|
97
|
-
verifiers/v1/harnesses/null/harness.py,sha256=
|
|
97
|
+
verifiers/v1/harnesses/null/harness.py,sha256=1INa_PcZaprAGgJAI9RNrebusOxyY6wHVohhmNhmJgU,1999
|
|
98
98
|
verifiers/v1/harnesses/openclaw/__init__.py,sha256=kNyfPB1sGwEf4K3mTfKN0VEyxun3SGvNpvArVKvH-x8,160
|
|
99
99
|
verifiers/v1/harnesses/openclaw/harness.py,sha256=cBvS7saoFOfGjahPUUXL77mBUr2T7YQ-tuxe7eLH2Ic,11269
|
|
100
100
|
verifiers/v1/harnesses/opencode/__init__.py,sha256=NCMOVrleIgx5mt-d9hvTZNPhUjz0MQxPlMHOwiu39N4,160
|
|
@@ -135,32 +135,32 @@ verifiers/v1/judges/reference.txt,sha256=Ej35kGXiT2uJ0LcHIeez49rCS_9uHmCQKoVdn93
|
|
|
135
135
|
verifiers/v1/judges/rubric.py,sha256=yRaOnc6S6cqrLuySkMsgxsBFCRUA2bBjYSa5qOT-inQ,16158
|
|
136
136
|
verifiers/v1/judges/rubric.txt,sha256=3KA2ZeYYdcDweJhUGopxu9EFgARhu2aWft5S5cj8Bc8,323
|
|
137
137
|
verifiers/v1/mcp/__init__.py,sha256=zJw_R6n-rDqB80_Zs1VGCrYVCZGi8nS7qGaSUKFsB50,479
|
|
138
|
-
verifiers/v1/mcp/launch.py,sha256=
|
|
138
|
+
verifiers/v1/mcp/launch.py,sha256=rVslVE_aELUlgEHFMXbpsQplcr_5HLOoUxCIw8TDqr4,21736
|
|
139
139
|
verifiers/v1/mcp/packages.py,sha256=YIhW5wv10QrbUM1x7R3IEmEBcJu6z3547y-Ew6yJuek,10558
|
|
140
140
|
verifiers/v1/mcp/server.py,sha256=9hH7rJm8yPYVitcKYMZmSt6_JQyysKAr3e6Xav6IsIk,14154
|
|
141
141
|
verifiers/v1/mcp/toolset.py,sha256=ihU2eMkFy4ZPc0f7eG2L3-Y2UJOPo9C67moc1vK1tBc,3044
|
|
142
|
-
verifiers/v1/runtimes/__init__.py,sha256=
|
|
143
|
-
verifiers/v1/runtimes/base.py,sha256=
|
|
142
|
+
verifiers/v1/runtimes/__init__.py,sha256=jyw4kuvhXCm6w4w5lNeF6eEutMe5cteRGyxG-rXHJOo,3153
|
|
143
|
+
verifiers/v1/runtimes/base.py,sha256=solj-ICY6Bh2nxJobqdrINZerR8KeG-m8oKCgK9hYpg,15832
|
|
144
144
|
verifiers/v1/runtimes/compose.py,sha256=Q_0auxhXaGhIOrlisFXI8QRYV9DmewVuXG4ZZtfnrKA,15974
|
|
145
145
|
verifiers/v1/runtimes/deployment.py,sha256=De6N15Vfe7JKn5VOqFwG22SU_lh0f09bJ57hqBi8D6I,7525
|
|
146
146
|
verifiers/v1/runtimes/egress.py,sha256=4zsNS3Z2A2HyoCcbgaLizA30uJabYrbgYAYUfvyzeBk,23703
|
|
147
147
|
verifiers/v1/runtimes/limiters.py,sha256=RWR4HdYoa72yeWF_lM7YRLflm10euE3_gPfNG0BuaOc,2742
|
|
148
148
|
verifiers/v1/runtimes/native_compose.py,sha256=8WBqWqyYWtohcrE_iq8SuuxsDFgK4Ncos8DxQS7FL_A,42335
|
|
149
149
|
verifiers/v1/runtimes/private_network.py,sha256=69ad7-FuGOK9irTO0Iut4JQ23YQMiVzQVYbCVRmF1IM,6717
|
|
150
|
-
verifiers/v1/runtimes/runtime.py,sha256=
|
|
151
|
-
verifiers/v1/runtimes/strategies.py,sha256=
|
|
150
|
+
verifiers/v1/runtimes/runtime.py,sha256=1_xg9YL8BYB29L4MAJGfC9A6cXcZZ4bFBJKIuGVKyns,10309
|
|
151
|
+
verifiers/v1/runtimes/strategies.py,sha256=bleJrlOnF-dOiEtdyIHHZkyGolG25DXdwCQ76s1CnCk,8790
|
|
152
152
|
verifiers/v1/runtimes/backends/cli.py,sha256=f20Q4owaVVb7Z2XA60ZbvkLXP9nmcTsWWiorAx0_3U0,1585
|
|
153
|
-
verifiers/v1/runtimes/backends/custom.py,sha256=
|
|
154
|
-
verifiers/v1/runtimes/backends/docker.py,sha256=
|
|
155
|
-
verifiers/v1/runtimes/backends/prime.py,sha256=
|
|
153
|
+
verifiers/v1/runtimes/backends/custom.py,sha256=M2umy71JC0WsokDLvYode9QVftk9lq9rPiix4LLhPyc,2659
|
|
154
|
+
verifiers/v1/runtimes/backends/docker.py,sha256=orZEW0p8zxK2THaLZBNDvyvMyCd6FWKT66th_QXAru8,31937
|
|
155
|
+
verifiers/v1/runtimes/backends/prime.py,sha256=5uuhyt0-C0lfreBXn_SrN_njSF7DVLu-e6ICwOSjtKc,24639
|
|
156
156
|
verifiers/v1/tasksets/__init__.py,sha256=2ijE3qIlLoUA02g6iysOwWQylyBBQL1GhSpjv8_bp0w,521
|
|
157
157
|
verifiers/v1/tasksets/harbor/__init__.py,sha256=FjW4tM3rgGALMK-8p7ux26G4-d4ZFVmaAmO6Fni6e_g,214
|
|
158
|
-
verifiers/v1/tasksets/harbor/taskset.py,sha256=
|
|
158
|
+
verifiers/v1/tasksets/harbor/taskset.py,sha256=FLEjhw51qCQpyF9G_9gqAMPXjvYwJ8bteregM8AxXVM,43566
|
|
159
159
|
verifiers/v1/tasksets/harbor/toolset.py,sha256=l-h1GATE9HLnEjb844CzBAiVLkPmE-XarjBlQ2ec5gM,3969
|
|
160
160
|
verifiers/v1/tasksets/nemo_gym/__init__.py,sha256=654gAvG3Wd_Z_nh6mypeKn4s_IIQ0Ge6vcZvxTHC2_E,306
|
|
161
161
|
verifiers/v1/tasksets/nemo_gym/response.py,sha256=EhrsquEP8g0bjzAThGfE6Ypgy86_nVX235NiFYtVDVM,4463
|
|
162
162
|
verifiers/v1/tasksets/nemo_gym/server.py,sha256=h7l6yWjMxGAcpYYHrxGEDuD3IpQZMygRRIFN1EMdJb8,2708
|
|
163
|
-
verifiers/v1/tasksets/nemo_gym/taskset.py,sha256=
|
|
163
|
+
verifiers/v1/tasksets/nemo_gym/taskset.py,sha256=QKRT5IPUKY7QTitZ0Q3_GaJ6TjW6nDzz5-yZ5XzrQt0,8340
|
|
164
164
|
verifiers/v1/tasksets/nemo_gym/toolset.py,sha256=7iaRooFIfCN16wdSJbYFAOsc9q-haTivINO4S65UY6U,3715
|
|
165
165
|
verifiers/v1/tasksets/openenv/__init__.py,sha256=G726meYYDplC3QE3AyjdSShq7FUcb4NkVqowuwPPuJk,303
|
|
166
166
|
verifiers/v1/tasksets/openenv/taskset.py,sha256=PzoKgoaN5DpwY1LoWoS6p1yZdC08BP2q60Cqqbl6QSs,6046
|
|
@@ -169,7 +169,7 @@ verifiers/v1/tasksets/textarena/taskset.py,sha256=zGslerxmH2ZT7FJdP-72R6a9p71kr2
|
|
|
169
169
|
verifiers/v1/utils/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
170
170
|
verifiers/v1/utils/aio.py,sha256=0yNFOqB2oO6Qktc6NI_ZSAGuo1aHsIK_wuT1BtmoZ3I,1532
|
|
171
171
|
verifiers/v1/utils/artifacts.py,sha256=jztfZ0Um6pou4gKYu43isF6lkDZVDuvo1MqZ8T1fhdc,24795
|
|
172
|
-
verifiers/v1/utils/compile.py,sha256=
|
|
172
|
+
verifiers/v1/utils/compile.py,sha256=ZEjLhntj5dB4nLzS_rF1hJ-K2P2k1X4GhOXgESXz5vk,3215
|
|
173
173
|
verifiers/v1/utils/decorators.py,sha256=LbHW0bPkFy-l_TNp48HDDB_PZVr7wvJuVfuo3Qctcbo,5608
|
|
174
174
|
verifiers/v1/utils/env.py,sha256=tMqfwFNRcJPijzrjkbE2VYvBH8eONRtYCWVkXHKpGZQ,1023
|
|
175
175
|
verifiers/v1/utils/eval.py,sha256=lXBsir3rastL31CuXkJi522v6ypAI1ZGQ82IoTkm8IQ,1237
|
|
@@ -189,8 +189,8 @@ verifiers/v1/utils/scope.py,sha256=zbs4pj6AVk4jywlAJ3AX0Q0_kzB9dBB02nY-9H4ELdQ,8
|
|
|
189
189
|
verifiers/v1/utils/score.py,sha256=493yJVMw8teCu9JxapxMFPFzI0hNUqdo0Y2nGW4kckk,6200
|
|
190
190
|
verifiers/v1/utils/trace_store.py,sha256=Qo9qvsJAl8PoRUavjQAfUB2VNxmUtYQtU2ejLKPzY9c,3382
|
|
191
191
|
verifiers/v1/utils/version.py,sha256=-obEo_-l9-D8FLef4hYxncOe-uJpxrM1g2Hig_37Sgs,1607
|
|
192
|
-
verifiers-0.4.2.
|
|
193
|
-
verifiers-0.4.2.
|
|
194
|
-
verifiers-0.4.2.
|
|
195
|
-
verifiers-0.4.2.
|
|
196
|
-
verifiers-0.4.2.
|
|
192
|
+
verifiers-0.4.2.dev59.dist-info/METADATA,sha256=bKbU6c9Co_ZDo9dBEALeX7wg8r4SFrAlsnrvrNB3b64,5116
|
|
193
|
+
verifiers-0.4.2.dev59.dist-info/WHEEL,sha256=2iZrJkDIkeDh0k9SikKMqFuRP-ua6mb4Ir1AsER4BEw,87
|
|
194
|
+
verifiers-0.4.2.dev59.dist-info/entry_points.txt,sha256=qdMg7ajiFpDsHf7tuPMRclJXizu1J6LTWawS5YS0B0I,137
|
|
195
|
+
verifiers-0.4.2.dev59.dist-info/licenses/LICENSE,sha256=v0RrUsdV3IDoZhrRce297IXS3xMHNJ-_LdLpFAUWb9k,1072
|
|
196
|
+
verifiers-0.4.2.dev59.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|
|
File without changes
|