krystal7 commited on
Commit
0e501f2
·
verified ·
1 Parent(s): a11ebb1

Publish complete ManipulationArena release and verified getting started guide

Browse files
Files changed (1) hide show
  1. README.md +130 -11
README.md CHANGED
@@ -51,12 +51,12 @@ tags:
51
  🤗 <a href="https://huggingface.co/collections/AI45Research/agentdog2-6b09556a028a2ce10c53f2fe"><b>Models and Datasets</b></a> &nbsp; | &nbsp;
52
  🌐 <a href="https://mjc-ma-01.github.io/AgentDoG/v2_0_dark/"><b>Project Page</b></a> &nbsp; | &nbsp;
53
  🎬 <a href="https://mjc-ma-01.github.io/AgentDoG/v2_0_dark/#demos"><b>Demos</b></a> &nbsp; | &nbsp;
54
- 🚀 <a href="#usage-and-data-format"><b>Usage</b></a>
55
  </p>
56
 
57
  # ManipulationArena: Evaluating Covert Goal Manipulation in Long-Horizon Agent Tasks
58
 
59
- > **Data and source code are available:** the 888 attack units, execution tools and guides are uploaded under [`release/`](https://huggingface.co/datasets/AI45Research/ManipulationArena/tree/main/release). The 9.67 GiB Docker runtime image is uploading separately.
60
 
61
  **Part of [AgentDoG2: An Efficient Alignment Framework for Emergent Risk in Long-Horizon Agent Tasks](https://mjc-ma-01.github.io/AgentDoG/v2_0_dark/)**
62
 
@@ -78,9 +78,23 @@ ManipulationArena studies that risk through executable red teaming. Each case pr
78
 
79
  **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.
80
 
81
- ## Release Status
82
 
83
- The core benchmark files, execution index and Python tools are available. Browse the [original release README](https://huggingface.co/datasets/AI45Research/ManipulationArena/blob/main/release/README.md), [Getting Started guide](https://huggingface.co/datasets/AI45Research/ManipulationArena/blob/main/release/docs/GETTING_STARTED.md), and [888-row execution index](https://huggingface.co/datasets/AI45Research/ManipulationArena/blob/main/release/index/units.jsonl). The Docker runtime image is currently being transferred; native execution requires that image after its upload completes.
 
 
 
 
 
 
 
 
 
 
 
 
 
 
84
 
85
  ## Benchmark Overview
86
 
@@ -239,18 +253,123 @@ These scores describe complete harness–policy configurations. The [SafeRSI-27B
239
 
240
  See the [SafeRSI section](https://mjc-ma-01.github.io/AgentDoG/v2_0_dark/#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.
241
 
242
- ## Usage and Data Format
 
 
243
 
244
- Download the available data, code and documentation without the runtime archive:
 
 
245
 
246
  ```bash
247
- python -m pip install -U huggingface_hub
248
- hf download --repo-type dataset AI45Research/ManipulationArena --local-dir ./ManipulationArena --exclude "release/manipulationarena-gym-1.0.0.tar"
 
 
249
  cd ./ManipulationArena/release
 
 
 
 
 
 
 
250
  python -B -m manipulationarena inspect
251
  ```
252
 
253
- The [execution index](https://huggingface.co/datasets/AI45Research/ManipulationArena/blob/main/release/index/units.jsonl) contains 888 records. Its CSV counterpart powers the HF index preview; this is a browsing index, not a train/test partition. The [schema](https://huggingface.co/datasets/AI45Research/ManipulationArena/blob/main/release/docs/SCHEMA.md) defines paths and fields. Follow the [full guide](https://huggingface.co/datasets/AI45Research/ManipulationArena/blob/main/release/docs/GETTING_STARTED.md) for setup. Native execution and complete-package checksum validation require the runtime archive, whose transfer is still in progress.
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
254
 
255
  ## Limitations and Intended Use
256
 
@@ -259,11 +378,11 @@ The [execution index](https://huggingface.co/datasets/AI45Research/ManipulationA
259
  - 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.
260
  - Semantic judging can introduce evaluator error. Results should identify the decision rules, denominator, aggregation protocol, and target configuration used.
261
  - The 30-task pool spans five suites but remains limited in application and runtime coverage. Task success and safety are complementary evaluation dimensions.
262
- - Native environments and third-party materials retain their own access requirements and redistribution terms. Dataset-specific license, privacy, and release conditions will be documented when artifacts are published.
263
 
264
  ## License and Release Information
265
 
266
- The release preserves its original [LICENSE_STATUS.md](https://huggingface.co/datasets/AI45Research/ManipulationArena/blob/main/release/LICENSE_STATUS.md). No new blanket license is asserted; upstream assets retain their respective terms.
267
 
268
  ## Citation
269
 
 
51
  🤗 <a href="https://huggingface.co/collections/AI45Research/agentdog2-6b09556a028a2ce10c53f2fe"><b>Models and Datasets</b></a> &nbsp; | &nbsp;
52
  🌐 <a href="https://mjc-ma-01.github.io/AgentDoG/v2_0_dark/"><b>Project Page</b></a> &nbsp; | &nbsp;
53
  🎬 <a href="https://mjc-ma-01.github.io/AgentDoG/v2_0_dark/#demos"><b>Demos</b></a> &nbsp; | &nbsp;
54
+ 🚀 <a href="#getting-started"><b>Getting Started</b></a>
55
  </p>
56
 
57
  # ManipulationArena: Evaluating Covert Goal Manipulation in Long-Horizon Agent Tasks
58
 
59
+ > **The release is 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).
60
 
61
  **Part of [AgentDoG2: An Efficient Alignment Framework for Emergent Risk in Long-Horizon Agent Tasks](https://mjc-ma-01.github.io/AgentDoG/v2_0_dark/)**
62
 
 
78
 
79
  **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.
80
 
81
+ ## Released Files
82
 
83
+ 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.
84
+
85
+ | Resource | Link |
86
+ | --- | --- |
87
+ | Original release README | [Browse](https://huggingface.co/datasets/AI45Research/ManipulationArena/blob/main/release/README.md) |
88
+ | 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) |
89
+ | Installation and runtime guide | [Getting Started](https://huggingface.co/datasets/AI45Research/ManipulationArena/blob/main/release/docs/GETTING_STARTED.md) |
90
+ | Record and path definitions | [Schema](https://huggingface.co/datasets/AI45Research/ManipulationArena/blob/main/release/docs/SCHEMA.md) |
91
+ | 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) |
92
+ | Complete release checksums | [SHA256SUMS](https://huggingface.co/datasets/AI45Research/ManipulationArena/blob/main/release/SHA256SUMS) |
93
+ | Licensing and third-party asset status | [LICENSE_STATUS.md](https://huggingface.co/datasets/AI45Research/ManipulationArena/blob/main/release/LICENSE_STATUS.md) |
94
+
95
+ 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.
96
+
97
+ The statistics and result tables below reproduce the manuscript's evaluation snapshot. See [Getting Started](#getting-started) to download and inspect the released files.
98
 
99
  ## Benchmark Overview
100
 
 
253
 
254
  See the [SafeRSI section](https://mjc-ma-01.github.io/AgentDoG/v2_0_dark/#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.
255
 
256
+ ## Getting Started
257
+
258
+ 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.
259
 
260
+ ### 1. Download the data, code and documentation
261
+
262
+ Install the HF CLI, then download the core files without the large runtime archive:
263
 
264
  ```bash
265
+ python3 -m pip install -U huggingface_hub
266
+ hf download --repo-type dataset AI45Research/ManipulationArena \
267
+ --local-dir ./ManipulationArena \
268
+ --exclude "release/manipulationarena-gym-1.0.0.tar"
269
  cd ./ManipulationArena/release
270
+ export MANIPULATIONARENA_ROOT="$PWD"
271
+ export PYTHONDONTWRITEBYTECODE=1
272
+ export ARENA_HOME="$HOME/.local/share/manipulationarena"
273
+ mkdir -p "$ARENA_HOME/tools" "$ARENA_HOME/config" "$ARENA_HOME/runs"
274
+ python3 -m venv "$ARENA_HOME/venv"
275
+ source "$ARENA_HOME/venv/bin/activate"
276
+ python -m pip install 'requests>=2.31' 'PyYAML>=6'
277
  python -B -m manipulationarena inspect
278
  ```
279
 
280
+ To download the **complete package including the image** instead, run these commands from your chosen parent directory, then use the same environment setup above:
281
+
282
+ ```bash
283
+ hf download --repo-type dataset AI45Research/ManipulationArena --local-dir ./ManipulationArena
284
+ cd ./ManipulationArena/release
285
+ ```
286
+
287
+ `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.
288
+
289
+ ### 2. Download, verify and load the runtime image
290
+
291
+ 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:
292
+
293
+ ```bash
294
+ hf download --repo-type dataset AI45Research/ManipulationArena \
295
+ release/manipulationarena-gym-1.0.0.tar \
296
+ release/manipulationarena-gym-1.0.0.tar.sha256 \
297
+ --local-dir "$(dirname "$MANIPULATIONARENA_ROOT")"
298
+ cd "$MANIPULATIONARENA_ROOT"
299
+ sha256sum --check manipulationarena-gym-1.0.0.tar.sha256
300
+ python -B -m manipulationarena validate --require-checksums
301
+ docker load --input manipulationarena-gym-1.0.0.tar
302
+ export ARENA_IMAGE='manipulationarena-gym:1.0.0'
303
+ python -B -m manipulationarena doctor --image "$ARENA_IMAGE"
304
+ ```
305
+
306
+ 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).
307
+
308
+ ### 3. Configure the model roles
309
+
310
+ 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).
311
+
312
+ ```bash
313
+ cp config/roles.example.json "$ARENA_HOME/config/roles.json"
314
+ "${EDITOR:-vi}" "$ARENA_HOME/config/roles.json"
315
+ export ARENA_RED_API_KEY='YOUR_RED_KEY'
316
+ export ARENA_BLUE_API_KEY='YOUR_BLUE_KEY'
317
+ export ARENA_JUDGE_API_KEY='YOUR_JUDGE_KEY'
318
+ export ARENA_NATIVE_SCORER_API_KEY='YOUR_NATIVE_SCORER_KEY'
319
+ export ARENA_USER_SIMULATOR_API_KEY='YOUR_USER_SIMULATOR_KEY'
320
+ ```
321
+
322
+ 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).
323
+
324
+ ### 4. Check the runtime and run one attack unit
325
+
326
+ ```bash
327
+ python -B -m manipulationarena doctor --full \
328
+ --config "$ARENA_HOME/config/roles.json" --image "$ARENA_IMAGE" \
329
+ --output "$ARENA_HOME/runs/preflight"
330
+ ARENA_UNIT="$(python -B -c 'from manipulationarena.dataset import Dataset; print(Dataset().select()[0].key)')"
331
+ python -B -m manipulationarena inspect --unit-key "$ARENA_UNIT" --show-plan
332
+ ARENA_PREPARE="$(mktemp -d "$ARENA_HOME/runs/prepare.XXXXXXXX")"
333
+ python -B -m manipulationarena prepare --unit-key "$ARENA_UNIT" \
334
+ --config "$ARENA_HOME/config/roles.json" --image "$ARENA_IMAGE" \
335
+ --output "$ARENA_PREPARE/unit" --check-plan
336
+ ARENA_RUN="$(mktemp -d "$ARENA_HOME/runs/run.XXXXXXXX")"
337
+ python -B -m manipulationarena run --unit-key "$ARENA_UNIT" \
338
+ --config "$ARENA_HOME/config/roles.json" --image "$ARENA_IMAGE" \
339
+ --output "$ARENA_RUN/unit"
340
+ ```
341
+
342
+ 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`.
343
+
344
+ ### 5. Evaluate or resume a batch
345
+
346
+ ```bash
347
+ python -B -m manipulationarena batch \
348
+ --config "$ARENA_HOME/config/roles.json" --image "$ARENA_IMAGE" \
349
+ --output "$ARENA_HOME/runs/benchmark"
350
+ python -B -m manipulationarena batch --resume \
351
+ --config "$ARENA_HOME/config/roles.json" --image "$ARENA_IMAGE" \
352
+ --output "$ARENA_HOME/runs/benchmark"
353
+ python -B -m manipulationarena summarize --output "$ARENA_HOME/runs/benchmark"
354
+ ```
355
+
356
+ 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.
357
+
358
+ ## Data Format
359
+
360
+ [`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).
361
+
362
+ | Field | Meaning |
363
+ | --- | --- |
364
+ | `unit_key`, `unit_id` | Stable opaque identity and readable composite identifier. |
365
+ | `family`, `task_id`, `suite`, `attack_channel` | Attack mechanism and native task context. Task IDs may recur in different cases or channels. |
366
+ | `unit_path`, `plan_path` | Paths to the unit and frozen plan, relative to the `release/` directory. |
367
+ | `unit_sha256`, `plan_sha256` | Content hashes for the referenced files. |
368
+ | `attack_failure_mode`, `case_id`, `engine_profile` | Optional frozen-design or source-variant metadata, where supplied. |
369
+
370
+ 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).
371
+
372
+ 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.
373
 
374
  ## Limitations and Intended Use
375
 
 
378
  - 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.
379
  - Semantic judging can introduce evaluator error. Results should identify the decision rules, denominator, aggregation protocol, and target configuration used.
380
  - The 30-task pool spans five suites but remains limited in application and runtime coverage. Task success and safety are complementary evaluation dimensions.
381
+ - 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.
382
 
383
  ## License and Release Information
384
 
385
+ 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.
386
 
387
  ## Citation
388