# CAPSafe: A Benchmark for Contextual Action and Plan Safety Reasoning in Embodied Agents

Robotics.world

> LLM-driven embodied agents need to know not just whether an instruction is dangerous, but whether a perfectly ordinary instruction becomes dangerous given the state of the world — a metal spoon…

**arXiv**: 2610.28381

**Published**: 2026-10-20

**Authors**: Youmna Farag, Svetlana Stoyanchev, Simon Keizer, Mohan Li, Rama Doddipatla

## In plain words

LLM-driven embodied agents need to know not just whether an instruction is dangerous, but whether a perfectly ordinary instruction becomes dangerous given the state of the world — a metal spoon sitting in a bowl that is about to go into a microwave. Existing safety benchmarks mostly test refusal of explicitly harmful requests, evaluate only the final environment state, or use small scenes with a single hazard.

## AI summary

## Overview

**Research area:** Embodied AI safety, LLM-based task planning, and benchmark design for robotic household agents.

**Technical level:** Advanced — assumes familiarity with LLM agents, symbolic planning, and embodied simulators.

**Scope:** A two-part benchmark (action-level and plan-level, built on TEACH/AI2-THOR household scenes) that measures whether nine LLMs can recognize contextually hazardous actions and generate long-horizon plans that remain safe during and after execution.

## What This Paper Is About

LLM-driven embodied agents need to know not just whether an instruction is dangerous, but whether a perfectly ordinary instruction becomes dangerous given the state of the world — a metal spoon sitting in a bowl that is about to go into a microwave. Existing safety benchmarks mostly test refusal of explicitly harmful requests, evaluate only the final environment state, or use small scenes with a single hazard. CAPSafe argues that real safety reasoning is *situational* (inferred from object properties), involves *many co-occurring hazards*, and must be sustained across *long action sequences*. The paper builds paired datasets for judging a single action and for generating a full safe plan, then measures how far current models fall short on each.

## Key Contributions

1. **Action-level contextual safety dataset.** 1,000 action–environment pairs (500 safe, 500 unsafe) drawn from a generated pool of 732,370 pairs, where the same action is safe or unsafe depending on object properties such as material, temperature, cleanliness, and contents. Built from 41 hazard causes across five categories (Fire, Electric, Object Damage, Injury, Hygiene/Sanitary) over 181 TEACH `valid-seen` environments.
2. **Plan-level long-horizon dataset.** 243 task instances (9 tasks taken from TEACH plus 9 newly introduced tasks), with environments containing on average 12 ± 5 co-occurring hazards, 96 ± 27.5 objects, and 21.8 ± 18.9 required steps per task. Roughly 5 hazards arise during execution and 7 after task completion.
3. **Hazard severity annotation.** Each hazard cause is assigned a scalar severity score in [1, 10] from two independently queried LLMs (Claude-Sonnet-4.5 and DeepSeek-R1, rank correlation ρ = 0.94), averaged and discretized into four degrees (low, moderate, high, severe) using thresholds 1, 4, 7, and 8.5. Human pairwise rankings on 30 sampled hazard pairs agreed with the annotations in 93.3% of cases; GPT-5.2 as a third-party judge agreed in 84%.
4. **A text-based simulator and prompting study.** A symbolic simulator inspired by ALFWorld and ScriptWorld that checks hazards *before each action* and again on the *terminal state*, used to compare five prompting strategies (Base, +SafEx, +Guide, +SafEx+Guide, +Reflect) across nine closed and open-source LLMs.

## Main Findings

