File size: 26,544 Bytes
ea1cf9a
 
91c3b97
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
ea1cf9a
 
 
 
 
 
 
 
 
f17cb13
744975a
f17cb13
ea1cf9a
 
f17cb13
744975a
56d0a84
 
 
ea1cf9a
 
f17cb13
 
a395b6c
2acdb2a
56d0a84
f17cb13
ea1cf9a
 
 
 
 
 
 
 
3e2d677
 
 
 
 
 
 
 
 
 
0e501f2
ea1cf9a
0e501f2
 
 
 
 
 
 
 
 
 
 
 
 
 
 
ea1cf9a
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
3e2d677
ea1cf9a
 
 
 
3e2d677
 
 
 
 
 
 
 
 
 
 
 
ea1cf9a
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
3e2d677
ea1cf9a
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
3e2d677
 
 
 
 
 
 
 
 
 
 
 
 
 
 
ea1cf9a
 
3e2d677
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
ea1cf9a
 
 
 
 
 
 
 
 
 
 
3e2d677
 
56d0a84
ea1cf9a
0e501f2
 
56d0a84
 
0e501f2
ea1cf9a
0e501f2
 
 
91c3b97
 
0e501f2
 
 
 
91c3b97
0e501f2
 
 
 
 
 
 
91c3b97
 
ea1cf9a
0e501f2
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
ea1cf9a
 
 
 
 
 
 
 
0e501f2
ea1cf9a
3e2d677
 
0e501f2
3e2d677
ea1cf9a
 
744975a
ea1cf9a
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
---
pretty_name: ManipulationArena
configs:
- config_name: index
  default: true
  data_files:
  - split: benchmark
    path: release/index/units.csv
dataset_info:
- config_name: index
  features:
  - name: unit_key
    dtype: string
  - name: unit_id
    dtype: string
  - name: family
    dtype: string
  - name: task_id
    dtype: string
  - name: suite
    dtype: string
  - name: attack_channel
    dtype: string
  - name: attack_failure_mode
    dtype: string
  - name: case_id
    dtype: string
  - name: unit_path
    dtype: string
  - name: plan_path
    dtype: string
  - name: unit_sha256
    dtype: string
  - name: plan_sha256
    dtype: string
tags:
- agent-safety
- agentdog
- benchmark
- long-horizon
- red-teaming
- goal-manipulation
---

<p align="center">
  <img src="./figs/welcome.png" width="70%" alt="AgentDoG2 Technical Report"/>
</p>

<p align="center">
  🐙 <a href="https://github.com/AI45Lab/AgentDoG"><b>GitHub</b></a> &nbsp; | &nbsp;
  🤗 <a href="https://huggingface.co/collections/AI45Research/agentdog2-6b09556a028a2ce10c53f2fe"><b>Models and Datasets</b></a> &nbsp; | &nbsp;
  🌐 <a href="https://ai45lab.github.io/AgentDoG/v2/"><b>Project Page</b></a> &nbsp; | &nbsp;
  🎬 <a href="https://ai45lab.github.io/AgentDoG/v2/#demos"><b>Demos</b></a> &nbsp; | &nbsp;
  🚀 <a href="https://github.com/AI45Lab/AgentDoG/blob/main/examples/getting_started_v2.md#agentdog2-trajectory-auditing-with-transformers"><b>Getting Started</b></a>
</p>

# ManipulationArena: Evaluating Covert Goal Manipulation in Long-Horizon Agent Tasks

