Pandora's Toolbox Or Why Agent Safety Cannot Be Verified

Mario Franco and Carlos Gershenson at Binghamton University prove that coupling a fixed language model to a general computing device makes agent safety undecidable, and characterize what remains possible under finite limits.
Ask this paper
Undecidable in general. No algorithm can predict whether an agent will run a program semantically equivalent to a given dangerous program. Guardrails, blacklists, whitelists and certifications can therefore only be partial.
Intractable when bounded. With bounded context, values and running time, safety becomes decidable but is PSPACE-complete, even when the agent's description is known.
Not compositional. Agents that are each provably safe can still produce unsafe behavior when combined.
Practical relaxations. The authors discuss weaker notions of safety that could be checked in practice.
Abstract
Present artificial intelligence agents are constructed by means of a coupling between a fixed language model with a general computing device. We show that this coupling makes safety undecidable. In particular, we show that given some dangerous program, no algorithm can predict whether an agent will run such a program that is semantically equivalent. In general, guardrails, blacklists, whitelists and certifications can only lead to imperfect safety solutions. Under finite constraints (bounded context, values and running time) safety is decidable but still intractable. Specifically, the problem is $\mathsf{PSPACE}$-complete even when the description of the agent is known. Finally, safety is not a compositional property, i.e., agents that can be proven safe on their own can still produce unsafe behavior when grouped together. We also discuss relaxed notions of safety that could be used in practice.