arXiv:2610.17685cs.CLOct 2026

Manuscript Offprint

arXiv:2610.17685

LatentRiskBench: Measuring State-Dependent Risks in Enterprise Agents

Jingyue Cong, Estrid He, Zhuang Li, Nan Wu, Li Shen, Yameng Peng, Xinshu Li, Andy Song

Open access. PaperVantage converted this article to text, so layout and figures may differ from the original.

Abstract

Enterprise agents face safety risks that cannot be determined from individual actions alone. Existing safety benchmarks largely evaluate action-local risks, overlooking failures whose safety depends on workflow state. In such state-dependent risks, the same action may be safe in one context but violate policy in another. Hence, we introduce LATENTRISKBENCH for evaluating such state-dependent risks in enterprise settings. It pairs risky trajectories with benign counterparts that share the same terminal action but differ in latent policy-relevant states, requiring models to reconstruct workflow context rather than rely on action-level cues. We also introduce new metrics for state-dependent risk evaluation, including a suite of residual risk (RR) measures. Experiments on the benchmark show that action-level evaluation detects only 0.09 of state-dependent violations, whereas state-level evaluation reaches 0.96. Existing guardrail methods largely overlook such risks unless they are explicitly applied to workflow states. Case studies on a commercial deployed scenario further show that the safety metrics embedded in the benchmark provide a more realistic measure of safety for enterprise agents. Our dataset and code are available at https://github.com/JingyueCong/LatentRiskBench.

1 Introduction

Agent evaluation is increasingly shifting from isolated tasks toward operational workflows in which agents read, transform, and dispatch business artifacts (Yao et al., 2023; Zhou et al., 2023; Debenedetti et al., 2024; Zhang et al., 2024). Ensuring the safety of such agents requires more than evaluating individual actions. In many enterprise settings, whether an action is compliant or risky depends on the workflow state established by prior steps. An action that appears routine at the point of execution may become policy-violating because

Figure

Figure 1: Risk-signal observability in agent-safety evaluation. Existing benchmarks often detect risk signals through output-, action-, or trace-level auditing. In LATENTRISKBENCH, the safety of an action is determined by the current workflow state; safety auditing is therefore performed by reconstructing trajectory-level state.

of earlier decisions, approvals, or information accumulated throughout the workflow.

Consider an enterprise agent on an e-commerce platform, tasked with preparing a marketing campaign. Each individual action appears harmless, so the risk is invisible to action-level auditing. Yet whether the same action is safe may flip depending on the workflow state established by prior steps: it can violate policy if a required approval is missing or restricted content is involved. Similar situations arise across enterprise workflows, including document sharing, report distribution, customer communication, and access management.

Current agent-safety benchmarks do not isolate this observability regime. Prior benchmarks cover important settings, including tool-use security, prompt-injection robustness, web-agent safety, and risk awareness from interaction traces (Debenedetti et al., 2024; Yuan et al., 2024; Levy et al., 2024). However, many of their tasks expose the decisive evidence in a step-local output, the proposed action itself, or a recognizable trace pattern; they do not directly test routine-looking terminal actions whose violations depend on workflow state induced by prior steps.

We refer to this regime as state-dependent risk (Figure 1), in which a terminal action appears benign or ambiguous under action-level auditing but becomes policy-violating once the underlying workflow state is taken into account. The central distinction is not trajectory length but risk-signal location: the same action may be safe in one trajectory yet unsafe in another, because prior steps induce different policy-relevant states.

Designed to address this gap, LATENTRISKBENCH is a risk-observability benchmark for enterprise agents. Each agent trace contains a task intent, committed trajectory prefix, proposed terminal action, applicable policy set, and risk label. Its core design principle is constant-action pairing, in which risky and benign trajectories share the same terminal action while differing in underlying policy-relevant states. It includes a 100-task state-dependent core, visible-risk controls, matched benign twins, and an e-commerce marketing instantiation.

Using LATENTRISKBENCH, we find that state-dependent violations are largely invisible to action-level evaluation: an action-level checker flags only 0.09 of these violations, whereas an auditor that reconstructs workflow state flags 0.96. Representative guardrails inherit this blind spot. They suppress locally observable risk but leave most state-dependent risk unresolved unless they explicitly reconstruct and reason over states. Finally, auditing a deployed enterprise e-commerce marketing agent shows the practical stakes: conventional outcome-level summaries (Outcome Violation Rate and Task Success Rate) appear reassuring even though state-dependent residual risk remains high.

Our contributions are:

• Regime. We formalize state-dependent risk as a risk-observability regime in which the same terminal action can be safe or unsafe depending on reconstructed workflow state.

• Benchmark and metrics. We introduce LATENTRISKBENCH, with constant-action risky/benign twins, visible-risk controls, an e-commerce instantiation, and the SRG, CAS, and residual-policy-risk metrics.

• Evaluation. We evaluate representative guardrails and auditor backbones, showing that state reconstruction is the key capability separating strong state-dependent auditing from action-local or prefix-only screening.