verifiers 0.4.2.dev68__py3-none-any.whl → 0.4.2.dev81__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/acp/__init__.py +2 -0
- verifiers/v1/acp/runner.py +4 -0
- verifiers/v1/dialects/anthropic.py +9 -2
- verifiers/v1/graph.py +18 -11
- verifiers/v1/harnesses/claude_code/harness.py +12 -7
- verifiers/v1/harnesses/codex/harness.py +42 -30
- verifiers/v1/harnesses/deepseek/harness.py +3 -3
- verifiers/v1/harnesses/hermes_agent/harness.py +4 -4
- verifiers/v1/harnesses/kimi_code/harness.py +3 -3
- verifiers/v1/harnesses/mini_swe_agent/program.py +1 -1
- verifiers/v1/harnesses/node.py +3 -3
- verifiers/v1/harnesses/openclaw/harness.py +5 -3
- verifiers/v1/harnesses/opencode/harness.py +2 -2
- verifiers/v1/harnesses/pi/harness.py +3 -3
- verifiers/v1/harnesses/prime_agent/harness.py +9 -9
- verifiers/v1/harnesses/rlm/harness.py +1 -1
- verifiers/v1/harnesses/stirrup/program.py +5 -4
- verifiers/v1/harnesses/terminus_2/harness.py +1 -1
- verifiers/v1/harnesses/utils/replay.py +19 -0
- verifiers/v1/interception/server.py +13 -2
- verifiers/v1/session.py +109 -40
- verifiers/v1/trace.py +1 -6
- verifiers/v1/types.py +4 -0
- {verifiers-0.4.2.dev68.dist-info → verifiers-0.4.2.dev81.dist-info}/METADATA +1 -1
- {verifiers-0.4.2.dev68.dist-info → verifiers-0.4.2.dev81.dist-info}/RECORD +28 -28
- {verifiers-0.4.2.dev68.dist-info → verifiers-0.4.2.dev81.dist-info}/WHEEL +0 -0
- {verifiers-0.4.2.dev68.dist-info → verifiers-0.4.2.dev81.dist-info}/entry_points.txt +0 -0
- {verifiers-0.4.2.dev68.dist-info → verifiers-0.4.2.dev81.dist-info}/licenses/LICENSE +0 -0
verifiers/v1/acp/__init__.py
CHANGED
|
@@ -65,6 +65,7 @@ class ACPConfig:
|
|
|
65
65
|
system_prompt: str | None = None
|
|
66
66
|
session_meta: JsonObject | None = None
|
|
67
67
|
client_capabilities: JsonObject | None = None
|
|
68
|
+
session_title: str | None = None
|
|
68
69
|
|
|
69
70
|
|
|
70
71
|
class ACPHarness(Harness[ConfigT]):
|
|
@@ -335,6 +336,7 @@ class ACPHarnessSession(HarnessSession):
|
|
|
335
336
|
"system_prompt": self.config.system_prompt or "",
|
|
336
337
|
"session_meta": self.config.session_meta or {},
|
|
337
338
|
"client_capabilities": self.config.client_capabilities or {},
|
|
339
|
+
"session_title": self.config.session_title,
|
|
338
340
|
"tool_interception": {
|
|
339
341
|
"url": self.tool_interception_url,
|
|
340
342
|
"secret": self.secret,
|
verifiers/v1/acp/runner.py
CHANGED
|
@@ -272,6 +272,10 @@ class ACPSession:
|
|
|
272
272
|
mcp_servers=mcp_servers(config),
|
|
273
273
|
**config["session_meta"],
|
|
274
274
|
)
|
|
275
|
+
if title := config.get("session_title"):
|
|
276
|
+
await self.connection.ext_method(
|
|
277
|
+
"session/rename", {"sessionId": session.session_id, "title": title}
|
|
278
|
+
)
|
|
275
279
|
except BaseException:
|
|
276
280
|
with suppress(BaseException):
|
|
277
281
|
await self.stack.aclose()
|
|
@@ -10,6 +10,7 @@ import json
|
|
|
10
10
|
import re
|
|
11
11
|
from collections.abc import Callable, Mapping
|
|
12
12
|
from dataclasses import dataclass, field
|
|
13
|
+
from itertools import accumulate
|
|
13
14
|
|
|
14
15
|
from anthropic.types import Message as AnthropicMessage
|
|
15
16
|
from anthropic.types import Usage as AnthropicUsage
|
|
@@ -241,6 +242,10 @@ def content_to_wire(content) -> str | list[dict]:
|
|
|
241
242
|
return blocks
|
|
242
243
|
|
|
243
244
|
|
|
245
|
+
def _text_block_offsets(blocks: list[str]) -> list[int] | None:
|
|
246
|
+
return list(accumulate(map(len, blocks[:-1]))) or None
|
|
247
|
+
|
|
248
|
+
|
|
244
249
|
def parse_messages(body: dict) -> Messages:
|
|
245
250
|
"""The request's top-level `system` + `messages` -> typed messages. Assistant turns fold
|
|
246
251
|
their blocks into one message (thinking -> reasoning, tool_use -> tool calls); a user turn's
|
|
@@ -260,7 +265,7 @@ def parse_messages(body: dict) -> Messages:
|
|
|
260
265
|
block for block in blocks if block["type"] not in ("text", "tool_use")
|
|
261
266
|
]
|
|
262
267
|
state.sort(key=lambda block: THINKING_ORDER.get(block["type"], 2))
|
|
263
|
-
text =
|
|
268
|
+
text = [b.get("text", "") for b in blocks if b.get("type") == "text"]
|
|
264
269
|
reasoning = "".join(
|
|
265
270
|
b.get("thinking", "") for b in blocks if b.get("type") == "thinking"
|
|
266
271
|
)
|
|
@@ -276,7 +281,8 @@ def parse_messages(body: dict) -> Messages:
|
|
|
276
281
|
]
|
|
277
282
|
prompt.append(
|
|
278
283
|
AssistantMessage(
|
|
279
|
-
content=text or None,
|
|
284
|
+
content="".join(text) or None,
|
|
285
|
+
text_block_offsets=_text_block_offsets(text),
|
|
280
286
|
reasoning_content=reasoning or None,
|
|
281
287
|
tool_calls=calls or None,
|
|
282
288
|
provider_state=state or None,
|
|
@@ -351,6 +357,7 @@ def response_from_wire(message: AnthropicMessage) -> Response:
|
|
|
351
357
|
model=message.model,
|
|
352
358
|
message=AssistantMessage(
|
|
353
359
|
content="".join(content) or None,
|
|
360
|
+
text_block_offsets=_text_block_offsets(content),
|
|
354
361
|
reasoning_content="".join(reasoning) or None,
|
|
355
362
|
tool_calls=calls or None,
|
|
356
363
|
provider_state=state or None,
|
verifiers/v1/graph.py
CHANGED
|
@@ -414,7 +414,9 @@ def _tools_hash(tools: list[Tool] | None) -> str:
|
|
|
414
414
|
return hashlib.blake2b(data, digest_size=16).hexdigest()
|
|
415
415
|
|
|
416
416
|
|
|
417
|
-
def
|
|
417
|
+
def replay_message_hash(
|
|
418
|
+
trace: Trace, message: Message, dialect: DialectName | None
|
|
419
|
+
) -> str:
|
|
418
420
|
"""`message_hash` of the message as the trace's harness replays it over `dialect`,
|
|
419
421
|
so a turn the harness re-sends with cosmetic rewrites still matches the node it
|
|
420
422
|
came from."""
|
|
@@ -433,7 +435,7 @@ def _node_key(
|
|
|
433
435
|
return (
|
|
434
436
|
parent,
|
|
435
437
|
_tools_hash(tools) if parent is None else None,
|
|
436
|
-
|
|
438
|
+
replay_message_hash(trace, message, dialect),
|
|
437
439
|
)
|
|
438
440
|
|
|
439
441
|
|
|
@@ -472,12 +474,12 @@ def message_prefix_len(
|
|
|
472
474
|
parents: list[int | None] = [None]
|
|
473
475
|
matched = 0
|
|
474
476
|
for message in prompt:
|
|
475
|
-
key =
|
|
477
|
+
key = replay_message_hash(trace, message, dialect)
|
|
476
478
|
parents = [
|
|
477
479
|
node_id
|
|
478
480
|
for parent in parents
|
|
479
481
|
for node_id in children.get(parent, [])
|
|
480
|
-
if
|
|
482
|
+
if replay_message_hash(trace, trace.nodes[node_id].message, dialect) == key
|
|
481
483
|
]
|
|
482
484
|
if not parents:
|
|
483
485
|
break
|
|
@@ -743,7 +745,7 @@ def prepare_turn(
|
|
|
743
745
|
if len(children) == 1 and trace.nodes[children[0]].message == msg:
|
|
744
746
|
existing = children[0]
|
|
745
747
|
if existing is None:
|
|
746
|
-
message_key =
|
|
748
|
+
message_key = replay_message_hash(trace, msg, dialect)
|
|
747
749
|
existing = idx.get(
|
|
748
750
|
(parent, tools_hash if parent is None else None, message_key)
|
|
749
751
|
)
|
|
@@ -1140,12 +1142,17 @@ def leaves(trace: Trace) -> list[int]:
|
|
|
1140
1142
|
return [i for i in range(len(trace.nodes)) if i not in has_child]
|
|
1141
1143
|
|
|
1142
1144
|
|
|
1143
|
-
def
|
|
1144
|
-
"""The
|
|
1145
|
-
|
|
1145
|
+
def path_node_ids(trace: Trace, node: int) -> list[int]:
|
|
1146
|
+
"""The physical ancestry from the root through the given node."""
|
|
1147
|
+
nodes: list[int] = []
|
|
1146
1148
|
current: int | None = node
|
|
1147
1149
|
while current is not None:
|
|
1148
|
-
|
|
1150
|
+
nodes.append(current)
|
|
1149
1151
|
current = trace.nodes[current].parent
|
|
1150
|
-
|
|
1151
|
-
return
|
|
1152
|
+
nodes.reverse()
|
|
1153
|
+
return nodes
|
|
1154
|
+
|
|
1155
|
+
|
|
1156
|
+
def path(trace: Trace, node: int) -> list[Message]:
|
|
1157
|
+
"""The conversation ending at `node`: its root-to-node messages."""
|
|
1158
|
+
return [trace.nodes[i].message for i in path_node_ids(trace, node)]
|
|
@@ -8,7 +8,7 @@ from verifiers.v1.clients import ModelContext
|
|
|
8
8
|
from verifiers.v1.configs.harness import DialectName, HarnessConfig, PinnedVersion
|
|
9
9
|
from verifiers.v1.harnesses.node import NODE_BIN_DIR, ensure_node
|
|
10
10
|
from verifiers.v1.harnesses.utils.install import ensure_installed, remove_dir
|
|
11
|
-
from verifiers.v1.harnesses.utils.replay import
|
|
11
|
+
from verifiers.v1.harnesses.utils.replay import drop_blank_text_blocks
|
|
12
12
|
from verifiers.v1.runtimes import Runtime
|
|
13
13
|
from verifiers.v1.task import TaskData
|
|
14
14
|
from verifiers.v1.trace import Trace
|
|
@@ -16,10 +16,12 @@ from verifiers.v1.types import Message
|
|
|
16
16
|
|
|
17
17
|
CLAUDE_ACP_DIR = "/var/tmp/vf-claude-agent-acp-{version}-{acp_version}"
|
|
18
18
|
PACKAGES_DIR = f"{CLAUDE_ACP_DIR}/packages"
|
|
19
|
-
ACP_VERSION = "0.
|
|
19
|
+
ACP_VERSION = "0.108.1"
|
|
20
20
|
CLAUDE_BIN = f"{PACKAGES_DIR}/node_modules/.bin/claude"
|
|
21
21
|
ACP_BIN = f"{PACKAGES_DIR}/node_modules/.bin/claude-agent-acp"
|
|
22
22
|
CLAUDE_CONFIG_ROOT = ".vf-claude"
|
|
23
|
+
# Manual mode routes tool approvals to ACP. Auto needs a separate classifier.
|
|
24
|
+
CLAUDE_PERMISSIONS = {"defaultMode": "default"}
|
|
23
25
|
ACP_INSTALL = r"""
|
|
24
26
|
set -e
|
|
25
27
|
export PATH="/var/tmp/vf-node/bin:$PATH"
|
|
@@ -34,7 +36,7 @@ touch {ready}
|
|
|
34
36
|
|
|
35
37
|
class ClaudeCodeHarnessConfig(HarnessConfig):
|
|
36
38
|
dialect: Literal["anthropic_messages"] = "anthropic_messages"
|
|
37
|
-
version: PinnedVersion = "2.1.
|
|
39
|
+
version: PinnedVersion = "2.1.327"
|
|
38
40
|
"""Claude Code release to install, pinned for reproducibility."""
|
|
39
41
|
|
|
40
42
|
|
|
@@ -44,10 +46,9 @@ class ClaudeCodeHarness(ACPHarness[ClaudeCodeHarnessConfig]):
|
|
|
44
46
|
SUPPORTS_SKILLS = True
|
|
45
47
|
SUPPORTS_TOOL_INTERCEPTION = True
|
|
46
48
|
|
|
47
|
-
# Claude Code
|
|
48
|
-
# with 2.1.314, recheck on version bumps.
|
|
49
|
+
# Claude Code 2.1.327 filters each whitespace-only text block on replay.
|
|
49
50
|
def replay_view(self, message: Message, dialect: DialectName | None) -> Message:
|
|
50
|
-
return
|
|
51
|
+
return drop_blank_text_blocks(message)
|
|
51
52
|
|
|
52
53
|
async def setup(self, runtime: Runtime) -> None:
|
|
53
54
|
await ensure_node(runtime)
|
|
@@ -84,6 +85,10 @@ class ClaudeCodeHarness(ACPHarness[ClaudeCodeHarnessConfig]):
|
|
|
84
85
|
) -> ACPConfig:
|
|
85
86
|
system_prompt, prompt = self.resolve_prompt(data)
|
|
86
87
|
config_dir = self.config_dir(trace)
|
|
88
|
+
await runtime.write(
|
|
89
|
+
f"{config_dir}/settings.json",
|
|
90
|
+
json.dumps({"permissions": CLAUDE_PERMISSIONS}).encode(),
|
|
91
|
+
)
|
|
87
92
|
await self.install_skills(runtime, f"{config_dir}/skills")
|
|
88
93
|
versions = {"version": self.config.version, "acp_version": ACP_VERSION}
|
|
89
94
|
session_meta = {
|
|
@@ -127,7 +132,7 @@ class ClaudeCodeHarness(ACPHarness[ClaudeCodeHarnessConfig]):
|
|
|
127
132
|
# `CLAUDE_CONFIG_DIR` holds the user settings, which the adapter loads by default.
|
|
128
133
|
await runtime.write(
|
|
129
134
|
f"{config.env['CLAUDE_CONFIG_DIR']}/settings.json",
|
|
130
|
-
json.dumps({"permissions": {"ask": ["*"]}}).encode(),
|
|
135
|
+
json.dumps({"permissions": {**CLAUDE_PERMISSIONS, "ask": ["*"]}}).encode(),
|
|
131
136
|
)
|
|
132
137
|
|
|
133
138
|
async def cleanup(self, trace: Trace, runtime: Runtime) -> None:
|
|
@@ -22,14 +22,19 @@ logger = get_logger(__name__)
|
|
|
22
22
|
|
|
23
23
|
CODEX_DIR = "/var/tmp/vf-codex-{version}-{acp_version}"
|
|
24
24
|
PACKAGES_DIR = f"{CODEX_DIR}/acp"
|
|
25
|
-
ACP_VERSION = "2.
|
|
25
|
+
ACP_VERSION = "2.7.0"
|
|
26
26
|
CODEX_BIN = f"{PACKAGES_DIR}/node_modules/.bin/codex"
|
|
27
27
|
ACP_BIN = f"{PACKAGES_DIR}/node_modules/.bin/codex-acp"
|
|
28
28
|
INSTALL = r"""
|
|
29
29
|
set -e
|
|
30
30
|
export PATH="/var/tmp/vf-node/bin:$PATH"
|
|
31
31
|
rm -f {ready}
|
|
32
|
-
|
|
32
|
+
# Resolve the adapter's bundled CLI to the harness pin, including across minor releases.
|
|
33
|
+
mkdir -p {packages}
|
|
34
|
+
cd {packages}
|
|
35
|
+
printf '{"overrides":{"@agentclientprotocol/codex-acp":{"@openai/codex":"%s"}}}\n' \
|
|
36
|
+
"$AGENT_CODEX_VERSION" > package.json
|
|
37
|
+
npm install --ignore-scripts --no-audit --no-fund \
|
|
33
38
|
--omit=dev \
|
|
34
39
|
"@agentclientprotocol/codex-acp@$AGENT_CODEX_ACP_VERSION" \
|
|
35
40
|
"@openai/codex@$AGENT_CODEX_VERSION" >/dev/null
|
|
@@ -48,9 +53,9 @@ GATE_HANDLER = {
|
|
|
48
53
|
|
|
49
54
|
class CodexHarnessConfig(HarnessConfig):
|
|
50
55
|
# Codex accepts no other wire API:
|
|
51
|
-
# https://github.com/openai/codex/blob/rust-v0.
|
|
56
|
+
# https://github.com/openai/codex/blob/rust-v0.170.0/codex-rs/model-provider-info/src/lib.rs#L119
|
|
52
57
|
dialect: Literal["responses"] = "responses"
|
|
53
|
-
version: PinnedVersion = "0.
|
|
58
|
+
version: PinnedVersion = "0.170.0"
|
|
54
59
|
"""Codex release to install, pinned for reproducibility."""
|
|
55
60
|
code_mode: bool = False
|
|
56
61
|
"""Enable Code Mode when the model's metadata does not select its tool mode."""
|
|
@@ -128,10 +133,15 @@ class CodexHarness(ACPHarness[CodexHarnessConfig]):
|
|
|
128
133
|
# Codex reads MCP servers from the config written by build_env().
|
|
129
134
|
mcp_urls={},
|
|
130
135
|
system_prompt=system_prompt,
|
|
136
|
+
# An untitled session starts a separate model turn to generate a UI title.
|
|
137
|
+
session_title=f"Verifiers rollout {trace.id}",
|
|
131
138
|
client_capabilities={
|
|
132
139
|
"_meta": {
|
|
133
140
|
"jetbrains": {
|
|
134
|
-
"air": {
|
|
141
|
+
"air": {
|
|
142
|
+
"version": 1,
|
|
143
|
+
"capabilities": ["sessionFailure", "sessionIndex"],
|
|
144
|
+
}
|
|
135
145
|
}
|
|
136
146
|
}
|
|
137
147
|
},
|
|
@@ -187,20 +197,31 @@ class CodexHarness(ACPHarness[CodexHarnessConfig]):
|
|
|
187
197
|
) -> dict[str, str]:
|
|
188
198
|
home = self.trace_home(trace)
|
|
189
199
|
await self.install_skills(runtime, f"{home}/skills")
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
200
|
+
# The app server and its ACP sessions must start with the same provider.
|
|
201
|
+
settings = {
|
|
202
|
+
"model_provider": "custom-gateway",
|
|
203
|
+
"model_providers": {
|
|
204
|
+
"custom-gateway": {
|
|
205
|
+
"name": "Verifiers",
|
|
206
|
+
"base_url": endpoint,
|
|
207
|
+
"wire_api": "responses",
|
|
208
|
+
"env_key": "CODEX_INTERCEPT_KEY",
|
|
209
|
+
"http_headers": {"X-Client-Feature-ID": "codex"},
|
|
210
|
+
}
|
|
211
|
+
},
|
|
212
|
+
"features": {"mcp_2026_07_28": True},
|
|
213
|
+
"mcp_servers": {
|
|
214
|
+
name: {
|
|
215
|
+
"url": url,
|
|
216
|
+
"required": True,
|
|
217
|
+
"omit_tools_from": ["deferred", "code_mode"],
|
|
218
|
+
"startup_timeout_sec": 60.0,
|
|
219
|
+
"tool_timeout_sec": self.config.tool_timeout,
|
|
220
|
+
}
|
|
197
221
|
for name, url in mcp_urls.items()
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
else ""
|
|
202
|
-
)
|
|
203
|
-
await runtime.write(f"{home}/config.toml", mcp_config.encode())
|
|
222
|
+
},
|
|
223
|
+
}
|
|
224
|
+
await runtime.write(f"{home}/config.toml", tomli_w.dumps(settings).encode())
|
|
204
225
|
|
|
205
226
|
features: dict[str, object] = {
|
|
206
227
|
"apps": False,
|
|
@@ -216,20 +237,11 @@ class CodexHarness(ACPHarness[CodexHarnessConfig]):
|
|
|
216
237
|
}
|
|
217
238
|
return {
|
|
218
239
|
**self.config.resolved_env,
|
|
240
|
+
# A rollout has no interactive composer that needs suggested follow-ups.
|
|
241
|
+
"CODEX_ACP_PROMPT_SUGGESTIONS": "false",
|
|
219
242
|
"CODEX_CONFIG": json.dumps(config),
|
|
220
243
|
"CODEX_HOME": home,
|
|
221
|
-
"
|
|
222
|
-
{
|
|
223
|
-
"methodId": "gateway",
|
|
224
|
-
"_meta": {
|
|
225
|
-
"gateway": {
|
|
226
|
-
"baseUrl": endpoint,
|
|
227
|
-
"headers": {"Authorization": f"Bearer {secret}"},
|
|
228
|
-
"providerName": "Verifiers",
|
|
229
|
-
}
|
|
230
|
-
},
|
|
231
|
-
}
|
|
232
|
-
),
|
|
244
|
+
"CODEX_INTERCEPT_KEY": secret,
|
|
233
245
|
"INITIAL_AGENT_MODE": "agent-full-access",
|
|
234
246
|
"NO_BROWSER": "1",
|
|
235
247
|
}
|
|
@@ -27,9 +27,9 @@ touch "$AGENT_DEEPSEEK_DIR/.ready"
|
|
|
27
27
|
|
|
28
28
|
class DeepSeekHarnessConfig(HarnessConfig):
|
|
29
29
|
# The `deepseek-official` route speaks Anthropic messages:
|
|
30
|
-
# https://github.com/deepseek-ai/deepseek-harness/blob/dsh-v0.2.
|
|
30
|
+
# https://github.com/deepseek-ai/deepseek-harness/blob/dsh-v0.2.2-rc.1/packages/llm/llm-deepseek/src/messages-api.ts#L14-L17
|
|
31
31
|
dialect: Literal["anthropic_messages"] = "anthropic_messages"
|
|
32
|
-
version: PinnedVersion = "0.2.
|
|
32
|
+
version: PinnedVersion = "0.2.2-rc.1"
|
|
33
33
|
"""DeepSeek CLI release, pinned to its shipped sdk-minimal composition."""
|
|
34
34
|
|
|
35
35
|
|
|
@@ -70,7 +70,7 @@ class DeepSeekHarness(ACPHarness[DeepSeekHarnessConfig]):
|
|
|
70
70
|
home = f"/tmp/vf-deepseek/{trace.id}"
|
|
71
71
|
system_prompt, prompt = self.resolve_prompt(data)
|
|
72
72
|
# Keep the upstream minimal tree; replace only its SDK stdio front door.
|
|
73
|
-
# https://github.com/deepseek-ai/deepseek-harness/tree/dsh-v0.2.
|
|
73
|
+
# https://github.com/deepseek-ai/deepseek-harness/tree/dsh-v0.2.2-rc.1/packages/bundle/sdk-minimal
|
|
74
74
|
patches = [
|
|
75
75
|
{"id": "sdk-app-startup", "disabled": True},
|
|
76
76
|
{"id": "sdk-jsonrpc-server", "disabled": True},
|
|
@@ -24,7 +24,7 @@ command -v curl >/dev/null || (apt-get update -qq && apt-get install -y -qq curl
|
|
|
24
24
|
curl -fsSL "https://github.com/NousResearch/hermes-agent/archive/refs/tags/$AGENT_HERMES_VERSION.tar.gz" \\
|
|
25
25
|
| tar -xz --strip-components=1 -C "$AGENT_HERMES_DIR"
|
|
26
26
|
# Replay one reasoning key: strict providers reject Hermes' duplicated aliases on custom routes.
|
|
27
|
-
# Recheck: https://github.com/NousResearch/hermes-agent/blob/v0.
|
|
27
|
+
# Recheck: https://github.com/NousResearch/hermes-agent/blob/v0.23.2/agent/message_sanitization.py#L733
|
|
28
28
|
sed -i '/^_REASONING_CARRIER_ROUTES: tuple = (/a\\
|
|
29
29
|
(_DEFAULT_CARRIERS, frozenset({{"custom"}}), ()),' "$AGENT_HERMES_DIR/agent/message_sanitization.py"
|
|
30
30
|
uv sync --project "$AGENT_HERMES_DIR" --python 3.14 --locked --no-dev --extra acp --extra mcp --extra anthropic
|
|
@@ -33,7 +33,7 @@ touch "$AGENT_HERMES_DIR/.ready"
|
|
|
33
33
|
|
|
34
34
|
|
|
35
35
|
class HermesAgentHarnessConfig(HarnessConfig):
|
|
36
|
-
version: PinnedVersion = "v0.
|
|
36
|
+
version: PinnedVersion = "v0.23.2"
|
|
37
37
|
"""Hermes Agent Git release tag to install, pinned for reproducibility."""
|
|
38
38
|
use_bundled_skill: bool = False
|
|
39
39
|
"""Enable optional bundled skills; Hermes always includes its own operating manual."""
|
|
@@ -50,8 +50,8 @@ class HermesAgentHarness(ACPHarness[HermesAgentHarnessConfig]):
|
|
|
50
50
|
|
|
51
51
|
# Hermes strips stored assistant text and pads missing reasoning with " " on
|
|
52
52
|
# routes requiring reasoning replay. Recheck on version bumps:
|
|
53
|
-
# https://github.com/NousResearch/hermes-agent/blob/v0.
|
|
54
|
-
# https://github.com/NousResearch/hermes-agent/blob/v0.
|
|
53
|
+
# https://github.com/NousResearch/hermes-agent/blob/v0.23.2/agent/chat_completion_helpers.py#L1563
|
|
54
|
+
# https://github.com/NousResearch/hermes-agent/blob/v0.23.2/agent/message_sanitization.py#L1007
|
|
55
55
|
def replay_view(self, message: Message, dialect: DialectName | None) -> Message:
|
|
56
56
|
return strip_text(message)
|
|
57
57
|
|
|
@@ -38,7 +38,7 @@ fi
|
|
|
38
38
|
|
|
39
39
|
|
|
40
40
|
class KimiCodeHarnessConfig(HarnessConfig):
|
|
41
|
-
version: PinnedVersion = "2.
|
|
41
|
+
version: PinnedVersion = "2.6.3"
|
|
42
42
|
"""Kimi Code release to install, pinned for reproducibility."""
|
|
43
43
|
dialect: DialectName = "chat_completions"
|
|
44
44
|
|
|
@@ -51,8 +51,8 @@ class KimiCodeHarness(ACPHarness[KimiCodeHarnessConfig]):
|
|
|
51
51
|
|
|
52
52
|
# Kimi Code drops whitespace-only assistant text when it stores a step, so every
|
|
53
53
|
# transport replays it without. Recheck on version bumps:
|
|
54
|
-
# https://github.com/MoonshotAI/kimi-code/blob/@moonshot-ai/kimi-code@2.
|
|
55
|
-
# https://github.com/MoonshotAI/kimi-code/blob/@moonshot-ai/kimi-code@2.
|
|
54
|
+
# https://github.com/MoonshotAI/kimi-code/blob/@moonshot-ai/kimi-code@2.6.3/packages/agent-core-v2/src/human/llm/policy/settle.ts#L26
|
|
55
|
+
# https://github.com/MoonshotAI/kimi-code/blob/@moonshot-ai/kimi-code@2.6.3/packages/agent-core-v2/src/human/llm/message.ts#L162-L169
|
|
56
56
|
def replay_view(self, message: Message, dialect: DialectName | None) -> Message:
|
|
57
57
|
return drop_blank_text(message)
|
|
58
58
|
|
verifiers/v1/harnesses/node.py
CHANGED
|
@@ -3,13 +3,13 @@ from verifiers.v1.runtimes import Runtime
|
|
|
3
3
|
|
|
4
4
|
NODE_DIR = "/var/tmp/vf-node"
|
|
5
5
|
NODE_BIN_DIR = f"{NODE_DIR}/bin"
|
|
6
|
-
NODE_VERSION = "22.
|
|
6
|
+
NODE_VERSION = "24.22.3"
|
|
7
7
|
|
|
8
8
|
INSTALL = r"""
|
|
9
9
|
set -e
|
|
10
10
|
node=/var/tmp/vf-node
|
|
11
11
|
# Node bundles Brotli; a newer major alone does not prove CVE-2026-111497 is fixed.
|
|
12
|
-
node_ok() { "$1" -e 'const [a,b,c]=process.versions.node.split(".").map(Number); const f={
|
|
12
|
+
node_ok() { "$1" -e 'const [a,b,c]=process.versions.node.split(".").map(Number); const f={24:[22,1],26:[12,1]}[a]; process.exit(f && (b>f[0] || b===f[0] && c>=f[1]) ? 0 : 1)'; }
|
|
13
13
|
|
|
14
14
|
install_node() {
|
|
15
15
|
if [ -x "$node/bin/node" ] && [ -x "$node/bin/npm" ] \
|
|
@@ -91,7 +91,7 @@ else
|
|
|
91
91
|
case "$(uname -m)" in aarch64|arm64) node_arch=arm64 ;; *) node_arch=x64 ;; esac
|
|
92
92
|
install_node "$node_os-$node_arch"
|
|
93
93
|
fi
|
|
94
|
-
node_ok "$node/bin/node" || { echo "ACP adapters require patched Node.js (
|
|
94
|
+
node_ok "$node/bin/node" || { echo "ACP adapters require patched Node.js (24.22.1 or 26.12.1 minimum)" >&2; exit 1; }
|
|
95
95
|
"""
|
|
96
96
|
|
|
97
97
|
|
|
@@ -34,12 +34,15 @@ if (stat.size > 1_000_000) {
|
|
|
34
34
|
throw new Error("OpenClaw's transcript sanitizer exceeds the replay patch size limit");
|
|
35
35
|
}
|
|
36
36
|
const source = fs.readFileSync(file, "utf8");
|
|
37
|
+
// The published bundle can rename the local that holds the validated reasoning item.
|
|
38
|
+
const item = source.match(/(\w+)\.summary !== void 0 && !Array\.isArray\(\1\.summary\)/)?.[1];
|
|
39
|
+
if (!item) throw new Error("could not locate OpenClaw's reasoning summary validation");
|
|
37
40
|
const patches = [
|
|
38
41
|
[
|
|
39
42
|
"const OPAQUE_REPLAY_TOKEN_RE = /^[A-Za-z0-9+/_-]+={0,2}$/;",
|
|
40
43
|
"const OPAQUE_REPLAY_TOKEN_RE = /^[A-Za-z0-9+/_-]+={0,2}(?:[.][A-Za-z0-9+/_-]+={0,2})*$/;",
|
|
41
44
|
],
|
|
42
|
-
["\t\tsummary: [],
|
|
45
|
+
['type: "reasoning",\n\t\tsummary: [],', `type: "reasoning",\n\t\tsummary: ${item}.summary ?? [],`],
|
|
43
46
|
];
|
|
44
47
|
let patched = source;
|
|
45
48
|
for (const [before, after] of patches) {
|
|
@@ -125,7 +128,7 @@ wait "$acp_pid"
|
|
|
125
128
|
|
|
126
129
|
|
|
127
130
|
class OpenClawHarnessConfig(HarnessConfig):
|
|
128
|
-
version: PinnedVersion = "2026.
|
|
131
|
+
version: PinnedVersion = "2026.11.5"
|
|
129
132
|
"""OpenClaw release to install, pinned for reproducibility."""
|
|
130
133
|
dialect: Literal["auto"] = "auto"
|
|
131
134
|
"""OpenClaw takes the transport from its model catalog."""
|
|
@@ -219,7 +222,6 @@ class OpenClawHarness(ACPHarness[OpenClawHarnessConfig]):
|
|
|
219
222
|
"defaults": {
|
|
220
223
|
"workspace": ".",
|
|
221
224
|
"skipBootstrap": True,
|
|
222
|
-
"heartbeat": {"every": "0m"},
|
|
223
225
|
"sandbox": {"mode": "off"},
|
|
224
226
|
"model": {"primary": ctx.model},
|
|
225
227
|
"utilityModel": "", # Disable background recap model calls.
|
|
@@ -28,7 +28,7 @@ npm install --prefix "$AGENT_OPENCODE_DIR" --no-audit --no-fund --omit=dev \
|
|
|
28
28
|
|
|
29
29
|
|
|
30
30
|
class OpenCodeHarnessConfig(HarnessConfig):
|
|
31
|
-
version: PinnedVersion = "2.2
|
|
31
|
+
version: PinnedVersion = "2.3.2"
|
|
32
32
|
"""OpenCode 2 release to install, pinned for reproducibility."""
|
|
33
33
|
dialect: DialectName = "chat_completions"
|
|
34
34
|
disabled_tools: list[str] | None = None
|
|
@@ -42,7 +42,7 @@ class OpenCodeHarness(ACPHarness[OpenCodeHarnessConfig]):
|
|
|
42
42
|
|
|
43
43
|
# OpenCode drops whitespace-only assistant text on replay over Anthropic messages.
|
|
44
44
|
# Recheck on version bumps:
|
|
45
|
-
# https://github.com/anomalyco/opencode/blob/v2.2
|
|
45
|
+
# https://github.com/anomalyco/opencode/blob/v2.3.2/packages/ai/src/protocols/anthropic-messages.ts#L909
|
|
46
46
|
def replay_view(self, message: Message, dialect: DialectName | None) -> Message:
|
|
47
47
|
if dialect == "anthropic_messages":
|
|
48
48
|
return drop_blank_text(message)
|
|
@@ -51,7 +51,7 @@ fi
|
|
|
51
51
|
|
|
52
52
|
|
|
53
53
|
class PiHarnessConfig(HarnessConfig):
|
|
54
|
-
version: PinnedVersion = "1.
|
|
54
|
+
version: PinnedVersion = "1.5.2"
|
|
55
55
|
"""Pi release to install, pinned for reproducibility."""
|
|
56
56
|
dialect: DialectName = "chat_completions"
|
|
57
57
|
supports_developer_role: bool | None = None
|
|
@@ -68,8 +68,8 @@ class PiHarness(ACPHarness[PiHarnessConfig]):
|
|
|
68
68
|
|
|
69
69
|
# pi-ai drops whitespace-only assistant text on replay over chat completions and
|
|
70
70
|
# Anthropic messages, not over Responses. Recheck on version bumps:
|
|
71
|
-
# https://github.com/earendil-works/pi/blob/v1.
|
|
72
|
-
# https://github.com/earendil-works/pi/blob/v1.
|
|
71
|
+
# https://github.com/earendil-works/pi/blob/v1.5.2/packages/ai/src/api/openai-completions.ts#L1295
|
|
72
|
+
# https://github.com/earendil-works/pi/blob/v1.5.2/packages/ai/src/api/anthropic-messages.ts#L1704
|
|
73
73
|
def replay_view(self, message: Message, dialect: DialectName | None) -> Message:
|
|
74
74
|
if dialect in ("chat_completions", "anthropic_messages"):
|
|
75
75
|
return drop_blank_text(message)
|
|
@@ -21,10 +21,10 @@ logger = get_logger(__name__)
|
|
|
21
21
|
GITHUB_RELEASE_URL = (
|
|
22
22
|
"https://github.com/PrimeIntellect-ai/prime-agent/releases/download"
|
|
23
23
|
)
|
|
24
|
-
PRIME_AGENT_COMMIT: Literal["
|
|
25
|
-
"
|
|
24
|
+
PRIME_AGENT_COMMIT: Literal["033eea1705c5ae953fe7cd7a5e7e7c45317e0dfe"] = (
|
|
25
|
+
"033eea1705c5ae953fe7cd7a5e7e7c45317e0dfe"
|
|
26
26
|
)
|
|
27
|
-
PRIME_AGENT_VERSION = "0.10.
|
|
27
|
+
PRIME_AGENT_VERSION = "0.10.5"
|
|
28
28
|
PRIME_AGENT_DIR = "/var/tmp/vf-prime-agent"
|
|
29
29
|
STATE_ROOT = "/tmp/vf-prime-agent-runs"
|
|
30
30
|
LIFECYCLE_META_NAMESPACE = "ai.primeintellect.prime-agent"
|
|
@@ -40,10 +40,10 @@ prefix="$AGENT_PRIME_AGENT_DIR/$PRIME_AGENT_COMMIT"
|
|
|
40
40
|
rm -f "$prefix/.ready"
|
|
41
41
|
if [ ! -x "$prefix/bin/prime-agent" ]; then
|
|
42
42
|
case "$(uname -s)-$(uname -m)" in
|
|
43
|
-
Linux-x86_64) platform=linux-x64; sha=
|
|
44
|
-
Linux-aarch64|Linux-arm64) platform=linux-arm64; sha=
|
|
45
|
-
Darwin-x86_64) platform=darwin-x64; sha=
|
|
46
|
-
Darwin-arm64) platform=darwin-arm64; sha=
|
|
43
|
+
Linux-x86_64) platform=linux-x64; sha=b9f653f4c32e83a2270f0b52edea6a72c7bdbd1f7b5c3e64c55e75157094f3b3 ;;
|
|
44
|
+
Linux-aarch64|Linux-arm64) platform=linux-arm64; sha=8ddee5f1ed1a4443829944117509212f1294abbf0cbed22765f8a6efefaa2516 ;;
|
|
45
|
+
Darwin-x86_64) platform=darwin-x64; sha=2a19423b21e79ac45050a246a18d507db66801072437e321b1f7063c6bcf9a4b ;;
|
|
46
|
+
Darwin-arm64) platform=darwin-arm64; sha=6eb082c66f5259b953c38f21c72055d11942fa61372718a5eab25603247bd49c ;;
|
|
47
47
|
*) echo "unsupported prime-agent platform: $(uname -s)-$(uname -m)" >&2; exit 1 ;;
|
|
48
48
|
esac
|
|
49
49
|
command -v curl >/dev/null || { apt-get update -qq && apt-get install -y -qq curl ca-certificates; } || apk add --no-cache curl ca-certificates
|
|
@@ -78,7 +78,7 @@ touch "$prefix/.ready"
|
|
|
78
78
|
|
|
79
79
|
|
|
80
80
|
class PrimeAgentHarnessConfig(HarnessConfig):
|
|
81
|
-
commit: Literal["
|
|
81
|
+
commit: Literal["033eea1705c5ae953fe7cd7a5e7e7c45317e0dfe"] = PRIME_AGENT_COMMIT
|
|
82
82
|
"""Prime Agent release commit to install."""
|
|
83
83
|
|
|
84
84
|
autonomous: bool = False
|
|
@@ -96,7 +96,7 @@ class PrimeAgentHarness(ACPHarness[PrimeAgentHarnessConfig]):
|
|
|
96
96
|
SUPPORTS_SKILLS = True
|
|
97
97
|
|
|
98
98
|
# Its chat-completions provider drops whitespace-only assistant text on replay. Recheck on bumps:
|
|
99
|
-
# https://github.com/PrimeIntellect-ai/prime-agent/blob/v0.10.
|
|
99
|
+
# https://github.com/PrimeIntellect-ai/prime-agent/blob/v0.10.5/crates/pa-ai/src/providers/openai_completions/convert.rs#L106
|
|
100
100
|
def replay_view(self, message: Message, dialect: DialectName | None) -> Message:
|
|
101
101
|
return drop_blank_text(message)
|
|
102
102
|
|
|
@@ -71,7 +71,7 @@ class CompactionConfig(BaseConfig):
|
|
|
71
71
|
class RLMHarnessConfig(HarnessConfig):
|
|
72
72
|
dialect: Literal["chat_completions"] = "chat_completions"
|
|
73
73
|
version: str = Field(
|
|
74
|
-
default="
|
|
74
|
+
default="8ca926cdd64fd7725b78cf95a4e1667315d3b1f6", min_length=1
|
|
75
75
|
)
|
|
76
76
|
"""Git ref (branch, tag, or commit) of nano-rlm to install. Must know every
|
|
77
77
|
field this harness puts on the wire, i.e. be at least the default ref."""
|
|
@@ -2,8 +2,8 @@
|
|
|
2
2
|
# requires-python = ">=3.12,<3.14"
|
|
3
3
|
# dependencies = [
|
|
4
4
|
# "stirrup[mcp] @ https://github.com/ArtificialAnalysis/Stirrup/archive/{version}.tar.gz",
|
|
5
|
-
# "mcp==1.
|
|
6
|
-
# "agent-client-protocol==0.
|
|
5
|
+
# "mcp==1.30.0",
|
|
6
|
+
# "agent-client-protocol==1.0.0",
|
|
7
7
|
# ]
|
|
8
8
|
# ///
|
|
9
9
|
"""Expose Stirrup's agent loop as a rollout-scoped ACP agent over stdio."""
|
|
@@ -23,10 +23,10 @@ from acp import (
|
|
|
23
23
|
RequestError,
|
|
24
24
|
run_agent,
|
|
25
25
|
stdio_streams,
|
|
26
|
-
update_agent_message_text,
|
|
27
26
|
)
|
|
28
27
|
from acp.schema import (
|
|
29
28
|
AgentCapabilities,
|
|
29
|
+
AgentMessageChunk,
|
|
30
30
|
CloseSessionResponse,
|
|
31
31
|
InitializeResponse,
|
|
32
32
|
McpCapabilities,
|
|
@@ -34,6 +34,7 @@ from acp.schema import (
|
|
|
34
34
|
PromptResponse,
|
|
35
35
|
SessionCapabilities,
|
|
36
36
|
SessionCloseCapabilities,
|
|
37
|
+
TextContentBlock,
|
|
37
38
|
)
|
|
38
39
|
from openai import APIError
|
|
39
40
|
from stirrup import Agent
|
|
@@ -334,7 +335,7 @@ class StirrupACPAgent:
|
|
|
334
335
|
return PromptResponse(stop_reason="cancelled")
|
|
335
336
|
await self.connection.session_update(
|
|
336
337
|
session_id=session_id,
|
|
337
|
-
update=
|
|
338
|
+
update=AgentMessageChunk(content=TextContentBlock(text=reply)),
|
|
338
339
|
)
|
|
339
340
|
return PromptResponse(stop_reason="end_turn")
|
|
340
341
|
|
|
@@ -16,7 +16,7 @@ logger = get_logger(__name__)
|
|
|
16
16
|
|
|
17
17
|
class Terminus2HarnessConfig(HarnessConfig):
|
|
18
18
|
dialect: Literal["chat_completions"] = "chat_completions"
|
|
19
|
-
version: PinnedVersion = "0.
|
|
19
|
+
version: PinnedVersion = "0.26.0"
|
|
20
20
|
"""Harbor release to install, pinned for reproducibility."""
|
|
21
21
|
|
|
22
22
|
|
|
@@ -2,6 +2,8 @@
|
|
|
2
2
|
`Harness.replay_view` overrides. Each function is idempotent and only normalizes
|
|
3
3
|
whitespace, so the replayed and the sampled form of a turn map to the same view."""
|
|
4
4
|
|
|
5
|
+
from itertools import pairwise
|
|
6
|
+
|
|
5
7
|
from verifiers.v1.types import AssistantMessage, Message
|
|
6
8
|
|
|
7
9
|
|
|
@@ -17,6 +19,23 @@ def drop_blank_text(message: Message) -> Message:
|
|
|
17
19
|
return message
|
|
18
20
|
|
|
19
21
|
|
|
22
|
+
def drop_blank_text_blocks(message: Message) -> Message:
|
|
23
|
+
"""Drop independently blank blocks while preserving whitespace inside other blocks."""
|
|
24
|
+
if not isinstance(message, AssistantMessage) or not message.text_block_offsets:
|
|
25
|
+
return drop_blank_text(message)
|
|
26
|
+
text = message.content or ""
|
|
27
|
+
offsets = (0, *message.text_block_offsets, len(text))
|
|
28
|
+
if any(start > end for start, end in pairwise(offsets)):
|
|
29
|
+
return drop_blank_text(message)
|
|
30
|
+
blocks = (text[start:end] for start, end in pairwise(offsets))
|
|
31
|
+
return message.model_copy(
|
|
32
|
+
update={
|
|
33
|
+
"content": "".join(block for block in blocks if block.strip()) or None,
|
|
34
|
+
"text_block_offsets": None,
|
|
35
|
+
}
|
|
36
|
+
)
|
|
37
|
+
|
|
38
|
+
|
|
20
39
|
def strip_text(message: Message) -> Message:
|
|
21
40
|
"""Clients that store assistant text stripped, and pad a missing reasoning field
|
|
22
41
|
(or Anthropic thinking block) with a single space on replay."""
|
|
@@ -67,7 +67,7 @@ from verifiers.v1.interception.tunnel.base import HEALTH_PATH
|
|
|
67
67
|
from verifiers.v1.semantic import ACPInfo, extract_acp_info, routing_session_id
|
|
68
68
|
from verifiers.v1.session import IdempotentRequest, ReplayResponse, RolloutSession
|
|
69
69
|
from verifiers.v1.trace import Error, ModelCall, PolicyEvent, TimeSpan
|
|
70
|
-
from verifiers.v1.types import FinishReason, Response, Usage
|
|
70
|
+
from verifiers.v1.types import FinishReason, Response, ToolMessage, Usage
|
|
71
71
|
from verifiers.v1.utils.aio import run_shielded
|
|
72
72
|
from verifiers.v1.utils.format import format_time
|
|
73
73
|
from verifiers.v1.utils.logging import clip, get_logger, isolated
|
|
@@ -881,6 +881,7 @@ class InterceptionServer(Interception):
|
|
|
881
881
|
dialect, f"rollout stopped: {refused}", status=400
|
|
882
882
|
)
|
|
883
883
|
original_request = model_request
|
|
884
|
+
harness_history = original_request.messages
|
|
884
885
|
model_request, request_rewrites, stopped = await session.rewrite_request(
|
|
885
886
|
model_request, dialect=dialect.name
|
|
886
887
|
)
|
|
@@ -888,6 +889,14 @@ class InterceptionServer(Interception):
|
|
|
888
889
|
# A pinned tool result changes the request without a fresh record.
|
|
889
890
|
if stopped is None and model_request != original_request:
|
|
890
891
|
dialect.rewrite_request(body, original_request, model_request)
|
|
892
|
+
# Match future receipts against the prompt the harness will replay.
|
|
893
|
+
# It retains its own user messages. We reapply pinned tool results.
|
|
894
|
+
harness_history = [
|
|
895
|
+
after if isinstance(after, ToolMessage) else before
|
|
896
|
+
for before, after in zip(
|
|
897
|
+
original_request.messages, model_request.messages, strict=True
|
|
898
|
+
)
|
|
899
|
+
]
|
|
891
900
|
except RolloutError as error:
|
|
892
901
|
return self._fail(session, dialect, error)
|
|
893
902
|
except Exception as error: # noqa: BLE001 - surface task hook failures
|
|
@@ -1013,7 +1022,9 @@ class InterceptionServer(Interception):
|
|
|
1013
1022
|
session.consume_prepared(turn.tail)
|
|
1014
1023
|
session.trace.response_rewrites.extend(response_rewrites)
|
|
1015
1024
|
if stopped is None:
|
|
1016
|
-
stopped = await session.gate_tool_calls(
|
|
1025
|
+
stopped = await session.gate_tool_calls(
|
|
1026
|
+
node, dialect.name, harness_history
|
|
1027
|
+
)
|
|
1017
1028
|
if stopped is not None:
|
|
1018
1029
|
session.trace.stop(stopped)
|
|
1019
1030
|
return _error_response(
|
verifiers/v1/session.py
CHANGED
|
@@ -19,7 +19,7 @@ import hashlib
|
|
|
19
19
|
import inspect
|
|
20
20
|
import json
|
|
21
21
|
from collections import Counter
|
|
22
|
-
from collections.abc import Awaitable, Callable
|
|
22
|
+
from collections.abc import Awaitable, Callable, Sequence
|
|
23
23
|
from contextlib import AbstractAsyncContextManager
|
|
24
24
|
from dataclasses import dataclass, field, replace
|
|
25
25
|
from functools import cached_property
|
|
@@ -54,6 +54,7 @@ from verifiers.v1.utils.logging import (
|
|
|
54
54
|
logger = get_logger(__name__)
|
|
55
55
|
|
|
56
56
|
MCPProxy = Callable[[str], AbstractAsyncContextManager[str]]
|
|
57
|
+
ToolResultKey = tuple[int | str, str]
|
|
57
58
|
|
|
58
59
|
|
|
59
60
|
def hook_boundary(handler: Callable, *, allow_trace: bool) -> type:
|
|
@@ -203,20 +204,22 @@ class RolloutSession:
|
|
|
203
204
|
"""Handler tasks currently serving this session. aiohttp does not cancel a handler when
|
|
204
205
|
its client disconnects, so a request whose program died at teardown would keep driving
|
|
205
206
|
the exchange (upstream call, simulator turn) — unregistering cancels these instead."""
|
|
206
|
-
tool_decisions: dict[
|
|
207
|
+
tool_decisions: dict[ToolResultKey, ToolMessage | None] = field(
|
|
207
208
|
default_factory=dict
|
|
208
209
|
)
|
|
209
210
|
"""The pre-execution verdict per proposed call occurrence: None to run it, else the result
|
|
210
211
|
the policy put in its place — that call must not execute."""
|
|
211
|
-
pinned_tool_results: dict[
|
|
212
|
-
default_factory=dict
|
|
213
|
-
)
|
|
212
|
+
pinned_tool_results: dict[ToolResultKey, ToolMessage] = field(default_factory=dict)
|
|
214
213
|
"""The results the model must see, by conversation prefix and call id: rewrites and results it
|
|
215
214
|
substituted for blocked calls. The harness keeps its own copy of each in its history and
|
|
216
215
|
re-sends it forever, so every request has these re-applied before the graph is matched —
|
|
217
216
|
the trace holds the pinned version, and a differing copy would fork it at that node."""
|
|
218
|
-
gated_tools: set[
|
|
217
|
+
gated_tools: set[ToolResultKey] = field(default_factory=set)
|
|
219
218
|
"""Calls the harness's gate asked about before executing."""
|
|
219
|
+
tool_dialects: dict[int, DialectName] = field(default_factory=dict)
|
|
220
|
+
"""Wire dialect of each issuing node, used when its harness asks the tool gate."""
|
|
221
|
+
tool_issuers: dict[tuple[str, str], set[int]] = field(default_factory=dict)
|
|
222
|
+
"""Sampled nodes that issued a call ID under a replay-equivalent prefix."""
|
|
220
223
|
prepared_users: Counter[str] = field(default_factory=Counter)
|
|
221
224
|
last_request: tuple[list, Messages] = ((), [])
|
|
222
225
|
"""The last chat request's raw messages (copied: the server rewrites a body in place) and
|
|
@@ -239,32 +242,65 @@ class RolloutSession:
|
|
|
239
242
|
def stopped(self) -> bool:
|
|
240
243
|
return self.trace.stop_condition is not None
|
|
241
244
|
|
|
242
|
-
def tool_result_keys(
|
|
243
|
-
|
|
244
|
-
|
|
245
|
+
def tool_result_keys(
|
|
246
|
+
self,
|
|
247
|
+
request: Request,
|
|
248
|
+
dialect: DialectName | None = None,
|
|
249
|
+
known_path: Sequence[int] = (),
|
|
250
|
+
) -> dict[int, ToolResultKey]:
|
|
251
|
+
"""Use the sampled node and call ID for a model-issued tool. A harness-supplied
|
|
252
|
+
call outside the sampled graph uses its conversation prefix instead."""
|
|
245
253
|
prefix = hashlib.blake2b(digest_size=16)
|
|
246
|
-
calls: dict[str,
|
|
247
|
-
keys: dict[int,
|
|
254
|
+
calls: dict[str, ToolResultKey] = {}
|
|
255
|
+
keys: dict[int, ToolResultKey] = {}
|
|
248
256
|
for position, message in enumerate(request.messages):
|
|
249
257
|
if isinstance(message, ToolMessage) and message.tool_call_id in calls:
|
|
250
258
|
key = calls[message.tool_call_id]
|
|
259
|
+
issuer, call_id = key
|
|
260
|
+
if isinstance(issuer, str) and (
|
|
261
|
+
issuers := self.tool_issuers.get((issuer, call_id))
|
|
262
|
+
):
|
|
263
|
+
# A follow-up can change tools independently of its conversation.
|
|
264
|
+
if len(issuers) != 1:
|
|
265
|
+
raise HarnessError(
|
|
266
|
+
f"Ambiguous issuing turn for tool call {call_id!r}"
|
|
267
|
+
)
|
|
268
|
+
key = (next(iter(issuers)), call_id)
|
|
251
269
|
keys[position] = key
|
|
252
270
|
message = self.pinned_tool_results.get(key, message)
|
|
253
|
-
prefix.update(
|
|
254
|
-
|
|
255
|
-
|
|
256
|
-
|
|
257
|
-
|
|
258
|
-
|
|
271
|
+
prefix.update(
|
|
272
|
+
graph.replay_message_hash(self.trace, message, dialect).encode()
|
|
273
|
+
)
|
|
274
|
+
if isinstance(message, AssistantMessage) and message.tool_calls:
|
|
275
|
+
prefix_hash = prefix.hexdigest()
|
|
276
|
+
for call in message.tool_calls:
|
|
277
|
+
alias = (prefix_hash, call.id)
|
|
278
|
+
if (
|
|
279
|
+
position < len(known_path)
|
|
280
|
+
and self.trace.nodes[known_path[position]].sampled
|
|
281
|
+
):
|
|
282
|
+
issuer = known_path[position]
|
|
283
|
+
calls[call.id] = (issuer, call.id)
|
|
284
|
+
else:
|
|
285
|
+
calls[call.id] = alias
|
|
259
286
|
return keys
|
|
260
287
|
|
|
261
|
-
def pin_tool_results(
|
|
288
|
+
def pin_tool_results(
|
|
289
|
+
self,
|
|
290
|
+
request: Request,
|
|
291
|
+
dialect: DialectName | None = None,
|
|
292
|
+
known_path: Sequence[int] = (),
|
|
293
|
+
) -> Request:
|
|
262
294
|
"""Re-impose the pinned results on the harness's request. A result for a blocked call
|
|
263
295
|
the harness never gated means the call ran anyway: the transcript would no longer
|
|
264
296
|
describe the sandbox, so that fails the rollout instead of being papered over."""
|
|
297
|
+
if not self.pinned_tool_results:
|
|
298
|
+
return request
|
|
265
299
|
messages = list(request.messages)
|
|
266
300
|
changed = False
|
|
267
|
-
for position, key in self.tool_result_keys(
|
|
301
|
+
for position, key in self.tool_result_keys(
|
|
302
|
+
request, dialect, known_path
|
|
303
|
+
).items():
|
|
268
304
|
pinned = self.pinned_tool_results.get(key)
|
|
269
305
|
if pinned is None:
|
|
270
306
|
continue
|
|
@@ -283,14 +319,15 @@ class RolloutSession:
|
|
|
283
319
|
*,
|
|
284
320
|
run_stops: bool = True,
|
|
285
321
|
dialect: DialectName | None = None,
|
|
322
|
+
known_path: Sequence[int] = (),
|
|
286
323
|
) -> tuple[Request, list[InterceptRecord], str | None]:
|
|
287
324
|
"""Run typed request interceptors and stops over one canonical request. Only the
|
|
288
325
|
uncommitted tail's user and tool messages may change; a rewritten tool result is
|
|
289
326
|
pinned for the rest of the rollout."""
|
|
290
|
-
request = self.pin_tool_results(request)
|
|
291
|
-
tool_keys = self.tool_result_keys(request)
|
|
327
|
+
request = self.pin_tool_results(request, dialect, known_path)
|
|
292
328
|
if not self.request_interceptors and (not run_stops or not self.request_stops):
|
|
293
329
|
return request, [], None
|
|
330
|
+
tool_keys = self.tool_result_keys(request, dialect, known_path)
|
|
294
331
|
candidates: set[int] = set()
|
|
295
332
|
tail_start = graph.message_prefix_len(self.trace, request.messages, dialect)
|
|
296
333
|
if self.request_interceptors:
|
|
@@ -399,7 +436,7 @@ class RolloutSession:
|
|
|
399
436
|
f"request interception failed: {type(error).__name__}: {error}"
|
|
400
437
|
) from error
|
|
401
438
|
current = request.model_copy(update={"messages": messages})
|
|
402
|
-
tool_keys = self.tool_result_keys(current)
|
|
439
|
+
tool_keys = self.tool_result_keys(current, dialect, known_path)
|
|
403
440
|
for position in candidates:
|
|
404
441
|
after = current.messages[position]
|
|
405
442
|
if (
|
|
@@ -422,9 +459,16 @@ class RolloutSession:
|
|
|
422
459
|
self, request: Request
|
|
423
460
|
) -> tuple[Request, list[InterceptRecord]]:
|
|
424
461
|
"""Intercept caller-owned user turns before the harness stores them."""
|
|
425
|
-
|
|
462
|
+
known_path = (
|
|
463
|
+
graph.path_node_ids(self.trace, len(self.trace.nodes) - 1)
|
|
464
|
+
if self.trace.nodes
|
|
465
|
+
else []
|
|
466
|
+
)
|
|
467
|
+
branch = [self.trace.nodes[i].message for i in known_path]
|
|
426
468
|
rewritten, records, _ = await self.rewrite_request(
|
|
427
|
-
Request(messages=[*branch, *request.messages]),
|
|
469
|
+
Request(messages=[*branch, *request.messages]),
|
|
470
|
+
run_stops=False,
|
|
471
|
+
known_path=known_path,
|
|
428
472
|
)
|
|
429
473
|
tail = rewritten.messages[len(branch) :]
|
|
430
474
|
self.prepared_users.update(
|
|
@@ -489,27 +533,52 @@ class RolloutSession:
|
|
|
489
533
|
) from error
|
|
490
534
|
return response, records, None
|
|
491
535
|
|
|
492
|
-
async def gate_tool_calls(
|
|
536
|
+
async def gate_tool_calls(
|
|
537
|
+
self,
|
|
538
|
+
node: int,
|
|
539
|
+
dialect: DialectName | None = None,
|
|
540
|
+
harness_history: Messages | None = None,
|
|
541
|
+
) -> str | None:
|
|
493
542
|
"""Police the tool calls the assistant committed at `node` before the harness sees
|
|
494
543
|
them: the request hooks run over the branch plus an empty result for each call, so a
|
|
495
544
|
`@stop` refuses the whole response and a rewrite becomes that call's verdict — the
|
|
496
545
|
harness's gate denies it and the model sees the rewritten result instead. Returns
|
|
497
546
|
the name of the stop that fired, if any."""
|
|
498
547
|
assistant = self.trace.nodes[node].message
|
|
499
|
-
if not (self.request_interceptors or self.request_stops)
|
|
500
|
-
|
|
501
|
-
|
|
548
|
+
if not (self.request_interceptors or self.request_stops):
|
|
549
|
+
return None
|
|
550
|
+
if dialect is not None:
|
|
551
|
+
self.tool_dialects[node] = dialect
|
|
552
|
+
if not isinstance(assistant, AssistantMessage) or not assistant.tool_calls:
|
|
502
553
|
return None
|
|
503
|
-
|
|
554
|
+
known_path = graph.path_node_ids(self.trace, node)
|
|
555
|
+
branch = [self.trace.nodes[i].message for i in known_path]
|
|
556
|
+
tools = self.trace.nodes[known_path[0]].tools
|
|
557
|
+
# Live harnesses replay their own input. A resumed harness may replay the
|
|
558
|
+
# model-facing transcript, including any policy notices or rewritten user turns.
|
|
559
|
+
histories = [branch]
|
|
560
|
+
if harness_history is not None and harness_history != branch[:-1]:
|
|
561
|
+
histories.append([*harness_history, assistant])
|
|
562
|
+
for history in histories:
|
|
563
|
+
prefix = hashlib.blake2b(digest_size=16)
|
|
564
|
+
for message in history:
|
|
565
|
+
prefix.update(
|
|
566
|
+
graph.replay_message_hash(self.trace, message, dialect).encode()
|
|
567
|
+
)
|
|
568
|
+
prefix_hash = prefix.hexdigest()
|
|
569
|
+
for call in assistant.tool_calls:
|
|
570
|
+
self.tool_issuers.setdefault((prefix_hash, call.id), set()).add(node)
|
|
504
571
|
for call in assistant.tool_calls:
|
|
505
572
|
probe = ToolMessage(tool_call_id=call.id, content="", name=call.name)
|
|
506
|
-
request = Request(messages=[*branch, probe], tools=
|
|
507
|
-
key =
|
|
573
|
+
request = Request(messages=[*branch, probe], tools=tools or None)
|
|
574
|
+
key = (node, call.id)
|
|
508
575
|
if key in self.tool_decisions:
|
|
509
576
|
raise HarnessError(
|
|
510
577
|
f"tool call id {call.id!r} was reused in the same assistant turn"
|
|
511
578
|
)
|
|
512
|
-
request, records, stopped = await self.rewrite_request(
|
|
579
|
+
request, records, stopped = await self.rewrite_request(
|
|
580
|
+
request, dialect=dialect, known_path=known_path
|
|
581
|
+
)
|
|
513
582
|
self.trace.request_rewrites.extend(records)
|
|
514
583
|
if stopped is not None:
|
|
515
584
|
return stopped
|
|
@@ -575,11 +644,7 @@ class RolloutSession:
|
|
|
575
644
|
] or matches
|
|
576
645
|
if len(matches) == 1:
|
|
577
646
|
leaf, call = matches[0]
|
|
578
|
-
|
|
579
|
-
request = Request(
|
|
580
|
-
messages=[*branch, ToolMessage(tool_call_id=call.id, content="")]
|
|
581
|
-
)
|
|
582
|
-
key = self.tool_result_keys(request)[len(branch)]
|
|
647
|
+
key = (leaf, call.id)
|
|
583
648
|
self.gated_tools.add(key)
|
|
584
649
|
verdict = self.tool_decisions.get(key)
|
|
585
650
|
elif matches or not name or len(leaves) != 1:
|
|
@@ -588,7 +653,8 @@ class RolloutSession:
|
|
|
588
653
|
f"{len(matches)} proposed calls"
|
|
589
654
|
)
|
|
590
655
|
else:
|
|
591
|
-
|
|
656
|
+
known_path = graph.path_node_ids(self.trace, leaves[0][0])
|
|
657
|
+
*branch, assistant = [self.trace.nodes[i].message for i in known_path]
|
|
592
658
|
assert isinstance(assistant, AssistantMessage)
|
|
593
659
|
call = ToolCall(id=tool_call_id, name=name, arguments=json.dumps(arguments))
|
|
594
660
|
assistant = assistant.model_copy(
|
|
@@ -597,8 +663,11 @@ class RolloutSession:
|
|
|
597
663
|
probe = ToolMessage(tool_call_id=call.id, content="", name=name)
|
|
598
664
|
request, records, stopped = await self.rewrite_request(
|
|
599
665
|
Request(
|
|
600
|
-
messages=[*branch, assistant, probe],
|
|
601
|
-
|
|
666
|
+
messages=[*branch, assistant, probe],
|
|
667
|
+
tools=self.trace.nodes[known_path[0]].tools or None,
|
|
668
|
+
),
|
|
669
|
+
dialect=self.tool_dialects.get(leaves[0][0]),
|
|
670
|
+
known_path=known_path[:-1],
|
|
602
671
|
)
|
|
603
672
|
self.trace.request_rewrites.extend(records)
|
|
604
673
|
if stopped is not None:
|
verifiers/v1/trace.py
CHANGED
|
@@ -742,12 +742,7 @@ class Trace(BaseModel, Generic[DataT, StateT, AgentConfigT]):
|
|
|
742
742
|
}
|
|
743
743
|
branches: list[Branch] = []
|
|
744
744
|
for i, leaf in enumerate(graph.leaves(self)):
|
|
745
|
-
path
|
|
746
|
-
nid: int | None = leaf
|
|
747
|
-
while nid is not None:
|
|
748
|
-
path.append(nid)
|
|
749
|
-
nid = self.nodes[nid].parent
|
|
750
|
-
path.reverse()
|
|
745
|
+
path = graph.path_node_ids(self, leaf)
|
|
751
746
|
is_compaction_attempt = any(
|
|
752
747
|
link.type == "compaction_attempt"
|
|
753
748
|
for link in self.nodes[leaf].semantic_parents
|
verifiers/v1/types.py
CHANGED
|
@@ -136,6 +136,10 @@ class ToolCall(BaseModel):
|
|
|
136
136
|
class AssistantMessage(BaseModel):
|
|
137
137
|
role: Literal["assistant"] = "assistant"
|
|
138
138
|
content: str | None = None
|
|
139
|
+
text_block_offsets: list[int] | None = Field(
|
|
140
|
+
default=None, exclude_if=lambda value: value is None
|
|
141
|
+
)
|
|
142
|
+
"""Character offsets between native text blocks concatenated into content."""
|
|
139
143
|
reasoning_content: str | None = None
|
|
140
144
|
tool_calls: list[ToolCall] | None = None
|
|
141
145
|
provider_state: list[dict[str, Any]] | None = None
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.5
|
|
2
2
|
Name: verifiers
|
|
3
|
-
Version: 0.4.2.
|
|
3
|
+
Version: 0.4.2.dev81
|
|
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
|
|
@@ -6,20 +6,20 @@ verifiers/v1/env.py,sha256=UA1FdNd64XywIevJliNyL54afa2StN1ND6ro9HrjlVo,20566
|
|
|
6
6
|
verifiers/v1/episode.py,sha256=ExeTkNEBsDuG40m6VogV6Gd4IHdO4SMPIzQSpt_V96U,6984
|
|
7
7
|
verifiers/v1/errors.py,sha256=OieUBIOZ6FW7oKygbXIRoag6RrPxKYpMPfEYPcCnVVE,5863
|
|
8
8
|
verifiers/v1/grading.py,sha256=RV-j71EIeQNC1AeKIDQkS1Y_KTtjJg9x8zF7n2cWr_Y,10100
|
|
9
|
-
verifiers/v1/graph.py,sha256=
|
|
9
|
+
verifiers/v1/graph.py,sha256=a8P8s0fhWCHlre5_9PE4kMtjJT6udYIx5F3Lj7xudys,48476
|
|
10
10
|
verifiers/v1/harness.py,sha256=b4FDauO87VF6DfEyr0VgO8UvZB0weHZt9zPfgPiCe_c,17150
|
|
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
|
-
verifiers/v1/session.py,sha256=
|
|
14
|
+
verifiers/v1/session.py,sha256=zlDM_eM-_kgeF0jat6er0i-gP8EKiBK-19bEHgAIiwI,33974
|
|
15
15
|
verifiers/v1/state.py,sha256=EckF2bWp-vV4b1jYJ9sLI5xrfGuI5spIgYYwW926toI,595
|
|
16
16
|
verifiers/v1/submission.py,sha256=zgSRbGVz82Efwz4nX4tlJ-i02AmjtKyu_vHfwfLaByw,7989
|
|
17
17
|
verifiers/v1/task.py,sha256=zcWjBjhJrkGIL29JTnxxw6v2pbJoiek_tF5RVAVV2ZY,15919
|
|
18
18
|
verifiers/v1/taskset.py,sha256=PRwMfPtUL0Sg9pwKzJYnpLBDqJCmQ4skQPhF1oocyyw,9504
|
|
19
|
-
verifiers/v1/trace.py,sha256=
|
|
20
|
-
verifiers/v1/types.py,sha256=
|
|
21
|
-
verifiers/v1/acp/__init__.py,sha256=
|
|
22
|
-
verifiers/v1/acp/runner.py,sha256=
|
|
19
|
+
verifiers/v1/trace.py,sha256=sqVUmLvil6jHGyCvYSs8x_BmRkb6kYmD5iKZLMtoqiM,40438
|
|
20
|
+
verifiers/v1/types.py,sha256=PsYLhqy_19JZUT7uP9a8A2h-qKo7-9_KLQ_B0PqhkYg,13303
|
|
21
|
+
verifiers/v1/acp/__init__.py,sha256=590Ppv8KCCc3MB6yKJDHIAxx8UabwHy2D7LnJ_P5eo8,16912
|
|
22
|
+
verifiers/v1/acp/runner.py,sha256=jQeaUaF6PL_BzFQ4a28F-wKVgirXTSkPEfkAq8VzjlA,15792
|
|
23
23
|
verifiers/v1/cli/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
24
24
|
verifiers/v1/cli/debug.py,sha256=baX6LRtqBNjIbmHbdaogmz3FyyItN1Z4B-TVccuYI4k,11688
|
|
25
25
|
verifiers/v1/cli/output.py,sha256=vCscZ-g-sa-SLWDDQNoXBWelC_Je8lBdodvZGOe__eo,3285
|
|
@@ -54,7 +54,7 @@ verifiers/v1/configs/cli/env.py,sha256=ysTSo2UDZIXS08LUrch87XLHsdTQ-emXj6QWRsLs4
|
|
|
54
54
|
verifiers/v1/configs/cli/run.py,sha256=j6ccPxFPiWsmCAmbZcc_EtElNOMaKS9YiiSDMqudczw,3794
|
|
55
55
|
verifiers/v1/configs/cli/validate.py,sha256=j6qRi2EvacXTCARnVhkFRtX9xF3IP3eVVt-Zv2ER5Vw,4073
|
|
56
56
|
verifiers/v1/dialects/__init__.py,sha256=MNOYM2NdTlSxGK4VtoEjMtD5zya2MpjPDX5jMvZUWEo,736
|
|
57
|
-
verifiers/v1/dialects/anthropic.py,sha256=
|
|
57
|
+
verifiers/v1/dialects/anthropic.py,sha256=XBQrUyiOyY2tWKa5EGTOPksyyCHw3zrfQpandbCpToc,27625
|
|
58
58
|
verifiers/v1/dialects/base.py,sha256=klpNBA9_hpJdEAoQsJRpa5yUArkTIwmIbdyUe69Jj_o,17039
|
|
59
59
|
verifiers/v1/dialects/chat.py,sha256=ea_B3tEWgnYjGoyBJI-ysuRyEEMMcA1_H9M6nTf7jec,25082
|
|
60
60
|
verifiers/v1/dialects/responses.py,sha256=aoRe94g_Wa2BfHfEUdM8XVesn-RcwfXHoXl1lN4r-qE,31272
|
|
@@ -70,48 +70,48 @@ verifiers/v1/envs/single_agent/env.py,sha256=iH-AnS5-5rDZM3MaYFxzaHSVqJAaw9mQJaa
|
|
|
70
70
|
verifiers/v1/envs/user_sim/__init__.py,sha256=nnT695HdqjAEouYL5wtVu6MhIp2wf5yuK-EYgxOVx0s,118
|
|
71
71
|
verifiers/v1/envs/user_sim/env.py,sha256=deI4r-Utn_v4E_Vb9P_X3LzFh2GRkCO4OlQt8BOCMGY,4942
|
|
72
72
|
verifiers/v1/harnesses/__init__.py,sha256=SBNQmzQREsKG1ZLe1hAWdFWdXh11akXaF_9JbmJImg8,2203
|
|
73
|
-
verifiers/v1/harnesses/node.py,sha256=
|
|
73
|
+
verifiers/v1/harnesses/node.py,sha256=vX-KEjuWqMT1FhJDQ4tDGfBaq5qBlWtnnHWzjAzEaHY,5153
|
|
74
74
|
verifiers/v1/harnesses/bash/__init__.py,sha256=IAV4eMMqDHSl-9ANb0Q3kxmBZ22SeHZFBM448X4gQio,140
|
|
75
75
|
verifiers/v1/harnesses/bash/harness.py,sha256=0IzUqFvAaozmO_7qWpQM5CHQF8wLlGiyEsob_zhx2cU,5678
|
|
76
76
|
verifiers/v1/harnesses/browser_use/__init__.py,sha256=yxm2IG5TDLadxZEkX8SL26XWbcPcODXcrJfPfm1GqwU,171
|
|
77
77
|
verifiers/v1/harnesses/browser_use/harness.py,sha256=EwrM9G1stH9OArYdUoiLhyJBzw-_PugHwxiExCNUSrc,5644
|
|
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
|
-
verifiers/v1/harnesses/claude_code/harness.py,sha256=
|
|
80
|
+
verifiers/v1/harnesses/claude_code/harness.py,sha256=hcTQBiN1phRvJcYxPw19IL_u8N4UopRnZmK8mAM7SAI,5833
|
|
81
81
|
verifiers/v1/harnesses/codex/__init__.py,sha256=ocyBvlpSO8c3pT6D1ebrQohoXYESQcCyPT5kN3j1-N4,132
|
|
82
82
|
verifiers/v1/harnesses/codex/gate.mjs,sha256=tOpjjH2adnmAOYeF7tufpYPB6sBFrrcu3-IjD6K4LGE,1183
|
|
83
|
-
verifiers/v1/harnesses/codex/harness.py,sha256=
|
|
83
|
+
verifiers/v1/harnesses/codex/harness.py,sha256=sR-K5WFXQhOAczJ-aboiRh8pNzNnxdfcuO6xROZiF-8,9434
|
|
84
84
|
verifiers/v1/harnesses/deepseek/__init__.py,sha256=oKexAEE4D3tGRyYRluNZJPaFXc9pBme_cHp2_1I7g1o,160
|
|
85
85
|
verifiers/v1/harnesses/deepseek/gate.mjs,sha256=BxGyYQKOPnZRruI6C-okOeerpoNDGdfNKaMU61dYcY0,440
|
|
86
|
-
verifiers/v1/harnesses/deepseek/harness.py,sha256=
|
|
86
|
+
verifiers/v1/harnesses/deepseek/harness.py,sha256=pJfO3f6_ff_UA-nwIXEaD3ufuOdAMZE6fmNYoc9lFVc,5850
|
|
87
87
|
verifiers/v1/harnesses/deepseek/usage.mjs,sha256=nm6FU0wm25qti5gN2zDJZoDR7Vmug6z_UQFIdZux-qg,2649
|
|
88
88
|
verifiers/v1/harnesses/hermes_agent/__init__.py,sha256=k84Y8UTTf1KOw5LGqPb2dk-hYFagPevDJBOF7qsR_vo,176
|
|
89
|
-
verifiers/v1/harnesses/hermes_agent/harness.py,sha256=
|
|
89
|
+
verifiers/v1/harnesses/hermes_agent/harness.py,sha256=62Uh8FPX-Hk_g6ZZjrUE_l6FX_Fy8frc1m2m5waj2hM,6626
|
|
90
90
|
verifiers/v1/harnesses/hermes_agent/program.py,sha256=wqU6U4UR8Eo_xjNKLPx0L2Hnx5-b1LT0ulvEFRHDUEI,573
|
|
91
91
|
verifiers/v1/harnesses/kimi_code/__init__.py,sha256=1BEotSfuzmVcE7UrxHeAREM5d7J20cGkonHuowlrzu4,161
|
|
92
|
-
verifiers/v1/harnesses/kimi_code/harness.py,sha256=
|
|
92
|
+
verifiers/v1/harnesses/kimi_code/harness.py,sha256=4qUc7N7jnQOklMSOujT6tpsRN1AHVnPQ76CG8BzlT1I,5734
|
|
93
93
|
verifiers/v1/harnesses/mini_swe_agent/__init__.py,sha256=1OBu2Y-XqL72-dGhFdgB6sr5uX_peEEXT9vEjPy1ovU,182
|
|
94
94
|
verifiers/v1/harnesses/mini_swe_agent/harness.py,sha256=qtd-PooeuFSmCB4funsIoR3cbswO2i_-qtm8GDkpex4,2821
|
|
95
|
-
verifiers/v1/harnesses/mini_swe_agent/program.py,sha256=
|
|
95
|
+
verifiers/v1/harnesses/mini_swe_agent/program.py,sha256=ZDG_EAHKIEK_kRGIMyHBiSkREi9ErxT0qtGur0_wp6k,530
|
|
96
96
|
verifiers/v1/harnesses/null/__init__.py,sha256=XDeKOPeoXUQi9US9_Z3_yH9YaZ4EiOMKJmUtNNdtD7s,127
|
|
97
97
|
verifiers/v1/harnesses/null/harness.py,sha256=11Y7wzED9bUpz7U7NXjwBouw1IL3IU0IJWLwNKCbovQ,2027
|
|
98
98
|
verifiers/v1/harnesses/openclaw/__init__.py,sha256=kNyfPB1sGwEf4K3mTfKN0VEyxun3SGvNpvArVKvH-x8,160
|
|
99
|
-
verifiers/v1/harnesses/openclaw/harness.py,sha256=
|
|
99
|
+
verifiers/v1/harnesses/openclaw/harness.py,sha256=Wz77XcnMKZo6u5IVbsZQzdTzh7f2rqjONq7_2m_ml88,11529
|
|
100
100
|
verifiers/v1/harnesses/opencode/__init__.py,sha256=NCMOVrleIgx5mt-d9hvTZNPhUjz0MQxPlMHOwiu39N4,160
|
|
101
|
-
verifiers/v1/harnesses/opencode/harness.py,sha256=
|
|
101
|
+
verifiers/v1/harnesses/opencode/harness.py,sha256=7nojW6Yoc2Dh_J6rX5v7MNmrLPXdMiZR1zn-zfk6Khk,5598
|
|
102
102
|
verifiers/v1/harnesses/opencode/mcp-ready.js,sha256=QpAJcego5pNOZJu1dfpRLd873xitYGYwE9qwmgmvMvI,1904
|
|
103
103
|
verifiers/v1/harnesses/pi/__init__.py,sha256=1mSnzOf-RdEchdeg6IHtcdobG5KIpAhuTdUIgsCIn74,117
|
|
104
104
|
verifiers/v1/harnesses/pi/gate.mjs,sha256=vk_OqHXhRdYzQL7YMX8Teajm0fh9tokzDvLHVOd2I9o,449
|
|
105
|
-
verifiers/v1/harnesses/pi/harness.py,sha256
|
|
105
|
+
verifiers/v1/harnesses/pi/harness.py,sha256=tMEQTCp366ZVXVSLHmTZ_etWBgLexxmsV6jQ0miSfWs,8052
|
|
106
106
|
verifiers/v1/harnesses/prime_agent/__init__.py,sha256=xfPC4RrlnyYWaf38tPAOZq4YL6M55lMpj5BoRLmaK8I,171
|
|
107
|
-
verifiers/v1/harnesses/prime_agent/harness.py,sha256=
|
|
107
|
+
verifiers/v1/harnesses/prime_agent/harness.py,sha256=D75GCL3MlavLlSKmpBdqKCDldLhz-ozqKnaxLVmjgV8,13453
|
|
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=JxXBoHV35V2ytW8Qym55mKUwKuRBbhLC1s5pPmanj1E,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
|
-
verifiers/v1/harnesses/stirrup/program.py,sha256=
|
|
112
|
+
verifiers/v1/harnesses/stirrup/program.py,sha256=0xj35Teph6BW_4ydW921J18MPCBRXNfI62J21nh0dFw,15148
|
|
113
113
|
verifiers/v1/harnesses/terminus_2/__init__.py,sha256=l1pwfg1HyVDEqT9efdnFWcXqaZwtKwe7TrplkyxZSA0,166
|
|
114
|
-
verifiers/v1/harnesses/terminus_2/harness.py,sha256=
|
|
114
|
+
verifiers/v1/harnesses/terminus_2/harness.py,sha256=kE_9MnWIEWGNPJkAv4sh7UQKjH8QjTv_F8b7ImP2EoE,3598
|
|
115
115
|
verifiers/v1/harnesses/terminus_2/program.py,sha256=V63SGuAu_H1LdfrjKj3gM4htjg-H3IjWJ4YFEZPkZK4,3023
|
|
116
116
|
verifiers/v1/harnesses/utils/__init__.py,sha256=eTS-Ft2HwoLiYn5u1t_KueLmaZB_W12cdYmcVsE-G5A,364
|
|
117
117
|
verifiers/v1/harnesses/utils/compaction.py,sha256=DeY6CYLEsv7-vJm26sT2mRaPHu3W2ywiZhvFr_pi6Hg,10495
|
|
@@ -119,11 +119,11 @@ verifiers/v1/harnesses/utils/core.py,sha256=RBLi3R5yGrIt2YixvPrWlCbR5l4KmKLvSMU3
|
|
|
119
119
|
verifiers/v1/harnesses/utils/install.py,sha256=EESYSh_e9L4gj6N4GvAbQY2kb4ckven7tmtlQEErPiQ,3563
|
|
120
120
|
verifiers/v1/harnesses/utils/launch.py,sha256=2KuLnNruUqH6vcW2Ru661P86ffRzaqslNs-kDMn7B6U,5670
|
|
121
121
|
verifiers/v1/harnesses/utils/mcp.py,sha256=EtDraHEqgsOB6xKvcF2z9C6HlQyKoST0ZDvmy47NWgM,7450
|
|
122
|
-
verifiers/v1/harnesses/utils/replay.py,sha256=
|
|
122
|
+
verifiers/v1/harnesses/utils/replay.py,sha256=m2EXxd24aH3Y5DAi9tEV1teREXGcPHsXhptlcDGkSsw,2473
|
|
123
123
|
verifiers/v1/interception/__init__.py,sha256=jQ9ZbUr4Nx9JFhdcx0rNcR_jkMFcdzBrTpeSFK84YF0,4020
|
|
124
124
|
verifiers/v1/interception/base.py,sha256=KlXpWgcpAs_vzJxXRTVArZ9ilSV_vNfsX6vlZ35Y7kc,2249
|
|
125
125
|
verifiers/v1/interception/pool.py,sha256=Ao3iFTOcPZDfTfPH_sApVzA23u-FIaX6-FPIKOWo3c8,6701
|
|
126
|
-
verifiers/v1/interception/server.py,sha256=
|
|
126
|
+
verifiers/v1/interception/server.py,sha256=bMNZnz2330AmWw0lrhBlgMLWWU-DcbWUueNlS3WzqMc,54099
|
|
127
127
|
verifiers/v1/interception/tunnel/__init__.py,sha256=4ZqR9F7cmLUg17qvk4sXtLpWAN4epdiMgA2l9jetMbU,721
|
|
128
128
|
verifiers/v1/interception/tunnel/base.py,sha256=UrHXwbpB_qdh4WHWZHpi2D-wEHcHgg06_0U66XFqm3M,2370
|
|
129
129
|
verifiers/v1/interception/tunnel/custom.py,sha256=SJ3F592zwmrLKrbNktWgkB_84Xfozf6tUWoGmWCitLk,817
|
|
@@ -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.dev81.dist-info/METADATA,sha256=1MfNmZYYj2ZNg8bVY5tvNrxL0JRdVp46XyELHgNkv_g,5116
|
|
192
|
+
verifiers-0.4.2.dev81.dist-info/WHEEL,sha256=2iZrJkDIkeDh0k9SikKMqFuRP-ua6mb4Ir1AsER4BEw,87
|
|
193
|
+
verifiers-0.4.2.dev81.dist-info/entry_points.txt,sha256=qdMg7ajiFpDsHf7tuPMRclJXizu1J6LTWawS5YS0B0I,137
|
|
194
|
+
verifiers-0.4.2.dev81.dist-info/licenses/LICENSE,sha256=v0RrUsdV3IDoZhrRce297IXS3xMHNJ-_LdLpFAUWb9k,1072
|
|
195
|
+
verifiers-0.4.2.dev81.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|
|
File without changes
|