Skip to content

Roller 0.7.0

Choose a tag to compare

@github-actions github-actions released this 27 Nov 08:40
· 31 commits to main since this release
5b3203c

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-agent

Added

  • roller export --format xtuner exports a run as a single merged xtuner.jsonl (combining unsegmented rollouts and compaction segments, with a line-for-line xtuner_index.jsonl, supporting --min-score). Images are extracted to <output>/media/ with EXIF-oriented image_wh metadata (--inline-images keeps base64 data URIs inline), tool_calls[].function.arguments JSON strings are parsed into objects, and target_start_index is translated into per-message "loss": false on earlier assistant turns.
  • Stirrup Harness (--harness stirrup, the stirrup extra, Python 3.12 or later). Stirrup 0.2.2's agent loop runs in the Roller process with code_exec, view_image and finish; 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-calls and --token-ids work 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-binary for 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 optional route_http carries the CLI's requests out through the sandbox API while the proxy stays on the collecting host: --wire-trace full, --capture-calls and --token-ids write 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. --network and --keep-container-on-error apply to Docker only.
  • --claude-tool-images-inline keeps 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-window tells 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, the zerobench extra): 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_REVISION to change it). Each task carries its images as files under /task for 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 report adds avg@k and pass@k over k samples per question. examples/cookbook/zerobench-claude-code runs 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, the vials extra): the 161 questions of the tasks test split, read from Hugging Face at a pinned revision (VIALS_REVISION to 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 report adds pass^k, avg@k and pass@k over k samples per question. docker/vials builds the tools image and examples/cookbook/vials-stirrup runs the protocol with Stirrup.
  • roller collect --training-files-only (training_files_only in a bench run configuration) keeps only the training files of a sample once it has finished and been graded: trace_SFT.json or sft_segments/, token_ids.jsonl, info.json and score.json, with each image of the SFT records stored once for the run, in the run directory's blobs/. The trace, ACTF, Calls and wire trace are removed after the context windows have been cut from the Calls, and the run-level sft.jsonl is not written. roller export --format sft, xtuner and tokens give the same output as for the run collected without the option, --resume takes these samples as finished and bench report reads 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_files grades 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: null gives 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 Code 2.1.332, Codex 0.172.0, DeepSeek Harness 0.2.2rc2, Hermes 8fc037444731 (v0.23.4, python:3.14-slim-bookworm, uv==0.13.10), OpenCode 1.19.6, Pi Agent 1.6.1, stirrup==0.2.2, and e2b==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, and roller.sandbox_providers entry point (#166).

  • Task prompts reach the model as written; Roller no longer strips leading and trailing whitespace from prompt, question and messages[].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-level images list. Text-only messages keep plain string content, literal <image> in source text no longer blocks SFT export, and no extra newline is inserted before images. roller export --format sft and --format xtuner still upgrade legacy <image> + images runs on disk.

  • wire_trace.jsonl and the captured Calls store each image of the request bodies once per sample, in blobs/<sha256>.<subtype>, and keep data:<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.jsonl lists the exportable Calls without their context and output (schema_version: roller.call-index/v1). It held a second copy of every captured Call; the request and response stay in the sample's capture/.

  • --token-ids works in a remote sandbox (--sandbox-provider). The wire recorder in the sandbox writes token_ids.jsonl and Roller copies it into the sample. The sandbox template needs this Roller version.

  • roller export --format hf writes the trace of a Hermes sample as a Hermes session, the format of hermes sessions export, so the Hub lists it as a Hermes trace. It was a Pi session converted from ACTF.

  • The pdf extra 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-images reports 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 as user_name.
  • roller export --format hf --include-runs leaves out the tokens/ folder that roller export --format tokens writes 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.