Introducing The Sweep: OX’s New Live Security Research Series
Register Now
Breaking: The 2026 Vulnpocalypse Hits PHP: Four Critical RCEs, but How Dangerous Are They?
Read the Report
Are you exposed? Connect your apps in minutes.
Scan your apps free

roboscope-kit

Latest version: v0.8.0b75

Overview

Last scanned
25 Nov 2026
Published
25 Nov 2026
PyPI package Publisher: wudengke
72 Stars
11 Forks
48 Versions
4.7K Downloads
Python Repo language

Scan summary

roboscope-kit was last scanned on 25 Nov 2026 at version 0.8.0b75. Risk score 0 of 100. No malicious behavior was detected.

  • Releases: 48 versions; the latest 5 were published within 6 days (20–25 Nov 2026).
  • Findings: No rules fired in version 0.8.0b75.
  • Downloads: 4,738 downloads.

Versions

48 versions published
Versions and the rules that fired in each
VersionPublishedStatus
0.8.0b75 LATEST 25 Nov 2026 No rules fired
0.8.0b72 23 Nov 2026 No rules fired
0.8.0b71 20 Nov 2026 No rules fired
0.8.0b70 20 Nov 2026 Not shown
0.8.0b69 20 Nov 2026 Not shown

No rules fired in 0.8.0b75

Findings

Findings for v0.8.0b75. The score is a capped sum of the weights of the rules that fired — not CVSS, not exploitability, and not a probability. It is not comparable across packages with different scan coverage.

The score describes 0.8.0b75; other versions have their own rules, not their own score.

README

The publisher’s own README, as collected from the registry.

RoboScope Kit

MINT Lab@SJTU arXiv PyPI

roboscope-kit evaluates your model on standard robot simulation benchmarks. You implement one Policy class; the benchmark runtime starts your Policy, drives the simulators, tunes the evaluation's concurrency, and scores the results. The design and measurements are in the technical report.

python -m pip install roboscope-kit

Python 3.11 or newer is required. The import name is roboscope_kit.

Versions up to 0.7.0b77 were published as roboscope-inference-sdk and imported as roboscope_inference_sdk. From 0.8.0b1 on, use roboscope-kit and roboscope_kit; no alias is provided.

Quick start

import numpy as np

from roboscope_kit import ActionChunk, BenchmarkName, Policy, PolicyCapabilities, run


class UserPolicy(Policy):
    def load(self, context):
        self.model = load_model(context.checkpoint_path)
        return PolicyCapabilities(
            supported_benchmarks=(BenchmarkName.LIBERO,),
            required_features=("images.primary", "state.proprioception"),
            supported_suites={BenchmarkName.LIBERO: ("libero_10",)},
            supported_action_chunk_sizes=(1,),
        )

    def act(self, observation):
        return ActionChunk(np.asarray(self.model.predict(observation.features), dtype=np.float32))


if __name__ == "__main__":
    run(UserPolicy())

The runtime starts this script once per inference replica. It passes the staged checkpoint and the benchmark contract to Policy.load(), then calls act() through a local socket. Your process never starts a simulator or chooses how many evaluators run.

How evaluation works

An evaluation takes two files:

  • the Policy process contract (--policy-config), which tells the runtime how to start your Policy:

    {
      "schema_version": 2,
      "command": ["/opt/my-policy/bin/python", "/opt/my-policy/user_policy.py"],
      "cwd": "/opt/my-policy"
    }
  • the benchmark manifest (--benchmark-manifest, a benchmark-manifest.json), which lists the benchmark's suites and protocol, points runtime at the benchmark's Python environment, simulator source, and assets, and sets the evaluation defaults. Relative runtime paths resolve against the manifest's directory.

The simulators are not dependencies of this package. Each benchmark directory under benchmarks/ has a build-runtime.sh that builds the pinned simulator environment into a directory you choose and copies the benchmark manifest there:

