Run with Inspect AI¶
Inspect AI is the evaluation framework of the UK AI Security Institute. ROGUE-AI Bench ships an Inspect task, so anyone who already evaluates models with inspect eval can run the benchmark without learning the roguebench command line. Every model provider Inspect supports works, and the sessions open in Inspect View.
Install and run¶
pip install 'rogue-ai-bench[inspect]'
export OPENAI_API_KEY=... # the key of the provider you use, as for any Inspect task
inspect eval roguebench/roguebench --model openai/gpt-5-mini -T suite=support_agent
inspect eval roguebench/roguebench --model anthropic/claude-sonnet-4-6 -T suite=support_agent,ops_agent --epochs 3
inspect eval roguebench/roguebench --model mockllm/model -T scenario=support_agent/s1_policy # offline, no key
inspect view # the transcripts of every call
Inspect is optional: import roguebench and the roguebench command never need it. roguebench/roguebench is roguebench.inspect_eval.roguebench, found through the package's inspect_ai entry point. In an editable install (pip install -e .) Inspect does not add the package prefix, so write the task as roguebench there.
Without -T suite=... the task covers all ten suites and the two Docker suites need Docker (see below). Start with one suite: the core track of all suites is 214 samples.
What a sample is¶
One sample is one scenario under one condition: the incident condition (incident, called trigger elsewhere in these docs) or the controls. A sample runs the scenario's simulation against the model under evaluation, exactly as roguebench run does. Where a scenario has two matched controls, the control sample runs both and its score is the share of those sessions that ended in harm. --epochs N repeats every sample; the CLI's --reps 3 is --epochs 3.
Sample ids read <suite>/<scenario>/<condition>. The sample metadata holds the suite, the scenario, the condition, the track, and the ids and titles of the incidents the scenario replicates.
Parameters¶
Pass them with -T name=value.
| Parameter | Default | Meaning |
|---|---|---|
suite |
all | Comma-separated suites, e.g. support_agent,ops_agent. |
scenario |
all | Comma-separated scenarios, <suite>/<id> or a bare suite name. |
track |
core |
core: incident condition and controls. full: also the defense, adaptive and adaptive-plus-defense conditions of the scenarios that have them. |
live |
none |
none: the paper's scenarios. only: the live scenarios added after the paper. also: both. |
defense |
none | Benchmark-wide defenses, comma-separated: reminder, sandwich, spotlight, detector, pi_detector, tool_filter (Defenses). |
attack |
none | An attack from roguebench list attacks, written into the scenarios' injection vectors (Attacks). |
incidents_after |
none | YYYY-MM-DD: keep scenarios whose incidents were all first reported after it, for models whose training data ends before. |
docker |
True |
docker=False leaves out the two suites that need Docker (the equivalent of --no-docker). |
out |
runs/inspect |
Where the session files go (see below). |
What the scores mean¶
The score of a sample is the share of its finished sessions that ended in harm (1 means all of them). Code reads it from the simulated environment's state; no judge model is involved. The log reports these metrics:
| Metric | Meaning |
|---|---|
harm_incident, harm_control |
Harmful sessions divided by finished sessions, pooled over the samples of that condition. On the full track also harm_defense, harm_adaptive and harm_adaptive_defense. |
utility_incident, utility_control |
Share of sessions in which the agent completed its task, over the sessions of suites that record completion. A model that refuses everything has no harm and no utility. |
lift |
harm_incident minus harm_control: the harm the incident condition adds over a world without the hazard. |
Errored sessions (an API failure that survived Inspect's retries) are left out of the rates and listed in the sample's score explanation; a sample in which no session finished fails with an error, and the session logs stay in <out>/_inspect/.
Inspect View and settings¶
Every call the simulation makes to the model is a model event of its sample, so Inspect View shows the system prompt, the transcript the agent saw, the reply and the token counts. The messages of a sample are those of its last call, which carries the whole transcript of its last session.
The simulations send only the maximum reply length. Everything else is Inspect's: --temperature, --reasoning-effort, --max-connections, --max-samples, --retry-on-error. The paper's runs used temperature 0.1, which is --temperature 0.1. The simulations speak their text protocol (ACTION: tool(arg=value), DONE: report); native function calling (--tool-mode native of the CLI) is not available through Inspect.
Verdicts and the leaderboard¶
Inspect reports pooled rates. The paper's per-scenario verdicts (supported, suggestive, not reproduced), the exact test, the Wilson intervals and the comparison with the paper's five models stay in roguebench score. The task writes its sessions in the layout that command reads, so you can run it on the same folder:
roguebench score runs/inspect
The file tag is the Inspect model name with / replaced by _ (openai_gpt-5-mini), and each epoch is one repetition. Running a sample again replaces its earlier sessions in that folder instead of adding to them. To score separate runs apart, give each its own folder with -T out=runs/<name>. Leaderboard entries come from roguebench run with the full three repetitions of the frozen track (Contributing > Results); an Inspect log alone is not a submission.
Limits¶
- Docker.
destructive_actionsandcontainment_breachrun in containers. The task starts them only when Docker is running; otherwise their samples fail with a message.-T docker=Falseremoves them from the dataset. The other eight suites need no Docker. - Local endpoint. The simulations run in a subprocess. For each sample the task opens a small OpenAI-compatible endpoint on
127.0.0.1(a free port, closed when the sample ends) and the simulation calls the model through it. Nothing listens outside the machine. If a proxy is set in the environment,127.0.0.1is excluded from it for the simulation. - Cost. A sample is a full session of one to a few dozen model calls, and the core track of all suites is hundreds of sessions per epoch. Try one suite,
--limit 5or the offlinemockllm/modelfirst. - Agents and sandboxes. The simulated environments live inside the benchmark, not in an Inspect sandbox, so Inspect's tools,
react()agents and sandbox providers do not apply. A custom agent is stillroguebench run --agent FILE.py:FN(Agents and models).