Safe Actions Can Form Unsafe Traces: Benchmarking and Shielding Compositional Emergent Risk in AI Agents
Zhongze WuXiu SuHongyan XuYichao CaoYueyi LuoJun Long
Zhongze Wu
Xiu Su
Hongyan Xu
Yichao Cao
Yueyi Luo
Jun Long
+6
This paper identifies compositional emergent risk (CER), a failure mode in which individually safe agent actions combine across time to produce unsafe outcomes, and characterizes an information barrier: a monitor cannot distinguish safe from harmful histories that yield the same observation. To study it, the authors build CER-Bench, a controlled long-horizon benchmark of 440 tasks and 19,525 actions over 5-500 steps; at the largest tier each trace induces a 79M+ candidate risk-composition space. Across 15 frontier and open-source agents, every model shows a non-zero compositionality gap, 44.4% to 100.0% (mean 82.2%), and 86.1% of compliant executions contain caution language yet still proceed. RiskShield, a conformal-calibrated runtime shield that learns trace-risk boundaries, evaluates planned continuations before commitment, and substitutes risky suffixes while keeping safe prefixes, cuts mean CER-5 CG from 69.9% to 0.0% on 7 held-out models while preserving 78.4% step-level task completion.

OpenReview · April 17, 2026