Tool-using LLM agents increasingly rely on guardrails to enforce safety, but most guardrails are hand-coded rules tied to a single application. That makes them difficult to audit, reuse, or adapt when policies depend on data gathered over multiple steps. A new arXiv preprint argues for a declarative alternative: specifying safety properties in metric first-order logic and checking them at runtime.

The authors evaluate their approach on two existing benchmarks, AgentDojo and STAC, in an offline same-benchmark setup. This means they test the formal verifier against the same scenarios used to train or tune the agents, rather than in a live deployment. The study does not report results in the abstract, but the framing suggests the goal is to show that formal verification can express complex, stateful policies more cleanly than bespoke rules.

The key contribution is conceptual: moving from imperative, application-specific checks to a formal, declarative specification language. If successful, this could let developers write safety policies once and reuse them across different agent pipelines, while also making them easier to audit. The paper is available on arXiv under ID 2610.09793.