benchmarks/libero/build-runtime.sh /sim/libero

Run the evaluation with the benchmark CLI:

python -m roboscope_kit.runtime.benchmark \
    --benchmark libero --suite libero_10 --checkpoint-source /models/my-checkpoint \
    --benchmark-manifest /sim/libero/benchmark-manifest.json \
    --policy-config /path/to/roboscope-policy.json \
    --output-dir /runs/libero_10

--checkpoint-source is an absolute local path, passed to Policy.load() unchanged. Prepare the checkpoint before starting the evaluation. The runtime validates the Policy process contract before every run. --quick-test runs a short real evaluation with one Worker and one Server; without it, the run is a full scored evaluation. --self-test runs benchmark-specific runtime checks without loading your Policy; some checks create GPU simulator environments. Results, progress, and logs are written under --output-dir. Use a new or empty directory for each evaluation or self-test. A directory containing only errors.jsonl can be retried; new errors are appended to preserve earlier failures. Pure preflight checks run before any evaluation artifacts are written. Once a run has produced other artifacts, choose a new directory: restarting the CLI does not resume it.

The CLI reserves the directory with an exclusively created .run.lock and removes it on normal exit, handled failure, or interruption. A clean run does not create errors.jsonl. After an uncatchable kill or machine crash, remove a leftover lock only after confirming that its process and children have stopped; existing run artifacts still require a new directory. Keep shell tee output and scheduler logs outside --output-dir, since files created before launch also prevent reuse.

The runtime is built on three ideas:

  • Server: a process that loads one replica of your Policy and answers action requests over a local socket. Several Workers can share one Server, which can batch their requests. Autotune calls the number of Servers g.
  • Worker: a process that owns one simulator. It claims Work Items, runs their episodes, sends observations to a Server, and applies the returned actions. It never loads your model. Autotune calls the number of Workers K.
  • Work Item: the unit of benchmark work, claimed atomically from a durable queue. Its size depends on the benchmark; a RoboTwin Work Item, for example, is a window of episodes from one task. If a Worker fails, its Work Item goes back to the queue; a finished Work Item is recorded once and can never be scored twice.
Automatic tuning (K/g)

The runtime picks K and g for you by running real episodes with your Policy. Every candidate runs episodes from the same representative task set. The smallest safe K sets a success-rate baseline; a faster candidate is accepted only if it keeps at least 85% of that baseline and stays within resource limits. Candidates that lose Workers or a Policy replica, run out of memory, or leave episodes unfinished are rejected.

Each candidate is limited to 15 minutes and the whole search to 30 minutes, after which the last healthy pair is used. Progress is written to <output-dir>/autotune/selection.json as candidates start, advance, and stop. Tuning episodes never count toward the score.

The default search is diagonal, described below, on every benchmark. two-phase, which ramps K on one replica per GPU and then ramps replicas when GPU utilization shows inference is the bottleneck, remains available. --autotune-strategy <name> selects a search for one evaluation, and autotune_strategy: <name> in a benchmark manifest selects it for every evaluation; the flag wins.

diagonal doubles K on one replica per GPU until a doubling raises throughput by less than 25% (a step the CPU cap shortens needs the same share of linear scaling); the accepted K per replica is how many Workers one replica keeps busy. It then adds one replica per GPU at a time with K scaled by that ratio, keeping each step that raises throughput by at least 3% and skipping a step whose busiest GPU, extrapolated from the measured replica footprint and the marginal memory per Worker, would not fit. It compares steady-state throughput: each probe gives every Worker three work items, drops each Worker's first item, and stops measuring when the first Worker runs out of work. A probe grows with K by adding episodes, sequences, or tasks to a nested set, so it repeats every episode of a smaller probe. Where the catalog runs out (RoboCasa GR-1 Tabletop's 24 tasks, MetaWorld's 50), a larger K has no steady-state window. That ends the doubling of K, not the search: the replica steps still run, and a step without a window is compared with the previous one on total probe steps over probe wall time, recorded as "throughput_estimator": "elapsed" in its selection.json metrics. That rate understates a larger K, so a step it keeps is a real gain. Probes it measures but does not keep are marked rejected in selection.json.

