Download hf/dataset_README.md from fahadhafeezofficial/clsa-code: direct link, hf CLI and curl.
- Browser
- Download file 4.53 kB
-
https://huggingface.co/datasets/fahadhafeezofficial/clsa-code/resolve/main/hf/dataset_README.md
- Command line
-
hf download hf://datasets/fahadhafeezofficial/clsa-code/hf/dataset_README.md
-
curl -L -o dataset_README.md https://huggingface.co/datasets/fahadhafeezofficial/clsa-code/resolve/main/hf/dataset_README.md
license: mit
language:
- en
pretty_name: PreAct-Bench
task_categories:
- text-classification
- reinforcement-learning
tags:
- agents
- tool-use
- safety
- world-models
- benchmark
- counterfactual
size_categories:
- 1K<n<10K
configs:
- config_name: default
data_files:
- split: train
path: preact_bench.parquet
PreAct-Bench v1.0
A deterministic benchmark of pre-action decision points for tool-using agents. Each row is a state, a candidate set, the action a logged policy executed, and state-verified labels for every candidate. Nothing is model-judged: labels come from forking a fixed sandbox and replaying.
Companion to the paper Causal Latent-State Agents: Pre-Action Safety from a World Model You Can Audit (Fahad Hafeez, Newcastle University).
Contents
| File | Rows | Description |
|---|---|---|
preact_bench.parquet |
4,508 | viewer-friendly copy; nested fields are JSON strings (see note) |
preact_bench.jsonl |
4,508 | canonical rows with native nested objects |
images/ |
108 | rendered GUI states referenced by observation.image_ref |
meta.json |
— | build metadata: counts, split plan, seed, generator version |
schema/decision_point.schema.json |
— | the published row schema (v1.0) |
DATA_CARD.md |
— | provenance, label construction, known limitations |
Splits are episode-disjoint: train 1,135 / calib 380 / test 380 / heldout
1,540 rows. Filter on the split field.
Row shape (abridged)
{"item_id": "...-c3", "episode_id": "ep_000", "step": 2, "split": "test",
"family": "email_payment", "task_id": "...", "risk_class": "irreversible",
"observation": {"text": "...", "tool_state": {...}, "image_ref": "ep_000_clean.png"},
"candidate_set": [{"name": "read_email", "args": {"id": "e1"}}, ...],
"act": {"name": "pay", "args": {"amount": 300.0, "recipient": "..."}},
"fork": {"do_a": {"success": false, "harm": 0.85, "irreversible_harm": true,
"effects": {...}, "state_digest": "..."}},
"labels": {"executed": true, "committed": true, "harmful": true,
"irreversible_harm": true, "reversible": false, "exposed": true},
"replay": {"prefix": [], "task_seed": 0},
"evidence": [...], "budget": {"B_tokens": 1200, "alpha": 0.1}}
Full schema: schema/decision_point.schema.json.
Why two files?
evidence[].valueis deliberately heterogeneous (boolean, number or string). Arrow cannot infer a single column type from that, so the Parquet copy stores every nested field as a JSON string and the JSONL keeps the native structure. Use the JSONL when you need exact types:load_dataset("json", data_files="preact_bench.jsonl").
Loading
from datasets import load_dataset
ds = load_dataset("fahadhafeezofficial/preact-bench", split="train")
test = ds.filter(lambda r: r["split"] == "test")
How labels are produced
- A task is sampled from a fixed generator with a recorded seed.
- A reference policy executes a trajectory in a deterministic tool sandbox.
- At each step every candidate is forked:
fork(candidate)returns{success, harm, irreversible_harm, effects, state_digest}without mutating the parent state. - Those fork results are the labels. A sample is re-verified on every build; 40/40 reproduced at release.
No human annotation, no language-model judge, no post-hoc relabelling.
Intended use
Evaluating pre-action monitors, selective-risk gates and world models on decision-level, state-verified outcomes. Suitable for paired comparisons between policies that see the same state and candidate set.
Out of scope
- Real email/payment/file systems: the four families are simplified.
- Multi-dimensional or long-horizon harm: harm is a scalar with an irreversibility flag.
- Prevalence estimates: the generator balances exposed/unexposed states and reversible/irreversible actions, so rates will not transfer to real traffic without recalibration.
- Languages other than English.
Licence and provenance
MIT. Generated by the CLSA repository's own code (src/clsa/envs/). No
third-party data. All recipients, customers and orders are synthetic; no personal
data is included.
Citation
@misc{hafeez2026preactbench,
title = {PreAct-Bench: a deterministic benchmark of pre-action decision points},
author = {Hafeez, Fahad},
year = {2026},
note = {Newcastle University},
url = {https://huggingface.co/datasets/fahadhafeezofficial/preact-bench}
}