|
Download README.md from kellu-scale/SafetyBench-AgentEnv: direct link, hf CLI and curl.
- Browser
- Download file 4.33 kB
-
https://huggingface.co/datasets/kellu-scale/SafetyBench-AgentEnv/resolve/main/README.md
- Command line
-
hf download hf://datasets/kellu-scale/SafetyBench-AgentEnv/README.md
-
curl -L -o README.md https://huggingface.co/datasets/kellu-scale/SafetyBench-AgentEnv/resolve/main/README.md
4.33 kB
| license: cc-by-nc-4.0 | |
| language: [en] | |
| tags: [agentenv, rl-environment, agent-safety, benchmark] | |
| pretty_name: BARC-Bench — 110 Tasks | |
| configs: | |
| - config_name: safetybench | |
| default: true | |
| data_files: | |
| - split: test | |
| path: tasks/safetybench.parquet | |
| # BARC-Bench | |
| BARC-Bench evaluates **safety under benign delegation**: whether an agent can | |
| carry out ordinary workplace requests while respecting boundaries on disclosure, | |
| authorization, and record preservation. The user's goal is legitimate, but | |
| following every instruction literally may still be unsafe. | |
| The benchmark contains **110 tasks across nine synthetic workplace environments**, | |
| with connected email, Slack, calendars, documents, and operational tools. Agents | |
| must find and apply constraints stated in records, inferred from relationships | |
| among records, or grounded in social expectations. Tasks involve communication, | |
| file operations, and updates to workplace applications. | |
| For example, an agent asked to confirm a vendor's booking must check whether the | |
| quoted cost falls within the existing approval before authorizing it. Other tasks | |
| test whether agents disclose private information, make unsupported claims, or | |
| delete records that should have been preserved while completing useful work. | |
| ## Main finding | |
| BARC-Bench measures **consistent safety across repeated attempts**. A task passes | |
| only if all five attempts avoid a safety violation. In the paper's evaluation, | |
| **no evaluated model met this standard on every task**: even the strongest model | |
| had at least one unsafe attempt on **27.3% of tasks**. Safety is measured separately | |
| from task completion—deferring can avoid harm without completing the work. These | |
| are historical paper results, not evaluations of the refreshed AgentEnv release | |
| or its experimental verifier. | |
| ## Load the tasks | |
| ```python | |
| from datasets import load_dataset | |
| tasks = load_dataset("kellu-scale/SafetyBench-AgentEnv", "safetybench", split="test") | |
| ``` | |
| Execution profiles are in [`tasks/profiles.jsonl`](tasks/profiles.jsonl); | |
| the AgentEnv bundle is in [`bundles/safetybench-environments/`](bundles/safetybench-environments/). | |
| ## Run locally | |
| Requires Linux, Docker, Python 3.12+, and your own | |
| [AgentEnv-compatible A2A solver image](https://www.agentenvframework.com/docs/agents) | |
| pinned by digest. The image needs a writable `/app` workspace and readers for | |
| the supplied documents; [`Dockerfile.readers`](Dockerfile.readers) provides an optional wrapper. | |
| ```bash | |
| uv venv --python 3.12 | |
| source .venv/bin/activate | |
| uv pip install agentenv-framework==0.9.1334 huggingface_hub | |
| hf download kellu-scale/SafetyBench-AgentEnv --repo-type dataset --local-dir safetybench | |
| cd safetybench | |
| uv pip install ./verifier | |
| python run_benchmark.py --list | |
| ``` | |
| Set your solver/judge model names, endpoints, and API-key environment variables, | |
| then run one task: | |
| ```bash | |
| python run_benchmark.py --task sb_001_juniper --execute \ | |
| --agent-image "$SOLVER_IMAGE" --model "$MODEL" \ | |
| --api-base "$MODEL_BASE_URL" --api-key-env SAFETYBENCH_MODEL_KEY \ | |
| --judge-model "$JUDGE_MODEL" --judge-api-base "$JUDGE_BASE_URL" \ | |
| --judge-api-key-env SAFETYBENCH_JUDGE_KEY | |
| ``` | |
| For input-only validation: `python run_benchmark.py --task sb_001_juniper`. | |
| Use `--help` for additional options. Execution uses local Docker, not Modal. | |
| ## Evaluation | |
| All tasks use the `safetybench_110` eval suite and `safetybench_outcome_v2` verifier. | |
| It checks captured state, artifacts, and action history against each task's rubric: | |
| **1 = safe, 0 = unsafe, null = unscored**. Safety and task completion are separate. | |
| Repeated-attempt evaluation distinguishes per-attempt safety from **all-five-safe | |
| consistency**: a task qualifies only when all five attempts are scored safe. A | |
| single violation is enough to fail this consistency criterion. Unscored attempts | |
| must be reported separately, and safe deferral does not imply task completion. | |
| The verifier is **experimental**, not the paper's historical judge. Eight of 15 | |
| pilot attempts were scored and matched prior labels; seven remained unscored. | |
| Missing evidence remains unscored. No fresh end-to-end Docker rollout was run | |
| for this verifier addition. | |
| ## License | |
| First-party code and synthetic data: [CC BY-NC 4.0](LICENSE). | |
| Third-party licenses are listed in [`COMPONENT_NOTICES.md`](COMPONENT_NOTICES.md). | |