Ontology-Compiled Control Barrier Functions for Heterogeneous Robot Teams
Safety filters for heterogeneous robot teams fail because of missing constraints, overestimated braking capabilities and conflicts between individually satisfiable constraints. We present OntoCBF, which compiles a domain ontology with a class taxonomy, typed relations, safety axioms and a dynamics profile per robot class into a control barrier function filter with one quadratic program per agent.
From the abstract. Our summary is in progress.
Full paper
Ontology-Compiled Control Barrier Functions for Heterogeneous Robot Teams
Published under CC BY 4.0. Reproduced with attribution; original at arXiv:2611.20306 (PDF).
, , , ,
Abstract
Safety filters for heterogeneous robot teams fail because of missing constraints, overestimated braking capabilities and conflicts between individually satisfiable constraints. We present OntoCBF, which compiles a domain ontology with a class taxonomy, typed relations, safety axioms and a dynamics profile per robot class into a control barrier function filter with one quadratic program per agent. Description-logic entailment supplies the constraints of any team online, including those that follow from chains of relations and from classes defined by what a robot carries, so the existing safety axioms cover new robot classes, payload classes and combinations. We prove that a subclass may reuse the braking capability of its parent whenever it can produce every velocity of the parent, a property separate from subsumption. For box-bounded double integrators this property is also necessary, and every loss of safety then begins with a conflict. Once three robots interact, the safe set of pairwise barriers contains states from which a collision is unavoidable, and such states persist in larger teams under any fixed capability reduction. In a simulated warehouse where humans ignore the robots, a filter written for the design classes violates safety in 89–100 % of the episodes with unseen classes. In all scenarios, including one with 32 robots, OntoCBF violates safety in 20–70 % of the episodes, each time after a conflict, with a median deepest intrusion of 10–17 % of the keep-out distance. A multi-agent PPO policy trained with the filter in the loop lowers the rate of infeasible quadratic programs, nearly all of them conflicts, by 18–41 %.
1 Introduction
Warehouses, hospitals and construction sites increasingly operate heterogeneous robot teams in spaces shared with people. Their safety requirements depend on what each entity is and on how the entities are related. A drone keeps farther from a person than a ground robot does, a carrier is responsible for the distance between its payload and nearby people, and ground robots avoid restricted zones that drones may cross. Industrial standards state such requirements in the same terms, through separation distances that depend on the type of machine and on its stopping performance (ISO, 2016; ISO, 2023). Safety filters based on control barrier functions (CBFs) enforce requirements of this kind on top of a learned or hand-designed controller with minimal changes to its commands (Ames et al., 2017; Wang et al., 2017), and they are a common safety layer for multi-agent reinforcement learning (MARL) (Cai et al., 2021; Zhang et al., 2025b).
In existing multi-agent safety filters, the constrained pairs, the keep-out distances and the braking capabilities are fixed at design time for the robot types known at that point (Wang et al., 2017; Cai et al., 2021; ElSayed-Aly et al., 2021). Learned graph CBFs for collision avoidance generalize across team sizes and, empirically, across robot models (Zhang et al., 2025b; Kim et al., 2026a). Semantic safety filters query language models for constraints, which leaves the completeness and consistency of the constraint set unverified (Brunke et al., 2025; Ravichandran et al., 2026). Robot fleets change over their lifetime, and whenever a team gains a new robot model, payload type or task combination, an engineer has to determine by hand which constraints apply to the new entities and whether the existing safety certificate still holds.
We let a domain ontology, of the kind already standardized for robotics (IEEE, 2015), carry the safety specification. A filter for a heterogeneous team can miss a constraint for a new entity, overestimate the braking capability of a robot, or contain constraints that are each satisfiable and exclude each other. In our warehouse ontology (Fig. 1), the taxonomy states that a \mathsf{LightDrone} is a \mathsf{Drone} and that every \mathsf{Drone} is \mathsf{Aerial}. A safety axiom states how far an \mathsf{Aerial} agent stays from a \mathsf{Human}, and a property chain relates each carrier to the people near its payload. Entailment removes the first failure, because the constraints of unlisted classes, payloads and combinations follow from these statements. The second failure depends on dynamics, because a \mathsf{HeavyDrone}, a \mathsf{Drone} that brakes less strongly, inherits every constraint of \mathsf{Drone} and needs a braking capability of its own. A test on the dynamics profiles in the ontology, together with classification, decides when a subclass may reuse the capabilities, and with them the certificate, of its parent. We prove that the third failure is intrinsic to pairwise barriers.
\bar{a} (m/s2), and payload classes. \mathsf{LightDrone} (green) is a dynamic subtype of \mathsf{Drone}. \mathsf{HeavyDrone} (red) brakes less strongly and \mathsf{Forklift} has no design ancestor, so both receive their own capability. These classes and \mathsf{Chemical} appear only in tests.Our contributions are the following.
- We formulate safe control of heterogeneous teams whose active constraints are entailed by an ontology and switch online. Our method, OntoCBF, compiles these entailments into a CBF filter with one quadratic program (QP) per agent and trains a shared multi-agent PPO (MAPPO) policy with the filter in the loop.
- Theorem 4 shows that a subclass inherits exactly the constraints of its parent under a classification test, and its capabilities under dynamic subtyping, an inclusion of velocity sets that braking barriers of box-bounded double integrators require.
- Propositions 5–7 show that, with capabilities assigned this way, safety is lost only after a conflict, and that some states with positive pairwise barriers lead to a collision under every input, for three robots and, under any fixed capability reduction, for large enough teams.
- Experiments in a simulated warehouse with unseen classes and up to 32 robots show that OntoCBF removes the first two failures, that every remaining violation follows a conflict, and that the learned policy lowers the rate of infeasible QPs by 18–41 % (Section 6).
2 Related Work
Multi-agent safety filters.
Our barriers and responsibility split follow Wang et al. (2016); Wang et al. (2017), and Kim et al. (2026b) extend the split to kinematically heterogeneous robots. Sah and Keshavan (2026) give an exact pointwise test of joint feasibility for heterogeneous teams. Learned graph CBFs enforce collision avoidance in teams of any size (Zhang et al., 2025b), are trained jointly with PPO-style policies (Zhang et al., 2025a), and now cover heterogeneous teams through type embeddings (Yang et al., 2026) or, for unseen robot models, through features of their reachable velocity sets (Kim et al., 2026a). Constrained MARL bounds expected costs (Gu et al., 2023), and shields from temporal-logic specifications act on discrete abstractions (ElSayed-Aly et al., 2021; Xiao et al., 2023). Several works check or design the compatibility of multiple CBFs under input limits (Tan and Dimarogonas, 2022; Breeden and Panagou, 2023; Isaly et al., 2024; Mousavi et al., 2025), and Proposition 7 shows that pairwise braking barriers are incompatible on parts of their own safe set.
Semantic safety and reuse of certificates.
Semantic safety filters derive constraints from language or vision-language models (Brunke et al., 2025; Ravichandran et al., 2026), and logical specifications have been compiled into CBFs as compositions of state constraints (Lindemann and Dimarogonas, 2019; Molnar and Ames, 2023). Ontologies model safety in human–robot collaboration (Dhanda et al., 2026) and have been used to verify robot plans (Wu et al., 2026), to shape risk fields for motion planning (van der Ploeg et al., 2023) and to mask the actions of a learner (Fatima and Tolg, 2026). To our knowledge, OntoCBF is the first method that compiles entailments into control constraints with an invariance guarantee. Behavioral subtyping requires a subtype to preserve what clients of the supertype rely on (Liskov and Wing, 1994). A system that admits at least the inputs of another can reuse its controllers (Reissig et al., 2017), and barriers transfer between systems through reduced-order models (Cohen et al., 2024), learned inverse dynamics (Nadali et al., 2024) or a simulation function with a margin (Bousias et al., 2026). Part 2 of Theorem 4 is the zero-margin, class-level form of such a transfer. Parts 1 and 3 add what an ontology requires, namely a classification test for identical constraints and, for box-bounded double integrators, the necessity of dynamic subtyping for braking barriers (Table 1).
- Multi-robot CBF filters (Wang et al., 2017; Kim et al., 2026b; Sah and Keshavan, 2026)
- \circ
- ✓
- ✗
- ✗
- \circ
- ✗
- ✗
- ✗
- Learned graph CBFs (Zhang et al., 2025b; Yang et al., 2026; Kim et al., 2026a)
- \circ
- ✓
- ✗
- ✗
- \circ
- \circ
- ✗
- ✓
- Safe MARL and shields (Gu et al., 2023; ElSayed-Aly et al., 2021; Chatterji and Acar, 2025)
- \circ
- ✗
- \circ
- \circ
- ✗
- ✗
- ✗
- ✓
- Logic compiled into CBFs (Lindemann and Dimarogonas, 2019; Molnar and Ames, 2023)
- \circ
- ✗
- \circ
- ✓
- ✓
- ✗
- ✗
- ✗
- Constraints from (V)LMs (Brunke et al., 2025; Ravichandran et al., 2026)
- ✗
- ✗
- ✓
- ✗
- \circ
- \circ
- ✗
- \circ
- Ontologies for robot safety (Wu et al., 2026; van der Ploeg et al., 2023; Fatima and Tolg, 2026)
- ✗
- ✗
- ✓
- ✓
- ✗
- \circ
- ✗
- \circ
- Certificate transfer (Reissig et al., 2017; Bousias et al., 2026)
- ✗
- ✓
- ✗
- ✗
- ✗
- \circ
- ✓
- ✗
- OntoCBF (ours)
- \circ
- ✓
- ✓
- ✓
- ✓
- ✓
- ✓
- ✓
3 Problem Setting
Entities and dynamics.
The workspace contains controlled agents \mathcal{I}=\{1,\dots,N\}, humans \mathcal{H}, restricted zones \mathcal{Z} and payloads \mathcal{P}. Each entity e belongs to a class \kappa(e), a concept name of the ontology, and we call the restriction of \kappa to \mathcal{I} the team composition. An agent of class C has dynamics \dot{x}_{i}=f_{C}(x_{i})+g_{C}(x_{i})u_{i} with u_{i}\in U_{C} compact. In our experiments it is a planar double integrator, \dot{p}_{i}=v_{i}, \dot{v}_{i}=u_{i}, with U_{C}=[-\bar{a}_{C},\bar{a}_{C}]^{2}. Humans are double integrators with unknown accelerations bounded by \|\dot{v}_{h}\|\leq\bar{a}_{h}, an agent carries at most one payload, which sits at p_{i}+o_{i} for a fixed offset o_{i}, and zones are static.
Ontology.
We use the description logic of OWL 2 (Baader et al., 2003), in which an ontology consists of a TBox \mathcal{T} of terminological axioms and an ABox \mathcal{A} of facts about individuals. Our TBox contains the taxonomy of Fig. 1b as concept inclusions C\sqsubseteq C^{\prime}, disjointness axioms such as \mathsf{Aerial}\sqcap\mathsf{Ground}\sqsubseteq\bot, the symmetric role \mathrm{near}, the role \mathrm{carries} from \mathsf{ControlledAgent} to \mathsf{Payload}, and the role \mathrm{nearCarried}, which the property chain \mathrm{carries}\circ\mathrm{near}\sqsubseteq\mathrm{nearCarried} derives from \mathrm{carries}(a,p) and \mathrm{near}(p,b). Payloads have their own taxonomy, \mathsf{Chemical}\sqsubseteq\mathsf{HazardousPayload}\sqsubseteq\mathsf{Payload}, and the defined class \mathsf{HazardCarrier}\equiv\mathsf{ControlledAgent}\sqcap\exists\mathrm{carries}.\mathsf{HazardousPayload} contains whichever agent currently carries a hazardous payload. Each robot class is annotated with a dynamics profile, here \bar{a}_{C} and a nominal speed \bar{v}_{C}. We write \mathcal{T}\cup\mathcal{A}\models\varphi if \varphi holds in every model of \mathcal{T}\cup\mathcal{A}, which HermiT decides soundly and completely for OWL 2 DL (Glimm et al., 2014).
Safety axioms and active constraints.
A safety axiom \sigma=(r_{\sigma},C_{\sigma},C^{\prime}_{\sigma},D_{\sigma}) requires that the distance between a and b stays at least D_{\sigma} whenever r_{\sigma}(a,b), C_{\sigma}(a) and C^{\prime}_{\sigma}(b) are entailed. For r_{\sigma}=\mathrm{nearCarried} the distance is measured from the payload of a. The ABox at time t,
\mathcal{A}_{t}=\{\kappa(e)(e)\}_{e}\ \cup\ \{\mathrm{carries}(i,p)\}_{i\text{ carries }p}\ \cup\ \{\mathrm{near}(e,e^{\prime}):\ e\neq e^{\prime},\ \|p_{e}-p_{e^{\prime}}\|<\rho\},changes when an entity enters or leaves the sensing radius \rho of another and when an agent picks up or drops a payload. The constraints active at time t are the entailed instances of the safety axioms,
\mathcal{K}_{t}=\big\{(\sigma,a,b):\ \mathcal{T}\cup\mathcal{A}_{t}\models r_{\sigma}(a,b)\wedge C_{\sigma}(a)\wedge C^{\prime}_{\sigma}(b)\big\},and the safe set is \mathcal{S}_{t}=\{x:\ \|q_{\sigma,a}(x)-p_{b}\|\geq D_{\sigma}\text{ for all }(\sigma,a,b)\in\mathcal{K}_{t}\}, where q_{\sigma,a} is the position of a, or of its payload if r_{\sigma}=\mathrm{nearCarried}. Since a subclass inherits every axiom attached to its ancestors, the safe set depends on the team composition through entailment.
Barrier functions.
For a constraint k=(\sigma,a,b) let \Delta p=q_{\sigma,a}-p_{b}, \Delta v=v_{a}-v_{b}, d=\|\Delta p\| and n=\Delta p/d. We use the braking barrier of Wang et al. (2016),
h_{k}=\sqrt{2A_{k}\,(d-D_{\sigma})}+n^{\top}\Delta v,where A_{k}>0 is the braking capability available to the pair. If h_{k}\geq 0, braking at rate A_{k} along n stops the approach at a distance of at least D_{\sigma}, and h_{k} is continuously differentiable wherever d>D_{\sigma}. Since \dot{h}_{k} is affine in the accelerations, the condition \dot{h}_{k}\geq-\alpha(h_{k}) with \alpha(h)=\gamma h^{3} reads
n^{\top}(\dot{v}_{a}-\dot{v}_{b})\ \geq\ b_{k}:=-\gamma h_{k}^{3}-\frac{A_{k}\,n^{\top}\Delta v}{\sqrt{2A_{k}(d-D_{\sigma})}}-\frac{\|\Delta v\|^{2}-(n^{\top}\Delta v)^{2}}{d}.Velocity sets and certificates.
For a class C, V_{C}(x_{i})=\{f_{C}(x_{i})+g_{C}(x_{i})u:\ u\in U_{C}\} is the set of state derivatives, called velocities as in viability theory, that an agent of class C can produce at x_{i}. For a team composition \kappa let V_{\kappa}(x)=\prod_{i\in\mathcal{I}}V_{\kappa(i)}(x_{i}), and let \Omega(x)=\prod_{h\in\mathcal{H}}\{(v_{h},w):\|w\|\leq\bar{a}_{h}\} be the set of admissible velocities of the humans.
Definition 1 (Dynamic subtype).
A robot class C^{\prime} is a dynamic subtype of a robot class C, written C^{\prime}\preceq_{\mathrm{dyn}}C, if both classes have the same state space and V_{C}(x_{i})\subseteq V_{C^{\prime}}(x_{i}) for all x_{i}.
Definition 2 (Joint validity).
A family \{h_{k}\}_{k\in\mathcal{K}} of functions that are continuously differentiable on an open set containing \mathcal{X} is jointly valid for \kappa on \mathcal{X} if for every x\in\mathcal{X} there is \xi\in V_{\kappa}(x) such that \nabla_{\mathcal{I}}h_{k}(x)^{\top}\xi+\nabla_{\mathcal{H}}h_{k}(x)^{\top}\omega\geq-\alpha(h_{k}(x)) for all k\in\mathcal{K} and all \omega\in\Omega(x).
Subsumption C^{\prime}\sqsubseteq C is entailed by the TBox, and C^{\prime}\preceq_{\mathrm{dyn}}C is a property of the dynamics profiles. For box-bounded double integrators C^{\prime}\preceq_{\mathrm{dyn}}C holds if and only if \bar{a}_{C^{\prime}}\geq\bar{a}_{C}, so \mathsf{HeavyDrone}\sqsubseteq\mathsf{Drone} holds and \mathsf{HeavyDrone}\preceq_{\mathrm{dyn}}\mathsf{Drone} fails. A certificate for a team is a family that is jointly valid on a set \mathcal{X}, together with the capabilities and the gain \gamma used to build it.
Objective.
Each agent is rewarded for reaching a sequence of goals and acts on a local observation. We seek decentralized policies and a filter that maximize the expected team return subject to x(t)\in\mathcal{S}_{t} for all t, for any team and any classes that the ontology declares, including those absent at design time and in training.
4 Compiling the Ontology into a Safety Filter
OntoCBF consists of a reasoner that decides which constraints are active, a CBF filter that enforces them with one QP per agent, and a shared policy trained with MARL that performs the task (Fig. 1a).
4.1 Compilation and capability assignment
Offline, HermiT classifies \mathcal{T} once, and OntoCBF stores the ancestors of every class, the safety axioms indexed by role, the defined classes and the dynamics profiles. The design classes, here \mathsf{Drone}, \mathsf{Rover} and \mathsf{Carrier}, are the robot classes of the team for which a certificate is established when the system is designed, and each enters the barriers with the braking capability \beta_{C}=\bar{a}_{C}. Every other robot class C inherits \beta_{C}=\beta_{C^{+}} from its nearest design ancestor C^{+} if C is a dynamic subtype of C^{+} (Definition 1) and has the same subsumers as C^{+} in \Sigma_{\mathcal{T}} (Section 5), a test that classification decides. By Theorem 4, C then also inherits the certificate of C^{+}, provided both have the same payload offset. With several nearest design ancestors, both conditions must hold for each, and the smallest capability is used. All remaining robot classes, \mathsf{Forklift} among them, receive \beta_{C}=\bar{a}_{C} and need a certificate of their own. For box-bounded double integrators the dynamic-subtype test reduces to \bar{a}_{C}\geq\bar{a}_{C^{+}}, so \mathsf{LightDrone} inherits from \mathsf{Drone} and \mathsf{HeavyDrone} receives its own capability. The rule yields \beta_{C}\leq\bar{a}_{C} for every class, which makes every constraint satisfiable on its own wherever its barrier is nonnegative (Lemma 3). Joint validity of all constraints (Definition 2) is a separate property, measured in Section 6.2.
4.2 Event-triggered reasoning
The reasoner runs at ABox events, which occur when a sensed \mathrm{near} assertion appears or disappears and when the task layer asserts or retracts \mathrm{carries} at a pickup or a drop. It closes the asserted roles under symmetry and the property chain, realizes the defined classes, so that an agent carrying a hazardous payload becomes a \mathsf{HazardCarrier}, and instantiates every safety axiom whose role and classes are entailed for a pair. Each instance becomes a constraint k with keep-out D_{\sigma}, braking capability A_{k} and a split of (4) among its controlled agents. For two robots, A_{k}=\beta_{a}+\beta_{b}, and (4) is split into n^{\top}u_{a}\geq w_{a}b_{k} and -n^{\top}u_{b}\geq w_{b}b_{k} with w_{a}=\beta_{a}/A_{k} and w_{b}=\beta_{b}/A_{k} (Wang et al., 2016). For a robot and a human, who may accelerate toward the robot, A_{k}=\beta_{a}-\bar{a}_{h}, which is positive for all our classes, and the robot alone enforces n^{\top}u_{a}\geq b_{k}+\bar{a}_{h}. For a robot and a zone, A_{k}=\beta_{a}, and the robot enforces n^{\top}u_{a}\geq b_{k}. We call these linear inequalities the barrier inequalities of an agent. Rule saturation is complete for our TBox, agrees with HermiT on 72 random ABoxes and takes 0.06 ms per ABox against 332 ms. It also detects inconsistent ABoxes, which would leave \mathcal{S}_{t} empty, and OntoCBF then keeps the last consistent ABox and brakes (Appendix B). Reasoning is centralized over the shared ABox, and each QP needs the states and capabilities of the entities within the sensing radius. Activation check. A relation asserted by the task layer, such as \mathrm{carries} at a pickup, can activate a constraint with h_{k}<0, so the reasoner computes the constraints that the assertion would activate and defers the pickup until each has h_{k}\geq 0.2 m/s.
4.3 Per-agent filter
Agent i collects its barrier inequalities as half-planes g_{k}^{\top}u\geq c_{k} and solves
u_{i}=\arg\min_{u\in U_{\kappa(i)}}\ \|u-u_{i}^{\mathrm{nom}}\|^{2}\quad\text{s.t.}\quad g_{k}^{\top}u\geq c_{k}\ \ \text{for every barrier inequality $k$ of agent $i$},over its true input set U_{\kappa(i)}, so the assigned capability enters only through the barriers. Since u\in\mathbb{R}^{2}, (5) is solved exactly over the edges and vertices of the feasible polygon. If the polygon is empty, the agent minimizes \|u-u_{i}^{\mathrm{nom}}\|^{2}+\mu\sum_{k}\max(0,c_{k}-g_{k}^{\top}u)^{2} over U_{\kappa(i)} with \mu=1000. The filter evaluates (3) with D_{\sigma} enlarged by a margin \delta=0.05 m and requires the relative acceleration A_{k} along n inside the margin. We log the single-constraint failures and conflicts that Section 5 distinguishes. A single-constraint failure is a barrier inequality with h_{k}\geq 0 that every input in U_{\kappa(i)} violates, and a conflict is an empty polygon whose inequalities are each satisfiable on their own.
4.4 Learning with the filter in the loop
A policy \pi_{\theta} shared by all agents is trained with MAPPO (Yu et al., 2022) in the design scenario W0 only, with the filter acting on its outputs. Agent i observes its own state and goal and, for every entity within \rho, the relative state, a class embedding and the keep-out distance that the reasoner currently entails for the pair, pooled by attention. Class embeddings are tied along the taxonomy, e_{C}=\sum_{C^{\prime}\sqsupseteq C}\delta_{C^{\prime}} with \delta_{C^{\prime}}=0 for classes absent from training, so an unseen class is represented through its known ancestors (Appendix D). The policy outputs a bounded correction u_{i}^{\mathrm{nom}}=\mathrm{clip}(u_{i}^{\mathrm{PD}}+s_{i}\tanh(a_{i})) to a go-to-goal controller, with s_{i} capped at the authority seen in training, a cap introduced after an earlier experiment with \mathsf{LightDrone} (Appendix D). The reward is goal progress plus an arrival bonus minus penalties on the intervention \|u_{i}-u_{i}^{\mathrm{nom}}\|^{2}, on infeasible QPs, on violations and on overspeed, with the gradient taken with respect to the pre-filter action a_{i}. By Proposition 6, in continuous time the penalty on infeasible QPs targets the only failure mode left under OntoCBF.
5 Inheritance and Conflicts
Throughout this section and its proofs in Appendix A, the agent set \mathcal{I} is fixed, uncontrolled entities keep their classes, and \mathcal{T} is the TBox of Appendix B.
Lemma 3 (Single-constraint feasibility).
Let agent a have the input set [-\bar{a}_{a},\bar{a}_{a}]^{2} and capability \beta_{a}, and consider one of its barrier inequalities from Section 4.2.
- If
\beta_{a}\leq\bar{a}_{a}, then at every state withd>D_{\sigma}andh_{k}\geq 0some input ofasatisfies it. - If
\beta_{a}>\bar{a}_{a}, there is a state withh_{k}=0at which every input ofaviolates the inequality, and for a zone, or a human who accelerates toward the robot, there is a state withh_{k}>0from which every admissible input ofaleads into the keep-out region.
Part 1 follows from b_{k}\leq A_{k} on \{h_{k}\geq 0\}, and part 2 from a head-on approach along a coordinate axis. Let \Sigma_{\mathcal{T}} be the set of concept names that occur in safety axioms or in TBox axioms other than inclusions between two concept names.
Theorem 4 (Certificate inheritance).
Let the team composition \kappa^{\prime} differ from \kappa on J\subseteq\mathcal{I}, and for every i\in J let \mathcal{T}\models\kappa^{\prime}(i)\sqsubseteq\kappa(i), let \kappa^{\prime}(i) and \kappa(i) have the same subsumers in \Sigma_{\mathcal{T}}, the same payload offset and the same capability, \beta_{\kappa^{\prime}(i)}=\beta_{\kappa(i)}.
- For all
\mathrm{near}and\mathrm{carries}relations,\kappaand\kappa^{\prime}yield the same constraints, barriers and weights. - If
\kappa^{\prime}(i)\preceq_{\mathrm{dyn}}\kappa(i)for alli\in J, every family that is jointly valid for\kappaon\mathcal{X}is jointly valid for\kappa^{\prime}on\mathcal{X}, and every QP (5) that is feasible under\kappais feasible under\kappa^{\prime}. - For double integrators with box input sets and
\beta_{\kappa(i)}=\bar{a}_{\kappa(i)}, every barrier inequality of agenti\in Jis feasible at all states withd>D_{\sigma}andh_{k}\geq 0if and only if\kappa^{\prime}(i)\preceq_{\mathrm{dyn}}\kappa(i). If\kappa^{\prime}(i)\not\preceq_{\mathrm{dyn}}\kappa(i), the zero-superlevel set of an inherited zone or human barrier contains states from which every admissible input of agentileads into the keep-out region.
Proof sketch. Entailment is monotone and equal subsumers in \Sigma_{\mathcal{T}} add no axiom instance (Lemma 8), so the inequalities are unchanged, and any witness or feasible QP input for \kappa remains one for \kappa^{\prime} because the velocity sets grow. Part 3 is Lemma 3 with capability \bar{a}_{\kappa(i)} and bound \bar{a}_{\kappa^{\prime}(i)}. \square
Part 3 shows that, for box-bounded double integrators, the capability of the parent keeps every inherited barrier inequality feasible exactly when the subclass is also a dynamic subtype. Lemma 8 applies to any entity, so a payload subclass with the same subsumers in \Sigma_{\mathcal{T}}, such as \mathsf{Chemical}, leaves the active constraints unchanged. Typing a \mathsf{Payload} as \mathsf{HazardousPayload} changes them, since its carrier becomes a \mathsf{HazardCarrier}. Appendix A extends the theorem to other state spaces through a C^{1} map \pi with V_{C}(\pi(x^{\prime}))\subseteq D\pi(x^{\prime})V_{C^{\prime}}(x^{\prime}), as for a unicycle, and to inclusions up to a margin.
Assumption 1 (Activation margin).
Every constraint k entering \mathcal{K}_{t} at time t_{k} has h_{k}(x(t_{k}))>0.
As relations switch, Assumption 1 holds for sensed relations if closing speeds are bounded by \bar{v} and \rho>D_{\sigma}+\delta+\bar{v}^{2}/(2A_{k}), because a constraint activates at distance \rho (Lemma 11). At nominal speeds our pairs need at most 6.34 m, for a \mathsf{HeavyDrone} and a human, and we use \rho=7 m. For relations asserted by the task layer, the activation check enforces it.
Proposition 5 (Invariance under switching).
Suppose that \mathcal{K}_{t} changes finitely often on bounded intervals, that Assumption 1 holds, and that h_{k}(x(0))>0 for all k\in\mathcal{K}_{0}. If the inputs applied along an absolutely continuous closed-loop trajectory satisfy every barrier inequality of every agent for almost every t\in[0,T], then x(t)\in\mathcal{S}_{t} for all t\in[0,T].
The proof applies the comparison lemma between switches, which keeps every active h_{k} positive and every distance above the keep-out, where h_{k} is differentiable.
Proposition 6 (Loss of safety starts with a conflict).
Let the first three hypotheses of Proposition 5 hold, let the closed-loop trajectory be absolutely continuous, let every class satisfy \bar{a}_{h}<\beta_{C}\leq\bar{a}_{C}, and let every agent apply the solution of its QP whenever that QP is feasible. Suppose that the state first leaves the zero-superlevel set of an active barrier at t^{\circ}. Then some constraint k, active on [t_{k},t^{\circ}] with t_{k}<t^{\circ}, has h_{k}(x(t^{\circ}))=0, and some agent of k has an infeasible QP on a subset of [t_{k},t^{\circ}) of positive measure, with each of its barrier inequalities feasible on its own at those times.
Before t^{\circ} every active barrier is nonnegative, so Lemma 3 makes each inequality feasible, and an infeasible QP can only come from inequalities that exclude each other. Such conflicts are a property of pairwise barriers, independent of the ontology.
Proposition 7 (Unavoidable conflicts).
Consider three double integrators with input sets [-\bar{a},\bar{a}]^{2}, capabilities \beta=\bar{a} and the robot–robot barriers (3) with A_{k}=2\bar{a} and keep-out D. There is a state with all three barriers positive from which every admissible input of the robots brings two of them closer than D.
Two robots approach a third from opposite sides, and each pairwise barrier assumes that the middle robot devotes its full braking to that pair. Hence no controller renders the zero-superlevel set of pairwise braking barriers forward invariant, and a certificate for them holds only on a strict subset \mathcal{X} of it, which makes precise the remark of Wang et al. (2017) that their QP may become infeasible in crowded scenes. A chain of m robots extends the construction to capabilities \beta=\theta\bar{a} whenever \theta(m-1)>1, so every fixed capability reduction leaves such conflicts in large enough teams.
6 Experiments
Setup.
Each 12\times 12 m warehouse tile (Appendix C) contains two drones that carry parcels across a restricted zone binding only \mathsf{Ground} agents, four carriers with payloads, two of them hazardous, and two patrolling rovers. Its four humans ignore the robots, walk at up to 0.8 m/s and accelerate at up to 0.5 m/s2. Besides the robot–robot (0.3 m), robot–human (0.5 m), aerial–human (1.0 m) and ground–zone (1.0 m) axioms, payloads keep 0.8 m and hazardous payloads 2.0 m from people. Episodes last 40 s with a zero-order hold of 0.05 s, whose inter-sample effect we do not bound (Breeden et al., 2022), \rho=7 m, and \gamma=1 is selected on validation episodes. W0 is the design team (\mathsf{Drone}, \mathsf{Rover} and \mathsf{Carrier} with \mathsf{Payload} and \mathsf{HazardousPayload}). W1 replaces the two drones by a \mathsf{LightDrone} and a \mathsf{HeavyDrone} and one carrier by a \mathsf{Forklift}. W2 types the hazardous payloads as \mathsf{Chemical}, W3 lets a \mathsf{LightDrone} carry a \mathsf{Chemical} and a \mathsf{Drone} carry a \mathsf{HazardousPayload}, two unlisted combinations, and W4 tiles W0 2\times 2 (N=32).
Methods and metrics.
All filters share the barrier (3), the QP (5) and, unless stated otherwise, the activation check, so they differ only in where their constraints and capabilities come from. None applies u_{i}^{\mathrm{nom}} directly. Flat replaces the ontology by hand-written tables of keep-outs and capabilities for the design classes and (robot, payload) pairs, with defaults for unlisted classes (mean design capability 1.4 m/s2, keep-outs 0.5 m and 0.8 m), and Flat-cons uses the most conservative listed values as defaults. No-chain drops property chains, Naive inherits capabilities along \sqsubseteq without the dynamic-subtype test, Untyped treats every payload as hazardous, and No-act. omits the activation check. Covering W1–W3 requires 10 ontology statements in OntoCBF and 18 table entries in Flat, and all methods use the same go-to-goal PD controller, except MAPPO, on 100 seeds per scenario. A violation is a distance below D_{\sigma} for a constraint entailed under the true classes, so Flat and No-chain are also judged on the constraints they omit.
- Scenario
- Flat
- Flat-cons
- No-chain
- Naive
- Untyped
- No-act.
- OntoCBF
- MAPPO
- Flat
- Naive
- OntoCBF
- W0 (design)
- 20
- 20
- 100
- 22
- 16
- 74
- 22
- 12
- 0
- 0
- 0
- W1 (unseen robots)
- 89
- 17
- 100
- 23
- 17
- 72
- 20
- 11
- 182
- 266
- 0
- W2 (unseen payload)
- 99
- 20
- 100
- 22
- 16
- 74
- 22
- 12
- 0
- 0
- 0
- W3 (unseen combination)
- 100
- 28
- 100
- 40
- 37
- 96
- 40
- 26
- 0
- 0
- 0
- W4 (N{=}32)
- 67
- 67
- 100
- 70
- 69
- 98
- 70
- 65
- 0
- 0
- 0
6.1 Missing constraints
OntoCBF runs unchanged in all scenarios with the same safety axioms, and W2 reproduces W0 seed by seed, as Lemma 8 predicts. In W1 the \mathsf{HeavyDrone} and the \mathsf{Forklift} run with their own capabilities, for which a certificate is still to be established. Under OntoCBF, 20–70 % of the episodes contain a violation, and an episode has 5.6–47.9 violating steps out of 800 on average, against 100 % and 551–754 steps without a filter (Tables 2 and 12, intervals in Table 5). Flat performs like OntoCBF on the design team (20 % against 22 %, where OntoCBF keeps one inequality per entailed axiom and Flat one per table entry) and violates safety in at least 89 % of the episodes of W1–W3, mostly through the omitted aerial–human axiom in W1 (76.2 violating constraint-steps per episode against 1.9) and the omitted hazard keep-out in W2 and W3. Flat-cons, which treats every unlisted robot or pair like the weakest and most restricted listed one, violates safety less often than OntoCBF in every scenario, most of all in W3 (28 against 40 %). Its zone default stops the unseen drones, so it achieves 65 and 91 % of the deliveries of OntoCBF in W1 and W3. Its capability default is valid only because every unseen class brakes at least as strongly as the weakest design class (Lemma 3). Untyped has fewer episodes with a violation in every scenario and achieves 66 % of the ordinary deliveries of OntoCBF in W0. Removing the property chain, the robot or payload taxonomy, or the defined class produces violations in at least 79 % of the episodes where the element is needed and reproduces OntoCBF seed by seed elsewhere (Tables 7 and 8). Without the activation check, 217 pickups in W3 begin inside a keep-out region (Table 7).
6.2 Overestimated capabilities
A \mathsf{HeavyDrone} heads for a goal through a human who walks straight at it, from 91 initial states inside the safe set of its own capability (Fig. 3). Under Naive, which gives it the capability of \mathsf{Drone}, single-constraint failures occur in 1 % of the encounters at \gamma=1, 13 % at \gamma=3 and 100 % at \gamma=30. From \gamma=10 on they lead to violations, in 48 % of the encounters at \gamma=30 with distances down to 0.75 m against a keep-out of 1.0 m, as part 3 of Theorem 4 predicts. OntoCBF stays free of failures and violations at every gain. Small gains brake early, so an overestimated capability appears as single-constraint failures before it appears as violations. In W1, Naive causes 266 single-constraint failures at \gamma=1 and, at \gamma=10, violates safety in 44 % of the episodes against 21 % for OntoCBF (Table 4). Joint validity, decided by a linear program at each of the 78,837 states visited in W0 (Table 11), holds for the design family at 94.4 % of them. \mathsf{HeavyDrone}s under the capability of \mathsf{Drone} break it at 853 of these states, and with their own capability they form a new family, valid at 91.6 % of the states where the design family is.
6.3 Conflicts between constraints
Each of the 466 violation onsets in W0, W1, W3 and W4 follows, within 1 s, a conflict of an agent of the violated constraint, consistent with Proposition 6 in continuous time, so every episode with a violation also has a conflict. Conflicts precede only 1.9–3.3 % of all agent-steps within the same window (Table 10). Of all infeasible QPs, 98 % are conflicts, and the rest contain an inequality whose barrier is already negative. Conflicts arise mostly when humans close in on a drone or a hazardous carrier, and the median deepest intrusion is 10–17 % of D_{\sigma}. At 56–68 % of the onsets the robot was not moving toward the other entity. The filter takes at most 6.1 ms per step and the full reasoning step 4.6 ms per event on one CPU core (Table 9).
6.4 Learning in the loop
Behind the MAPPO policy of Section 4.4, trained in W0 only, episodes with a violation fall from 20–70 % to 11–65 % (Table 2). The rate of infeasible QPs per agent-step with active constraints, almost all of them conflicts, drops by 18–41 % in every scenario, with paired 95 % bootstrap intervals below zero over runs and seeds and in each of the 3 runs (Table 13). Mean violating steps per episode change by -8.3 to -2.3, significantly only in W3 (-6.98 [-12.47, -1.70]), deliveries per courier by -0.11 to +0.04, and without the filter the policy violates safety in every episode.
7 Conclusion
OntoCBF makes a domain ontology the specification of a multi-robot safety filter, in which entailment removes missing constraints and the dynamic-subtype test, exact for box-bounded double integrators, removes overestimated capabilities. Conflicts between constraints remain possible with pairwise barriers (Proposition 7), and a policy trained in W0 alone makes them less frequent. The guarantees hold in continuous time for double integrators and humans with acceleration bounded by \bar{a}_{h}, and they rely on correct class labels and measured profiles, since each entity is constrained only by the axioms of the classes entailed for it (Appendix B). Verified certificates, fail-safe defaults for unknown labels, axiom priorities that favor people, and nonlinear classes are the next steps.
Generative AI Use
Generative AI tools were used for coding and experimental implementation, literature search, and writing and editing. The authors checked all AI-assisted content and take full responsibility for the paper.
References
Appendix A Proofs
The constructions in part 2 of Lemma 3, part 3 of Theorem 4 and Proposition 7 show entry into the keep-out used in the barrier, which for the filter is D_{\sigma}+\delta (Section 4.3).
A.1 Barrier derivative and barrier inequalities
Let k=(\sigma,a,b) be a constraint with d=\|\Delta p\|>D_{\sigma}, n=\Delta p/d and \ell=\sqrt{2A_{k}(d-D_{\sigma})}>0. The payload offset is constant, so \tfrac{d}{dt}\Delta p=\Delta v for every type of constraint, \dot{d}=n^{\top}\Delta v, and \dot{n}=(I-nn^{\top})\Delta v/d. Differentiating (3) gives
\dot{h}_{k}=\frac{A_{k}\,n^{\top}\Delta v}{\ell}+\frac{\|\Delta v\|^{2}-(n^{\top}\Delta v)^{2}}{d}+n^{\top}(\dot{v}_{a}-\dot{v}_{b}),so \dot{h}_{k}\geq-\gamma h_{k}^{3} is equivalent to (4). For two robots, adding n^{\top}u_{a}\geq w_{a}b_{k} and -n^{\top}u_{b}\geq w_{b}b_{k} with w_{a}+w_{b}=1 yields n^{\top}(u_{a}-u_{b})\geq b_{k}. For a robot and a human with \|\dot{v}_{h}\|\leq\bar{a}_{h}, the inequality n^{\top}u_{a}\geq b_{k}+\bar{a}_{h} yields n^{\top}(u_{a}-\dot{v}_{h})\geq n^{\top}u_{a}-\bar{a}_{h}\geq b_{k} for every admissible acceleration of the human. For a zone, \dot{v}_{b}=0. Hence, whenever the agents of k satisfy their barrier inequalities, \dot{h}_{k}\geq-\gamma h_{k}^{3} holds for all admissible human accelerations. The curvature term in (6) is nonnegative, so h_{k}\geq 0 is sufficient for braking at rate A_{k} along n to stop the approach at a distance of at least D_{\sigma}, and tangential motion can only increase that distance.
A.2 Single-constraint feasibility
of Lemma 3.
Part 1. Let d>D_{\sigma} and h_{k}\geq 0. In b_{k}, the first term -\gamma h_{k}^{3} is nonpositive and the third term is nonpositive by the Cauchy–Schwarz inequality. If n^{\top}\Delta v\geq 0, the second term is nonpositive as well. Otherwise h_{k}\geq 0 gives \ell\geq-n^{\top}\Delta v>0, so the second term is at most A_{k}. Hence b_{k}\leq A_{k}. The right-hand side r of the barrier inequality of agent a therefore satisfies r=w_{a}b_{k}\leq w_{a}A_{k}=\beta_{a} for a robot pair, r=b_{k}+\bar{a}_{h}\leq A_{k}+\bar{a}_{h}=\beta_{a} for a human, and r=b_{k}\leq A_{k}=\beta_{a} for a zone. The input u^{\star}=\bar{a}_{a}(\operatorname{sign}n_{1},\operatorname{sign}n_{2}) lies in the box and gives n^{\top}u^{\star}=\bar{a}_{a}(|n_{1}|+|n_{2}|)\geq\bar{a}_{a}\|n\|=\bar{a}_{a}\geq\beta_{a}\geq r. Inside the filter margin the implementation replaces b_{k} by A_{k}, which keeps r\leq\beta_{a}.
Part 2, a state with h_{k}=0. Let \beta_{a}>\bar{a}_{a}, pick d>D_{\sigma}, and set n=(1,0) and \Delta v=(-\ell,0). Then h_{k}=0, the curvature term vanishes and b_{k}=A_{k}, so the right-hand side equals \beta_{a} for each type of constraint. Every input in the box violates the inequality, because \max_{u\in[-\bar{a}_{a},\bar{a}_{a}]^{2}}(1,0)\,u=\bar{a}_{a}<\beta_{a}.
Part 2, an unavoidable violation at a zone. Write D=D_{\sigma} and \bar{a}=\bar{a}_{a}, place the zone at the origin, and fix \beta^{\prime}\in(\bar{a},\beta_{a}) and s>0. The agent starts at p(0)=(D+\varepsilon,0) with v(0)=(-s,0) and \varepsilon=s^{2}/(2\beta^{\prime}), so that h_{k}(x(0))=s\big(\sqrt{\beta_{a}/\beta^{\prime}}-1\big)>0. Let u(\cdot) be any measurable input with values in [-\bar{a},\bar{a}]^{2}, and let t^{\star}=s/\bar{a}. Integrating twice,
D+\varepsilon-st-\tfrac{1}{2}\bar{a}t^{2}\ \leq\ p_{1}(t)\ \leq\ D+\varepsilon-st+\tfrac{1}{2}\bar{a}t^{2},\qquad|p_{2}(t)|\leq\tfrac{1}{2}\bar{a}t^{2}.At t^{\star} these bounds give D-\tfrac{3s^{2}}{2\bar{a}}\leq p_{1}(t^{\star})\leq D-cs^{2} with c=\tfrac{1}{2}(1/\bar{a}-1/\beta^{\prime})>0, and |p_{2}(t^{\star})|\leq s^{2}/(2\bar{a}). If s^{2}<\min\{2\bar{a}D/3,\ D/c,\ 2cD/(c^{2}+1/(4\bar{a}^{2}))\}, then 0<p_{1}(t^{\star})\leq D-cs^{2} and
\|p(t^{\star})\|^{2}\leq(D-cs^{2})^{2}+\frac{s^{4}}{4\bar{a}^{2}}=D^{2}-2cDs^{2}+\Big(c^{2}+\frac{1}{4\bar{a}^{2}}\Big)s^{4}<D^{2},so the agent is inside the keep-out region at t^{\star} for every admissible input.
Part 2, an unavoidable violation with a human. Let the human start at the origin at rest and accelerate toward the robot with \dot{v}_{h}=(\bar{a}_{h},0). In relative coordinates \Delta p=p_{a}-p_{h}, the first component of \Delta\ddot{p} lies in [-\bar{a}_{a}-\bar{a}_{h},\ \hat{a}] with \hat{a}=\bar{a}_{a}-\bar{a}_{h}, and the second lies in [-\bar{a}_{a},\bar{a}_{a}]. The barrier uses A_{k}=\beta_{a}-\bar{a}_{h}>\hat{a}. The zone argument with \beta^{\prime}\in(\max\{\hat{a},0\},A_{k}), \varepsilon=s^{2}/(2\beta^{\prime}), t^{\star}=s/\beta^{\prime}, upper acceleration bound \hat{a}, lower bound -\bar{a}_{a}-\bar{a}_{h} and lateral bound \bar{a}_{a} gives h_{k}(x(0))>0 and \Delta p_{1}(t^{\star})\leq D-s^{2}(1-\hat{a}/\beta^{\prime})/(2\beta^{\prime}), so \|\Delta p(t^{\star})\|<D for all sufficiently small s>0, whatever the sign of \hat{a}. ∎
For the zone, the conditions s^{2}\leq 2\bar{a}D\min\{1/3,\ 1-\bar{a}/\beta^{\prime}\} suffice, and with \bar{a}=1, \beta_{a}=2, \beta^{\prime}=1.5 and D=1 m they allow s\leq 0.81 m/s. At s=0.8 m/s the barrier starts at 0.12 m/s and the largest reachable distance at t^{\star} is at most 0.95 m. Smallness of s is needed in this argument, since at large speeds a robot may swerve around the keep-out region. For a general compact convex input set U containing the origin, the argument of part 1 shows that every barrier inequality is feasible on \{h_{k}\geq 0\} if and only if \beta_{a}\leq\min_{\|n\|=1}\max_{u\in U}n^{\top}u, the inradius of U about the origin. Inclusion U_{C}\subseteq U_{C^{\prime}} implies this inequality for an inherited capability, and joint validity in Theorem 4 needs the inclusion itself, because a joint witness may use a corner of U_{C}.
A.3 Axiom equivalence and certificate inheritance
Let \Sigma_{\mathcal{T}} be the set of concept names that occur in safety axioms or in TBox axioms other than inclusions between two concept names (definitions, disjointness axioms, domain and range restrictions). For the TBox of Section B, \Sigma_{\mathcal{T}} consists of \mathsf{Entity}, \mathsf{Agent}, \mathsf{Object}, \mathsf{ControlledAgent}, \mathsf{UncontrolledAgent}, \mathsf{Aerial}, \mathsf{Ground}, \mathsf{Human}, \mathsf{Payload}, \mathsf{HazardousPayload}, \mathsf{RestrictedZone} and \mathsf{HazardCarrier}. Axioms that tie a class to a role, such as C\sqsubseteq\exists\mathrm{near}.\{h\}, put C in \Sigma_{\mathcal{T}}, so a class that adds constraints for other individuals in this way has subsumers in \Sigma_{\mathcal{T}} that differ from those of its parent.
Lemma 8 (Axiom equivalence).
Let \mathcal{T} be the TBox of Section B, and let C^{\prime}\sqsubseteq C be classes with the same subsumers in \Sigma_{\mathcal{T}}. Let \mathcal{A} be an ABox of concept-name and role assertions that contains C(i), and let \mathcal{A}^{\prime} be obtained from \mathcal{A} by replacing C(i) with C^{\prime}(i). Then \mathcal{T}\cup\mathcal{A}^{\prime} is consistent if and only if \mathcal{T}\cup\mathcal{A} is consistent, and both entail the same instances of every safety axiom.
Proof.
Since \mathcal{T}\models C^{\prime}\sqsubseteq C, every model of \mathcal{T}\cup\mathcal{A}^{\prime} is a model of \mathcal{T}\cup\mathcal{A}, so \mathcal{T}\cup\mathcal{A}^{\prime} entails everything that \mathcal{T}\cup\mathcal{A} entails, and consistency of \mathcal{T}\cup\mathcal{A}^{\prime} implies consistency of \mathcal{T}\cup\mathcal{A}. For the converse, let \mathcal{U} be a model of \mathcal{T}\cup\mathcal{A}, and let \mathcal{U}^{\prime} be obtained from \mathcal{U} by adding i^{\mathcal{U}} to the extension of every concept name B\notin\Sigma_{\mathcal{T}} with \mathcal{T}\models C^{\prime}\sqsubseteq B. The ABox \mathcal{A} consists of assertions of concept names and roles, as in (1), and \mathcal{U}^{\prime} only enlarges extensions, so \mathcal{U}^{\prime} satisfies \mathcal{A}. It also satisfies C^{\prime}(i), because C^{\prime} either received i^{\mathcal{U}} or lies in \Sigma_{\mathcal{T}}, where it is one of its own subsumers and hence a subsumer of C. Every safety axiom and every TBox axiom other than an inclusion between two concept names mentions only individuals, roles and concept names in \Sigma_{\mathcal{T}}, which keep their interpretation in \mathcal{U}^{\prime}. An inclusion B\sqsubseteq B^{\prime} between concept names can fail in \mathcal{U}^{\prime} only if i^{\mathcal{U}} was added to B, and then \mathcal{T}\models C^{\prime}\sqsubseteq B^{\prime}, so B^{\prime} received i^{\mathcal{U}} as well or B^{\prime}\in\Sigma_{\mathcal{T}}, in which case \mathcal{T}\models C\sqsubseteq B^{\prime} and i^{\mathcal{U}}\in C^{\mathcal{U}}\subseteq{B^{\prime}}^{\mathcal{U}}. Hence \mathcal{U}^{\prime} is a model of \mathcal{T}\cup\mathcal{A}^{\prime} with the same safety-axiom instances as \mathcal{U}, so \mathcal{T}\cup\mathcal{A}^{\prime} is consistent whenever \mathcal{T}\cup\mathcal{A} is, and every instance that \mathcal{T}\cup\mathcal{A}^{\prime} entails is entailed by \mathcal{T}\cup\mathcal{A}. ∎
The proof never uses C^{\prime}\sqsubseteq C for the converse direction, so any two classes with the same subsumers in \Sigma_{\mathcal{T}} yield the same constraints. For example, \mathsf{Forklift} and \mathsf{Carrier} are siblings with the same subsumers in \Sigma_{\mathcal{T}}, and \mathsf{Forklift} has the larger acceleration limit, so by part 2 of Theorem 4, applied with this weaker hypothesis, the same payload offset and the capability of \mathsf{Carrier}, it could reuse the certificate of \mathsf{Carrier}. OntoCBF searches for a certificate only along the taxonomy, which is conservative.
of Theorem 4.
Part 1. Applying Lemma 8 to the agents of J one at a time shows that, for all \mathrm{near} and \mathrm{carries} relations, the ABoxes under \kappa and under \kappa^{\prime} entail the same instances of every safety axiom, so \mathcal{K}_{t} is the same. A barrier (3) depends on the classes of its agents only through A_{k}, and A_{k} and the weights depend on the class only through \beta, which is the same under \kappa and \kappa^{\prime}.
Part 2. Fix x\in\mathcal{X} and let \xi\in V_{\kappa}(x) satisfy Definition 2 for \kappa. For i\in J, \xi_{i}\in V_{\kappa(i)}(x_{i})\subseteq V_{\kappa^{\prime}(i)}(x_{i}), and for i\notin J the velocity sets coincide, so \xi\in V_{\kappa^{\prime}}(x). The functions h_{k}, the index set \mathcal{K}, the set \Omega(x) and the value \alpha(h_{k}(x)) do not depend on the composition by part 1, so \xi satisfies Definition 2 for \kappa^{\prime}. For the QPs, write each barrier inequality of agent i as \nabla_{x_{i}}h_{k}(x)^{\top}\big(f_{\kappa(i)}(x_{i})+g_{\kappa(i)}(x_{i})u\big)\geq s_{ki}(x), which reads n^{\top}u\geq c_{k} for double integrators. By part 1, the share s_{ki} of agent i is the same under \kappa and \kappa^{\prime}. If u is feasible for agent i\in J under \kappa, its velocity f_{\kappa(i)}(x_{i})+g_{\kappa(i)}(x_{i})u lies in V_{\kappa^{\prime}(i)}(x_{i}), so some u^{\prime}\in U_{\kappa^{\prime}(i)} produces the same velocity and satisfies the same inequalities. The payload offset enters the barriers of \mathrm{nearCarried} through q_{\sigma,a}, which is why the theorem assumes it unchanged.
Part 3. Under \kappa^{\prime}, agent i has capability \beta=\bar{a}_{\kappa(i)} and input bound \bar{a}_{\kappa^{\prime}(i)}. By Lemma 3, all its barrier inequalities are feasible at every state with d>D_{\sigma} and h_{k}\geq 0 if \bar{a}_{\kappa(i)}\leq\bar{a}_{\kappa^{\prime}(i)}, which is the condition \kappa^{\prime}(i)\preceq_{\mathrm{dyn}}\kappa(i), and otherwise each type of inequality is infeasible at some state with h_{k}=0. The last claim of part 3 is part 2 of Lemma 3. ∎
Feasibility of every QP versus joint validity.
If every agent’s QP is feasible at x, the applied inputs satisfy Definition 2 at x, because the two shares of a robot pair sum to the barrier condition and each human inequality contains the worst human acceleration. The converse fails for two drones with \beta=\bar{a}=2 and \gamma=1 on the first axis, drone b at 0 with velocity (1,0) and drone a at 0.8 at rest, and a human at 1.914 at rest. The robot pair requires u_{a,1}\geq 0.5 and -u_{b,1}\geq 0.5, and the aerial–human constraint of a requires -u_{a,1}\geq 0.3, so the QP of a is infeasible, and each of its inequalities is feasible on its own. The inputs u_{a}=(-0.35,0) and u_{b}=(-1.4,0) satisfy the unsplit pair condition u_{a,1}-u_{b,1}\geq 1 and both human conditions, so Definition 2 holds. On the states visited in W0 this gap separates the 94.4 % of states with joint validity from the 92.4 % at which every QP is feasible (Table 11).
A.4 Extensions of Theorem 4
Classes with different state spaces.
Let \pi_{i}:\mathbb{X}_{\kappa^{\prime}(i)}\to\mathbb{X}_{\kappa(i)}, i\in J, be continuously differentiable maps between state spaces with
V_{\kappa(i)}(\pi_{i}(x^{\prime}_{i}))\subseteq D\pi_{i}(x^{\prime}_{i})\,V_{\kappa^{\prime}(i)}(x^{\prime}_{i})\qquad\text{for all }x^{\prime}_{i}\in\mathcal{X}^{\prime}_{i},and let \Pi apply \pi_{i} to the states of the agents in J and the identity to all other states.
Proposition 9 (Inheritance through embeddings).
Let the hypotheses of Theorem 4 hold with \kappa^{\prime}(i)\preceq_{\mathrm{dyn}}\kappa(i) replaced by (7). If \{h_{k}\}_{k\in\mathcal{K}} is jointly valid for \kappa on \mathcal{X}, then \{h_{k}\circ\Pi\}_{k\in\mathcal{K}} is jointly valid for \kappa^{\prime} on \{x^{\prime}:\ \Pi(x^{\prime})\in\mathcal{X},\ x^{\prime}_{i}\in\mathcal{X}^{\prime}_{i}\text{ for all }i\in J\}.
Proof.
Let x^{\prime} be in that set and x=\Pi(x^{\prime}), and take a witness \xi for \kappa at x. For i\in J choose \xi^{\prime}_{i}\in V_{\kappa^{\prime}(i)}(x^{\prime}_{i}) with D\pi_{i}(x^{\prime}_{i})\xi^{\prime}_{i}=\xi_{i}, which exists by (7), and set \xi^{\prime}_{i}=\xi_{i} for i\notin J. By the chain rule, \nabla(h_{k}\circ\Pi)(x^{\prime})^{\top}\xi^{\prime}=\nabla h_{k}(x)^{\top}D\Pi(x^{\prime})\xi^{\prime}=\nabla h_{k}(x)^{\top}\xi, the terms of the uncontrolled entities are unchanged, and (h_{k}\circ\Pi)(x^{\prime})=h_{k}(x), so \xi^{\prime} is a witness for \kappa^{\prime} at x^{\prime}. ∎
Condition (7) is the infinitesimal form of the consistent abstractions of Pappas et al. (2000), and it underlies the transfer of CBFs through reduced-order models (Cohen et al., 2024). The barrier h_{k}\circ\Pi constrains the embedded point, so the keep-out of the physical robot must be stated for that point or enlarged accordingly. The set \mathcal{X}^{\prime}_{i} on which (7) holds must also be kept invariant, which belongs to the certificate of the design team.
A unicycle inheriting from a double integrator.
A dynamic unicycle has state x^{\prime}=(p,\theta,s,\omega) and dynamics \dot{p}=s\,e(\theta), \dot{\theta}=\omega, \dot{s}=a, \dot{\omega}=\eta, with |a|\leq a_{\max}, |\eta|\leq\eta_{\max}, e(\theta)=(\cos\theta,\sin\theta) and e^{\perp}(\theta)=(-\sin\theta,\cos\theta). Its look-ahead point q=p+\ell e(\theta) satisfies \dot{q}=s\,e(\theta)+\ell\omega\,e^{\perp}(\theta) and
\ddot{q}=(a-\ell\omega^{2})\,e(\theta)+(s\omega+\ell\eta)\,e^{\perp}(\theta).Let \pi(x^{\prime})=(q,\dot{q}). The position components of V_{\mathrm{DI}}(\pi(x^{\prime})) and D\pi(x^{\prime})V_{\mathrm{uni}}(x^{\prime}) coincide, and the inclusion (7) of the acceleration components reads [-\bar{a},\bar{a}]^{2}\subseteq R(\theta)\big([-a_{\max}-\ell\omega^{2},\,a_{\max}-\ell\omega^{2}]\times[s\omega-\ell\eta_{\max},\,s\omega+\ell\eta_{\max}]\big), where R(\theta) is the rotation by \theta. The squares R(-\theta)[-\bar{a},\bar{a}]^{2} cover the disk of radius \sqrt{2}\,\bar{a} as \theta varies, so the inclusion holds for all \theta on the envelope |s|\leq s_{\max}, |\omega|\leq\omega_{\max} if
a_{\max}-\ell\omega_{\max}^{2}\geq\sqrt{2}\,\bar{a}\qquad\text{and}\qquad\ell\eta_{\max}-s_{\max}\omega_{\max}\geq\sqrt{2}\,\bar{a}.These conditions are also necessary for the inclusion at every heading, and on a set of headings \Theta the factor \sqrt{2} can be replaced by \max_{\theta\in\Theta}(|\cos\theta|+|\sin\theta|). The barrier then constrains q, so the keep-out of the robot itself grows by \ell, and the envelope must be kept invariant, for instance through a speed bound \|\dot{q}\|\leq\bar{v}, which implies |s|\leq\bar{v} and |\omega|\leq\bar{v}/\ell. The conditions are demanding, since with \bar{a}=1 m/s2, \ell=0.1 m, s_{\max}=1 m/s and \omega_{\max}=2 rad/s they need \eta_{\max}\geq 20+10\sqrt{2}\approx 34.1 rad/s2.
Approximate inclusion.
Corollary 10.
Let the hypotheses of Theorem 4 hold with \kappa^{\prime}(i)\preceq_{\mathrm{dyn}}\kappa(i) replaced by V_{\kappa(i)}(x_{i})\subseteq V_{\kappa^{\prime}(i)}(x_{i})\oplus\mathbb{B}_{\delta_{i}} for i\in J. Suppose that the witnesses for \kappa satisfy Definition 2 with margin m>0 (right-hand side -\alpha(h_{k}(x))+m), and that |\nabla_{x_{i}}h_{k}(x)^{\top}e|\leq L_{k}\|e\| for every difference e between elements of V_{\kappa(i)}(x_{i}) and V_{\kappa^{\prime}(i)}(x_{i}). If L_{k}\sum_{i\in J}\delta_{i}\leq m for all k, then \{h_{k}\}_{k\in\mathcal{K}} is jointly valid for \kappa^{\prime}.
Proof.
For i\in J pick \xi^{\prime}_{i}\in V_{\kappa^{\prime}(i)}(x_{i}) with \|\xi^{\prime}_{i}-\xi_{i}\|\leq\delta_{i}, and let \xi^{\prime}_{i}=\xi_{i} otherwise. For every k and \omega\in\Omega(x) the left-hand side of Definition 2 decreases by at most L_{k}\sum_{i\in J}\delta_{i}\leq m, so it remains at least -\alpha(h_{k}(x)). ∎
For the barrier (3) and classes with a common drift, the differences only affect accelerations, which enter through \pm n, so L_{k}=1.
A.5 Activation margin from the sensing radius
Lemma 11.
Let a constraint k be activated at time t_{k} by a sensed relation, so that the distance d of k equals \rho at t_{k}. For \mathrm{nearCarried}, the relation \mathrm{near} is sensed at the payload, from which d is measured. If the closing speed satisfies -n^{\top}\Delta v(t_{k})\leq\bar{v} and \rho>D_{\sigma}+\delta+\bar{v}^{2}/(2A_{k}), then h_{k}(x(t_{k}))\geq\sqrt{2A_{k}(\rho-D_{\sigma}-\delta)}-\bar{v}>0.
The proof is immediate from (3) with keep-out D_{\sigma}+\delta. If an implementation senses the relation at the position of the carrier, \rho must exceed the bound by the payload offset \|o_{a}\|. For the \mathsf{HeavyDrone} and a human, \bar{a}_{\mathsf{HeavyDrone}}=1.0, \bar{a}_{h}=0.5, D_{\sigma}=1.0 m, \delta=0.05 m and \bar{v}=1.5+0.8 m/s give \rho>6.34 m, and at \rho=7 m the barrier is at least 0.13 m/s at activation. A \mathsf{Drone} or \mathsf{LightDrone} carrying a hazardous payload needs 3.82 m, and a \mathsf{Carrier} with a hazardous payload needs 4.61 m, or 5.31 m if the relation is sensed at the carrier. These values assume nominal speeds, and a \mathsf{HeavyDrone} at 2.0 m/s would need more than 7 m, as would a \mathsf{HeavyDrone} carrying a hazardous payload, a combination outside all our scenarios. Sampling at 0.05 s moves the activation inward by at most about 0.12 m, which the slack absorbs. If \mathrm{near} is retracted only when the distance exceeds \rho+\eta for some \eta>0 and relative speeds are bounded by v_{\max}, two activations of the same pair are at least 2\eta/v_{\max} apart. Together with a positive dwell time of task events, this guarantees finitely many switches on bounded intervals.
A.6 Invariance under switching
of Proposition 5.
Let 0=t_{0}<t_{1}<\dots<t_{m}\leq T be the times in [0,T] at which \mathcal{K}_{t} changes, and set t_{m+1}=T. For a constraint k write D_{k}=D_{\sigma}+\delta for the keep-out used by the filter and d_{k} for its distance. We show by induction over j that every k active on [t_{j},t_{j+1}) satisfies h_{k}(x(t))\geq\eta_{k}(t)>0 and d_{k}(t)>D_{k} for t\in(t_{j},t_{j+1}], where \eta_{k} solves \dot{\eta}=-\gamma\eta^{3} with \eta_{k}(t_{j})=h_{k}(x(t_{j})). At t_{j}, a constraint that was active before satisfies h_{k}(x(t_{j}))>0 by the induction hypothesis and continuity, a newly active one by Assumption 1, and a constraint active at t_{0}=0 by hypothesis. Fix such a k, and let \tau be the supremum of the times t\in[t_{j},t_{j+1}] such that h_{k}>0 and d_{k}>D_{k} on (t_{j},t]. On (t_{j},\tau) the function h_{k} is continuously differentiable along the trajectory, t\mapsto h_{k}(x(t)) is absolutely continuous, and the barrier inequalities of the agents of k hold for almost every t, so \tfrac{d}{dt}h_{k}(x(t))\geq-\gamma h_{k}(x(t))^{3} almost everywhere by Section A.1. The comparison lemma gives h_{k}(x(t))\geq\eta_{k}(t) on [t_{j},\tau), hence h_{k}(x(\tau))\geq\eta_{k}(\tau)>0 by continuity. If d_{k}(\tau)=D_{k}, then \dot{d}_{k}(\tau)=n^{\top}\Delta v(\tau)=h_{k}(x(\tau))>0, which is impossible because d_{k}>D_{k} on (t_{j},\tau). So d_{k}(\tau)>D_{k}, h_{k}(x(\tau))>0, and by continuity \tau=t_{j+1}. Since every active barrier is positive, every active distance exceeds D_{k}\geq D_{\sigma}, and x(t)\in\mathcal{S}_{t} for all t\in[0,T]. ∎
The proof uses the applied inputs only through the barrier inequalities along the realized trajectory, which the infeasible-QP counter of the experiments checks only at the sampling times. The barrier is not continuously differentiable on a neighborhood of the closure of its zero-superlevel set, because its gradient grows without bound as d\downarrow D_{k}, so the standard invariance theorem for CBFs does not apply verbatim and the strict margin of Assumption 1 is needed. From h_{k}=0, radial braking at exactly rate A_{k} keeps h_{k}=0 and reaches d_{k}=D_{k} in finite time. The rule that requires the relative acceleration A_{k} inside the margin makes the inequality discontinuous at d_{k}=D_{k}, which is harmless because, by the proof, the distance stays above D_{k} while the barrier stays positive.
A.7 Loss of safety starts with a conflict
of Proposition 6.
Let t^{\circ} be the infimum of the times t at which some k\in\mathcal{K}_{t} has d_{k}(t)<D_{k} or h_{k}(x(t))<0, which is finite by assumption. Since \mathcal{K}_{t} changes finitely often, it is constant on (t^{\circ},t^{\circ}+\epsilon) for some \epsilon>0, and some constraint k of this set has d_{k}(t_{n})<D_{k} or h_{k}(x(t_{n}))<0 along a sequence t_{n}\downarrow t^{\circ}. Let t_{k}\leq t^{\circ} be the time from which k is active without interruption. If t_{k}=t^{\circ}, Assumption 1 and continuity give h_{k}>0 and d_{k}>D_{k} near t^{\circ}, which contradicts the choice of t_{n}, so t_{k}<t^{\circ}. By the definition of t^{\circ}, d_{k}\geq D_{k} and h_{k}\geq 0 on [t_{k},t^{\circ}). By continuity h_{k}(x(t^{\circ}))=0, because either h_{k} itself turns negative after t^{\circ}, or d_{k}(t^{\circ})=D_{k} with \dot{d}_{k}(t^{\circ})\leq 0, and then h_{k}(x(t^{\circ}))=n^{\top}\Delta v(t^{\circ})=\dot{d}_{k}(t^{\circ})\leq 0. Suppose that every agent of k had a feasible QP for almost every t\in[t_{k},t^{\circ}]. These agents then applied inputs that satisfy their barrier inequalities, including those of k, for almost every t, and the argument in the proof of Proposition 5, applied to k alone on [t_{k},t^{\circ}], gives h_{k}(x(t^{\circ}))\geq\eta_{k}(t^{\circ})>0, a contradiction. Hence some agent i of k has an infeasible QP on a set E\subseteq[t_{k},t^{\circ}) of positive measure. At every t\in E all active barriers are nonnegative because t<t^{\circ}, so by part 1 of Lemma 3 and \beta_{\kappa(i)}\leq\bar{a}_{\kappa(i)} each barrier inequality of i is feasible on its own, and the QP of i is infeasible only because its inequalities exclude each other. ∎
A.8 Unavoidable conflicts among three robots
of Proposition 7.
Name the robots a, m and c, fix \bar{a}^{\prime\prime}\in(\bar{a},2\bar{a}) and s>0, and let \varepsilon=s^{2}/(2\bar{a}^{\prime\prime}). Robot m starts at the origin at rest, a at (-(D+\varepsilon),0) with velocity (s,0), and c at (D+\varepsilon,0) with velocity (-s,0). For the pairs (a,m) and (c,m) we have d=D+\varepsilon and n^{\top}\Delta v=-s, so h=\sqrt{4\bar{a}\varepsilon}-s=s\big(\sqrt{2\bar{a}/\bar{a}^{\prime\prime}}-1\big)>0. For the pair (a,c), h=\sqrt{4\bar{a}(D+2\varepsilon)}-2s>0 whenever s<\sqrt{\bar{a}D}. Let the three robots apply arbitrary measurable inputs with values in [-\bar{a},\bar{a}]^{2}, write p_{j}=(x_{j},y_{j}), and let t^{\star}=s/\bar{a}. Integrating twice gives x_{a}(t^{\star})\geq-(D+\varepsilon)+s^{2}/(2\bar{a}), x_{c}(t^{\star})\leq D+\varepsilon-s^{2}/(2\bar{a}), and |y_{j}(t)|\leq\bar{a}t^{2}/2 for each robot, so
x_{c}(t^{\star})-x_{a}(t^{\star})\leq 2D-2cs^{2}\quad\text{with}\quad c=\tfrac{1}{2}\big(1/\bar{a}-1/\bar{a}^{\prime\prime}\big)>0,and |y_{j}(t)-y_{l}(t)|\leq s^{2}/\bar{a} for all robots j,l and t\leq t^{\star}. If x_{m}(\tau)=x_{a}(\tau) or x_{m}(\tau)=x_{c}(\tau) for some \tau\leq t^{\star}, the two robots concerned are at distance at most s^{2}/\bar{a} at \tau, which is less than D for s^{2}<\bar{a}D. Otherwise x_{a}<x_{m}<x_{c} on [0,t^{\star}], the gaps x_{m}-x_{a} and x_{c}-x_{m} at t^{\star} are positive and sum to at most 2D-2cs^{2}, and the smaller gap is at most D-cs^{2}. The corresponding pair is then at distance at most \sqrt{(D-cs^{2})^{2}+s^{4}/\bar{a}^{2}}, which is less than D when s^{2}<2cD/(c^{2}+1/\bar{a}^{2}). In both cases two robots are closer than D at some time in [0,t^{\star}]. ∎
The construction holds for every gain \gamma and every filter, because it bounds the reachable positions of all three robots directly. At the boundary state with h_{am}=h_{cm}=0 and the same positions, the two barrier conditions read u_{m,1}-u_{a,1}\geq 2\bar{a} and u_{c,1}-u_{m,1}\geq 2\bar{a}, which force u_{m,1}=\bar{a} and u_{m,1}=-\bar{a}, so Definition 2 fails there even for one input of the whole team. With different bounds and capabilities, the same argument with approach speeds in the ratio (\beta_{a}+\beta_{m}):(\beta_{c}+\beta_{m}) and t^{\star}=(s_{a}+s_{c})/(\bar{a}_{a}+\bar{a}_{c}) applies whenever \beta_{a}+\beta_{c}+2\beta_{m}>\bar{a}_{a}+\bar{a}_{c}, which always holds for \beta=\bar{a}.
Chains of robots.
Let m robots with bound \bar{a} and capability \beta=\theta\bar{a} start on the first axis at x_{j}(0)=(j-1)(D+\varepsilon) with velocities v_{j}(0)=\big(\tfrac{m+1}{2}-j\big)\sigma\,e_{1}, so that every adjacent gap closes at speed \sigma, and let \varepsilon=\sigma^{2}/(4\theta^{\prime\prime}\bar{a}) with \theta^{\prime\prime}\in(1/(m-1),\theta). Every adjacent barrier, with A_{k}=2\theta\bar{a}, equals \sigma(\sqrt{\theta/\theta^{\prime\prime}}-1)>0, and the other barriers are positive for small \sigma. The inputs of the inner robots do not affect x_{m}-x_{1}, and braking the two outer robots as hard as possible gives, at t^{\star}=(m-1)\sigma/(2\bar{a}),
x_{m}(t^{\star})-x_{1}(t^{\star})\leq(m-1)(D+\varepsilon)-\frac{(m-1)^{2}\sigma^{2}}{4\bar{a}}=(m-1)D-\frac{(m-1)\sigma^{2}}{4\bar{a}}\Big((m-1)-\frac{1}{\theta^{\prime\prime}}\Big),which is less than (m-1)D because \theta^{\prime\prime}(m-1)>1. The crossing and lateral bounds of the three-robot case then give two robots closer than D for small \sigma. At the state with the same positions, \varepsilon\leq D/(m-1) and every adjacent barrier zero, all other barriers are nonnegative, and the adjacent barrier conditions u_{j+1,1}-u_{j,1}\geq 2\theta\bar{a} add up to u_{m,1}-u_{1,1}\geq 2(m-1)\theta\bar{a}>2\bar{a}, which no inputs in [-\bar{a},\bar{a}]^{2} achieve, so Definition 2 fails there. Hence, for every \theta\in(0,1], a chain of m>1+1/\theta robots contains states with positive barriers from which a collision is unavoidable, and no fixed reduction of the capabilities makes pairwise braking barriers jointly valid on their whole safe set for all team sizes.
Appendix B Ontology and reasoning
- \mathsf{Drone}
- \mathsf{Aerial}
- design class
- 2.0
- 1.5
- \mathsf{LightDrone}
- \mathsf{Drone}
- test only, \preceq_{\mathrm{dyn}}\mathsf{Drone}, inherits
- 3.0
- 1.5
- \mathsf{HeavyDrone}
- \mathsf{Drone}
- test only, \not\preceq_{\mathrm{dyn}}\mathsf{Drone}, own capability
- 1.0
- 1.5
- \mathsf{Rover}
- \mathsf{Ground}
- design class
- 1.2
- 1.0
- \mathsf{Carrier}
- \mathsf{Ground}
- design class
- 1.0
- 0.8
- \mathsf{Forklift}
- \mathsf{Ground}
- test only, no design ancestor
- 1.2
- 1.0
- \mathsf{Human}
- \mathsf{UncontrolledAgent}
- uncontrolled
- 0.5 (disk)
- 0.8
- \mathsf{Payload}
- \mathsf{Object}
- design class
- –
- –
- \mathsf{HazardousPayload}
- \mathsf{Payload}
- design class
- –
- –
- \mathsf{Chemical}
- \mathsf{HazardousPayload}
- test only
- –
- –
Besides the taxonomy of Table 3, the TBox contains \mathsf{ControlledAgent}\sqsubseteq\mathsf{Agent}, \mathsf{UncontrolledAgent}\sqsubseteq\mathsf{Agent}, \mathsf{Aerial},\mathsf{Ground}\sqsubseteq\mathsf{ControlledAgent}, \mathsf{Payload},\mathsf{RestrictedZone}\sqsubseteq\mathsf{Object}, \mathsf{Agent},\mathsf{Object}\sqsubseteq\mathsf{Entity}, the disjointness axioms for \mathsf{Agent}\sqcap\mathsf{Object}, \mathsf{ControlledAgent}\sqcap\mathsf{UncontrolledAgent}, \mathsf{Aerial}\sqcap\mathsf{Ground} and \mathsf{Payload}\sqcap\mathsf{RestrictedZone}, the symmetric role \mathrm{near} on \mathsf{Entity}, the role \mathrm{carries} from \mathsf{ControlledAgent} to \mathsf{Payload}, the role \mathrm{nearCarried} from \mathsf{ControlledAgent} to \mathsf{Entity}, the chain \mathrm{carries}\circ\mathrm{near}\sqsubseteq\mathrm{nearCarried}, and the definition \mathsf{HazardCarrier}\equiv\mathsf{ControlledAgent}\sqcap\exists\mathrm{carries}.\mathsf{HazardousPayload}. The safety axioms are \mathrm{near}(\mathsf{ControlledAgent},\mathsf{ControlledAgent}) with 0.3 m, \mathrm{near}(\mathsf{ControlledAgent},\mathsf{Human}) with 0.5 m, \mathrm{near}(\mathsf{Aerial},\mathsf{Human}) with 1.0 m, \mathrm{near}(\mathsf{Ground},\mathsf{RestrictedZone}) with 1.0 m from the zone center, \mathrm{nearCarried}(\mathsf{ControlledAgent},\mathsf{Human}) with 0.8 m, and \mathrm{nearCarried}(\mathsf{HazardCarrier},\mathsf{Human}) with 2.0 m, the last two measured from the payload.
The OWL file used in all experiments is released with the code.
Completeness of the compiled reasoner.
Apart from the definition of \mathsf{HazardCarrier}, every TBox axiom above lies in OWL 2 RL (Motik et al., 2012), namely the inclusions and disjointness axioms between concept names, the domain and range restrictions, the symmetric role and the property chain. The definition contributes the inclusions \mathsf{HazardCarrier}\sqsubseteq\mathsf{ControlledAgent} and \mathsf{ControlledAgent}\sqcap\exists\mathrm{carries}.\mathsf{HazardousPayload}\sqsubseteq\mathsf{HazardCarrier}, which are RL rules, and the inclusion \mathsf{HazardCarrier}\sqsubseteq\exists\mathrm{carries}.\mathsf{HazardousPayload}, whose existential right-hand side lies outside OWL 2 RL, so we argue directly. Let \mathcal{M} be the least fixpoint of the ABox under the rules A(x)\to B(x) for atomic inclusions, r(x,y)\to\mathrm{Dom}_{r}(x) and r(x,y)\to\mathrm{Ran}_{r}(y), symmetry of \mathrm{near}, the chain \mathrm{carries}(x,y)\wedge\mathrm{near}(y,z)\to\mathrm{nearCarried}(x,z), the two RL inclusions of the definition, and A(x)\wedge B(x)\to\bot for each disjointness axiom. If \bot\notin\mathcal{M}, extending \mathcal{M} by one fresh \mathsf{HazardousPayload} carried by every \mathsf{HazardCarrier} that carries none gives a model of \mathcal{T}\cup\mathcal{A}, because the fresh payload has no \mathrm{near} relation and its classes \mathsf{HazardousPayload}, \mathsf{Payload}, \mathsf{Object} and \mathsf{Entity} cause no clash. Every rule is sound, so \mathcal{T}\cup\mathcal{A} is inconsistent if and only if \bot\in\mathcal{M}, and otherwise it entails a class or role assertion about named individuals if and only if the assertion is in \mathcal{M}. The argument relies on \mathrm{carries} having no functionality or cardinality restriction. The compiled reasoner computes \mathcal{M}, and its agreement with HermiT on 72 random ABoxes with 5 to 9 individuals, some of them inconsistent, checks the implementation.
Inconsistency.
If \mathcal{T}\cup\mathcal{A}_{t} is inconsistent, it has no model and entails every assertion, in particular \mathrm{near}(a,a) and \mathsf{ControlledAgent}(a) for every agent a. The instance (\sigma,a,a) of the robot–robot axiom is then active and requires \|p_{a}-p_{a}\|\geq 0.3 m, which every state violates, so \mathcal{S}_{t}=\emptyset. In a consistent ABox every active constraint relates two distinct entities, because (1) asserts \mathrm{near} only between distinct entities and the self-pair \mathrm{nearCarried}(a,a), derived from a carried payload near its carrier, matches only axioms whose second class is \mathsf{Human}, which is disjoint from \mathsf{ControlledAgent}. The compiled consistency check tests whether \bot\in\mathcal{M}, so it also finds clashes that the taxonomy propagates, such as the one below. In each of 100 W0 episodes, with seeds disjoint from the evaluation seeds, a faulty transponder makes the worker closest to a robot also report the class \mathsf{Rover} for 3 s, so that one individual is typed both \mathsf{Human} and \mathsf{Rover}, which the TBox makes disjoint through \mathsf{ControlledAgent}\sqcap\mathsf{UncontrolledAgent}\sqsubseteq\bot. A filter that trusts the label treats the worker as a robot, with a 0.3 m keep-out and no worst-case human acceleration, and within the fault and the 2 s after it 60 episodes violate safety (1995 violating steps and 5 single-constraint failures). The compiled check detects 100 of the 100 faults at the event, and HermiT agrees on 10/10 sampled events. OntoCBF then keeps the last consistent ABox and brakes the team until the contradiction disappears, after which 4 episodes violate safety (78 steps), at the cost of 9.90 against 10.68 deliveries per episode on the same seeds without a fault.
Labels and defaults.
Entailment is monotone, so an entity whose class label is missing or too general receives only the constraints of the classes entailed for it, and an entity typed only as \mathsf{Entity} receives none. Class labels and dynamics profiles are therefore safety-relevant inputs, and the profiles must be measured under the loads a robot carries. A fail-safe default, such as typing every sensed entity of unknown class as \mathsf{Human}, gives such an entity the largest keep-out distances among uncontrolled entities and the worst-case human acceleration. This default belongs to the layer that builds the ABox, because a description logic draws conclusions only from the axioms and assertions that are present.
Appendix C Experimental details and additional results
Warehouse layout.
Each 12\times 12 m tile has six lanes from a pickup station at x=3 m to a drop station at x=9 m (Fig. 2). The two middle lanes belong to the drones and cross a restricted zone at the center of the tile, which binds only \mathsf{Ground} agents, and the four outer lanes belong to the carriers. A second zone lies west of the pickup column. The payload of a drone hangs below it, and the payload of a carrier sits 0.7 m from it along +x, toward the drop station. After a drop, the next item waits at the pickup station. Two of the four humans per tile are station workers who walk between the pickup and drop areas of their tile, and the other humans and the rovers move between random points of the whole floor. W4 tiles this layout 2\times 2 on a 24\times 24 m floor.
\mathsf{LightDrone} carries a \mathsf{Chemical} and a \mathsf{Drone} a \mathsf{HazardousPayload}), same seed under OntoCBF (t=10 s) and under Flat at its first hazard violation (t=2.6 s). For a drone that carries a hazardous payload, Flat falls back to its default payload keep-out and keeps the payload only 0.8 m from people.Gain selection.
On 100 W0 validation episodes, with seeds disjoint from the evaluation seeds, OntoCBF with the PD controller violates safety in 14, 15, 17, 17, 24 % of the episodes for \gamma=1,1.5,2,3,5, with 1.76 to 2.02 deliveries per courier. The selection rule was fixed before evaluation and takes the largest \gamma whose violation rate is at most the rate at \gamma=1. Since the rate grows with \gamma, the rule selects \gamma=1, the most conservative gain of the grid, which is also the gain at which an overestimated capability is least visible (Fig. 3 and Table 4).
Stress test of the capability assignment (Section 6.2).
A human walks straight at a robot whose goal lies behind the human, with initial distances of 2 to 6 m, robot speeds of 0.5 to 1.5 m/s and human speeds of 0 to 0.8 m/s. Only initial states in the safe set of the aerial–human barrier with the true capability of the class are kept (91 encounters per setting for \mathsf{HeavyDrone}), so with this capability every single constraint stays feasible by Lemma 3. We sweep the gain \gamma of \dot{h}\geq-\gamma h^{3}, which is 1 in the warehouse (Fig. 3). OntoCBF avoids single-constraint failures and violations at all gains, with a minimum distance of 1.12 m, and for \mathsf{Drone}, whose capability is the same under both methods, Naive and OntoCBF coincide. At \gamma=1, single constraints fail in 1 % of the encounters under Naive, and the \mathsf{HeavyDrone} stays outside the keep-out region in all of them, so in the warehouse an overestimated capability shows up mainly as single-constraint failures.
\mathsf{HeavyDrone} (Section 6.2) in head-on encounters with a human, all starting inside the safe set of the true capability. Under Naive the \mathsf{HeavyDrone} inherits the capability of \mathsf{Drone}, and OntoCBF assigns it its own capability. The left panel shows the encounters with a single-constraint failure and the right panel those with a violation.The dynamic-subtype test in the warehouse at larger gains.
Table 4 repeats W1, the only scenario with a class that fails the test, for Naive and OntoCBF at larger \gamma, and its row for \gamma=1 reproduces the main results seed by seed. OntoCBF violates safety in 20–21 % of the episodes at every gain. Naive violates safety in 23 % of the episodes at \gamma=1 (McNemar p={}0.63 against OntoCBF on the same seeds), in 27 % at \gamma=3, where its aerial–human violations are significantly more frequent, and in 44 % at \gamma=10 (p <0.001). Its overestimated capability lets the \mathsf{HeavyDrone} brake later, which also yields slightly more deliveries.
- 1
- 23
- 20
- 0.63
- +0.8 [-2.6, +4.3]
- -0.2 [-1.5, +1.0]
- 266
- 1.79
- 1.64
- 3
- 27
- 21
- 0.26
- +1.9 [-0.6, +4.3]
- +3.1 [+0.4, +6.1]
- 907
- 2.00
- 1.87
- 10
- 44
- 21
- <0.001
- +2.9 [-0.6, +6.3]
- +2.3 [-3.1, +7.3]
- 2223
- 2.13
- 2.02
- W0 (design)
- 100 [96, 100]
- 20 [13, 29]
- 20 [13, 29]
- 100 [96, 100]
- 22 [15, 31]
- 16 [10, 24]
- 74 [65, 82]
- 22 [15, 31]
- W1 (unseen robots)
- 100 [96, 100]
- 89 [81, 94]
- 17 [11, 26]
- 100 [96, 100]
- 23 [16, 32]
- 17 [11, 26]
- 72 [63, 80]
- 20 [13, 29]
- W2 (unseen payload)
- 100 [96, 100]
- 99 [95, 100]
- 20 [13, 29]
- 100 [96, 100]
- 22 [15, 31]
- 16 [10, 24]
- 74 [65, 82]
- 22 [15, 31]
- W3 (unseen combination)
- 100 [96, 100]
- 100 [96, 100]
- 28 [20, 37]
- 100 [96, 100]
- 40 [31, 50]
- 37 [28, 47]
- 96 [90, 98]
- 40 [31, 50]
- W4 (N{=}32)
- 100 [96, 100]
- 67 [57, 75]
- 67 [57, 75]
- 100 [96, 100]
- 70 [60, 78]
- 69 [59, 77]
- 98 [93, 99]
- 70 [60, 78]
\times100 episodes.Single-element ablations.
Each ablation changes exactly one element of OntoCBF (Table 7), and Table 8 shows in which scenarios the three ablations below fail.
- W0 (design)
- property chain
- payload+hazard viol.
- 500.0
- 5.2
- W1 (unseen robots)
- robot taxonomy
- aerial–human viol.
- 150.7
- 1.9
- W1 (unseen robots)
- dynamic-subtype test
- single-constraint failures (total)
- 266
- 0
- W2 (unseen payload)
- payload taxonomy
- hazard–human viol.
- 360.1
- 4.4
- W3 (unseen combination)
- defined class
- hazard–human viol.
- 835.0
- 28.2
- W3 (unseen combination)
- activation check
- pickups into a violation (total)
- 217
- 0
- W0 (design)
- hazard distinction
- deliveries / courier (ordinary)
- 1.36
- 2.06
No robot tax. types every robot outside the design classes as \mathsf{ControlledAgent} only, so all its ancestors lie above the design classes and it is assigned its own profile. No payload tax. types every payload class outside the design classes as \mathsf{Payload}. No defined class skips the realization of \mathsf{HazardCarrier} and writes the hazard keep-out only for the design pair (\mathsf{Carrier}, \mathsf{HazardousPayload}), closed under both taxonomies.
- W0 (design)
- =
- =
- =
- 22
- W1 (unseen robots)
- 100
- =
- =
- 20
- W2 (unseen payload)
- =
- 99
- =
- 22
- W3 (unseen combination)
- 79
- 100
- 100
- 40
- W4 (N{=}32)
- =
- =
- =
- 70
Specification effort and throughput.
W3 alone accounts for 3 of the 10 ontology statements of OntoCBF and 5 of the 18 table entries of Flat that cover W1–W3. Fig. 4 places each method by deliveries per courier and episodes with a violation.
- W0 (design)
- 2.67
- 1.76
- 1.2
- 1.40
- 268
- 0.91
- W1 (unseen robots)
- 2.83
- 1.64
- 1.1
- 1.42
- 267
- 0.91
- W2 (unseen payload)
- 2.67
- 1.76
- 1.2
- 1.40
- 268
- 0.91
- W3 (unseen combination)
- 2.67
- 1.43
- 1.6
- 1.58
- 262
- 0.93
- W4 (N{=}32)
- 2.67
- 1.80
- 2.2
- 6.10
- 774
- 4.60
Events before a violation.
For every violation onset of OntoCBF with PD in W0, W1, W3 and W4 (W2 replays W0), we identify the last infeasible QP of an agent of the violated constraint. An infeasible QP is a conflict if each of its inequalities is feasible on its own in the true input set. As a base rate, we give the share of agent-steps whose agent had a conflict within the window, over all agent-steps and over those in a close encounter, meaning an active constraint within 1 m of its keep-out. Conflicts make up 98 % of all infeasible QPs, and in the others every inequality that is infeasible on its own has an already negative barrier, as Proposition 6 predicts. We call an onset robot-attributable if, at the onset, a robot of the violated constraint has a positive velocity component toward the other entity. Section 6.3 reports the complementary share, the onsets at which the robot was not moving toward the other entity.
- W0 (design)
- 45
- 45
- 45
- 2.0 %
- 3.9 %
- W1 (unseen robots)
- 31
- 31
- 31
- 1.9 %
- 3.7 %
- W3 (unseen combination)
- 108
- 108
- 108
- 2.6 %
- 4.6 %
- W4 (N{=}32)
- 282
- 282
- 282
- 3.3 %
- 6.4 %
Joint validity on visited states.
On every step of the 100 W0 evaluation episodes under OntoCBF with PD, we take the active family and ask whether one input for the whole team, inside every agent’s true input set, satisfies all barrier conditions at once, with robot pairs unsplit and worst-case human accelerations. This is a linear feasibility problem, solved with HiGHS. We count only states at which every active barrier of the configuration has h_{k}\geq 0 outside the margin. With \mathsf{LightDrone}s the inequalities are those of the design team and the input sets are larger, so validity can only grow by Theorem 4, and this configuration tests the implementation. With \mathsf{HeavyDrone}s under the capability of \mathsf{Drone}, the inequalities are the same and the input sets are smaller. \mathsf{HeavyDrone}s with their own capability form a different family, which is valid at 91.6 % of the visited states at which the design team’s family is valid. Feasibility of every agent’s QP is lower than joint validity throughout, because the responsibility split is more restrictive than a joint input.
- \mathsf{Drone} (design)
- 78837
- 94.43 %
- 92.44 %
- 74442/74442
- \mathsf{LightDrone}, inherited \beta{=}2.0
- 78837
- 94.57 %
- 92.56 %
- 74442/74442
- \mathsf{HeavyDrone}, \beta{=}2.0 (Naive)
- 78837
- 93.34 %
- 91.56 %
- 73589/74442
- \mathsf{HeavyDrone}, own \beta{=}1.0
- 64845
- 87.11 %
- 84.79 %
- 56485/61668
- W0 (design)
- 6.1
- 1.20
- 1.76
- 3.1
- 0.73
- 1.73
- 100
- W1 (unseen robots)
- 5.6
- 1.15
- 1.64
- 3.3
- 0.75
- 1.69
- 100
- W2 (unseen payload)
- 6.1
- 1.20
- 1.76
- 3.1
- 0.73
- 1.73
- 100
- W3 (unseen combination)
- 16.0
- 1.62
- 1.43
- 9.0
- 0.95
- 1.43
- 100
- W4 (N{=}32)
- 47.9
- 2.21
- 1.80
- 39.6
- 1.81
- 1.69
- 100
- W0 (design)
- 1
- -23.9 [-37.7, -10.5]
- -1.3 [-5.3, +2.7]
- -0.01 [-0.05, +0.04]
- No data
- 2
- -34.4 [-47.6, -21.6]
- -4.4 [-7.8, -1.6]
- +0.04 [-0.01, +0.08]
- No data
- 3
- -32.0 [-47.0, -16.4]
- -3.2 [-7.1, +0.7]
- -0.12 [-0.17, -0.07]
- W1 (unseen robots)
- 1
- -26.0 [-38.3, -13.7]
- -2.3 [-5.7, +1.0]
- +0.01 [-0.04, +0.05]
- No data
- 2
- -23.4 [-36.0, -10.9]
- -2.8 [-5.9, +0.2]
- +0.05 [+0.01, +0.10]
- No data
- 3
- -27.3 [-40.4, -13.6]
- -1.9 [-5.5, +1.5]
- +0.08 [+0.03, +0.12]
- W3 (unseen combination)
- 1
- -31.6 [-45.8, -17.8]
- -4.3 [-10.0, +1.1]
- -0.04 [-0.09, +0.02]
- No data
- 2
- -50.4 [-65.9, -35.5]
- -7.6 [-12.9, -2.8]
- +0.05 [-0.01, +0.10]
- No data
- 3
- -46.2 [-63.8, -28.6]
- -9.0 [-14.5, -3.8]
- -0.02 [-0.07, +0.03]
- W4 (N{=}32)
- 1
- -167.3 [-218.6, -119.4]
- -24.2 [-34.7, -14.5]
- -0.15 [-0.18, -0.12]
- No data
- 2
- -92.0 [-139.7, -43.3]
- -7.8 [-16.1, +0.6]
- -0.05 [-0.08, -0.02]
- No data
- 3
- -49.2 [-97.7, -1.8]
- +7.2 [-4.8, +19.1]
- -0.13 [-0.16, -0.10]
Appendix D Training details
All values below are read from the training configuration of the reported runs. MAPPO runs 200 iterations of 40 episodes with Adam (learning rate 0.001), discount 0.99, GAE parameter 0.95, clip ratio 0.2, 5 epochs per iteration, minibatches of 16384 agent-steps and entropy coefficient 0.001. The reward weights are 1 for progress, 1 for arrival, 0.01 for intervention, 0.5 for infeasible QPs, 0.2 for violations and 0.5 for overspeed. Training episodes use the W0 layout (design robot classes, \mathsf{Payload} and \mathsf{HazardousPayload}) with random positions along the lanes and random initial carrying states, 400 steps each, and evaluation episodes have 800 steps. The arrival bonus is paid when a goal is reached and switched, so waiting at a pickup deferred by the activation check earns nothing. Validation uses W0 episodes with seeds disjoint from the evaluation seeds. The own features of an agent are its goal offset, its velocity, its payload offset, the keep-out its payload currently requires and its class embedding. Each entry for another entity holds the relative position and velocity of the entity, the distance, the keep-out D, the margin between them and the class embedding of the entity, and an agent that carries a payload also sees chain-related entities measured from its payload. The encoder uses attention pooling with 4 heads of total width 64 and a null token, and entry weights fade linearly to zero over the last 1 m before \rho. Class embeddings have dimension 8 and are tied along the taxonomy (e_{C}=\sum_{C^{\prime}\sqsupseteq C}\delta_{C^{\prime}} with \delta_{C}=0 for classes absent from training), and the actor and critic heads are two-layer tanh MLPs of width 256. Three training seeds are run, so the between-run part of the intervals in Section 6 is coarse, and Table 13 gives each run separately. The PD task controller commands u_{i}=2(v_{i}^{\mathrm{des}}-v_{i}), with v_{i}^{\mathrm{des}} pointing at the goal at speed \min(\bar{v}_{\kappa(i)},\text{distance to the goal}), and humans follow waypoints with the same law and \|\dot{v}_{h}\|\leq\bar{a}_{h}. Two reward configurations were trained, the weights above and a larger arrival bonus of 3 with intervention weight 0.003. A rule fixed beforehand admits the configurations whose violating steps on W0 validation episodes are at most those of PD and takes the one with the most deliveries, which selected the configuration above. The residual scale s_{i} and its cap, used in all results reported here, were introduced in an earlier version of these experiments with other scenarios, in which the corrections of a policy trained on \mathsf{Drone}, scaled up by the larger \bar{a} of \mathsf{LightDrone}, cost goals.