Manuscript Offprint

arXiv:2610.11773

Safe Actions Alone Do Not Ensure Safe Agents: Identifying Unfulfilled Obligations with Guard Models

Youwei Feng, Yitong Zhang, Yuetong Liu, Jia Li

YOUWEI FENG, Tsinghua University, China

YITONG ZHANG, College of AI, Tsinghua University, China

YUETONG LIU, College of AI, Tsinghua University, China

JIA LI ∗^{*}, College of AI, Tsinghua University, China

Guard models are increasingly used to safeguard LLM-based agents, primarily by identifying actions that agents are forbidden to perform. However, identifying forbidden actions alone is insufficient to ensure agent safety. In this paper, we argue that agent safety also depends on identifying required yet unperformed safety-critical actions, which we call obligations. Our preliminary study on a popular benchmark for evaluating safety shows that 56.92% of GLM-5.3 trajectories contain unfulfilled obligations, compared with only 30.00% containing forbidden actions. This finding reveals unfulfilled obligations as a major and previously overlooked source of safety risk. However, to our knowledge, no existing benchmark evaluates whether guard models can identify these obligations.

To close this gap, we introduce OBLIGATIONBENCH, the first benchmark for evaluating the capability of obligation identification, comprising 240 expert-validated trajectories covering issue resolution, feature development, and terminal operations. Our evaluation of 14 representative models reveals substantial limitations: the highest recall and exact-match rate are only 48.97% and 10.00%, respectively. To address these limitations, we develop OBLIGATIONGUARD using 40,000 synthetic training examples. OBLIGATIONGUARD achieves 57.52% recall and an exact-match rate of 21.67%, surpassing all evaluated models on both metrics. We call on the community to incorporate obligation identification into the design and evaluation of future guard models to improve agent safety.

1 Introduction

LLM-based agents can now complete increasingly complex tasks autonomously [43, 44, 56], but their growing autonomy also raises concerns about their safety [2, 8, 33, 34, 47, 51]. To address these concerns, researchers increasingly use guard models to monitor agent behavior during task execution [6, 7, 25, 39]. As illustrated at the top of Figure 1, these models improve agent safety primarily by identifying actions that agents are forbidden to perform, such as sending a secret key to an unauthorized external service.

In this work, however, we ask a largely overlooked question: is identifying forbidden actions alone sufficient to ensure agent safety? We argue that the answer is no. In many practical scenarios, ensuring agent safety also requires identifying required yet unperformed safety-critical actions, which we call obligations. For example, an agent may legitimately use a secret key to complete a task but fail to remove it afterward, leaving the key exposed even though it performs no forbidden action. To examine how prevalent such safety risks are, we conduct a preliminary study on SusVibes, a benchmark for evaluating coding-agent safety [53]. We find that 56.92% of GLM-5.3 [46] trajectories contain unfulfilled obligations, whereas only 30.00% contain forbidden actions. These findings suggest that guard models need to identify obligations to address safety risks that detecting forbidden actions alone would miss, as illustrated at the bottom of Figure 1. However, to our knowledge, no existing benchmark evaluates this capability.

∗^{*}Corresponding author.

Authors' Contact Information: Youwei Feng, Tsinghua University, Beijing, China, fengyw23@mails.tsinghua.edu.cn; Yitong Zhang, College of AI, Tsinghua University, Beijing, China, 22373337@buaa.edu.cn; Yuetong Liu, College of AI, Tsinghua University, Beijing, China, 23371522@buaa.edu.cn; Jia Li, College of AI, Tsinghua University, Beijing, China, jia_li@mail.tsinghua.edu.cn.

Feng et al.

Figure

Fig. 1. Existing guard models safeguard agents primarily through forbidden action identification (Task 1). We argue that they must also support unfulfilled obligation identification (Task 2).

To close this gap, we propose OBLIGATIONBENCH, the first benchmark designed to evaluate whether guard models can identify agents' unfulfilled obligations. It contains 240 instances: 120 positive cases with an average of 2.83 obligations per instance and 120 negative cases with no unfulfilled obligations. The benchmark has four key features: ① Diverse tasks and agents. It includes trajectories from agents using different LLMs to perform issue resolution, feature development, and terminal operation tasks. ② Realistic execution trajectories. These trajectories are drawn from thousands of actual executions on established software-engineering benchmarks. ③ Broad safety coverage. The obligations span many categories of safety risks, including data exposure, unauthorized access, asset tampering, and identity forgery. ④ High-quality annotations. Human experts review each instance and correct errors to ensure accurate and complete ground truth.

Our evaluation on OBLIGATIONBENCH reveals substantial limitations in existing models' ability to identify obligations: even the strongest model, Claude-Opus-4.8 [3], achieves only 48.97% recall and an exact-match rate of 9.17%. To address this limitation, we propose a novel guard model, named OBLIGATIONGUARD. Training such a guard model requires a large collection of trajectories with accurate and complete obligation annotations. However, collecting real agent trajectories is costly and difficult to scale, while establishing their ground-truth obligation sets requires human annotation. We therefore propose a two-stage data synthesis approach that defines the obligation sets before generating the trajectories. During scenario planning, we construct synthesis templates that specify task scenarios, their safety requirements, and the obligations to remain unfulfilled at termination. During trajectory synthesis, LLMs generate trajectories consistent with these templates, using the specified obligation sets as ground-truth labels. This process yields 40,000 synthetic examples for training OBLIGATIONGUARD.

We evaluate OBLIGATIONGUARD against 14 representative models on the proposed OBLIGATION-BENCH and examine how obligation identification contributes to agent safety. Our experiments reveal four main findings: ① Existing models struggle to identify accurate and complete obligation sets: the highest recall and exact-match rate are only 48.97% and 10.00%, respectively. ② The earlier obligations arise in a trajectory and the more obligations coexist, the worse models perform at obligation identification. ③ OBLIGATIONGUARD substantially improves this capability, achieving 57.52% recall and an exact-match rate of 21.67% and surpassing all existing models on both metrics. ④ Guard models that identify obligations more accurately and completely help agents complete tasks more safely. In particular, OBLIGATIONGUARD-8B increases the agent's secure task completion rate from 6.5% to 15.1%.

To summarize, the key contributions of this paper are as follows:

  • We show that existing guard models primarily identify forbidden actions, overlooking a prevalent source of safety risks: required yet unperformed safety-critical actions, which we call obligations.

• We introduce OBLIGATIONBENCH, the first benchmark for evaluating obligation identification, and reveal that existing models struggle to identify agents’ unfulfilled obligations.

• We develop OBLIGATIONGUARD, which surpasses all evaluated guard models in recall and exact-match rate and helps agents complete tasks more safely.

References (31)