Abstract
A good score on a benchmark for your agent guardrail is no guarantee anybody will turn it on. Switching a guardrail on blocking mode means any false positive might kill a real user’s session. One bad week or business deal lost and your guardrail will be switched off for good. We built AI Guard at Datadog for 18 months and it taught us that adoption of guardrails comes down to three things.
First the accuracy, it is the biggest factor when it comes to switching a guardrail in blocking mode. We adopted a dual approach to evaluation: first offline, running against a mix of our own benchmarks built partially on simulated data at a time when labeled agentic attack dataset was not a thing; second in shadow mode against production traffic to evaluate the divergence of decisions between the new version of the guardrail and the old one. The biggest surprise we came across in the process was that a lot of false positives came from agent design flaws. We also realized that every agent is different and building one-size-fits-all is difficult because each agent has its own normal. A feedback loop is important to turn each past guardrail mistake into a lesson it can apply on the next agent’s request.
Second the latency, a guardrail sits in the critical path of AI agents' loop. We built a layered cascade guardrail to make sure our guardrails could answer in 100ms or less on average. A small in-house model filters the bulk of the traffic while an LLM-as-a-judge looks at the suspicious cases.
Third ownership of the development team over the security of their agents. Evaluation of the impact of changes on the guardrails decisions has to be part of the development and release cycle.
In this talk, I’ll show our eval pipeline, the false positive patterns we found and the release checks we recommend so you can confidently turn your guardrails on blocking mode.
Key Takeaways:
- Learn tips to keep guardrail efficient and fast when sitting in the critical path.
- How to evaluate every new guardrail version offline and in shadow mode.
- Best practices to structure agent messages and tool outputs so a guardrail can tell your data from an attack.
- How to reduce guardrail false positives through different feedback loops strategies.
£2,490, Conference (3 days). Current pricing ends December 8th. All pass options.
QCon London 2027 is a three day conference for senior software engineers, architects and team leads. An international program committee of working engineers selects every session. Patterns and practices, not products and pitches.