Runtime guards face a subtle design problem: compressing conversation history can lose important constraints, while asking a model to generate a verdict at every step can be slow and lock operators into one policy. The key idea here is to keep state summaries separate from risk judgments, so the same signals can support different blocking policies.
Key Findings
- On offline action-safety benchmarks, the approach reaches up to 91.02% F1 and improves multi-step STAC attack detection by up to 10.60 F1 points over evaluated baselines.
- On PrivacyLens, adding three risk questions to a frozen guard achieves 75.13% F1 at 10.73% false-positive rate, showing a path to adapting the risk taxonomy without retraining.
- In closed-loop tests, it reduces Qwen3.6 attack success from 36.58% to 8.26% on AgentDojo while retaining 89.41% benign task completion. On AgentDyn, attack success falls from 36.36% to 15.19%, with lower benign utility of 56.86%.
How the Method Works
A state tracker separates user goals and constraints from execution progress and source-tagged observations, without pre-labeling the history as safe or unsafe. A signal guard then evaluates the pending tool call against typed questions in one forward pass. Deterministic downstream rules combine the resulting signals, allowing policy strictness to change without changing model weights.
Who Should Care—and the Trade-off
This is most relevant to teams building tool-using agents that need auditable runtime checks, adjustable risk tolerances, or adaptation to new safety requirements. The results are benchmark-specific: AgentDyn still has notable residual attack success, and stricter blocking can reduce benign task completion. The reported gains should therefore be read as evidence for a flexible guard design, not as a guarantee of protection in every deployment.