verifiers 0.4.2.dev63__py3-none-any.whl → 0.4.2.dev65__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/harnesses/rlm/harness.py +3 -0
- verifiers/v1/runtimes/base.py +9 -2
- verifiers/v1/runtimes/limiters.py +6 -3
- {verifiers-0.4.2.dev63.dist-info → verifiers-0.4.2.dev65.dist-info}/METADATA +1 -1
- {verifiers-0.4.2.dev63.dist-info → verifiers-0.4.2.dev65.dist-info}/RECORD +8 -8
- {verifiers-0.4.2.dev63.dist-info → verifiers-0.4.2.dev65.dist-info}/WHEEL +0 -0
- {verifiers-0.4.2.dev63.dist-info → verifiers-0.4.2.dev65.dist-info}/entry_points.txt +0 -0
- {verifiers-0.4.2.dev63.dist-info → verifiers-0.4.2.dev65.dist-info}/licenses/LICENSE +0 -0
|
@@ -171,7 +171,10 @@ class RLMHarness(ACPHarness[RLMHarnessConfig]):
|
|
|
171
171
|
# The editable install needs the files, not the history; agents searching
|
|
172
172
|
# their workspace for a repository must not find the harness's own.
|
|
173
173
|
f"rm -rf {shlex.quote(checkout + '/.git')} && "
|
|
174
|
+
# Unmanaged: install.sh's uv installer then writes no receipt under root's
|
|
175
|
+
# $HOME/.config/uv, which a task image can point at the agent's workspace.
|
|
174
176
|
f"{home_env}UV_INSTALL_DIR={shlex.quote(directory + '/bin')} "
|
|
177
|
+
f"UV_UNMANAGED_INSTALL={shlex.quote(directory + '/bin')} "
|
|
175
178
|
f"UV_TOOL_BIN_DIR={shlex.quote(directory + '/bin')} "
|
|
176
179
|
f"UV_TOOL_DIR={shlex.quote(directory + '/tools')} "
|
|
177
180
|
f"RLM_CHECKOUT_PATH={shlex.quote(checkout)} bash {shlex.quote(checkout + '/install.sh')} && "
|
verifiers/v1/runtimes/base.py
CHANGED
|
@@ -33,14 +33,21 @@ logger = get_logger(__name__)
|
|
|
33
33
|
# Python images, then fall back to the standalone installer (curl/wget), installing curl + CA
|
|
34
34
|
# certs when a bare image has no downloader. Both install paths land in ~/.local/bin, which we
|
|
35
35
|
# prepend to PATH first. (Installing needs network + one of pip / curl / wget / apt-get / apk.)
|
|
36
|
+
# The standalone installer runs unmanaged (UV_UNMANAGED_INSTALL): it then only places the
|
|
37
|
+
# binaries, without editing shell profiles or writing its self-update receipt to
|
|
38
|
+
# ${XDG_CONFIG_HOME:-$HOME/.config}/uv. That receipt is shared by every user with the same
|
|
39
|
+
# HOME (a task image can give root and the agent user one), and an installer that cannot
|
|
40
|
+
# overwrite another user's receipt fails after it has already installed uv.
|
|
36
41
|
_INSTALL_CURL = ( # only when the image has no downloader; needs a known package manager
|
|
37
42
|
"{ command -v curl >/dev/null 2>&1 || command -v wget >/dev/null 2>&1; } "
|
|
38
43
|
"|| { apt-get update -qq && apt-get install -y -qq curl ca-certificates; } "
|
|
39
44
|
"|| apk add --no-cache curl ca-certificates"
|
|
40
45
|
)
|
|
41
46
|
_DOWNLOAD_UV = (
|
|
42
|
-
"{ command -v curl >/dev/null 2>&1 && curl -LsSf https://astral.sh/uv/install.sh
|
|
43
|
-
"
|
|
47
|
+
"{ command -v curl >/dev/null 2>&1 && curl -LsSf https://astral.sh/uv/install.sh "
|
|
48
|
+
'| UV_UNMANAGED_INSTALL="$HOME/.local/bin" sh; } '
|
|
49
|
+
"|| { command -v wget >/dev/null 2>&1 && wget -qO- https://astral.sh/uv/install.sh "
|
|
50
|
+
'| UV_UNMANAGED_INSTALL="$HOME/.local/bin" sh; }'
|
|
44
51
|
)
|
|
45
52
|
_ENSURE_UV = (
|
|
46
53
|
'export PATH="$HOME/.local/bin:$PATH" UV_INSTALL_DIR="$HOME/.local/bin"; '
|
|
@@ -32,12 +32,15 @@ class CreationLimiter:
|
|
|
32
32
|
|
|
33
33
|
def _reserve(self) -> float:
|
|
34
34
|
os.makedirs(LIMITER_DIR, exist_ok=True)
|
|
35
|
-
#
|
|
36
|
-
|
|
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
|
-
|
|
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.
|
|
3
|
+
Version: 0.4.2.dev65
|
|
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
|
|
@@ -106,7 +106,7 @@ verifiers/v1/harnesses/pi/harness.py,sha256=-E7_gBp7FswP3ObGpKh-RrkxsGGsygrUt7i-
|
|
|
106
106
|
verifiers/v1/harnesses/prime_agent/__init__.py,sha256=xfPC4RrlnyYWaf38tPAOZq4YL6M55lMpj5BoRLmaK8I,171
|
|
107
107
|
verifiers/v1/harnesses/prime_agent/harness.py,sha256=a3PbDBejqYt31sLKkCHRCjn5h0_T3FpwZdru6w6jo2Y,12617
|
|
108
108
|
verifiers/v1/harnesses/rlm/__init__.py,sha256=hwx51xTdEWzzYgMj-p4ETNcptoub3IPMDbEdJ4uB8Ns,122
|
|
109
|
-
verifiers/v1/harnesses/rlm/harness.py,sha256=
|
|
109
|
+
verifiers/v1/harnesses/rlm/harness.py,sha256=NZdJBsC1sFcmb0GXmIcJDl4Pi3YJDUNJ2sQ1i1tcLTQ,15839
|
|
110
110
|
verifiers/v1/harnesses/stirrup/__init__.py,sha256=a-NQxX1bOwaGx8QHj2jWcRJEGiLIxdY6XUMbojr9dOk,142
|
|
111
111
|
verifiers/v1/harnesses/stirrup/harness.py,sha256=Bcm7m1IzFnseiAa6xRKHSFKYrqSRpvxkP07R4GTryfM,3458
|
|
112
112
|
verifiers/v1/harnesses/stirrup/program.py,sha256=3ZVgg3FgVtsMDb4DfLgooxitGaM24oax8-H6hCvwbY8,15112
|
|
@@ -139,11 +139,11 @@ verifiers/v1/mcp/launch.py,sha256=tI4MGpqWVJxALD9RxajBPcQrIhQvxA5r1slU8nwCjNw,29
|
|
|
139
139
|
verifiers/v1/mcp/server.py,sha256=9hH7rJm8yPYVitcKYMZmSt6_JQyysKAr3e6Xav6IsIk,14154
|
|
140
140
|
verifiers/v1/mcp/toolset.py,sha256=52h0tyCk_Eiu54JZ5hlQMfOlu5Dou7PHKmFr09pYFJg,3129
|
|
141
141
|
verifiers/v1/runtimes/__init__.py,sha256=JrBktZBcRLSnnZh_Er9IuGOVBGYUybJSPHi1q_b-UrI,3386
|
|
142
|
-
verifiers/v1/runtimes/base.py,sha256=
|
|
142
|
+
verifiers/v1/runtimes/base.py,sha256=0tmFhqTrG1JmW0sHIGFMxpTscbAq-CAXTFJ7OJdy8Xg,17736
|
|
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=
|
|
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.
|
|
192
|
-
verifiers-0.4.2.
|
|
193
|
-
verifiers-0.4.2.
|
|
194
|
-
verifiers-0.4.2.
|
|
195
|
-
verifiers-0.4.2.
|
|
191
|
+
verifiers-0.4.2.dev65.dist-info/METADATA,sha256=TS_ifYCs3klcs9smrz9eTIPBHmGfwMexAghyBKzXABo,5116
|
|
192
|
+
verifiers-0.4.2.dev65.dist-info/WHEEL,sha256=2iZrJkDIkeDh0k9SikKMqFuRP-ua6mb4Ir1AsER4BEw,87
|
|
193
|
+
verifiers-0.4.2.dev65.dist-info/entry_points.txt,sha256=qdMg7ajiFpDsHf7tuPMRclJXizu1J6LTWawS5YS0B0I,137
|
|
194
|
+
verifiers-0.4.2.dev65.dist-info/licenses/LICENSE,sha256=v0RrUsdV3IDoZhrRce297IXS3xMHNJ-_LdLpFAUWb9k,1072
|
|
195
|
+
verifiers-0.4.2.dev65.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|
|
File without changes
|