Skip to content

Research

When the Guardrail Breaks: Failure Semantics of Open-Source Guardrails for LLM Agents and What They Mean for Control

Archit Sharma, Garima Mann

Accepted at IEEE BigData 2026, Trustworthy and Aligned AI workshop. December 2026, Phoenix.

PDF, accepted version

Abstract

A guardrail for an LLM agent decides whether a prompt, an output or a tool call may proceed. We ask what it does when its detector raises an error or times out. We coded the shipped defaults of 16 guardrail libraries, gateways, frameworks and agent hooks (open source, except Claude Code's hooks, coded from documentation) in 98 rows at pinned commits, with error and timeout coded separately. All coding was done by LLM agents and no human checked it. We confirmed 27 rows by fault injection; a second LLM-agent run recoded 19 random rows (Cohen's κ = 0.63, 95% interval 0.40 to 0.85), a measure of run-to-run consistency only. On a detector error, 7 systems raise to the caller, 3 block, 5 let the call proceed and 1 mixes both; of the open ones, one is an agent host's hook runner and one is the authors' guardrail. By component, fail-open defaults concentrate in agent hooks, gateways and hub integrations: 7 of 22 NeMo Guardrails integrations and 7 of 52 LiteLLM detector hooks allow on error. We also find unbounded detector paths in 9 systems, a timeout that sets the status code without bounding latency, input checks that run beside the tools they guard, and failed checks labelled as successes. In the authors' guardrail, a raising detector was allowed even under a closed fail mode; we found and fixed this during the study. We recommend declared fail modes, a three-valued verdict, timeouts that bound latency, and failures in the audit record.

Cite

@inproceedings{sharma2026breaks,
  author    = {Sharma, Archit and Mann, Garima},
  title     = {When the Guardrail Breaks: Failure Semantics of Open-Source Guardrails for LLM Agents and What They Mean for Control},
  booktitle = {IEEE BigData 2026, Trustworthy and Aligned AI workshop},
  year      = {2026},
  url       = {https://useagentfox.com/research/when-the-guardrail-breaks},
}