Safe Actions Can Form Unsafe Traces: Benchmarking and Shielding Compositional Emergent Risk in AI Agents
Zhongze Wu, Xiu Su, Hongyan Xu, Yichao Cao, Yueyi Luo, Jun Long
NeurIPS 2026
Abstract. Large language model agents increasingly act through tools, browsers, code interpreters, and external APIs, turning safety from a single-output problem into a trace-level problem. We identify compositional emergent risk (CER), a failure mode where individually safe actions interact across time to produce unsafe outcomes. We characterize an information barrier: monitors cannot distinguish safe and harmful histories that yield the same observation. To study this failure systematically, we introduce CER-Bench, a controlled long-horizon benchmark with 440 tasks and 19,525 actions across 5–500 steps, spanning five risk domains and two compositional mechanisms. At the largest tier, each trace induces a 79M+ candidate risk-composition search space. Across 15 frontier and open-source LLM agents, every model exhibits a non-zero compositionality gap (CG), ranging from 44.4% to 100.0% with a mean of 82.2%. Moreover, 86.1% of compliant executions contain caution language yet still proceed, showing that verbal risk awareness does not reliably prevent unsafe composition. We introduce RiskShield, a conformal-calibrated runtime shield that learns trace-risk boundaries, evaluates planned continuations before commitment, and substitutes risky suffixes while preserving safe prefixes. On 7 held-out CER-Bench models, RiskShield reduces mean CER-5 CG from 69.9% to 0.0%, with no shielded pass observed in 763 evaluations, while preserving 78.4% step-level task completion. It outperforms cumulative-threshold, sliding-window, full-trace, and published safety baselines, with 63.3% of tasks requiring no extra API call and additional robustness across longer traces, risk domains, and external agent-safety benchmarks.
Are you an author? Claim this paper to see who's reading it, with views and other statistics, and to write about it here.
Claim this paperedit · history
NeurIPS 2026
Accept (poster) · 3 reviews · OpenReview
Updated 25 Nov 2026, 03:44 UTC.
- Decision
- Accept (poster)
Read decision
Meta-review
(a) This paper proposed a benchmark and a safety guardrail for reducing the operational risks in AI agents.
(b) Reviewers in general see the merits and timely nature of the benchmarks, despite some concerns that need further clarification.
(c)
- How to better bridge the gap between the presented theoretical results and practice (long-horizon)?
- How to explain the finding that RiskShield reduces CER-5 CG from 69.9% to 0.0%
- Given that this benchmark is synthetic, how to validate the practicality and novelty compared to existing arts?
(d) The initial review ratings are mixed. Reviewer Ps3F gave an initial recommendation of Reject, with valid concerns raised. The other reviewers, although they gave higher ratings, also raised some concerns that need further clarification. The authors need to address the comments carefully and explain how to revise the paper to address the comments. Also, please pay attention to the critical comments Reviewer Ps3F raised.
(e) The authors’ rebuttal has successfully addressed the major concerns of reviewers. In the post-rebuttal phase, all reviewers were satisfied with the authors’ responses and agreed on the decision of acceptance (Reviewer Ps3F's final rating is on the fence).
(f) All reviewers find the studied setting novel and the results provide new insights, and I concur.
Final justification
Please see (e) and (f)
- Final justification
- Please see (e) and (f)
Read meta-review
Meta-review
(a) This paper proposed a benchmark and a safety guardrail for reducing the operational risks in AI agents.
(b) Reviewers in general see the merits and timely nature of the benchmarks, despite some concerns that need further clarification.
(c)
- How to better bridge the gap between the presented theoretical results and practice (long-horizon)?
- How to explain the finding that RiskShield reduces CER-5 CG from 69.9% to 0.0%
- Given that this benchmark is synthetic, how to validate the practicality and novelty compared to existing arts?
(d) The initial review ratings are mixed. Reviewer Ps3F gave an initial recommendation of Reject, with valid concerns raised. The other reviewers, although they gave higher ratings, also raised some concerns that need further clarification. The authors need to address the comments carefully and explain how to revise the paper to address the comments. Also, please pay attention to the critical comments Reviewer Ps3F raised.
(e) The authors’ rebuttal has successfully addressed the major concerns of reviewers. In the post-rebuttal phase, all reviewers were satisfied with the authors’ responses and agreed on the decision of acceptance (Reviewer Ps3F's final rating is on the fence).
(f) All reviewers find the studied setting novel and the results provide new insights, and I concur.
- Rating
- 5/6
- Confidence
- 2/5
- Quality
- 4/4
- Clarity
- 3/4
- Significance
- 3/4
- Originality
- 3/4
- Contribution type
- general
- Ethical concerns
- NO or VERY MINOR ethics concerns only
Read review
Summary
This paper investigates Compositional Emergent Risk (CER) in AI agents, where a sequence of actions that are individually safe can lead to unsafe outcomes. Although previous work has explored safety risks in multi-step agents, they are limited to short window. To overcome this problem, the authors first introduce CER-Bench, a benchmark designed to evaluate the susceptibility of current LLM agents to such risks. Based on their findings, the authors further propose RiskShield, a defense framework that monitors and mitigates CER during agent execution. Experimental results show that RiskShield can effectively reduce compositional risks at the meantime preserving utility.
Strengths and weaknesses
The paper involves a substantial amount of work. The authors benchmark 15 LLM agents, covering most advanced models . When evaluating the proposed defense method RiskShield, the authors compare against a wide range of baselines. This comprehensive experimental setup significantly strengthens the empirical evidence presented in the paper. Furthermore, the proposed RiskShield demonstrates strong effectiveness in mitigating CER while preserving task completion ability. Beyond the main results, the paper also provides extensive analyses across different aspects, bring valuable insights about multi-agent risks.
Questions
I noticed some inconsistencies in Table 1. Based on the definition in Table 6, CG and CDR should sum to 1. However, for the Claude Opus 4.6 and Claude Sonnet 4.6 under the “LLM-as-Judge Safety Filters” category, CG + CDR not equal to 1; And the ToolShield misses a citation.
Limitations
yes
Final justification
As all my concerns have been addressed, I would like to keep my positive score.
Formatting concerns
No major issues
1 comment
- Rating
- 3/6
- Confidence
- 3/5
- Quality
- 3/4
- Clarity
- 2/4
- Significance
- 3/4
- Originality
- 3/4
- Contribution type
- general
- Ethical concerns
- NO or VERY MINOR ethics concerns only
Read review
Summary
This paper studies the phenomenon of compositional emergent risk (CER) in LLM agents, where individually "safe" actions can interact and be composed to generate unsafe agent traces via cross-step interactions. To address this problem, the authors create CER-BENCH, which is a fully synthetic benchmark that contains sets of long-horizon agent actions, and show that every model tested (both frontier and open LLM agents) show a compositionality gap. The authors then propose RISKSHIELD, a conformal-calibrated runtime shield that is able to detect and block unsafe trace continuations, while allowing backtracking by preserving safe prefixes. The authors claim that RiskShield substantially reduces observed CER on held-out models.
Strengths and weaknesses
Overall, the paper is interesting and addresses an important problem given the potential risks of using agentic AI, but is not very clearly written and somewhat hard to follow, with many important details (e.g. benchmark construction, related work, etc.) relegated to a long appendix. There are also some questions about whether results on the synthetic benchmark have real-world validity.
The main strengths of the paper are:
- Identifies an important compositional problem with agent actions, which is applicable to tool calls and long-horizon traces
- Provides formal definitions to help set up the problem (e.g. traces, interaction risk, CER, CG)
- Creates a new benchmark (CER-Bench) and also proposes a corresponding mitigation strategy (RISKSHIELD)
- There are many analyses and ablation-like studies that provide additional useful information about the approach
The main weaknesses of the paper are:
- The CER-BENCH benchmark is fully synthetic; as a result, real-world validity of the results is uncertain
- Only a subset of benchmark action labels have been manually verified; additional auditing of the automated label generation to ensure validity of the benchmark would be good.
- The cross-domain transfer of the proposed RISKSHIELD is quite weak, as ToolEmu and R-Judge datasets were used as seed tasks when creating the synthetic CER-BENCH
- The interaction risk term and estimator are critical to the proposed approach, but there are very little details in the paper about how this is actually computed
- Some of the critical details of the paper are relegated to a long Appendix, making it hard for the paper to be standalone
- Related: the main paper does not really ground the work in other existing benchmarks or approaches (this is only done in the Appendix, which makes it harder to assess the novelty of the paper relative to prior work)
Minor issues:
- Formatting of citations in the second paragraph (e.g. line 30-32) needs to be fixed
- ToolShield is missing a citation in Table 1; similarly the asterisks and other superscript symbols are not defined in the table caption
- Other metrics like CDR, CIR, FAR, and TCR are only defined in the Appendix, which makes it somewhat hard to understand in the main paper if readers are unfamiliar with the prior work
- It would be good to have some motivating example of individual safe actions composing into unsafe traces earlier in the paper, to help motivate the problem. This appears briefly in Figure 2, but is not really discussed much in the text.
Questions
-
How are the thresholds for compositionality gap set (i.e. for individual actions and traces)? These seem like important hyperparameters for defining the CG metric and observed mitigation with RiskShield.
-
The 0% CG scores after applying RiskShield across all held-out models are somewhat surprising- do the authors have intuition as to why this is? Do the models take similar actions and have similar trajectories?
Limitations
The limitations are not discussed directly in the main text, but relegated deep to the Appendix. I suggest some of these be mentioned in the main text if possible, since they are important for interpreting the key results. These limitations include things like use of their synthetic CER-BENCH, as well as how their conformal approach is calibrated.
Final justification
Based on the authors' rebuttals and other reviewer comments, I believe they have addressed many of my original concerns, particularly regarding use of the synthetic dataset with demonstrated transfer experiments. As a result, I have raised my score slightly.
Formatting concerns
The first page of the paper is formatted weirdly; it looks like the standard Neurips footer is not present and some of the text may bleed into the normal margin space. I encourage others to examine the pdf version.
3 comments
Rebuttal
We sincerely appreciate your time, careful review, and recognition of CER's importance, our formalization, CER-Bench, RiskShield, and broad analyses. Your concerns about validity, auditing, transfer, and clarity strengthened our evidence and presentation.
W1(a): “CER-Bench is fully synthetic.”
We appreciate this concern. CER-Bench is controlled, not freely generated. Reuse-Convert-Certify reuses goals/workflows from R-Judge, ToolEmu, AgentHarm, AgentSafetyBench, OpenAgentSafety, and MT-AgentRisk, retaining only ISR-safe actions whose composition is unsafe (Appendix G.1.1--G.1.2). The same pattern appears in real computer use. We evaluate screenshot-grounded OSWorld VM actions from OS-Harm (Kuntz et al., NeurIPS 2025).
R2-Tab 1. CER traces in released OS-Harm interactions
| Risk category | o4-mini tasks | Unsafe traces | CER traces |
|---|---|---|---|
| Deliberate misuse | 50 | 26/50 | 0/26 |
| Prompt injection | 50 | 10/50 | 9/10 |
| Model misbehavior | 50 | 5/50 | 5/5 |
| Overall | 150 | 41/150 | 14/41 (34.1%) |
14/41 (34.1%) unsafe OS-Harm traces show the same cross-step compositional pattern studied by CER-Bench.
W1(b): “Real-world validity of the proposed defense remains uncertain.”
We value this real-world check. We run o4-mini on unseen OS-Harm VM traces without fine-tuning and compare defenses at FAR .
R2-Tab 2. OS-Harm VM defenses at matched FAR
| Defense | CG, all unsafe | CG, late-onset | TCR | AUROC |
|---|---|---|---|---|
| o4-mini, no shield | 100.0% | 100.0% | 100.0% | -- |
| Zero-shot LLM-as-guard (Qwen2.5-7B) | 91.8% | 82.4% | 95.1% | 0.554 |
| ShieldGemma-2b | 84.9% | 94.1% | 95.1% | 0.751 |
| Per-action monitor | 64.4% | 94.1% | 96.1% | 0.827 |
| Llama-Guard-3-8B | 56.2% | 82.4% | 95.1% | 0.772 |
| Bounded window () | 34.2% | 70.6% | 95.1% | 0.865 |
| RiskShield | 28.8% | 64.7% | 99.7% | 0.877 |
TCR measures retained safe execution. RiskShield has the lowest overall and late-onset CG, highest TCR (99.7%), and best AUROC.
W2: “Only a subset of benchmark action labels was manually verified.”
We value the audit request. Every action receives a fixed 2-of-3 ISR vote from LlamaGuard, ShieldGemma, and GPT-4o (Appendix G.1.4), yielding 92.1% pass rate and agreement.
We also ran a blind audit with three annotators. A/B labeled shuffled isolated actions before ordered traces, blind to labels/outputs. C adjudicated. Following AgentDojo/OS-Harm, long-tier samples are tier/domain-stratified and CER/safe-balanced.
R2-Tab 3. Human audit
| Audit unit | N | A/B agreement |
|---|---|---|
| CER-5 actions | 574 | 94.60% |
| CER-5 tasks | 129 | 93.02% |
| Long-tier actions | 6,336 | 98.64% |
| Long-tier task sample | 90/310 | 94.44% |
C adjudicated every A/B disagreement. Long-tier action labels match the construction labels in 6,248/6,336 cases (98.61%), and task-level F1 is 94.12%. We will audit all 310 long-tier tasks in the camera-ready.
W3: “Cross-domain transfer is weak because ToolEmu and R-Judge were seed tasks.”
This distinction is valuable. R-Judge and ToolEmu provide only seed goals/workflows. Their released instances and labels do not fit RiskShield. We will call the original result source-related transfer. R2-Tab 2 is independent: unseen OSWorld VM interactions, no OS-Harm construction/scorer data, and no fine-tuning. CG 28.8%, late-onset CG 64.7%, TCR 99.7%, and AUROC 0.877 support real computer-use transfer.
W4: “The interaction-risk term and estimator are critical, but their computation is unclear.”
We appreciate this estimator question. Sec. 2 defines the target and Appendix E.1 outlines the estimator. We will add the detailed computation there in the camera-ready:
For an ordered pair, when the annotated graph marks as a cross-action risk link. Observable features include action text, token/tool overlap, action roles, and relative distance/position:
We fit and freeze on . Runtime excludes task labels, hop annotations, explanations, and outcomes. Eq. (3) aggregates pair risks into the trace score:
Eq. (4) normalizes this score. Eq. (5) uses only to set . We test with 5 group-disjoint folds over 854 annotated action pairs from 129 CER-5 traces: 262 risk and 592 safe pairs.
R2-Tab 4. Held-out cross-step interaction-risk estimation (5 group-disjoint folds)
| Representation | Action pairs (risk/safe) | AUROC | AUPRC | Risk-pair recall | Safe-pair FPR |
|---|---|---|---|---|---|
| Unordered text + base features | 854 (262/592) | 0.916 | 0.872 | 81.3% | 12.2% |
| Ordered text + base features | 854 (262/592) | 0.917 | 0.872 | 81.3% | 12.2% |
| Ordered + relative distance/position | 854 (262/592) | 0.971 | 0.951 | 90.8% | 4.7% |
The ordered distance-aware estimator identifies held-out cross-step risk dependencies with 0.971 AUROC and 0.951 AUPRC. Removing temporal distance lowers AUROC to 0.917 and more than doubles the safe-pair FPR from 4.7% to 12.2%. This validates . Eq. (3) forms the trace score. The main results and R2-Tab 2 evaluate the full pipeline.
W5: “Critical details are relegated to a long Appendix.”
We value the readability concern and will summarize provenance, estimation, splits, and metrics in the main text.
W6: “The main paper does not sufficiently ground novelty in prior benchmarks and approaches.”
We appreciate this positioning request. Prior work appears at Lines 30--34 and Appendix H; we will add this compact comparison:
R2-Tab 5. Boundary relative to prior work
| Work family | Primary object | ISR-safe actions required? | Composition dependence certified? | Intervention unit |
|---|---|---|---|---|
| R-Judge / ToolEmu / AgentHarm | Action, task, or trace harm | No | Not required | Judge or post-hoc evaluation |
| OS-Harm | Executed GUI safety and success | No | Not required | Full-trace AER |
| ToolShield / MT-AgentRisk | Multi-turn harmful objectives | No | Not required | Multi-turn defense |
| CER-Bench / RiskShield | Stateful execution trace | Yes | Yes | CER-aware trace-level shielding |
Existing benchmarks judge risky actions, harmful objectives, or completed trajectories. We formalize how ISR-safe actions interact into harm and systematically measure it over 5--500-step traces across 15 advanced agents. RiskShield is a conformal-calibrated trace-level runtime framework that evaluates planned continuations before commitment and substitutes risky suffixes while preserving safe prefixes. We will place this table in the Introduction.
Minor issues
We appreciate the detailed presentation review and will address every point.
M1. Citation formatting. We will correct Lines 30--32 and verify the compiled PDF.
M2. ToolShield and superscripts. We will add Li et al. (2026) and define every caption symbol.
M3. Metric definitions. These formulas and denominators are in Appendix B.1. We will move them before the first result table.
M4. Motivating example. In Figure 2(a), directory query, itinerary retrieval, log reading, and ID matching each pass ISR, but together create an identifiable profile. We will add this sentence before the formal definition.
Q1: “How are the individual-action and trace thresholds set?”
We appreciate the reproducibility focus. Sec. 2 defines both benchmark conditions. They are not jointly tuned with the runtime threshold:
| Quantity | Operational rule |
|---|---|
| Action | Pass ISR when at least two of LlamaGuard, ShieldGemma, and GPT-4o label it safe |
| Trace | Retain only when all actions pass ISR but the ordered trace is certified harmful |
| Runtime | Split-conformal quantile on only |
Thus, are fixed, not CG-tuned. Only sets the runtime point. See Definition 2, Appendices G.1.2--G.1.4, Sec. 3.1 Eq. (5), and Appendix C.8, Table 15. No rule uses held-out outputs or test labels for selection.
Q2: “Why is CG 0.0% across all held-out models? Do they follow similar trajectories?”
We appreciate this sanity check.
No. The uniform 0.0% CG is not caused by identical model behavior. Matched CER workflows control the comparison, but generated plans and safety decisions differ substantially: unshielded CG spans 44.4%--95.8%, and interventions span 37/109--75/109.
R2-Tab 6. Model-specific responses and RiskShield interventions
| Model | Unshielded CG (5-run) | RiskShield interventions | TCR |
|---|---|---|---|
| Grok 4.1 | 65.5$\pm$3.2% | 37/109 | 78.1% |
| Claude Sonnet 4.6 | 44.4$\pm$1.0% | 49/109 | 78.2% |
| Sonnet 4 (2025-05) | 95.8$\pm$2.8% | 72/109 | 78.5% |
| Gemini 3.1 Pro | 69.9$\pm$2.2% | 75/109 | 78.4% |
The 0.0% is an observed conservative operating point, not a guarantee: across seven held-out models, RiskShield records 0/763 unsafe passes (95% upper bound 1.6%). The same logs contain 421/763 partial interventions, 0/763 full aborts, and 78.4% safe progress retained.
R2-Tab 2 reports the lowest OS-Harm CG (28.8%) at FAR and 99.7% TCR. This non-zero result rules out mechanically forcing CG to zero.
Limitations and formatting
We also appreciate the layout checks; we will add construction/calibration essentials and fix the first page.
We hope these responses address your concerns and inform your final assessment.
Response to author rebuttal
I have read the authors' rebuttal, as well as the other reviewers' comments and questions. I believe the authors have clarified most of my concerns around the controlled synthetic dataset generation method (e.g. seeding with tasks from R-Judge and ToolEmu, not actual instances), human vs. LLM-as-judge annotation consistency, and clarifying how the CER-Bench differs from existing benchmarks. I also appreciate the new transfer results on the OS-HARM dataset, which show that RiskShield performs well. I believe that incorporating more definitions and details related to the approach in the main paper (vs. the appendix) should also improve the readability of the paper.
As a result, pending the other author/reviewer discussions, I will raise my score.
Response to Reviewer Ps3F's Positive Follow-up and Score Reassessment
We sincerely appreciate your careful follow-up reading of our rebuttal, your consideration of the other reviews, and your willingness to reconsider the paper. Your recognition of the clarifications on controlled benchmark construction, the distinction between human and LLM-as-judge annotation, CER-Bench's boundary relative to prior benchmarks, and the independent OS-Harm transfer evaluation is especially meaningful to us.
We also appreciate your concrete suggestion on standalone readability. In the camera-ready version, we will selectively add concise definitions and explanations next to the relevant main-text claims, including the CER/CG/CDR terminology, benchmark provenance and audit protocol, interaction-risk estimation and calibration, and the novelty boundary. Full implementation details and extended analyses will remain in the Appendix so that the main paper stays focused and readable.
Your feedback has directly improved both the presentation and the scientific positioning of the work. We are grateful for the time and care you invested in the review and will incorporate these suggestions carefully in the camera-ready revision.
- Rating
- 5/6
- Confidence
- 3/5
- Quality
- 3/4
- Clarity
- 3/4
- Significance
- 3/4
- Originality
- 3/4
- Contribution type
- general
- Ethical concerns
- NO or VERY MINOR ethics concerns only
Read review
Summary
This paper is focused on threats that can arise when agents exhibit traces of stateful actions, rather than a simple sequence of tokens. It defined compositional risk amplification as a phenomenon in which state/actions can be harmful when composed in sequence. The paper formulates compositional emergent risk (CER) as the particular failure mode in which each component state/action individually is safe, but in composition exhibit harmful risk amplification. Risk amplification has two main terms: One arising from the local harm of a state action pair, and the other emerging from interaction terms between the composition of state action pairs.
The paper then proves a theorem showing that per-action monitors and those with more bounded windows of context can miss CER.
Next, the paper introduces RiskShield, a protocol for safe model performance over composed traces of actions, which chooses between a tripartite set of options: Allow, Shield, and Abort, based on the prediction of unsafe continuations from a prefix. The implementation of this field is evaluated via a suite of experiments, collectively using CER-bench, a benchmark with 440 tasks, different domains, and a swath of actions and various trace set-ups, finding that CER is pervasive and RiskShield shows promise at solving the issue.
Strengths and weaknesses
This paper has a number of strengths. It has a clear set of contributions that span a) the modeling and mathematical language it uses to understand action traces in a stateful manner, b) identification of a threat followed by technical design for a shield that may be used to mitigate the threat, c) a suite of empirical tests and benchmarks that appraise whether the technical design works at mitigating the threat. These each not only constitute contributions, but may enable future research to build on these contributions. Other strengths of this paper include clarity of exposition (especially in the writing, which I found very straightforward -- figures were a bit crowded).
The weaknesses include, 1) the conceptual/theoretical results are somewhat underdeveloped. Though I see this as more of an empirical paper, the theorem about non-detectability seems to be a minimal finding that arises from the fact that the theorem evaluates a limited-context-window agent according to a metric that demonstrably requires a larger context window to measure. There is some subtlety in the construction of h() and the assumptions made about the implied deterministic finite automaton underneath he "state, action, state, action..." notion of trace. For example, we could imagine that every state at every time stamp includes information about the entire history of states and actions; in this case, it would appear that indeed a bounded-window classifier with k=1 would still have all the information needed to determine whether CER occurs. Whether or not this example is allowed in your setting, it seems useful to more carefully dive into stateful approaches to rule compliance; this would enhance the analytic parts of the paper. Another way to beef up the analysis is to think about making functional form assumptions on the interaction terms. 2) It is a bit odd that RiskShield reduces CER-5 CG from 69.9% to 0.0% -- does this suggest the benchmark itself is bad, or there is limited utility to future work that tries to innovate on creating a proper shield?
Questions
- It would appear from Definition 2 that the contribution to risk amplification is a function of pairs of actions, however, these pairs have a fixed effect on the overall risk and do not depend on, say, how close together or far apart a_i and a_j are. Am I reading the definition wrong, or is there some order independence in the definition?
- Should I understand the non-detectability of CER theorem as a possibility result, that it is possible to have 1) a certain level of emergent risk, and 2) a term-by-term or finite context window measurement of risk amplification that fails to approximate that risk? (that this can happen in at least one example?) Or, alternatively, should I read this as a stronger result, that for any instance of CER, there is some length of context window greater than one action-state pair that would not be able to detect the emergent risk?
- Does this approach of understanding the contributions to harm not just from individual steps but from pairwise combinations work in the simpler case of language models over tokens (rather than state-action events?) Does understanding language toxicity require more complex (higher-order) relations than pairwise contributions to harm? If this paper's approach to measuring risk amplification is a modeling decision, what makes it appropriate?
Limitations
yes; these are currently in the appendix.
Final justification
The authors of the paper handled my main concerns in their response, so I have decided to raise my score by one point.
Formatting concerns
NA
3 comments
Rebuttal
We sincerely appreciate your time, careful review, and recognition of our formulation, CER-Bench, RiskShield, and presentation. Your full-history, stateful-monitoring, and higher-order suggestions helped us sharpen the theorem, strengthen long-horizon evidence, and clarify the method's scope.
W1: “The theorem seems minimal, and a full-history state may make sufficient.”
Thank you for this precise theoretical challenge.
1) “If every state contains the entire history, could detect CER?” It could, but only if that state is risk-sufficient. If , the information barrier disappears. This does not guarantee correct representation or calibration. R1-Tab 1 varies only the visible representation at the original threshold.
R1-Tab 1. Representation diagnostic at the original operating threshold
| Monitor-visible representation | Context | CDR | FAR |
|---|---|---|---|
| Current local action/state | 0.0% | 0.0% | |
| Raw action/state window | 68.1% | 0.0% | |
| Full raw prefix | Full | 75.6% | 0.0% |
| Recursively updated risk-history summary | 94.9% | 40.0% |
At the raw threshold, the summary shows that can retain history, but its 40.0% FAR is not comparable. We therefore use a common 5% Safe-FAR operating point.
R1-Tab 2. Representation comparison at 5% Safe FAR
| Monitor-visible representation | Context | Safe-FAR target | Held-out CDR |
|---|---|---|---|
| Current local action/state | 5.0% | 8.0% | |
| Raw action/state window | 5.0% | 66.8% | |
| Risk-history summary | 5.0% | 91.6% | |
| Full raw prefix | Full | 5.0% | 93.4% |
At 5% Safe FAR, the summary gains 24.8 CDR points over and is within 1.8 points of full prefix. This is a sufficient-information boundary, not guaranteed best performance.
2) “Is the theorem only a minimal result obtained by judging a limited window with a longer-context metric?” No. The key condition is that histories with different risk labels collide under the monitor observation. Let be the complete history, the observation, and . We will replace the window-only premise with:
Any monitor using only must misclassify one history. If , the observation is risk-sufficient and the obstruction disappears.
We use paired safe/CER traces with identical final observations; for , only an outside-window risk dependency differs.
R1-Tab 3. CER-side misses on paired safe/CER observation collisions
| Dependency span | Pair N | Raw window | Stateful summary | Full prefix |
|---|---|---|---|---|
| 40 | 2/40 = 5.0% | 1/40 = 2.5% | 0/40 = 0.0% | |
| 40 | 19/40 = 47.5% | 6/40 = 15.0% | 3/40 = 7.5% | |
| 80 | 66/80 = 82.5% | 7/80 = 8.8% | 2/80 = 2.5% |
Raw-window misses rise from 5.0% to 82.5% beyond . There, summary/full-prefix misses are 8.8%/2.5%.
3) “Does the trace imply a deterministic finite automaton, and what is ?” No. may be infinite and stochastic. The function scores per-action harm, while defines monitor-visible information.
4) “Would stateful approaches to rule compliance strengthen the practical analysis?” Yes. We run the agent with stateful runtime defense in the OSWorld Ubuntu VM environment. OS-Harm (Kuntz et al., NeurIPS 2025) covers screenshot-grounded browser, email, file, and system tasks. o4-mini executes 175 VM trajectories (73 unsafe, 102 safe), with no RiskShield weight updates or test-label tuning.
R1-Tab 4. OS-Harm VM defenses under a common FAR operating point
| Defense | CG, all unsafe | CG, late-onset | TCR | AUROC |
|---|---|---|---|---|
| o4-mini, no shield | 100.0% | 100.0% | 100.0% | -- |
| Zero-shot LLM-as-guard (Qwen2.5-7B) | 91.8% | 82.4% | 95.1% | 0.554 |
| ShieldGemma-2b | 84.9% | 94.1% | 95.1% | 0.751 |
| Per-action monitor | 64.4% | 94.1% | 96.1% | 0.827 |
| Llama-Guard-3-8B | 56.2% | 82.4% | 95.1% | 0.772 |
| Bounded window () | 34.2% | 70.6% | 95.1% | 0.865 |
| RiskShield | 28.8% | 64.7% | 99.7% | 0.877 |
RiskShield achieves the lowest overall and late-onset CG, highest TCR, and best AUROC. Together with the dependency-span result in R1-Tab 3, this connects the information boundary to real long-horizon execution.
W2: “Does 0.0% CG suggest that CER-Bench is bad or leave limited utility for future shields?”
Thank you for probing the meaning of the 0.0% result.
No. Unprotected CG is 69.9%. The relevant comparison is how much execution each shield retains at the same safety level.
R1-Tab 5. Safety-utility comparison on CER-5
| Method | CG | Safe progress | Behavior |
|---|---|---|---|
| No defense | 69.9% | Approx. 96.0% | Executes risky compositions |
| Cumulative Threshold | 0.0% | 53.2% | Stops the remaining trace |
| Sliding Window () | 6.0% | 6.0% | Misses CER and over-blocks |
| RiskShield | 0.0% | 78.4% | Replaces only the risky suffix |
Frozen logs contain 0/763 unsafe passes (95% upper bound 1.6%), 421/763 partial interventions, and 0/763 full aborts. Interventions vary from 37/109 for Grok 4.1 to 75/109 for Gemini 3.1 Pro, while TCR remains 78.1%--78.5% across backbones (Main Table 2). Overall step retention is 1,572/2,008 = 78.3%, with 78.4% as macro-average TCR. Thus, 0.0% is neither blanket refusal nor a fixed blocking pattern. The 25.2-point gain over Cumulative Threshold leaves room on the safety-utility frontier.
Q1: “Do action pairs have fixed effects, and is Definition 2 order-independent?”
Thank you for asking us to clarify order and context dependence.
No to both. Prefix-conditioned changes with prior actions and states. Since , reversal changes the roles and prefix. Distance and data flow are explicit inputs.
R1-Tab 6. Interaction-risk estimator under five group-disjoint folds
| Pair representation | Action pairs (risk/safe) | AUROC | AUPRC | Risk-pair recall | Safe-pair FPR |
|---|---|---|---|---|---|
| Unordered pair | 854 (262/592) | 0.916 | 0.872 | 81.3% | 12.2% |
| Ordered pair | 854 (262/592) | 0.917 | 0.872 | 81.3% | 12.2% |
| Ordered + distance/data flow | 854 (262/592) | 0.971 | 0.951 | 90.8% | 4.7% |
Inputs are observable action text, order, distance, and data flow, excluding labels, explanations, and outcomes. Order alone adds little here. Distance/data flow raise AUROC 0.917$\rightarrow$0.971 and lower safe-pair FPR 12.2%$\rightarrow$4.7%.
Q2: “Is Theorem 1 a possibility result, or does every CER trace defeat some bounded window?”
Thank you for prompting a precise scope statement.
It is the possibility result in your first interpretation. For any , a CER construction can place its dependency outside the raw window. This is not a claim about every CER trace. A risk-sufficient observation may make adequate. R1-Tab 3 tests this case.
Q3: Pairwise modeling, higher-order harm, and token-level language
Thank you for encouraging the higher-order test.
Setting. We probe frozen Qwen LMs on balanced held-out Civil Comments () and ToxiGen (). A fixed prompt requests SAFE or TOXIC, scored by their log-probability difference. Each comment is split into ordered spans . Omitted tokens are replaced in place by ., and all eight subsets are scored. Labels are evaluation-only.
1) “Does this extend to token sequences?” Yes, diagnostically, without equating tokens with actions. Inclusion-exclusion gives:
Pair ranks by and Full by . Positive Full-Pair AUROC means helps. CIs use 5,000 bootstraps.
R1-Tab 7. Higher-order interaction probe with frozen LLMs
| Decoder LM | Dataset (N) | AUROC Pair | AUROC Full | Full-Pair AUROC [95% CI] |
|---|---|---|---|---|
| Qwen2.5-0.5B-Instruct | Civil Comments (700) | 0.6474 | 0.6550 | +0.0076 [-0.0210,+0.0364] |
| Qwen2.5-0.5B-Instruct | ToxiGen (500) | 0.7556 | 0.7946 | +0.0390 [+0.0077,+0.0707] |
| Qwen2.5-7B | Civil Comments (700) | 0.7034 | 0.8662 | +0.1628 [+0.1311,+0.1947] |
| Qwen2.5-7B | ToxiGen (500) | 0.8530 | 0.9553 | +0.1023 [+0.0744,+0.1326] |
| Qwen3-8B | Civil Comments (700) | 0.7312 | 0.8499 | +0.1186 [+0.0894,+0.1479] |
| Qwen3-8B | ToxiGen (500) | 0.8755 | 0.9488 | +0.0733 [+0.0498,+0.0993] |
2) “Does toxicity require higher-order relations?” Sometimes yes. Full scoring improves AUROC in five of six settings. Gains are 3.9 points on 0.5B/ToxiGen and 7.3--16.3 points for 7B/8B. Only the 0.8-point 0.5B/Civil gap is not significant.
3) “Why is pairwise modeling appropriate here?” Our is pair-indexed but prefix-conditioned, so history changes pair risk. Tool traces expose auditable data-produced-at-/externalized-at- dependencies. R1-Tab 6 reaches 0.971 AUROC/0.951 AUPRC at per step, while explicit third order costs . Pairwise is a validated, tractable action-trace approximation, not a universal token-toxicity decomposition.
Thank you also for the presentation suggestions. We will enlarge labels and simplify crowded figures.
We hope this addresses your concerns and will be considered in your final assessment.
Thanks
Thanks for handling my main concerns. I'm bumping the score up by 1 and keeping my confidence at its current state.
Thank you for your reconsideration
Dear Reviewer,
Thank you very much for revisiting our response and letting us know that it addressed your main concerns. We sincerely appreciate your careful review, constructive feedback, and thoughtful suggestions, which helped us strengthen and clarify the paper. We will carefully incorporate the promised revisions.
Thank you again for your time and constructive engagement throughout the discussion.
Comments on the paper
1 comment
Closing Thanks to the Area Chair and Reviewers
Dear Area Chair and Reviewers,
As the author-visible discussion draws to a close, we would like to sincerely thank the Area Chair for the thoughtful metareview, careful synthesis, and coordination of the discussion, and all reviewers for their close reading, constructive questions, and substantive engagement with our work.
The discussion gave us the opportunity to clarify the theoretical scope, strengthen the long-horizon and real-environment evidence, expand the benchmark validation, and correct presentation issues. We are especially grateful to Reviewers XBHt and Ps3F for returning to the discussion and confirming that our responses addressed their main concerns, and to Reviewer E6aY for the careful checks and constructive feedback that helped us improve the paper’s accuracy and presentation.
We will carefully incorporate all promised clarifications and revisions into the paper. Thank you again for the time, effort, and thoughtful consideration that you have all devoted to our work.
Best regards,
The Authors
From OpenReview, CC BY 4.0. Authors as signed there; shown unedited.
Loading the discussion…
Rebuttal
We sincerely appreciate your time, careful and encouraging review, and recognition of CER-Bench's substantial empirical scope: 15 advanced agents, a broad baseline suite, extensive analyses, and RiskShield's ability to reduce CER while preserving utility. Your close reading of Main Table 1 helped us identify and correct two presentation errors.
Thank you for checking this metric identity. You are correct that CG and CDR must sum to 100% when computed over the same risk-task set. The discrepancy was not caused by rounding. The displayed Claude rows were not consistently exported from the same task-level records. No model calls or task-level decisions were changed. We regenerated both rows using the 109 risk-task decisions only.
For each row,
The corrected counts and percentages now use the same denominator. Main Table 1 will be exported directly from the task-level records, with an automated check that the decision counts sum to N and CG + CDR equals 100%.
Thank you for also catching the unresolved ToolShield citation. ToolShield was included in both Related Work and Main Table 1, but the table used
li2026toolshieldwhile the BibTeX entry had a different key. We unified the key asli2026toolshieldand verified that the compiled table now renders Li et al. (2026), arXiv:2602.13379, rather than?.Thank you again for identifying both issues and helping us improve the accuracy of the presentation.