- **Strong action-level recognition.** Qwen3-32B achieves the best overall action-level accuracy at 92.6%, with 93.4% recall on safe and 91.8% recall on unsafe examples. Gemini-3-pro reaches the highest unsafe recall at 99.2%.
- **A conservative bias in frontier models.** Gemini-3-pro pairs its 99.2% unsafe recall with only 77.3% safe recall; the same asymmetry appears for GPT-5-mini (97.40% unsafe vs 84.00% safe) and Claude-Sonnet-4.5 (96.40% unsafe vs 78.60% safe). Qwen3-4B (64.60% accuracy) and Mistral-7B (68.27%) are substantially weaker overall.
- **Severity is not handled monotonically.** Models do well on severe hazards (often above their mean unsafe recall) but recall *drops* for high-severity hazards such as toggling on a microwave containing a sponge, so safety reasoning does not scale cleanly with risk level.
- **Recognition does not transfer to planning.** Gemini-3-pro achieves the highest Success Rate at 93.83% and the highest Safe Success Rate at 78.19% (with +Reflect); every other model stays below 65% SSR. Qwen3-32B, the best action-level model, reaches only 51.65% Safety Rate at the plan level (as reported in the text). For comparison, per-model best SSR includes Claude-Sonnet-4.5 at 63.79%, GPT-5-mini at 48.15%, GPT-4.1 at 44.86%, and Mistral-7B at 10.70%.
- **Safety demonstrations help; abstract guidelines mostly help strong models.** Few-shot examples from hazardous environments (+SafEx) consistently improve SSR over Base. Adding natural-language safety guidelines (+Guide) mainly benefits proprietary models. A control using Qwen2.5-72B with self-generated guidelines gave 16.1% SSR versus 18.52% with GPT-generated guidelines, ruling out cross-model guideline bias.
- **Reflection trades safety for success.** +Reflect raises Safety Rate, especially for stronger models, but often lowers task success. Even so, GPT-5-mini and Claude-Sonnet-4.5 still trigger roughly 15% of high-severity hazards on average.
- **Failures cluster mid-execution.** Across +Reflect variants, 67% of unsafe tasks involve hazards during execution, 19% post-execution hazards, and 14% both. Gemini is the exception: 62% of its unsafe tasks come from post-execution hazards, suggesting good local execution safety but weak reasoning about terminal states.
- **Poor hazard mitigation.** Across +Reflect variants, 57% of encountered hazards remain unmitigated; when mitigation does occur it is more often a corrective action (32%) than substitution of a safer object (11%). Gemini resolves roughly 70% of encountered hazards.
- **Interleaved planning gave no gain.** Preliminary ReAct experiments showed no significant improvement, which the authors attribute to the environment being fully observable before execution.

## Methodology in Plain English

The authors deliberately remove perception from the problem. Environments are handed to the model as structured JSON descriptions of objects and their properties, so any failure is a reasoning failure, not a vision failure.

For the action-level set, they start from a library of hazard causes, each defined by an action, the object categories involved, and the properties that decide danger (for example, "wipe hot stove burner" depends on `temperature` and `is_toggled_on`). For each cause and each environment that contains the relevant objects, they copy the scene and edit the properties to create an unsafe variant, and either keep or edit the properties to create a matching safe variant. The action is then grounded to concrete objects, giving 732,370 pairs, from which diversity-based sampling yields a balanced 1,000.

For the plan level, they take household tasks, attach hazardous environments generated the same way but with many hazards at once, and confirm that at least one safe plan exists for every instance — either by mitigating the hazard or by choosing a different object. A symbolic simulator executes the model's plan step by step, checking preconditions, applying effects, flagging hazards before each action, and finally auditing the end state for leftover risks such as an appliance left on or a cabinet left open. Three metrics are reported: Success Rate, Safety Rate, and Safe Success Rate.

Models are prompted with retrieved few-shot examples (top 2 by Sentence-BERT similarity) drawn from either a hazard-free pool or a hazardous pool, with or without explicit safety guidelines, and optionally with a pre-execution self-reflection step in which the model reviews its own plan for risks and revises it.

## Why This Matters

**Research impact.** CAPSafe separates two capabilities that prior benchmarks conflate — recognizing a bad action and sustaining safety across a long plan — and shows they are far from equivalent. The severity labels add a dimension almost absent from earlier benchmarks, and the "multiple hazards, large scenes, long horizons" design sets a harder bar than single-hazard, few-object testbeds.