A manifest can set autotune_replica_memory_backoff: true (RoboTwin does): when a replica step's K would not fit in GPU memory, the step tries the largest smaller K that fits, in steps of the GPU count and down to the current K, instead of stopping. A probe at such a K that runs out of memory steps down to the next one. Renderer memory per Worker can leave room for another replica on each GPU but not for that many more Workers.

Reusing what an evaluation learned

After an evaluation, the runtime stores the searched K/g and the mean episode time of each task in a run cache ($XDG_CACHE_HOME/roboscope-kit/run-cache/, or ROBOSCOPE_RUN_CACHE_DIR). The entry is keyed by the kit version and benchmark manifest, the benchmark, suite and episode count, the checkpoint files and Policy config, the GPU models, the CPU quota, CUDA MPS and the evaluation mode (--eval-mode). The next evaluation with the same key skips the search and records "autotune": {"mode": "cached", ...}. Every evaluation hands out work items of the longest tasks first when the cache, or this evaluation's probes, have measured them; tasks without a measurement go first, so no long task starts last. --run-cache refresh searches again and replaces the entry, and --run-cache off neither reads nor writes it. An evaluation that ran out of GPU memory or lost a Worker stores nothing and drops the cached K/g, so the next evaluation searches again. result.json records the entry under run_cache.

To compare searches without a GPU, the autotune testbed replays recorded workloads through the same controller and scores any registered strategy.

To measure or reproduce one configuration, add --concurrency K --replicas G, for example --concurrency 12 --replicas 3. The evaluation then runs at that K and g without probing, and result.json records "autotune": {"k": K, "g": G, "mode": "fixed"}. Both flags are required together, and neither can be combined with --quick-test or --autotune-strategy.

Profiling

Add --profile to --quick-test or to a fixed --concurrency K --replicas G run to see where a Worker's time goes. Each Worker then runs under Nsight Systems, and its first episode is written to <output-dir>/profile/worker-<id>-attempt-<n>.nsys-rep. The report holds the CUDA kernels and API calls of the Worker and its child processes, with NVTX ranges for the episode and each Policy request (policy.act, policy.observe). Open it in Nsight Systems or summarize it with nsys stats.

Profiling needs Nsight Systems on the machine that runs the evaluation, which the Kit does not install. Install its CLI from NVIDIA so that nsys is on PATH; it was checked with 2026.5.1. Without nsys, --profile stops before any Worker starts.

The ranges are written through Nsight Systems' own injection library, so no environment needs an extra package, and without --profile nothing is loaded. Capture starts when the Worker's PolicyClient resets an episode, so benchmarks with their own client, such as RoboTwin, record nothing yet. Tracing slows the run, so manifest.json records "profile": true, and such a run is not a throughput measurement.

Native batched evaluators can wrap their ordinary reset and end_episode calls in with client.episode_group(): to capture the complete group as one episode. profiling.environment("step") marks a simulator operation within that capture.

How to read the reports, which benchmarks are covered, and the findings so far are in the profiling notes.

Progress and errors

RoboTwin and RoboCasa GR-1 Tabletop report each finished episode as it completes, so progress moves while a long Work Item is still running; the official score still uses only each item's final result. Progress is written to <output-dir>/progress.json and <output-dir>/events.jsonl.

Output-directory rejections are printed to stderr without changing existing logs. For an available output directory, runtime errors are appended to <output-dir>/errors.jsonl: recoverable Worker failures as well as checkpoint, Policy Server, simulator, and configuration errors. When a RoboTwin simulator crashes with a normal error exit, the episodes it finished are kept and the rest of that window count as failures, so the evaluation continues. Out-of-memory and signal exits restart the Worker and replay its Work Item, with one retry per run. Each component also keeps its own detailed log.

