roller-agent 0.2.0__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.
Files changed (92) hide show
  1. roller/__init__.py +31 -0
  2. roller/__main__.py +6 -0
  3. roller/actf.py +431 -0
  4. roller/artifacts.py +124 -0
  5. roller/assets/deepseek/journal.mjs +44 -0
  6. roller/assets/deepseek/roller.patch.yml +15 -0
  7. roller/assets/deepseek/runner.py +149 -0
  8. roller/assets/hermes/runner.py +322 -0
  9. roller/assets/openclaw_capture.py +32 -0
  10. roller/assets/openclaw_drain.mjs +21 -0
  11. roller/assets/opencode/journal.mjs +42 -0
  12. roller/assets/opencode/runner.py +203 -0
  13. roller/assets/pi/runner.mjs +160 -0
  14. roller/assets/pi/runner.py +93 -0
  15. roller/benches/__init__.py +73 -0
  16. roller/benches/base.py +306 -0
  17. roller/benches/grading.py +553 -0
  18. roller/benches/pinchbench.py +976 -0
  19. roller/benches/qwenclaw/__init__.py +49 -0
  20. roller/benches/qwenclaw/adapter.py +167 -0
  21. roller/benches/qwenclaw/grader_runtime.py +395 -0
  22. roller/benches/qwenclaw/report.py +49 -0
  23. roller/benches/qwenclaw/task_parser.py +181 -0
  24. roller/benches/qwenclaw/workspace.py +202 -0
  25. roller/benches/report.py +166 -0
  26. roller/benches/skillsbench.py +708 -0
  27. roller/benches/transcripts.py +102 -0
  28. roller/benches/wildclaw.py +569 -0
  29. roller/bridge_capture.py +73 -0
  30. roller/bundles.py +545 -0
  31. roller/capture.py +385 -0
  32. roller/capture_protocol.py +301 -0
  33. roller/capture_runtime.py +48 -0
  34. roller/capture_states.py +37 -0
  35. roller/claude_capture.py +185 -0
  36. roller/claude_code_actf.py +594 -0
  37. roller/cli.py +1732 -0
  38. roller/codex_actf.py +584 -0
  39. roller/codex_capture.py +99 -0
  40. roller/codex_tools.py +137 -0
  41. roller/collector.py +818 -0
  42. roller/compaction_sft.py +672 -0
  43. roller/conversation.py +432 -0
  44. roller/deepseek_actf.py +135 -0
  45. roller/harness_registry.py +61 -0
  46. roller/harnesses/__init__.py +29 -0
  47. roller/harnesses/base.py +64 -0
  48. roller/harnesses/bridge.py +448 -0
  49. roller/harnesses/claude_code.py +839 -0
  50. roller/harnesses/codex.py +808 -0
  51. roller/harnesses/config_overrides.py +100 -0
  52. roller/harnesses/container.py +206 -0
  53. roller/harnesses/deepseek.py +104 -0
  54. roller/harnesses/docker.py +72 -0
  55. roller/harnesses/gateway_ports.py +155 -0
  56. roller/harnesses/hermes.py +119 -0
  57. roller/harnesses/openclaw.py +1605 -0
  58. roller/harnesses/opencode.py +193 -0
  59. roller/harnesses/pi.py +111 -0
  60. roller/hermes_actf.py +147 -0
  61. roller/image_build.py +206 -0
  62. roller/integrity.py +332 -0
  63. roller/model_protocols.py +201 -0
  64. roller/models.py +169 -0
  65. roller/openclaw_capture.py +140 -0
  66. roller/openclaw_delivery.py +211 -0
  67. roller/openclaw_usage.py +59 -0
  68. roller/opencode_actf.py +305 -0
  69. roller/opencode_capture.py +96 -0
  70. roller/pi_actf.py +172 -0
  71. roller/response_metadata.py +89 -0
  72. roller/run_lock.py +297 -0
  73. roller/sft.py +471 -0
  74. roller/storage.py +53 -0
  75. roller/tasks.py +689 -0
  76. roller/thinking.py +50 -0
  77. roller/thinking_capabilities.py +152 -0
  78. roller/trajectory_audit.py +386 -0
  79. roller/usage.py +168 -0
  80. roller/version.py +1 -0
  81. roller/viewer/__init__.py +3 -0
  82. roller/viewer/app.py +722 -0
  83. roller/viewer/static/app.js +752 -0
  84. roller/viewer/static/index.html +105 -0
  85. roller/viewer/static/style.css +213 -0
  86. roller/wire_trace.py +650 -0
  87. roller_agent-0.2.0.dist-info/METADATA +397 -0
  88. roller_agent-0.2.0.dist-info/RECORD +92 -0
  89. roller_agent-0.2.0.dist-info/WHEEL +5 -0
  90. roller_agent-0.2.0.dist-info/entry_points.txt +2 -0
  91. roller_agent-0.2.0.dist-info/licenses/LICENSE +201 -0
  92. roller_agent-0.2.0.dist-info/top_level.txt +1 -0