**Real-world applications:**

- Domestic service robots that must notice a metal utensil before starting a microwave, or an expired ingredient before cooking.
- Kitchen and appliance automation where the risk comes from the combination of object state and action rather than the instruction itself.
- Safety auditing of LLM planners before deployment, using the symbolic simulator as a cheap pre-deployment gate.
- Training and evaluation of safety-aware planning policies, including severity-weighted reward design.

**Industry relevance.** The finding that safety guidelines in the prompt help strong proprietary models but not smaller open-source ones is directly actionable for teams choosing between hosted and self-hosted planners. The reported trade-off between reflection improving safety and degrading task completion is a concrete design constraint for anyone shipping an agent that must be both useful and safe.

## Future Directions

- Replacing the structured JSON input with learned perception, such as scene-graph generation, to test whether the reasoning failures documented here persist under perceptual noise and uncertainty.
- Extending the rule-based hazard library beyond the 41 hazard causes and the household domain — the authors name outdoor navigation and industrial manipulation as natural targets.
- Closing the gap between action-level recognition and plan-level enforcement, particularly the mid-execution and post-execution failure modes and the low rate of object-substitution mitigation (11%).
- Addressing the severity non-monotonicity, since models currently miss high-severity hazards more often than their average unsafe recall would suggest, and the authors note cultural and regional bias toward European and North American household layouts.

## Target Audience

Researchers and engineers working on LLM-based embodied agents, robot task planning, and AI safety evaluation; benchmark designers who need a template for constructing context-dependent safety data; and applied teams assessing whether a planner is safe enough to deploy in a physical environment. Readers without a background in symbolic planning or LLM prompting will find the plan-level methodology dense, though the action-level section and the headline results are accessible on their own.

## Authors’ abstract

Reasoning about safety is essential for embodied agents powered by large language models (LLMs). We introduce the Contextual Action and Plan Safety benchmark (CAPSafe), designed to evaluate safety reasoning at two levels: (1) an action-level dataset that tests whether a single action is safe given its environmental context, and (2) a plan-level dataset that evaluates whether agents can generate safe long-horizon plans for complex hazardous household tasks. CAPSafe models…

[The full abstract on arXiv](https://arxiv.org/abs/2610.28381)

[Read the original paper](https://arxiv.org/abs/2610.28381)

## Related papers

- [Embodied Playground: A Long-Horizon Agentic Robotics Benchmark for Physical, Strategic, and Spatial Reasoning](https://robotics.world/paper/embodied-playground-a-long-horizon-agentic-robotics-benchmark-for-2610.27039) 2026-10-19 · cs.RO · Key terms of the title in common
- [Do Agentic Policies Need to Look at Every Step? Geometric Abstraction for Reasoning and Action](https://robotics.world/paper/do-agentic-policies-need-to-look-at-every-step-geometric-abstraction-2611.05058) 2026-11-03 · cs.RO · Key terms of the title in common
- [From Social Reasoning to Embodied Interaction: An Agentic Framework for Social Robots](https://robotics.world/paper/from-social-reasoning-to-embodied-interaction-an-agentic-framework-for-2610.05964) 2026-10-05 · cs.RO · Key terms of the title in common
- [AquaWAM: A Dynamics-aware World Action Model for Underwater Embodied Agents](https://robotics.world/paper/aquawam-a-dynamics-aware-world-action-model-for-underwater-embodied-2609.33299) 2026-09-27 · cs.RO · Key terms of the title in common
- [Cognitive-Horizon Action Chunking: Memory-Guided Adaptive Reasoning for Embodied Navigation](https://robotics.world/paper/cognitive-horizon-action-chunking-memory-guided-adaptive-reasoning-for-2611.25587) 2026-11-19 · cs.RO · Key terms of the title in common

---

Canonical: https://robotics.world/paper/capsafe-a-benchmark-for-contextual-action-and-plan-safety-reasoning-in-2610.28381
