Safety and Deployment: Envelopes, People and Failure Analysis
You'll be able to:
You can design a safety envelope that sits between a learned policy and the motors, run a lightweight hazard analysis for a robot that shares space with people, name the standards a collaborative-robot deployment is measured against, and write a failure report that leads to a fix rather than a shrug.
The part that is not allowed to be clever
A learned policy is a function nobody can fully inspect. The engineering answer is not to make it trustworthy, which we do not yet know how to do, but to put something trustworthy between it and the motors. This lesson is about that layer, the hazard analysis that tells you what it must prevent, the standards that measure it, and the discipline of learning from failures.
The envelope: policy proposes, filter disposes
The layered pattern looks like this. The policy emits a command. A safety filter checks it against an envelope and either passes it, clips it, or substitutes a safe action. Below that, a watchdog halts the robot if commands stop arriving, and an emergency stop cuts power independently of all software. Each layer is simpler than the one above it, and the bottom layers are simple enough to test exhaustively.
An envelope is a set of numbers: a workspace box the end-effector may not leave, a joint-speed cap, a force or torque cap at the end-effector, a minimum separation from any detected person, and a maximum command rate of change. The point of writing them down with justifications, as the mission asks, is that each number becomes a testable requirement rather than a hope.
Control barrier functions (CBFs) are the principled version of clipping. Define a function h(x) that is positive inside the safe set and zero on its boundary. A CBF filter solves a small quadratic program at each step: find the control closest to the policy's proposal that satisfies a constraint keeping h from decreasing faster than a chosen rate as it approaches zero. The result is minimal intervention: the policy's command passes untouched until the robot nears a limit, then is bent just enough to stay inside. Ames et al.'s survey is the standard reference; Brunke et al. place CBFs alongside the other options, from constrained RL to robust MPC, and are honest that no single approach handles perception uncertainty well.
Standards you will be measured against
Collaborative robot deployments are assessed against a small set of documents. ISO 10218 (parts 1 and 2, 2025 editions) covers industrial robot safety and integration, and it specifies collaborative operation: the four modes (monitored standstill, called safety-rated monitored stop before 2025, hand guiding, speed and separation monitoring, power and force limiting) and, since the 2025 revision, the tables of biomechanical limits, the pressure and force a human body region can tolerate from a transient contact, which it absorbed from ISO/TS 15066:2016. Cite the 2025 editions in new risk assessments; the TS is now a legacy reference. ISO 13482 covers personal-care robots. For a US deployment, ANSI/A3 R15.06-2025 adopts ISO 10218-1/-2. Say plainly what these are not: none of them tells you how to certify a neural network. They constrain the envelope, and a learned policy's job is to stay inside it.
Human-robot interaction is not obstacle avoidance
People are not moving boxes. They anticipate, they get startled, they step into the workspace to help. Two properties of robot motion matter for people: predictability, the motion does what an observer expected, and legibility, the motion makes the robot's goal obvious early. A fast, efficient trajectory that swerves at the last moment is safe by the numbers and frightening in practice. Design the envelope to permit speed only where there are no people and to slow visibly as a person approaches; the speed-and-separation mode of ISO 10218 is exactly this made numeric.
A procedure for hazard analysis (STPA, abridged)
System-Theoretic Process Analysis, from Leveson and Thomas's handbook, treats safety as a control problem, which suits robots well.
- Define losses you care about: injury, damage to the workpiece, damage to the robot.
- Identify hazards: system states that lead to losses, such as "end-effector moves at speed while a hand is within 20 cm".
- Draw the control structure: policy, safety filter, low-level controller, sensors, the human, and the commands and feedback between them.
- List unsafe control actions. For each command, ask four questions: is it unsafe if not provided, if provided, if provided too early or too late, if applied too long or stopped too soon? "Close gripper, provided, while a finger is between the jaws" is one row.
- Write safety constraints that forbid each unsafe action, and trace each to the layer that enforces it.
The output is a table, not a document. The mission asks for exactly that table.
Failure analysis that leads to a fix
Every robot deployment accumulates incidents. The difference between teams that improve and teams that stagnate is what they do with them. Log everything the policy saw and did, at the control rate, so an incident can be replayed. Classify failures into a taxonomy (perception miss, planning error, controller tracking error, envelope intervention, human action) and count them. Distinguish a patch, which prevents that incident, from a fix, which removes the class. A grasp that missed because the depth camera returned a hole on a glass bottle is patched by banning glass bottles and fixed by adding the fallback depth estimate from module 2.
What is unsettled: how to certify a system whose core is learned. The current practice, in industry and in standards committees, is to keep the learned component outside the safety-rated path entirely and to validate the envelope. Whether statistical arguments about a policy's behaviour will ever be accepted in place of that separation is an open question.
What to remember
- Policy proposes, filter disposes, watchdog and e-stop sit below; each layer simpler than the last.
- An envelope is numbers with justifications; a CBF filter is the minimal-intervention way to enforce them.
- ISO 10218-1/-2:2025 (which absorbed ISO/TS 15066) and ISO 13482 define the envelope's requirements, not the policy's.
- Predictable, legible motion matters to people as much as separation distance.
- STPA's four questions per command turn "be safe" into a table of constraints.
- Replay, classify, and prefer fixes to patches.
Curated Materials
2hThe deep work happens here — the lesson is your briefing.
Live on aiqbench
This lesson's subject on the rest of the site, today.
In the news, last 30 days
- Robotics underwriter Cenotian raises $48M to de-risk factory deploymentsDealroom.co ·
- Cenotian raises $48M to underwrite robotics deployments and cut factory riskDealroom.co ·
- DeepSeek Officially Posts Job for Talent in Embodied Intelligence36Kr ·
Test your knowledge
5 questions in 100 seconds, on a page of its own. Read everything above first.
Test your knowledge →Module Mission
35–45 minDesign the safety layer for a tabletop arm that hands tools to a person. Produce three artefacts: (1) a table of unsafe control actions in STPA style (action, context, hazard, constraint); (2) a numeric envelope — workspace box, joint speed cap, end-effector force cap, minimum distance to a detected hand — with one sentence justifying each number; (3) a 'policy says X, envelope does Y' decision table for five concrete commands. Keep it to one page.
Loading your work…