@@ -0,0 +1,397 @@
1
+ Metadata-Version: 2.4
2
+ Name: roller-agent
3
+ Version: 0.2.0
4
+ Summary: Batch collection of agentic trajectories across models and harnesses
5
+ Author: Roller contributors
6
+ License: Apache-2.0
7
+ Project-URL: Homepage, https://github.com/Valen-Team/Roller
8
+ Project-URL: Documentation, https://github.com/Valen-Team/Roller/blob/main/docs/en/index.md
9
+ Project-URL: Issues, https://github.com/Valen-Team/Roller/issues
10
+ Keywords: agents,agent-trajectories,docker,evaluation,sft
11
+ Classifier: Development Status :: 3 - Alpha
12
+ Classifier: License :: OSI Approved :: Apache Software License
13
+ Classifier: Programming Language :: Python :: 3
14
+ Classifier: Programming Language :: Python :: 3.10
15
+ Classifier: Programming Language :: Python :: 3.11
16
+ Classifier: Programming Language :: Python :: 3.12
17
+ Requires-Python: >=3.10
18
+ Description-Content-Type: text/markdown
19
+ License-File: LICENSE
20
+ Requires-Dist: PyYAML<7,>=6.0
21
+ Provides-Extra: test
22
+ Requires-Dist: pytest; extra == "test"
23
+ Requires-Dist: tomli; python_version < "3.11" and extra == "test"
24
+ Dynamic: license-file
25
+
26
+ <p align="center">
27
+ <picture>
28
+ <source media="(prefers-color-scheme: dark)" srcset="assets/roller-logo-dark.png">
29
+ <img src="assets/roller-logo.png" alt="Roller" width="120">
30
+ </picture>
31
+ </p>
32
+ <h1 align="center">Roller</h1>
33
+ <p align="center"><strong>Agent trajectory collection across models and Harnesses</strong></p>
34
+ <p align="center">Roller runs tool-using agents in disposable Docker containers and stores, for every task and model combination, the native session, a unified trace, SFT training data and the generated files.</p>
35
+
36
+ <p align="center">
37
+ <a href="#harnesses"><img src="https://img.shields.io/badge/Harnesses-7-00866F?style=flat&amp;labelColor=4B5563" alt="7 Harnesses"></a>
38
+ <a href="#benchmarks"><img src="https://img.shields.io/badge/Benchmarks-4-00866F?style=flat&amp;labelColor=4B5563" alt="4 benchmark adapters"></a>
39
+ <a href="LICENSE"><img src="https://img.shields.io/badge/License-Apache_2.0-6B7280?style=flat&amp;labelColor=4B5563" alt="License: Apache 2.0"></a>
40
+ <a href="pyproject.toml"><img src="https://img.shields.io/badge/Python-3.10%2B-6B7280?style=flat&amp;logo=python&amp;logoColor=FFD43B&amp;labelColor=4B5563" alt="Python 3.10+"></a>
41
+ </p>
42
+
43
+ <p align="center">
44
+ <strong>English</strong> · <a href="README_zh-CN.md">简体中文</a><br>
45
+ <a href="docs/en/index.md">Documentation</a> · <a href="docs/en/start/getting-started.md">Getting started</a> · <a href="docs/en/start/cli-reference.md">CLI reference</a> · <a href="examples/README.md">Examples</a>
46
+ </p>
47
+
48
+ <p align="center">
49
+ <a href="#news">News</a> · <a href="#architecture">Architecture</a> · <a href="#highlights">Features</a> · <a href="#quick-start">Quick start</a> · <a href="#harnesses">Harnesses</a> · <a href="#outputs">Outputs</a> · <a href="#benchmarks">Benchmarks</a> · <a href="#documentation">Docs</a> · <a href="#contributing">Contributing</a>
50
+ </p>
51
+
52
+ <a id="introduction"></a>
53
+
54
+ ## Introduction
55
+
56
+ Roller is infrastructure for agent runtimes that provides agent rollout and evaluation services. Users supply tasks and custom environments; Roller runs the agent in an isolated Docker container, collects the complete agent trajectory and evaluates the task result. Roller currently supports seven mainstream Harnesses, including OpenClaw, Codex and Claude Code, and four benchmarks, including WildClawBench and SkillsBench.
57
+
58
+ Roller provides the following capabilities:
59
+
60
+ - **Benchmark integration.** One command converts benchmark tasks into Roller tasks, collects the trajectories and grades each sample in the container where it ran.
61
+ - **Batch collection.** Rollouts run in parallel across tasks and models, with retries for failed attempts and Resume for interrupted runs.
62
+ - **SFT data export.** Each successful rollout yields a `messages` + `tools` training record; rollouts with compacted context are exported as separate segment records.
63
+ - **Multi-turn conversations and User Simulator.** User turns are predefined in the task or generated by a second model that acts as the user.
64
+ - **Viewer.** A built-in read-only web interface for browsing tasks, comparing models and inspecting each step.
65
+
66
+ <p align="center">
67
+ <a href="assets/demo/viewer-trajectory.gif"><img src="assets/demo/viewer-trajectory.gif" alt="Step-by-step inspection of one rollout in Roller Viewer: task search, model selection, and the reasoning, tool calls and tool results of all six steps" width="32%"></a>
68
+ <a href="assets/demo/viewer-models.gif"><img src="assets/demo/viewer-models.gif" alt="One task compared across four models in Roller Viewer, with 3, 13, 27 and 53 steps" width="32%"></a>
69
+ <a href="assets/demo/viewer.png"><img src="assets/demo/viewer.png" alt="Roller Viewer with the four rollouts of one task on the left, step 3 expanded in the middle, and the Inspector on the right" width="32%"></a>
70
+ </p>
71
+ <p align="center"><sub>Recordings of the built-in Viewer. Left: step-by-step inspection of the reasoning, tool calls and tool results of one rollout. Middle: one task compared across four models. Right: the complete Viewer layout. Select an image to view it at full size.</sub></p>
72
+
73
+ <a id="news"></a>
74
+
75
+ ## News
76
+
77
+ - **2026-11-11**: SFT export for compacted context. When the Task Agent compacts its context, each verified context window is exported as a separate SFT record under `sft_segments/`.
78
+ - **2026-11-08**: QwenClawBench adapter: 100 tasks in 8 domains, with automated grading, hybrid grading and repeated runs per task.
79
+ - **2026-11-05**: One-command evaluation for SkillsBench and PinchBench. SFT records support images.
80
+ - **2026-11-01**: Hermes, OpenCode, DeepSeek Harness and Pi Agent added, for a total of seven Harnesses.
81
+
82
+ <a id="architecture"></a>
83
+
84
+ ## Architecture
85
+
86
+ Roller runs as a single host process. The Collector schedules rollouts in parallel and starts one Docker container per rollout. Inside the container, the Harness runtime executes the agent loop in a workspace that contains the declared inputs and Context. Depending on the Harness and the `--wire-trace` setting, model requests either pass through Roller's request proxy, which records them before forwarding, or go directly to the model API. After the last turn, Roller collects the native session and the output directory, and the trace converters write the sample to the run directory.
87
+
88
+ <p align="center">
89
+ <a href="assets/diagrams/architecture-en-light.png"><picture>
90
+ <source media="(prefers-color-scheme: dark)" srcset="assets/diagrams/architecture-en-dark.png">
91
+ <img src="assets/diagrams/architecture-en-light.png" alt="Roller architecture: the host process loads and snapshots tasks, the Collector starts one Docker container per rollout, model calls pass through the request proxy, and the trace converters write samples to the run directory" width="100%">
92
+ </picture></a>
93
+ </p>
94
+ <p align="center"><sub>Green arrows: model calls. Dashed elements: optional components and conditional paths.</sub></p>
95
+
96
+ Each rollout follows the lifecycle below. The Collector first checks whether a valid sample already exists. Otherwise it starts the container, and the Harness executes the turns. With a User Simulator, each Task Agent reply is passed to the Simulator, which returns the next user message or ends the conversation. For bench runs, the grader runs before teardown. After teardown, Roller converts the native session to the normalized trace; the Collector then either retries a failed attempt (up to `--retries` times) or finalizes the sample.
97
+
98
+ <p align="center">
99
+ <a href="assets/diagrams/lifecycle-en-light.png"><picture>
100
+ <source media="(prefers-color-scheme: dark)" srcset="assets/diagrams/lifecycle-en-dark.png">
101
+ <img src="assets/diagrams/lifecycle-en-light.png" alt="Lifecycle of one rollout: Resume check, container start, turns with model calls and an optional User Simulator, optional bench grading, teardown, trace conversion, and retry or finalization" width="100%">
102
+ </picture></a>
103
+ </p>
104
+
105
+ <a id="highlights"></a>
106
+
107
+ ## Features
108
+
109
+ - **Unified Harness interface.** OpenClaw, Codex, Claude Code, Hermes, OpenCode, DeepSeek Harness and Pi Agent read the same task format and are selected with `--harness`. Samples from every Harness use the same directory layout and the same normalized trace structure.
110
+ - **Step-level traces.** Each step in the normalized trace records the visible reasoning, tool calls, tool results, token counts and timing. With `--wire-trace full`, Roller also stores every request body that its proxy forwards to the model API.
111
+ - **Evaluation in the task container.** `roller collect --bench` exports the benchmark tasks, runs them and executes each grader in the container where the task ran, before teardown. Grading failures are recorded separately from zero scores, and `bench-report.json` aggregates the results.
112
+ - **Reproducible batch collection.** Roller snapshots and hashes all inputs before a container starts, and `lock.json` records the settings that determine sample content. `--resume` skips completed samples and reruns the remaining ones; if a recorded setting has changed, it reports the difference and exits. `--retries N` allows up to N additional attempts for each failed rollout.
113
+ - **Training data with images and compaction segments.** SFT records include an `images` field when the trace contains images. When the Task Agent compacts its context, each verified context window is exported to `sft_segments/` with a `target_start_index` that marks the supervised messages.
114
+ - **Dynamic conversations.** The User Simulator runs in its own Harness, reads the conversation so far and either sends the next user message or ends the task. It can use a different Harness and model from the Task Agent.
115
+ - **Local Viewer.** `roller view` reads an existing run directory without modifying it, requires no additional dependencies and listens on `127.0.0.1` by default.
116
+
117
+ <a id="quick-start"></a>
118
+
119
+ ## Quick start
120
+
121
+ The following procedure collects a first batch of trajectories with OpenClaw, the default Harness.
122
+
123
+ ### 1. Installation
124
+
125
+ Requirements: Python 3.10 or later and a running Docker daemon.
126
+
127
+ ```bash
128
+ git clone https://github.com/Valen-Team/Roller.git
129
+ cd Roller
130
+ conda create -n roller python=3.11 -y
131
+ conda activate roller
132
+ python -m pip install -e .
133
+
134
+ docker pull ghcr.io/openclaw/openclaw:2026.7.1-2
135
+ ```
136
+
137
+ With Docker Desktop on macOS, enable **Enable host networking** under **Settings → Resources → Network** and restart Docker Desktop. To install the image offline from a `docker save` archive, run `docker load -i <archive>` instead of `docker pull`.
138
+
139
+ ### 2. Model configuration
140
+
141
+ Copy the environment template, set `MY_PROXY_BASE_URL` and `MY_PROXY_API_KEY`, and export the variables to the current shell. `examples/env/api.env` is excluded by `.gitignore`.
142
+
143
+ ```bash
144
+ cp examples/env/api.env.example examples/env/api.env
145
+ # Edit examples/env/api.env, then export its variables:
146
+ set -a; source examples/env/api.env; set +a
147
+ ```
148
+
149
+ In [`examples/config/openclaw/models.json`](examples/config/openclaw/models.json), set the model `id` to the model name used by the service. Commands reference a model as `<provider>/<id>`, where `<provider>` is the key under `providers`. With the example file, the model reference is `my-openai-proxy/my-model`. For services that support only `/chat/completions`, change `api` from `openai-responses` to `openai-completions`. Store API keys only in environment variables; do not include them in tasks, commands or version-controlled files.
150
+
151
+ ### 3. Dry run and collection
152
+
153
+ ```bash
154
+ roller collect \
155
+ --tasks examples/tasks/tasks.jsonl \
156
+ --model my-openai-proxy/my-model \
157
+ --model-config examples/config/openclaw/models.json \
158
+ --parallel 4 \
159
+ --dry-run
160
+ ```
161
+
162
+ A dry run parses the tasks, validates the input files and prints the planned rollouts. It does not start containers or call the model API, so it does not detect a missing image or an invalid API key. After verifying the plan, remove `--dry-run`, set a run name and enable one retry per failed rollout:
163
+
164
+ ```bash
165
+ roller collect \
166
+ --tasks examples/tasks/tasks.jsonl \
167
+ --model my-openai-proxy/my-model \
168
+ --model-config examples/config/openclaw/models.json \
169
+ --parallel 4 --retries 1 --timeout 600 \
170
+ --output runs --run-name quickstart
171
+ ```
172
+
173
+ To compare models, repeat `--model`; each task then runs once per model. To continue an interrupted run, rerun the same command with `--resume`. If a setting recorded in `lock.json` has changed, use a new `--run-name`.
174
+
175
+ ### 4. Viewer
176
+
177
+ ```bash
178
+ roller view runs/quickstart
179
+ ```
180
+
181
+ Open the URL printed in the terminal (default `http://127.0.0.1:17865`). The Viewer shows the messages, reasoning, tool calls, tool results and final reply of each task.
182
+
183
+ [Getting started guide →](docs/en/start/getting-started.md)
184
+
185
+ <a id="harnesses"></a>
186
+
187
+ ## Harnesses
188
+
189
+ A Harness is the agent runtime inside the container. It starts the agent, provides its tools and calls the model API. Specify the Harness for all tasks with `--harness`, or for an individual task with the `harness` field.
190
+
191
+ | Harness | Model API | Description |
192
+ | --- | --- | --- |
193
+ | OpenClaw (default) | OpenAI Responses or Chat Completions | Custom and open models; multimodal input |
194
+ | Codex | Responses | Codex CLI with GPT or Responses-compatible services |
195
+ | Claude Code | Anthropic `/v1/messages` | Claude Code with native thinking |
196
+ | Hermes | OpenAI Chat Completions | Hermes Agent with terminal and file tools |
197
+ | OpenCode | OpenAI Chat Completions | OpenCode CLI sessions with text and file tools |
198
+ | DeepSeek Harness | DeepSeek Chat Completions | Official SDK with a single persistent Bash tool |
199
+ | Pi Agent | OpenAI Chat Completions | Pi SDK with seven tools: `read`, `bash`, `edit`, `write`, `grep`, `find`, `ls` |
200
+
201
+ OpenClaw reads model definitions from `--model-config`. The other six Harnesses use `--api-base` and `--api-key-env`. In runs that combine several Harnesses, each Harness takes its own prefixed pair, for example `--hermes-api-base` and `--hermes-api-key-env`.
202
+
203
+ Every Harness can serve as the Task Agent or the User Simulator. Docker images, API settings and reasoning options differ per Harness and are described in the Harness guides: [OpenClaw](docs/en/harnesses/openclaw-configuration.md) · [Codex](docs/en/harnesses/codex-configuration.md) · [Claude Code](docs/en/harnesses/claude-code-configuration.md) · [Hermes](docs/en/harnesses/hermes-configuration.md) · [OpenCode](docs/en/harnesses/opencode-configuration.md) · [DeepSeek](docs/en/harnesses/deepseek-configuration.md) · [Pi Agent](docs/en/harnesses/pi-configuration.md).
204
+
205
+ <a id="outputs"></a>
206
+
207
+ ## Outputs
208
+
209
+ Each run is stored in one directory. Run-level files are at the top level, and each sample has its own directory under `samples/`:
210
+
211
+ ```text
212
+ runs/quickstart/
213
+ ├── info.json settings, progress and total usage
214
+ ├── lock.json settings compared by --resume
215
+ ├── sft.jsonl SFT records of successful, uncompacted samples
216
+ └── samples/<model>/<index>_<task>/
217
+ ├── trace.jsonl Harness-native session
218
+ ├── trace_ACTF.json unified trace: reasoning, tool calls, results, tokens, timing
219
+ ├── trace_SFT.json SFT record of this sample
220
+ ├── info.json status, attempts, usage, versions and input digests
221
+ └── results/ files written to the task's output directory
222
+ ```
223
+
224
+ Use `sft.jsonl` for training and `trace_ACTF.json` for analysis. `trace.jsonl` retains the Harness-native events for debugging and re-conversion and is not cleaned for training.
225
+
226
+ The following figure shows how each file is produced. Dashed paths are enabled by the flag shown on the arrow.
227
+
228
+ <p align="center">
229
+ <a href="assets/diagrams/pipeline-en-light.png"><picture>
230
+ <source media="(prefers-color-scheme: dark)" srcset="assets/diagrams/pipeline-en-dark.png">
231
+ <img src="assets/diagrams/pipeline-en-light.png" alt="Trace data pipeline: the Harness session is copied to trace.jsonl and converted to trace_ACTF.json, which yields trace_SFT.json and sft.jsonl; --capture-calls enables compaction segments and --wire-trace full keeps request bodies in wire_trace.jsonl" width="100%">
232
+ </picture></a>
233
+ </p>
234
+
235
+ The following files are produced only under specific conditions:
236
+
237
+ - `sft_segments/`: written when the Task Agent compacts its context. The rollout is then excluded from `sft.jsonl`, and each verified context window is exported as a separate record. Segment records are listed in the sample's `info.json` and aggregated in the run-level `sft_segments.jsonl`. `target_start_index` identifies the first supervised assistant message; training loaders must mask all preceding messages.
238
+ - `wire_trace.jsonl`: written with `--wire-trace full`. It contains every request body that Roller's proxy forwarded to the model API. Its content can differ from the native session when a Harness compacts, truncates or rewrites context.
239
+ - `conversation.json`: written for User Simulator tasks. It contains the dialogue visible to both participants.
240
+
241
+ The [trajectory output guide](docs/en/traces/trajectory-outputs.md) specifies when each file is written or omitted.
242
+
243
+ ### Reasoning
244
+
245
+ `--keep-thinking` is enabled by default and stores the visible reasoning returned by the model service. `--thinking` sets the requested reasoning level. The stored content depends on the model family:
246
+
247
+ | Model family | Stored reasoning |
248
+ | --- | --- |
249
+ | GPT reasoning models | Visible summary or content returned by the service |
250
+ | Claude | Visible thinking or summary returned by the service |
251
+ | Open models such as Qwen and GLM | Plain-text reasoning returned by the service |
252
+
253
+ When a service returns only reasoning token counts or encrypted state, `reasoning_content` is empty. `reasoning_content` contains only reasoning text returned by the service; tool arguments remain in `tool_calls`. The reasoning levels available for each OpenClaw model are listed in [Thinking configuration](docs/en/harnesses/openclaw-configuration.md#6-thinking-configuration).
254
+
255
+ <a id="tasks"></a>
256
+
257
+ ## Tasks
258
+
259
+ A task is a JSON object. A minimal task contains a schema version, an ID and a prompt:
260
+
261
+ ```json
262
+ {"schema_version":"roller.task/v1","id":"hello","prompt":"Compute 2+3. Reply with the number only."}
263
+ ```
264
+
265
+ A task list can be a `.jsonl` file, a JSON array or an object of the form `{"tasks": [...]}`. Optional fields define files, Context, conversation turns and runtime settings:
266
+
267
+ | Field | Purpose |
268
+ | --- | --- |
269
+ | `messages` | Predefined user turns for a multi-turn conversation |
270
+ | `file_root`, `files.inputs` | Local files copied into the workspace |
271
+ | `files.context` | Context files such as `AGENTS.md`, `USER.md`, `MEMORY.md` and skills, which the Harness places where the agent discovers them automatically |
272
+ | `files.output_dir` | Output directory of the agent; Roller collects its full contents |
273
+ | `runtime` | Environment variables, setup commands and task-level thinking |
274
+ | `harness` | Harness for this task (also `agent_harness` or `task_agent.harness`); overridden by `--harness` |
275
+ | `user_simulator` | Harness and model that act as the user and generate user turns |
276
+
277
+ `messages` and `user_simulator` are mutually exclusive. All fields are specified in the [task format reference](docs/en/tasks/task-format.md); dynamic conversations are described in the [User Simulator guide](docs/en/tasks/user-simulator.md).
278
+
279
+ <a id="benchmarks"></a>
280
+
281
+ ## Benchmarks
282
+
283
+ Bench adapters convert benchmark tasks into Roller tasks and grade each sample in the container where it ran.
284
+
285
+ | Bench | Default Harness | Scope |
286
+ | --- | --- | --- |
287
+ | [WildClawBench](docs/en/benches/wildclawbench.md) | `openclaw` | 60 real-scenario tasks in 6 categories |
288
+ | [SkillsBench](docs/en/benches/skillsbench.md) | `opencode` | One built environment per task; with-skill and no-skill runs scored by official verifiers |
289
+ | [PinchBench](docs/en/benches/pinchbench.md) | `openclaw` | Automated, LLM-judge, hybrid and multi-session tasks |
290
+ | [QwenClawBench](docs/en/benches/qwenclawbench.md) | `openclaw` | 100 tasks in 8 domains, with repeated runs per task |
291
+
292
+ The following example runs WildClawBench. With the upstream repository checked out and its `.env` loaded, one command converts the tasks, collects trajectories, grades every sample and writes `tasks.jsonl` and `bench-report.json` to the run directory:
293
+
294
+ ```bash
295
+ roller collect --bench wildclawbench --bench-root ~/WildClawBench \
296
+ --model <provider>/<model> --model-config <models.json> \
297
+ --harness openclaw --openclaw-image wildclawbench-ubuntu:v1.3 \
298
+ --parallel 4 --output runs --run-name wildclaw
299
+ ```
300
+
301
+ Each bench guide lists the settings that must match the upstream configuration and the environment variables required by its graders. Scores are directly comparable only when these settings match upstream. To add a bench, see [Bench integration and scoring](docs/en/benches/bench-format.md#6-adding-a-new-bench).
302
+
303
+ <a id="documentation"></a>
304
+
305
+ ## Documentation
306
+
307
+ New users should start with [Getting started](docs/en/start/getting-started.md) and refer to [Task format](docs/en/tasks/task-format.md) when writing tasks. The complete handbook is in [`docs/en`](docs/en/index.md). To build it as a website, run `python -m pip install -r docs/requirements-docs.txt` followed by `cd docs && make html`.
308
+
309
+ | Guide | Contents |
310
+ | --- | --- |
311
+ | [Introduction](docs/en/start/introduction.md) | Core concepts: task, Harness, rollout, run and trace |
312
+ | [Getting started](docs/en/start/getting-started.md) | Installation, dry run, first collection and result verification |
313
+ | [CLI reference](docs/en/start/cli-reference.md) | All flags, their defaults and the Harnesses they apply to |
314
+ | [Docker builds and package mirrors](docs/en/start/docker-builds.md) | apt, npm and Python mirrors and proxies for image builds |
315
+ | [Task format](docs/en/tasks/task-format.md) | Prompts, multi-turn messages, inputs, Context and output directories |
316
+ | [Files, Task Bundles and result storage](docs/en/tasks/task-bundle-and-storage.md) | Input snapshots, run layout, retries and Resume |
317
+ | [User Simulator](docs/en/tasks/user-simulator.md) | Dynamic conversations driven by a second model |
318
+ | [Trajectory outputs](docs/en/traces/trajectory-outputs.md) | Output files and their conditions; comparison of raw, normalized, SFT and wire traces |
319
+ | [SFT format](docs/en/traces/sft-format.md) | Record structure, images and compaction segments |
320
+ | [Viewer](docs/en/traces/viewer.md) | Startup, ports and remote access |
321
+ | [Bench integration and scoring](docs/en/benches/bench-format.md) | Bench runs, grading and new bench adapters |
322
+ | [Examples](examples/README.md) (Chinese) | Runnable commands for each Harness |
323
+ | [Coverage suite](examples/coverage/README.en.md) | 1,624 functional test tasks across all seven Harnesses |
324
+
325
+ <a id="security"></a>
326
+
327
+ ## Security and privacy
328
+
329
+ - Before a container starts, Roller rejects inputs and Context that contain symlinks or special files, escape their declared paths or exceed the size limits, and records a digest of every file.
330
+ - API keys are read from the host environment or from external configuration and are not written to run metadata.
331
+ - Only regular files and directories inside the task's `output_dir` are collected.
332
+ - `wire_trace.jsonl` stores full request text, including prompts, reasoning and tool results. Treat it as sensitive data.
333
+ - The Viewer listens on `127.0.0.1` by default. Use SSH port forwarding for remote access.
334
+
335
+ The complete rules are specified in [Security and privacy boundaries](docs/en/tasks/task-bundle-and-storage.md#8-security-and-privacy-boundaries).
336
+
337
+ <a id="contributing"></a>
338
+
339
+ ## Contributing
340
+
341
+ Report defects through [Issues](https://github.com/Valen-Team/Roller/issues). New Harnesses, new benches and documentation improvements are accepted as [Pull Requests](https://github.com/Valen-Team/Roller/pulls). The code is organized as follows:
342
+
343
+ | Area | Location |
344
+ | --- | --- |
345
+ | Harness adapters | `src/roller/harnesses/`, with trace converters in `src/roller/*_actf.py` |
346
+ | Bench adapters | `src/roller/benches/` |
347
+ | SFT export | `src/roller/sft.py`, `src/roller/compaction_sft.py` |
348
+ | Viewer | `src/roller/viewer/` |
349
+
350
+ Run the test suite before submitting a pull request:
351
+
352
+ ```bash
353
+ python -m pip install -e ".[test]"
354
+ python -m pytest
355
+ ```
356
+
357
+ ### Contributors
358
+
359
+ <table>
360
+ <tr>
361
+ <td align="center">
362
+ <a href="https://github.com/Liuziyu77"><img src="https://github.com/Liuziyu77.png?size=128" width="64" height="64" alt="Liuziyu77"><br><sub><b>Liuziyu77</b></sub></a>
363
+ </td>
364
+ <td align="center">
365
+ <a href="https://github.com/yph22"><img src="https://github.com/yph22.png?size=128" width="64" height="64" alt="yph22"><br><sub><b>yph22</b></sub></a>
366
+ </td>
367
+ <td align="center">
368
+ <a href="https://github.com/SYuan03"><img src="https://github.com/SYuan03.png?size=128" width="64" height="64" alt="SYuan03"><br><sub><b>SYuan03</b></sub></a>
369
+ </td>
370
+ <td align="center">
371
+ <a href="https://github.com/Dodojordi"><img src="https://github.com/Dodojordi.png?size=128" width="64" height="64" alt="Dodojordi"><br><sub><b>Dodojordi</b></sub></a>
372
+ </td>
373
+ <td align="center">
374
+ <a href="https://github.com/Nina-Hyn"><img src="https://github.com/Nina-Hyn.png?size=128" width="64" height="64" alt="Nina-Hyn"><br><sub><b>Nina-Hyn</b></sub></a>
375
+ </td>
376
+ <td align="center">
377
+ <a href="https://github.com/Credica"><img src="https://github.com/Credica.png?size=128" width="64" height="64" alt="Credica"><br><sub><b>Credica</b></sub></a>
378
+ </td>
379
+ <td align="center">
380
+ <a href="https://github.com/Orion-DH"><img src="https://github.com/Orion-DH.png?size=128" width="64" height="64" alt="Orion-DH"><br><sub><b>Orion-DH</b></sub></a>
381
+ </td>
382
+ <td align="center">
383
+ <a href="https://github.com/MqLeet"><img src="https://github.com/MqLeet.png?size=128" width="64" height="64" alt="MqLeet"><br><sub><b>MqLeet</b></sub></a>
384
+ </td>
385
+ <td align="center">
386
+ <a href="https://github.com/yuhangzang"><img src="https://github.com/yuhangzang.png?size=128" width="64" height="64" alt="yuhangzang"><br><sub><b>yuhangzang</b></sub></a>
387
+ </td>
388
+ </tr>
389
+ </table>
390
+
391
+ <a id="license-and-acknowledgements"></a>
392
+
393
+ ## License and acknowledgements
394
+
395
+ Roller is licensed under the [Apache License 2.0](LICENSE).
396
+
397
+ Roller invokes the following third-party agent runtimes and benchmarks: OpenClaw, Codex, Claude Code, Hermes Agent, OpenCode, DeepSeek Harness, Pi Agent, WildClawBench, SkillsBench, PinchBench and QwenClawBench. Their images, code and data are subject to their respective licenses. We thank the authors of these projects.
@@ -0,0 +1,92 @@
1
+ roller/__init__.py,sha256=uEPv5hWmhB6RiGn8GXL8-QnjKNWSijjytL0xi-1n-ic,665
2
+ roller/__main__.py,sha256=doGHEpRc5AXrAM9BH3WPJ_MHlwA7PkcKMmG7YidICZ4,69
3
+ roller/actf.py,sha256=AfSLDDMX2ahNNodYHFrZIYW6cR1Fr8yDnwtllbCOca0,17491
4
+ roller/artifacts.py,sha256=5faDJRUwLLeXZda-0Pg2mAaNXksnGqp0_-Dx5RFM_Ro,4059
5
+ roller/bridge_capture.py,sha256=yen_MgxcvI8aFkQmeokiLhtkkU58oc-NEidl5KBpTVs,3995
6
+ roller/bundles.py,sha256=Y2z-ADPRYlSl_9TT5J8AGZQG2nhwj_CYM3UZedmeTrc,22686
7
+ roller/capture.py,sha256=8ZYvHfxwI5cWjSmFGrnjApIsO6bT0XzcJC8hxsgnVSM,19787
8
+ roller/capture_protocol.py,sha256=EUDak3LEofcrHO_1p9hHaigP9yUy9l1GzsRi0tcAN7g,17652
9
+ roller/capture_runtime.py,sha256=7554LXs0BoEpuDljOiPubui7ULHg4t8pj2rxIgfyyy8,2472
10
+ roller/capture_states.py,sha256=i08ickST1kvSmlBU6oFn1T1pCsIb2OssGyemA8VOaKE,1077
11
+ roller/claude_capture.py,sha256=XcEqRe8JlgetvL7lnOvAIEvIbiiUP5C3pI4AzonkoCU,10781
12
+ roller/claude_code_actf.py,sha256=JsieHxMNAP9SRZZHYGHRdRVf5sYD-fGCb9HxHOGTp_Q,22240
13
+ roller/cli.py,sha256=UF7Q8r3UlqjTDOSHxvTTQ_JGt6lsQWwqTrXzUlgdoaA,76843
14
+ roller/codex_actf.py,sha256=77fAKybHZPpbpMx4R1e1IjlowaNWGg0GNmNeXMfXxhM,22140
15
+ roller/codex_capture.py,sha256=7_6FaVSafiXl811J-z5mSYjnBaDxZB8jlGbzjGHbQlc,5435
16
+ roller/codex_tools.py,sha256=ewAHkKAycyx9N3ZVIyGlRyyMOtuIr08nvNg-_HEmrWQ,6315
17
+ roller/collector.py,sha256=7gyEJQBTszu-c5k9RkXRZNqXWu6AzLJOwkql3VnnInY,35193
18
+ roller/compaction_sft.py,sha256=wXxoI56148Cit3iBYS2c33OKL9LYBSDz88847b5DH9w,34117
19
+ roller/conversation.py,sha256=2WcYmVUOvUMN_fXDNOm_0SBIuNuvnzRXfcb3smLIKGw,17615
20
+ roller/deepseek_actf.py,sha256=kqkzXDQZtXNdlWLiYqgRFl1Up7bGHGyrjWiJz2QCFCY,7265
21
+ roller/harness_registry.py,sha256=vGhDHSNawEXaBPSu5fKPsCQqfmy7PGnqDUA2_ETudnU,2808
22
+ roller/hermes_actf.py,sha256=vszObS3l8r0S5F0_YwMR89oSycbmZvIhmhjfiLKPTKY,7456
23
+ roller/image_build.py,sha256=FSQRdRMaYEicisWn1GKZz-IiyRkSgaW8g9tPSmT5-Cc,7430
24
+ roller/integrity.py,sha256=pXuK3lW7FEaL7t32ZJX2ZPgQv-_LVgI5O67b_ZfMbPY,15101
25
+ roller/model_protocols.py,sha256=LmYoKoDq0jpiuOwSJBpcMA3J6qxA0ODi-xEWFc1Tzbw,10616
26
+ roller/models.py,sha256=Fq9C-qd64CUl30ooyv33ES0WjtChS2OITL1HBrrwKtE,5461
27
+ roller/openclaw_capture.py,sha256=R7rrb5vvhFqE0jnzTW-0LNs0aYS--gHZG_yXV0wVgN4,7919
28
+ roller/openclaw_delivery.py,sha256=2OwP0xQ-kWOXuxI3ef3j7Q5EzQ9nbHQ7D16neFdMewE,7748
29
+ roller/openclaw_usage.py,sha256=j62q_WsDfur4pjrG4IOaeqPLtS1LBzPI_duqnoT2Xkc,2119
30
+ roller/opencode_actf.py,sha256=QRvvPdcLI6VaDNzTNTBTeEsC9DGvKaME5y8iE1b2F_I,15150
31
+ roller/opencode_capture.py,sha256=pFqp3THXEQXSFzRPLGv6fbH0BsyFZh5kGzByNxXs3lM,5412
32
+ roller/pi_actf.py,sha256=Lw9tMzkiyB9rpV0p2kh9Lk1flvFD1yQ2QgveieiufLU,9137
33
+ roller/response_metadata.py,sha256=WpPxNiSzIEoWOs6koINn9ffnpXAWGCJ_6TeFcQwYaV4,3758
34
+ roller/run_lock.py,sha256=aeplw8c01Q8tU85ASnKrvO9d5v_07zxOv4ljuK1BuNw,10852
35
+ roller/sft.py,sha256=kcdJRp8fHrxPnioPulgO7n3RCob09Fo_0M7HJm49o3I,20553
36
+ roller/storage.py,sha256=eo7m41MlMCsySGuzMo3MtAOVdCaoRjQezRlSaS5t-zw,1749
37
+ roller/tasks.py,sha256=yU954Fz1_MkSttTrjAFUOmkbGz_uJ829oJZricz3fNU,28337
38
+ roller/thinking.py,sha256=BNSpAYcQYCcC9AscDO4FST1QtC0F33P-DUY4mMFfHBM,1628
39
+ roller/thinking_capabilities.py,sha256=tzGWfUURX-RFls_KIhz3CAaE-IsvXNmOMnNapTO0GLI,5738
40
+ roller/trajectory_audit.py,sha256=rL9hHMNKPCqV8rijszPxjgzIPTlIznE6xnflClpswuU,18839
41
+ roller/usage.py,sha256=ccsCo2EVCh-0d6h1ucQfsizrczp3gimF88T3SVENTGQ,6642
42
+ roller/version.py,sha256=Zn1KFblwuFHiDRdRAiRnDBRkbPttWh44jKa5zG2ov0E,22
43
+ roller/wire_trace.py,sha256=mJRBK7Kl9pkXMhXskLx1E6eejhwK3vbqENNhcU7aqc0,27466
44
+ roller/assets/openclaw_capture.py,sha256=60zfT14r-Ajfr9S5r3z_b98WgVfWF8s7VIH7vGsG7Gs,1928
45
+ roller/assets/openclaw_drain.mjs,sha256=Wt96yzeX5WS96Oo6oJGu3i-QvSpWRVQeFQG8La_IlB8,1307
46
+ roller/assets/deepseek/journal.mjs,sha256=Y-g6sV0ZW69JoctViLQCEpoHpeQMDJyf2plUUjG_bWA,2379
47
+ roller/assets/deepseek/roller.patch.yml,sha256=8LKU5Ola0TzQdoNXjpmZeI2HJANP2H3hmW-_GwH42cw,605
48
+ roller/assets/deepseek/runner.py,sha256=Z0-7yopcfeqYij9CRXtVHt53KaK9MUZmdYoVU_d0Gl0,6398
49
+ roller/assets/hermes/runner.py,sha256=V4iNWUxhzevkuu9DdBQRoZyoSgxvGsCPNxCQcj42ocU,14550
50
+ roller/assets/opencode/journal.mjs,sha256=2-ZUi_wdLZMSe0Pg-xfFPdGqm_S-pakoA84kXVEgrL0,1987
51
+ roller/assets/opencode/runner.py,sha256=E4KxvrcDJqtajGd6svOT7Qv0D2r-IB0o8-ExyrOv6YU,9680
52
+ roller/assets/pi/runner.mjs,sha256=AEE0Xko0klGvJPZOat7Ro1e-HPOqIDsffY5jCuQeeH0,7715
53
+ roller/assets/pi/runner.py,sha256=KG6Od7FYG6V4w3tYjJWumX4XwYb9PIUa8CzIWn5Gj-w,3215
54
+ roller/benches/__init__.py,sha256=GGCLXY0Jh4CTSszbFD6MigPy4l9EE4vzApobgj_SEN4,1909
55
+ roller/benches/base.py,sha256=TCbufE_tMdzkoReSIZH0SsislDjAzb7YrW-fYO8PUXQ,12341
56
+ roller/benches/grading.py,sha256=y5n-9_8PCyXsHFFewLElYArKXuRMSJ40VWOc6M-iDy8,21364
57
+ roller/benches/pinchbench.py,sha256=OmEj-2nfFEimyI7eGd3GrefJRdgMlNiaIJ8LzA5_9zU,38116
58
+ roller/benches/report.py,sha256=sGbxIML2VzRFukJAvyyMkzjW1pJH_oIy-uIqbo6nsH8,5966
59
+ roller/benches/skillsbench.py,sha256=afBgKShSKV-8VCfP5C-esry7Q0ZFDEDkneS7dM2stbA,28502
60
+ roller/benches/transcripts.py,sha256=ePtxBLcbVwZI0RcJ4N_8abAOpfH9GQNk7FFzB0Ta_dI,3638
61
+ roller/benches/wildclaw.py,sha256=4248lYwgm3nxfSauuM_2S_troEXeMTOCzIPvzLdJeWE,23511
62
+ roller/benches/qwenclaw/__init__.py,sha256=PcbAgUGP7AbxxTrLUYMVW2vWvfGjzBfe4sOdULGe0LA,1258
63
+ roller/benches/qwenclaw/adapter.py,sha256=_mXqMp1_8BD7ZbRtt1cgit9hw-pMVFuSciyASYcjjg8,6055
64
+ roller/benches/qwenclaw/grader_runtime.py,sha256=0dgYw6I1m0KZSqr91WGs1ZDtO4uRQZiZxd-jPZzVZb8,15206
65
+ roller/benches/qwenclaw/report.py,sha256=YQNOKyHuNllJo5E3HLurpuoE59QizoYFtJ2LOHFMtVE,1623
66
+ roller/benches/qwenclaw/task_parser.py,sha256=7FBsyVcqjwTy1sDJdOubp4BV1fbi9KjADP8TkRYfYJI,6682
67
+ roller/benches/qwenclaw/workspace.py,sha256=1vhxdR8EYTGHfWQYWfzSgDT_0AL5mFQ9xBjNShnFqxM,7876
68
+ roller/harnesses/__init__.py,sha256=56xsjDOG_niPZXrAf3Z6bgo7F6FiOL1xA-Qw9c7_law,955
69
+ roller/harnesses/base.py,sha256=ZAXJl1X4pwSQE3IRnf4wnXw_A2J9gEEas_qEM-SFc08,1879
70
+ roller/harnesses/bridge.py,sha256=zI8ll5uIoNI3FOrz-Zxi-kOFi1aHbrGa-U7ZwDlFgOI,23629
71
+ roller/harnesses/claude_code.py,sha256=NGw_5fIQP6UCafV6gVVCTVYdY5VkU6ZTNkyYMGExwSw,34657
72
+ roller/harnesses/codex.py,sha256=XZEf_7PvOGRs8-oNsnQmZF4kEmsqdola90oGxvngWuc,34541
73
+ roller/harnesses/config_overrides.py,sha256=bb5M0GDCCngQFf2CjZuUXAX4P_LQgB4HXtJm6xWrPmA,3525
74
+ roller/harnesses/container.py,sha256=7ZnCH3xmuzyOgv8perKnH1EnzbhK-PPXNTgJfPQ9Wzg,7715
75
+ roller/harnesses/deepseek.py,sha256=ZCLt9Cjz9XOYyol7xCmCB9FcpYvePB2NWK7tuxtzjVA,4154
76
+ roller/harnesses/docker.py,sha256=52slaNhpgULWncUdm1MX7IH-YRnXEOPwuzg5KHQG1Bk,2296
77
+ roller/harnesses/gateway_ports.py,sha256=mZMmM7PYG1X1dwvhFtMpwssyFV56b4KWsGNfo_i-sCM,5613
78
+ roller/harnesses/hermes.py,sha256=uhx1jIbfUY0_vgiC0-IUE8O2AVEnpZqnbgB3C45W-uM,5303
79
+ roller/harnesses/openclaw.py,sha256=zKfoSZWR5bYKla0g4kedL91E0kIzNqVwI1tMZfIxaDU,66628
80
+ roller/harnesses/opencode.py,sha256=OWFVLe-zIkfiGIlrQAAfhkRbzw06qzUvQ-Q8p_AEqFk,7733
81
+ roller/harnesses/pi.py,sha256=95f-6GLEJOitkVUNYMX3ES5bsi1RYK-ZYETdMumPS0I,4585
82
+ roller/viewer/__init__.py,sha256=KK7yBlJ4ErvpQR--0HnLTQIFMJyjLIMi7Jsfkfw8ol8,139
83
+ roller/viewer/app.py,sha256=7_UcgLdpADq1sKdlfjQYARt0FtTBObpbKzWMmvQvZh0,29684
84
+ roller/viewer/static/app.js,sha256=PqYFtgKfWWiVMhgWWtIlkwfMhSyvnoyytIqGRqarvqk,32004
85
+ roller/viewer/static/index.html,sha256=8uBv9I1tqamvMuP2K1iVmAD3FNCBNZmj-l6_94B3X-g,4473
86
+ roller/viewer/static/style.css,sha256=bDC-3A1eNB1iYma5t2X1JBO375SlKq6LZdfIJweb5SA,18963
87
+ roller_agent-0.2.0.dist-info/licenses/LICENSE,sha256=xx0jnfkXJvxRnG63LTGOxlggYnIysveWIZ6H3PNdCrQ,11357
88
+ roller_agent-0.2.0.dist-info/METADATA,sha256=vDWqvTBkEy3NlQU8GH8d0drK0RSLvnDnMHvSBZrZMQI,26562
89
+ roller_agent-0.2.0.dist-info/WHEEL,sha256=mOdXR9C3wMVov7cSY8PY-XCzo3SmmWCHvGQr5csJoao,91
90
+ roller_agent-0.2.0.dist-info/entry_points.txt,sha256=x3YoP0JXspMx_dyXsRRr6XB4p9jCnoBd1tVXCdLWry0,43
91
+ roller_agent-0.2.0.dist-info/top_level.txt,sha256=4_ojY2EWrxCWvB5Kr42WsggkKPvTAXZeptjRS2y_JJ8,7
92
+ roller_agent-0.2.0.dist-info/RECORD,,
@@ -0,0 +1,5 @@
1
+ Wheel-Version: 1.0
2
+ Generator: setuptools (84.2.1)
3
+ Root-Is-Purelib: true
4
+ Tag: py3-none-any
5
+
@@ -0,0 +1,2 @@
1
+ [console_scripts]
2
+ roller = roller.cli:main