Writing a Policy

Capabilities and action contracts

load() returns PolicyCapabilities, which declares the benchmarks and suites you support, the observation features you need, the action-chunk sizes that are safe for your model, and the maximum inference batch size. It can also choose an action representation and an observation stride per benchmark:

PolicyCapabilities(
    supported_benchmarks=(BenchmarkName.ROBOTWIN,),
    required_features=("images.head", "state.joints"),
    supported_action_chunk_sizes=(37,),
    action_representations={BenchmarkName.ROBOTWIN: "robotwin.ee-compact-quat-v1"},
    observation_strides={BenchmarkName.ROBOTWIN: 1},
)

The runtime checks each declared representation against the benchmark specification and requires every replica to agree on the same action contract before evaluation starts. If you omit action_representations, the benchmark default is used. The chosen contract and where it came from are recorded in the inference metadata.

RoboTwin accepts a positive observation stride. The default is 1, so every new action chunk gets a fresh observation. Randomized lighting, the viewer, video logging, and point-cloud observations always render every step, whatever stride you declare.

Concurrency (K) and replica count (g) are not capabilities; the runtime chooses them, or you fix them with --concurrency and --replicas (see Automatic tuning).

Episode state

Before each episode the runtime calls reset(EpisodeContext); every observation carries its episode_id; when the episode ends it calls end_episode(episode_id). The SDK forwards these calls but does not store Policy state for you. If your Policy keeps state, key it by episode_id and release it in end_episode(). The X-VLA example is a stateful Policy; the StarVLA example is stateless.

The OpenVLA example serves the four fine-tuned LIBERO suites with a separate pinned Python 3.11 Policy environment, CPU image preprocessing, BF16/FlashAttention2 inference, and the standard LIBERO simulator Worker. It returns one action per observation through the standard Policy lifecycle.

For RoboDojo, a Policy that needs observations between actions in a chunk can declare step_observation_updates=("robodojo",) in PolicyCapabilities and implement observe(Observation). The observation passed to act() starts each chunk; observe() receives the intermediate steps in order. Updates are synchronous by default. The RoboDojo manifest can opt into an experimental bounded queue; updates are drained before the next act() and before ending the episode.

Input preprocessing

Each benchmark sends its canonical observation unchanged: no model-specific resizing, normalization, or channel/layout conversion. Your Policy does those transformations before calling the model, so model input sizes are not part of the benchmark or Policy API.

Supported benchmarks

Each benchmark has an execution chain in this package. The simulators, datasets, and assets are not dependencies of the PyPI package; the benchmark manifest points the runtime at them.

OX Radar and Response Center

Find threats in your stack.

OX Radar can check high-priority threats, like critical package CVEs, against your context.

Each incident is marked Detected or Not Detected with a remediation plan and proof all tracked in the Response Center.

Where it’s listed

The probe returned only these fields for this server — auth requirement, protocol and tool list weren’t observed, so they’re not shown (never guessed).

  • pypi-releases roboscope-kit

References

The publisher’s own links, as the registry reports them. These are not sources for the assessment on this page.

Scan your whole stack

Group 1261154050 1
Group 1261154050
 

From OX Research Newsroom

Microsoft's Official agent framework Hijacked
AI & VibeSec

BREAKING: Hijacked Releases of Microsoft’s Official agent-framework Steals Azure and CI Credentials

Cry2Wolf: How to Tell a Real Bug from a Nothingburger
AI & VibeSec

Cry2Wolf: Not Every Branded Bug Deserves a Fire Drill

Copy of Template Design OX Blog (2)
Research

NGINX2Root: Five Critical NGINX Flaws Expose Web Servers to Remote Code Execution

Frame 2085668439 (1)
Group 1261154229