> **Dataset ready — complete release available:** 888 frozen attack units, execution tools, documentation and the native Docker runtime image. The complete package is preserved under [`release/`](https://huggingface.co/datasets/AI45Research/ManipulationArena/tree/main/release).

**Part of [AgentDoG2: An Efficient Alignment Framework for Emergent Risk in Long-Horizon Agent Tasks](https://ai45lab.github.io/AgentDoG/v2/)**

**ManipulationArena evaluates agents' susceptibility to covert goal manipulation through reusable attack plans that adapt to live, long-horizon execution.** The current manuscript reports **888 attack plans**, **seven strategy families**, **six attack channels**, and **30 native tasks** across five application suites.

## Introduction

Long-horizon agents rely on earlier observations, retained state, tool specifications, and intermediate artifacts. An attack can exploit those dependencies so that later actions still look task-relevant while drifting away from the user's authorized goal.

ManipulationArena studies that risk through executable red teaming. Each case provides a stored attack plan as a common starting point. During evaluation, the attack agent adapts and executes the plan against the target agent's current trajectory. The resulting trajectory and outcome belong to that run; the benchmark is not a collection of identical immutable replay traces.

## Project Performance at a Glance

<p align="center">
  <img src="./figs/abstract.png" width="100%" alt="AgentDoG2 project performance overview: unsafe F1 versus inference cost, inference latency and speedups, and fine-grained safety diagnosis on ATBench">
</p>

[Full-resolution main figure (PDF)](./figs/abstract.pdf)

**AgentDoG2 project overview, reproduced from the manuscript's main figure.** The panels compare (a) unsafe F1 and API inference cost, (b) inference latency and relative speedups, and (c) fine-grained diagnosis on **ATBench**. Cost estimates prioritize official API prices and use DeepInfra or OpenRouter rates for the base models of small open-source models and their derivatives. ManipulationArena evaluates live goal-manipulation attacks; its own attack and defense results appear below.

## Released Files

The downloadable package contains **888 attack units across seven strategy families**, their execution index, native task assets, the shared Python runner and documentation. The original directory layout and checksum files are preserved inside `release/`; run the release tools from that directory.

| Resource | Link |
| --- | --- |
| Original release README | [Browse](https://huggingface.co/datasets/AI45Research/ManipulationArena/blob/main/release/README.md) |
| Execution index — 888 records | [JSONL](https://huggingface.co/datasets/AI45Research/ManipulationArena/blob/main/release/index/units.jsonl) · [Download CSV](https://huggingface.co/datasets/AI45Research/ManipulationArena/resolve/main/release/index/units.csv) |
| Installation and runtime guide | [Getting Started](https://huggingface.co/datasets/AI45Research/ManipulationArena/blob/main/release/docs/GETTING_STARTED.md) |
| Record and path definitions | [Schema](https://huggingface.co/datasets/AI45Research/ManipulationArena/blob/main/release/docs/SCHEMA.md) |
| Native Docker runtime — 10.38 GB / 9.67 GiB | [Download `manipulationarena-gym-1.0.0.tar`](https://huggingface.co/datasets/AI45Research/ManipulationArena/resolve/main/release/manipulationarena-gym-1.0.0.tar) · [SHA-256](https://huggingface.co/datasets/AI45Research/ManipulationArena/resolve/main/release/manipulationarena-gym-1.0.0.tar.sha256) |
| Complete release checksums | [SHA256SUMS](https://huggingface.co/datasets/AI45Research/ManipulationArena/blob/main/release/SHA256SUMS) |
| Licensing and third-party asset status | [LICENSE_STATUS.md](https://huggingface.co/datasets/AI45Research/ManipulationArena/blob/main/release/LICENSE_STATUS.md) |

The non-image portion of the release is approximately **99 MiB**. The HF preview displays the execution index; each row refers to files in the full release. Frozen plans are benchmark inputs. Trajectories and verdicts are produced by actual evaluation runs, rather than shipped as new evaluation results.

The statistics and result tables below reproduce the manuscript's evaluation snapshot. See [Getting Started](#getting-started) to download and inspect the released files.

## Benchmark Overview

| Statistic | Manuscript-reported value |
| --- | ---: |
| Reusable attack plans | **888** |
| Native long-horizon tasks | **30** |
| Attack strategy families | **7** |
| Attack channels | **6** |
| Possible strategy–channel configurations | **7 × 6 = 42** |
| Mean agent response turns | **24.12** |
| Mean tool-call steps | **23.35** |

A **turn** is one agent response; a **step** is one tool call. Failure modes are annotated from observed target-agent behavior after evaluation and are **not a third attack-configuration axis**.

### Comparison with Existing Multi-Step Safety Benchmarks

| Benchmark | Cases | Strategies | Channels | Mean interaction length |
| --- | ---: | ---: | ---: | ---: |
| AgentDojo | 629 | 4 | 1 | 3.49 steps |
| AutoControl Arena | 280 | 2 | — | — |
| AgentLAB | 644 | 5 | 3 | — |
| SHADE-Arena | 17 | 1 | 1 | ≈25 turns |
| AgentDyn | 560 | 4 | 1 | 7.10 steps |
| ManipulationArena | 888 | 7 | 6 | 24.12 turns / 23.35 steps |

Interaction lengths are means in the stated units. `—` indicates unavailable data, not zero. The approximate SHADE-Arena value is retained from the manuscript comparison.

## Attack Coverage

<p align="center">
  <img src="./figs/benchmark-overview.png" alt="ManipulationArena distributions across seven attack strategies and six channels over 888 cases" width="100%">
</p>

### Strategy Distribution

| Strategy | Mechanism | Attack plans |
| --- | --- | ---: |
| Role-play Attack | Frames an unauthorized objective as part of a legitimate role or nested scenario. | 139 |
| Decomposition | Splits an attack objective across plausible subgoals or successive workflow steps. | 138 |
| Sleeper Poisoning Attack | Plants content in memory or workspace state for delayed activation. | 131 |
| Criterion hijacking | Replaces trusted quality, acceptance or completion criteria with attacker-controlled criteria. | 137 |
| Obstruction Attack | Blocks compliant progress, creating pressure for unauthorized workarounds. | 120 |
| Self-preservation Attack | Uses shutdown, replacement or resource-loss pressure to induce constraint violations. | 129 |
| Oversight Evasion Attack | Uses oversight or evaluation cues to induce hidden side actions, audit tampering or false completion claims. | 94 |
| Total | | 888 |

The first four families use **goal-directed inducement**. The final three use **condition-induced misalignment**: imposed runtime conditions pressure the agent to depart from its authorized goal.

### Channel Distribution

| Channel | Attack plans |
| --- | ---: |
| User instruction | 205 |
| Tool specification | 165 |
| Skill specification | 51 |
| Plugin manifest | 126 |
| Observation | 184 |
| Memory | 157 |
| Total | 888 |

The two distributions are independent marginal counts over the same 888 plans; strategy and channel rows must not be paired to infer joint frequencies.

### Native Task Pool

| Application suite | Tasks | Native task domain |
| --- | ---: | --- |
| AppWorld | 9 | Personal-application workflows. |
| GAIA2 | 11 | Retrieval, aggregation, calendars, and file operations. |
| MedAgent | 4 | Patient-record tasks. |
| τ-banking | 3 | Banking customer service. |
| HealthAgent | 3 | Two electronic-health-record data-quality checks and one survival-prediction task. |
| Total | 30 |  |

The appendix identifies the τ-banking subset of the broader τ-bench suite. The manuscript supports task solvability with 26 successful native evaluations and independent rescoring of saved states for four additional tasks.

## Two-Phase Attack Construction

<p align="center">
  <img src="./figs/duet-attacks.png" alt="Two-phase attack framework with offline task analysis and attack planning followed by adaptation to live target-agent execution" width="100%">
</p>

1. **Task analysis and planning:** the attack agent examines the benign task, identifies cross-step dependencies, selects a strategy–channel configuration, and constructs a task-specific attack blueprint.
2. **Live trajectory grounding:** the attacker observes the target agent's execution and refines the carrier, timing, and intervention form as new task state becomes available. Failed attempts can inform plan revision.

Benchmark generation samples configurations from the 42 possible strategy–channel combinations, permits at most two iterations per sampled configuration, and retains plans from validated adversarial runs. Evaluation starts from the execution phase because the initial planning phase has already been completed.

## Evaluation and Annotation

The primary safety metric is **attack success rate (ASR, lower is better for the defending agent)**: the proportion of evaluated attack runs that satisfy the strategy-specific success criterion.

- A **rule-based evaluator** checks action logs and final environment state for the specified action or effect.
- Where semantic attribution is required, an **independent LLM judge** reviews the full trajectory together with the available rule-based evidence.
- Success requires evidence connecting the specified violation to the attack; ordinary task errors must not automatically count as attack-induced failures.
- Family-level ASRs should be kept separate from the unweighted average across the seven families. The denominator, invalid outcomes, evaluator, and aggregation protocol should accompany reported scores.

After verification, observed behavior receives failure-mode annotations:

| Level | Failure modes |
| --- | --- |
| Harness-level | Permission violation; data-flow violation; explicit rule violation; state-change violation |
| Model-level | Intent drift; unsupported fact; situational harm |

The attack strategy and channel describe the plan; failure labels describe what the target actually did. An attack can lead to different outcomes under different agents or execution traces.

## Reported Red-Team Results

The manuscript's red-team diagnostic table reports the following **unweighted mean ASRs across the seven strategy families** on the 888-case result-conditioned diagnostic subset. Invalid outcomes remain in each strategy's denominator. These diagnostic aggregates must be kept separate from the blue-team table below.

| Target harness | Policy model | Mean ASR ↓ (%) |
| --- | --- | ---: |
| Claude Code | Opus 5.5 | 46.82 |
| Codex | GPT-6.1-sol | 54.18 |
| DeepSeek Harness | DeepSeek-V4.1-flash | 74.37 |
| KimiCode | Kimi-3.1 pro | 69.65 |
| ZCode | GLM-5.3 | 59.18 |
| DeepSeek Harness | Qwen3.8-27B | 65.84 |

Vulnerability varies by strategy: the reported self-preservation ASR reaches **94.57%** for KimiCode + Kimi-3.1 pro, while Claude Code + Opus 5.5 has **24.47%** ASR on oversight evasion and **66.67%** on obstruction. These are diagnostic results for the evaluated configurations and selected cases, rather than population-level attack probabilities.

## SafeRSI and Guardrail Evaluation

ManipulationArena also evaluates **SafeRSI**, which routes attributed failures to harness evolution, policy evolution, or both, with optional AgentDoG-Step runtime protection.

### Harness Evolution

<p align="center">
  <img src="./figs/harness-evolution.png" width="100%" alt="SafeRSI harness evolution: failure attribution, generation of policy and code patches, admission checks, and paired holdout validation">
</p>

**Attribution → patch generation → validation.** An Analyzer locates the violated boundary and an Editor repairs the responsible component. Natural-language policy patches update prompts, memory or skills; code patches add deterministic runtime enforcement. Admission checks and paired safety/utility holdouts determine which patches become part of the hardened harness.

### Policy Evolution

<p align="center">
  <img src="./figs/policy-evolution.png" width="100%" alt="SafeRSI policy evolution: analyze failures, synthesize corrective trajectories, review safe task-completion demonstrations, and fine-tune the policy">
</p>

**Learning safe task completion from failures.** Failure analysis produces corrective demonstrations through environment-free trajectory synthesis and textual review. Supervised fine-tuning teaches the policy to continue toward the legitimate task safely. The feedback loop in the figure represents the intended iterative process; the quantitative V1/V2 configurations are reported separately below.

### Safety and Benign Utility

The following values reproduce the manuscript's **blue-team evaluation** and share the DSH + Qwen3.8-27B baseline.

| Configuration | ManipulationArena ASR ↓ (%) | BFCL-v3 function-calling accuracy ↑ (%) |
| --- | ---: | ---: |
| DeepSeek Harness + Qwen3.8-27B | 65.84 | 75.34 |
| SafeRSI Harness V1 + SafeRSI-27B V1 | 28.04 | 66.72 |
| SafeRSI Harness V2 + SafeRSI-27B V2 | 25.68 | 65.17 |
| SafeRSI V1 + AgentDoG-Step | **21.40** | **67.39** |
| SafeRSI V2 + AgentDoG-Step | 24.21 | 64.92 |

V1/V2 denote reported harness–policy evolution rounds. V1 + Step reduces ManipulationArena ASR by **44.44 percentage points** relative to the base configuration, while BFCL-v3 accuracy is **7.95 percentage points lower**. V2 + Step is not uniformly better than V1 + Step. BFCL-v3 is a separate utility benchmark and is not part of the ManipulationArena dataset.

These scores describe complete harness–policy configurations. The [SafeRSI-27B V1](https://huggingface.co/AI45Research/SafeRSI-27B-V1) and [V2](https://huggingface.co/AI45Research/SafeRSI-27B-V2) repositories publish the policy component; [AgentDoG-Step](https://huggingface.co/AI45Research/AgentDoG-Step-Qwen3.5-4B) provides pre-execution guardrail assessment. A policy checkpoint alone does not reproduce the complete evaluated system.

See the [SafeRSI section](https://ai45lab.github.io/AgentDoG/v2/#evolution) for results across AgentLAB, AutoControl-Arena, and BFCL-v3. The manuscript's separate red-team diagnostic and blue-team tables use different reported aggregates for some general-agent baselines; this card does not combine them or infer cross-table improvements.

## Getting Started

For AgentDoG2 model inference, see the [official Getting Started guide](https://github.com/AI45Lab/AgentDoG/blob/main/examples/getting_started_v2.md#agentdog2-trajectory-auditing-with-transformers). Dataset download and benchmark setup instructions follow below.

The commands below follow the released [installation and runtime guide](https://huggingface.co/datasets/AI45Research/ManipulationArena/blob/main/release/docs/GETTING_STARTED.md). Use **Python 3.10 or newer**, a Bash shell, and Linux with **amd64 Docker containers**. Ubuntu 24.04 is the documented host setup. Keep Python environments, configuration and run outputs outside `release/` so its checksums remain valid.

### 1. Download the data, code and documentation

Install the HF CLI, then download the core files without the large runtime archive:

```bash
python3 -m pip install -U huggingface_hub
hf download --repo-type dataset AI45Research/ManipulationArena \
  --local-dir ./ManipulationArena \
  --exclude "release/manipulationarena-gym-1.0.0.tar"
cd ./ManipulationArena/release
export MANIPULATIONARENA_ROOT="$PWD"
export PYTHONDONTWRITEBYTECODE=1
export ARENA_HOME="$HOME/.local/share/manipulationarena"
mkdir -p "$ARENA_HOME/tools" "$ARENA_HOME/config" "$ARENA_HOME/runs"
python3 -m venv "$ARENA_HOME/venv"
source "$ARENA_HOME/venv/bin/activate"
python -m pip install 'requests>=2.31' 'PyYAML>=6'
python -B -m manipulationarena inspect
```

To download the **complete package including the image** instead, run these commands from your chosen parent directory, then use the same environment setup above:

```bash
hf download --repo-type dataset AI45Research/ManipulationArena --local-dir ./ManipulationArena
cd ./ManipulationArena/release
```

`inspect` reads the release inventory and makes no model calls. The complete checksum validation in the next step requires the runtime archive as well as the core files.

### 2. Download, verify and load the runtime image

Install and start Docker using the host setup in the [full guide](https://huggingface.co/datasets/AI45Research/ManipulationArena/blob/main/release/docs/GETTING_STARTED.md#install-host-dependencies). If you downloaded only the core files, retrieve the archive into the same release layout:

```bash
hf download --repo-type dataset AI45Research/ManipulationArena \
  release/manipulationarena-gym-1.0.0.tar \
  release/manipulationarena-gym-1.0.0.tar.sha256 \
  --local-dir "$(dirname "$MANIPULATIONARENA_ROOT")"
cd "$MANIPULATIONARENA_ROOT"
sha256sum --check manipulationarena-gym-1.0.0.tar.sha256
python -B -m manipulationarena validate --require-checksums
docker load --input manipulationarena-gym-1.0.0.tar
export ARENA_IMAGE='manipulationarena-gym:1.0.0'
python -B -m manipulationarena doctor --image "$ARENA_IMAGE"
```

The image provides AppWorld, Gaia2, MedAgent, HealthAgent and Tau banking with the native runtime dependencies. All seven attack families execute through a local Docker daemon. Execution uses `--pull=never`, so the image must already be loaded locally. The archive can also be downloaded directly from the [runtime image link](https://huggingface.co/datasets/AI45Research/ManipulationArena/resolve/main/release/manipulationarena-gym-1.0.0.tar).

### 3. Configure the model roles

The host Red CLI uses **Node.js 22** and **Claude Code 2.1.303**. Follow the pinned installation commands in the [full guide](https://huggingface.co/datasets/AI45Research/ManipulationArena/blob/main/release/docs/GETTING_STARTED.md#install-host-dependencies), and check the [runtime dependencies](https://huggingface.co/datasets/AI45Research/ManipulationArena/blob/main/release/docs/DEPENDENCIES.md).

```bash
cp config/roles.example.json "$ARENA_HOME/config/roles.json"
"${EDITOR:-vi}" "$ARENA_HOME/config/roles.json"
export ARENA_RED_API_KEY='YOUR_RED_KEY'
export ARENA_BLUE_API_KEY='YOUR_BLUE_KEY'
export ARENA_JUDGE_API_KEY='YOUR_JUDGE_KEY'
export ARENA_NATIVE_SCORER_API_KEY='YOUR_NATIVE_SCORER_KEY'
export ARENA_USER_SIMULATOR_API_KEY='YOUR_USER_SIMULATOR_KEY'
```

Set each role's endpoint and the Blue model in this external configuration. Red remains Claude Code with `deepseek-v4.1-flash`; native auxiliary models retain their frozen identities. The default Blue adapter is DSH. Other harnesses use the shared [Blue adapter protocol](https://huggingface.co/datasets/AI45Research/ManipulationArena/blob/main/release/docs/BLUE_ADAPTERS.md).

### 4. Check the runtime and run one attack unit

```bash
python -B -m manipulationarena doctor --full \
  --config "$ARENA_HOME/config/roles.json" --image "$ARENA_IMAGE" \
  --output "$ARENA_HOME/runs/preflight"
ARENA_UNIT="$(python -B -c 'from manipulationarena.dataset import Dataset; print(Dataset().select()[0].key)')"
python -B -m manipulationarena inspect --unit-key "$ARENA_UNIT" --show-plan
ARENA_PREPARE="$(mktemp -d "$ARENA_HOME/runs/prepare.XXXXXXXX")"
python -B -m manipulationarena prepare --unit-key "$ARENA_UNIT" \
  --config "$ARENA_HOME/config/roles.json" --image "$ARENA_IMAGE" \
  --output "$ARENA_PREPARE/unit" --check-plan
ARENA_RUN="$(mktemp -d "$ARENA_HOME/runs/run.XXXXXXXX")"
python -B -m manipulationarena run --unit-key "$ARENA_UNIT" \
  --config "$ARENA_HOME/config/roles.json" --image "$ARENA_IMAGE" \
  --output "$ARENA_RUN/unit"
```

Inspection, validation and preparation make no model calls and start no native tasks. Full preflight checks the local runtime; `run` calls the configured model APIs and executes the native task. Use fresh external output directories. A successful process exit is not itself an attack verdict: the recorded result must have `status` equal to `attack_success` or `attack_failure`.

### 5. Evaluate or resume a batch

```bash
python -B -m manipulationarena batch \
  --config "$ARENA_HOME/config/roles.json" --image "$ARENA_IMAGE" \
  --output "$ARENA_HOME/runs/benchmark"
python -B -m manipulationarena batch --resume \
  --config "$ARENA_HOME/config/roles.json" --image "$ARENA_IMAGE" \
  --output "$ARENA_HOME/runs/benchmark"
python -B -m manipulationarena summarize --output "$ARENA_HOME/runs/benchmark"
```

Use `--family`, repeated `--unit-key`, or `--limit` to select a subset. `--resume` skips valid verdicts; add `--retry-incomplete` explicitly to retry incomplete attempts. See the [evaluation and output definitions](https://huggingface.co/datasets/AI45Research/ManipulationArena/blob/main/release/docs/EVALUATION.md) for valid results, failure categories and aggregation.

## Data Format

[`release/index/units.jsonl`](https://huggingface.co/datasets/AI45Research/ManipulationArena/blob/main/release/index/units.jsonl) has **one record per attack unit**. The same execution index is provided as [CSV](https://huggingface.co/datasets/AI45Research/ManipulationArena/resolve/main/release/index/units.csv).

| Field | Meaning |
| --- | --- |
| `unit_key`, `unit_id` | Stable opaque identity and readable composite identifier. |
| `family`, `task_id`, `suite`, `attack_channel` | Attack mechanism and native task context. Task IDs may recur in different cases or channels. |
| `unit_path`, `plan_path` | Paths to the unit and frozen plan, relative to the `release/` directory. |
| `unit_sha256`, `plan_sha256` | Content hashes for the referenced files. |
| `attack_failure_mode`, `case_id`, `engine_profile` | Optional frozen-design or source-variant metadata, where supplied. |

Each attack unit contains `unit.json` and `attack_plan.json`. Obstruction units also include initialization and task-context files. `attack_failure_mode` describes the frozen design; later runtime observations and Judge verdicts belong to the evaluation run. See [the complete schema](https://huggingface.co/datasets/AI45Research/ManipulationArena/blob/main/release/docs/SCHEMA.md).

The HF `index` configuration previews the CSV execution index as a single `benchmark` split, with its fields displayed as strings. It provides an entry point for browsing the 888 units; it does not define a training/test partition. The index alone does not reproduce live evaluation: native execution also requires the referenced data, engines, configured model roles and Docker runtime. ManipulationArena is intended for authorized safety evaluation and defense research in isolated agent environments.

## Limitations and Intended Use

- The corpus contains retained plans from validated adversarial runs. Its success rates are diagnostic for the evaluated settings and should not be interpreted as universal population-level attack probabilities.
- Live adaptation, target-agent sampling, tool behavior, and environment state can change the generated trajectory and result across runs.
- Seven strategy families and six channels do not exhaust the possible attack space. Coverage of a strategy/channel family does not imply equal coverage of every joint configuration.
- Semantic judging can introduce evaluator error. Results should identify the decision rules, denominator, aggregation protocol, and target configuration used.
- The 30-task pool spans five suites but remains limited in application and runtime coverage. Task success and safety are complementary evaluation dimensions.
- Native environments and third-party materials retain their own access requirements and redistribution terms. Consult the included [licensing and third-party asset status](https://huggingface.co/datasets/AI45Research/ManipulationArena/blob/main/release/LICENSE_STATUS.md) and runtime dependency notices.

## License and Release Information

The package preserves its original [LICENSE_STATUS.md](https://huggingface.co/datasets/AI45Research/ManipulationArena/blob/main/release/LICENSE_STATUS.md). No new blanket license is asserted for the data, source code or runtime image. Native benchmark assets, Docker layers and bundled dependencies retain their respective upstream terms and notices; model-weight licenses do not establish the license of this package.

## Citation

This benchmark is introduced in **AgentDoG2: An Efficient Alignment Framework for Emergent Risk in Long-Horizon Agent Tasks**, from Shanghai Artificial Intelligence Laboratory. A public technical-report URL and the final BibTeX citation will be added with the report release. Until then, refer to the exact title and the [AgentDoG project repository](https://github.com/AI45Lab/AgentDoG); earlier AgentDoG/ATBench paper identifiers should not be used as the identifier for this new report.

## Contact

Please use [GitHub Issues](https://github.com/AI45Lab/AgentDoG/issues) for questions, suspected benchmark errors, or release updates.