Repository navigation
Roller 0.7.0
Roller 0.7.0 adds the Stirrup Harness, Claude Code remote sandbox execution, the VIALS and ZeroBench bench adapters, OpenAI multimodal SFT records with XTuner export, --training-files-only compact runs, upgraded pinned Harness versions, and a decoupled layered module architecture.
uv tool install roller-agent # or: python -m pip install roller-agentAdded
roller export --format xtunerexports a run as a single mergedxtuner.jsonl(combining unsegmented rollouts and compaction segments, with a line-for-linextuner_index.jsonl, supporting--min-score). Images are extracted to<output>/media/with EXIF-orientedimage_whmetadata (--inline-imageskeeps base64 data URIs inline),tool_calls[].function.argumentsJSON strings are parsed into objects, andtarget_start_indexis translated into per-message"loss": falseon earlier assistant turns.- Stirrup Harness (
--harness stirrup, thestirrupextra, Python 3.12 or later). Stirrup 0.2.2's agent loop runs in the Roller process withcode_exec,view_imageandfinish; the sample's Docker container or remote sandbox executes the commands and holds the files, and gets no model key. Model requests go from Roller through the local request recording proxy, so--wire-trace full,--capture-callsand--token-idswork in Docker and remote sandboxes alike. The request fields are set by--stirrup-*options and--thinking, in a fixed order. A history summary splits SFT into windows from captured Calls, and the summary request is a window of its own. - SFT windows built from captured Chat Completions Calls keep the images of user and tool messages, as the linear export does.
- Claude Code Harness in a remote sandbox (
--harness claude-code --sandbox-provider NAME --sandbox-template NAME). The CLI itself runs in the sandbox, started from the release the template mounts (--claude-sandbox-binaryfor a path other than/opt/claude-code/bin/claude), and the sandbox holds the task's files. A sandbox created without egress cannot reach the request recording proxy, so the provider's optionalroute_httpcarries the CLI's requests out through the sandbox API while the proxy stays on the collecting host:--wire-trace full,--capture-callsand--token-idswrite the same wire trace, Calls, blobs and token ids as under Docker, and the native session trace, its ACTF conversion, usage and output collection are read from the sandbox the same way.--networkand--keep-container-on-errorapply to Docker only. --claude-tool-images-inlinekeeps an image a tool returned in the tool message itself instead of the user message that follows it, for endpoints and chat templates that render it there. Off by default, which is how vLLM's own Messages endpoint arranges such a turn.--claude-context-windowtells Claude Code the served context length, so it compacts its history before the endpoint would refuse the request and end the sample. In a remote sandbox the Harness also fixes the CLI settings an agentic benchmark run depends on: no attribution header, which varies per conversation and would defeat the served model's prefix cache; no experimental betas, telemetry or error reporting; and a reply timeout the relay's whole-response delivery fits inside.- ZeroBench bench (
--bench zerobench, thezerobenchextra): the 100 main questions (--bench-variant zerobench) or the 334 sub-questions (--bench-variant zerobench_subquestions), read from Hugging Face at a pinned revision (ZEROBENCH_REVISIONto change it). Each task carries its images as files under/taskfor the agent to crop and view, with the official question and answer-format instruction, and the official strict{final answer}rule scores the final message with no judge and no environment variables.bench reportadds avg@k and pass@k over k samples per question.examples/cookbook/zerobench-claude-coderuns the protocol with Claude Code in a remote sandbox. - SFT windows rebuilt from captured Anthropic Calls carry the images a tool returned, in the tool message itself or in the user message after it, whichever the collection served (
--claude-tool-images-inline). A trajectory whose tools answer with images -- a vision agent cropping and viewing a picture -- could not be converted at all before. - Text blocks of one message are concatenated in those windows rather than joined with a newline, as the endpoint concatenates them. The separator added a character the model was never served; it kept the window's length and changed one token id, so only a token-level comparison against the recorded ids showed it.
- VIALS bench (
--bench vials, thevialsextra): the 161 questions of thetaskstest split, read from Hugging Face at a pinned revision (VIALS_REVISIONto change it) and cached under--bench-root. Each task follows the upstream tool-assisted agent adapter: its prompt, the images as files under/task, and the answer in/task/answer.txt, judged against the reference with the upstream judge prompt.bench reportadds pass^k, avg@k and pass@k over k samples per question.docker/vialsbuilds the tools image andexamples/cookbook/vials-stirrupruns the protocol with Stirrup. roller collect --training-files-only(training_files_onlyin a bench run configuration) keeps only the training files of a sample once it has finished and been graded:trace_SFT.jsonorsft_segments/,token_ids.jsonl,info.jsonandscore.json, with each image of the SFT records stored once for the run, in the run directory'sblobs/. The trace, ACTF, Calls and wire trace are removed after the context windows have been cut from the Calls, and the run-levelsft.jsonlis not written.roller export --format sft,xtunerandtokensgive the same output as for the run collected without the option,--resumetakes these samples as finished andbench reportreads their scores. The Viewer, the Hugging Face and ATIF exports and rebuilding SFT need the removed files. Samples that failed, or whose grading failed, keep all their files.bench.grade.collector_filesgrades a copy of those workspace files in the collecting process, for containers without network; the judge's key stays out of the container.files.output_dir: nullgives a Stirrup task no output directory: the workspace holds only the task's files and what the agent writes, and nothing is collected from it. VIALS tasks use it.
Changed
-
Upgraded all eight pinned Harness versions, Dockerfiles, and optional SDK extras: OpenClaw
2026.11.10, Claude Code2.1.332, Codex0.172.0, DeepSeek Harness0.2.2rc2, Hermes8fc037444731(v0.23.4,python:3.14-slim-bookworm,uv==0.13.10), OpenCode1.19.6, Pi Agent1.6.1,stirrup==0.2.2, ande2b==2.66.0(#167). -
Decoupled Roller's internal architecture into a strictly layered dependency graph and split oversized modules (
cli/,actf/,execution.py,docker_runtime.py,option_specs.py,run_outputs.py,sample_lifecycle.py,sample_metadata.py,hf_redaction.py,wire_transforms.py,compaction_parsers.py, and per-Harness config/session modules) while preserving the CLI, YAML run configs, on-disk run/lock formats, public package exports, androller.sandbox_providersentry point (#166). -
Task prompts reach the model as written; Roller no longer strips leading and trailing whitespace from
prompt,questionandmessages[].content. A blank prompt is still rejected. Tasks whose prompt had such whitespace get a new bundle digest. -
Stirrup passes no proxy variables into the container, since its model requests start in the Roller process.
-
Multimodal SFT records (
trace_SFT.json,sft.jsonl,sft_segments.jsonl) now use standard OpenAI content lists ({"type": "text", "text": ...}and{"type": "image_url", "image_url": {"url": "data:<mime>;base64,..."}}) instead of flattening blocks with<image>placeholders and a top-levelimageslist. Text-only messages keep plain stringcontent, literal<image>in source text no longer blocks SFT export, and no extra newline is inserted before images.roller export --format sftand--format xtunerstill upgrade legacy<image>+imagesruns on disk. -
wire_trace.jsonland the captured Calls store each image of the request bodies once per sample, inblobs/<sha256>.<subtype>, and keepdata:<mime>;base64,roller-blob:<sha256>.<subtype>in place of the data URI. Every request resends the images of the conversation so far, so both files grew with the square of the number of turns: a Stirrup sample with 18 requests and 7 images takes 14 MB instead of 94 MB. Roller restores the original data URIs, character for character, when it reads the files; runs collected earlier are read as they are. -
The run-level
calls.jsonllists the exportable Calls without theircontextandoutput(schema_version: roller.call-index/v1). It held a second copy of every captured Call; the request and response stay in the sample'scapture/. -
--token-idsworks in a remote sandbox (--sandbox-provider). The wire recorder in the sandbox writestoken_ids.jsonland Roller copies it into the sample. The sandbox template needs this Roller version. -
roller export --format hfwrites the trace of a Hermes sample as a Hermes session, the format ofhermes sessions export, so the Hub lists it as a Hermes trace. It was a Pi session converted from ACTF. -
The
pdfextra installs on Python 3.11 and later, with Pillow 13 or later. Pillow 13 has the fixes for the vulnerabilities reported in earlier versions and needs Python 3.11. On Python 3.10,--claude-pdf-as-imagesreports that the extra needs Python 3.11.
Fixed
- The Hugging Face export of imported sessions also replaces the local user name inside longer names, such as
pytest-of-<user>,_Users_<user>_and<user>.github.io, and right after an escaped line break or a URL escape such as%2F. A user name still left, such as one joined to a word, is listed in the redaction report asuser_name. roller export --format hf --include-runsleaves out thetokens/folder thatroller export --format tokenswrites into the run, as it already did for the other export folders.- SFT windows built from captured Calls stay open when the Harness replays a tool call with schema defaults filled in or with the argument keys in another order, as Claude Code does. Each such call started a new SFT record that repeated the messages of the record before it.