PrismGuard: Replacing Single Verdicts with Risk Signals for Runtime Protection of Tool-Using Agents

PrismGuard decouples agent runtime protection into state tracking and signal scoring, balancing security and speed.
PrismGuard is a runtime protection framework for tool-calling agents that decouples context understanding from blocking verdicts. State Tracker compresses history into verdict-free task intent and execution environment fields, while Signal Guard scores typed safety questions in parallel in a single forward pass without decoding tokens; deterministic rules combine signals with adjustable strictness. It achieves up to 91.02% F1 on multi-step STAC attacks, reduces FPR by up to 22.95 percentage points, and in closed-loop deployment cuts Qwen3.6's attack success rate from 36.58% to 8.26% with only 138.7ms average guard latency and 89.41% task utility retention.
AI agents vary in risk tolerance when performing multi-step tool calls, yet existing monitoring solutions often bind context processing and final verdicts together: they either lose early constraints and trigger frequent false positives due to growing or truncated conversation logs, or rely on slow autoregressive decoding with blocking policies hardcoded into the model. A research paper from RSS proposes PrismGuard, a runtime protection framework centered on structured risk signals that attempts to decompose the "verdict" into interpretable, adjustable signals.

Core Design: State Tracking and Signal Guard
PrismGuard's architecture consists of two key components. The first is the State Tracker, which incrementally compresses confirmed history into two isolated fields that contain no verdict information: Task Intent records user goals and constraints, while Execution Environment records action progress and provenance-tagged observations. Pending tool parameters remain in literal form and are not altered by summarization.
The second is the Signal Guard, which receives the state, the pending tool call, and typed safety questions, and scores all valid answer options in parallel in a single forward pass, producing no decoding tokens. This "question-conditioned" design means the protection logic no longer relies on generative reasoning — it is faster and more deterministic.
Finally, deterministic rules combine these signals. Operators can adjust blocking strictness or append new questions for unseen domains without retraining the model.
The difference between forward passes and decoding tokens: In Transformer architectures, a forward pass refers to the process of an input sequence passing through all layers at once to compute output representations, whereas autoregressive decoding requires generating token by token, re-executing a forward pass for each generated token. PrismGuard's Signal Guard performs only a single forward pass, directly scoring predefined question options, and therefore produces no decoding tokens. This avoids the latency accumulation of token-by-token inference in generative models, making verdict speed independent of output length and results more deterministic — the same input always yields the same scores, unlike sampling-based decoding which introduces randomness.
Typed safety questions and question-conditioned scoring: Typed safety questions refer to decomposing safety judgments into several structured yes/no or multiple-choice questions, such as "Does this tool call leak user privacy?" or "Does this action exceed the scope of task intent?" Signal Guard concatenates the state, pending tool call, and these questions as input to the model, which outputs probability scores for all valid answer options of each question in a single forward pass. This "question-conditioned" design transforms open-ended generative judgments into closed-form classification scoring, improving speed while allowing each signal's meaning and threshold to be independently examined and adjusted by operators.
Performance: Multi-Benchmark Validation and False Positive Rate Reduction
The paper evaluates on four offline action safety benchmarks. PrismGuard achieves up to 91.02% F1 on multi-step STAC attacks, outperforming baselines by up to 10.60 F1 points. More notably, on false positive rate: generative state compression outperforms fixed truncation schemes on every benchmark, reducing FPR by up to 22.95 percentage points. This directly addresses the problem of existing monitors losing early constraints in long conversations.
In an unseen contextual privacy risk scenario (PrivacyLens), appending three questions to a frozen TS-Bench Guard yields 75.13% F1 and 10.73% FPR, outperforming prompt-adapted baselines by 3.89 to 49.75 F1 points, with FPR 57.63 percentage points lower than persistent safety memory approaches. These results demonstrate that a structured signal system has advantages in cross-domain generalization.
What F1 scores and FPR mean: The F1 score is the harmonic mean of precision and recall, measuring a detection system's overall balance between "missed detections" and "false alarms," ranging from 0 to 1, higher being better. FPR (False Positive Rate) refers to the proportion of legitimate normal behaviors incorrectly flagged as risky. In agent safety protection scenarios, a high FPR means many normal tool calls are blocked without cause, directly harming task utility and user experience; high missed detections mean attacks are allowed through. The paper emphasizes that generative state compression reduces FPR by up to 22.95 percentage points precisely to show that the approach significantly reduces interference with normal tasks while maintaining detection capability.
Closed-Loop Deployment: Sharp Decline in Attack Success Rate
In closed-loop deployment with host replanning, the same frozen Guard reduces Qwen3.6's attack success rate from 36.58% to 8.26% on AgentDojo, and from 36.36% to 15.19% on AgentDyn. Meanwhile, beneficial task utility on AgentDojo is preserved at 89.41%, and the Guard's average wait time is 138.7 milliseconds, 5.2x to 115x faster than baselines.
These numbers reveal the core trade-off of the approach: protection does not come at the cost of usability. Millisecond-level waits and high utility retention bring it closer to a practically deployable component rather than an academic demonstration.
Attack Success Rate (ASR) and host replanning: Attack success rate refers to the proportion of adversarial inputs that successfully induce an agent to perform harmful actions, and is the core metric for measuring protection effectiveness. Closed-loop deployment means the protection module is not evaluated offline but embedded in the agent's run loop for real-time interception. Host replanning refers to the agent's upper-level planner regenerating an alternative action sequence to continue attempting task completion after a tool call is blocked. In this closed loop, the Guard must not only intercept single-step malicious calls but also counter attackers' attempts to bypass protection through multi-step replanning. Qwen3.6's attack success rate dropping from 36.58% to 8.26% shows that the frozen Guard remains continuously effective in dynamic adversarial loops.
Perspective: A Paradigm Shift from "Verdicts" to "Signals"
The fundamental problem with existing monitors is that they bundle two different things together: understanding context and making blocking decisions. The former requires continuous, stateful maintenance; the latter requires flexible, configurable execution. PrismGuard's value lies in decoupling the two — state tracking is responsible for "remembering what matters," Signal Guard is responsible for "scoring by question," and the rule layer is responsible for "how to combine."
This layering brings practical operational benefits: when facing new domain risks, operators don't need to wait for model retraining — they simply append typed questions and adjust rule thresholds. For agent deployment scenarios that require rapid response to new attack surfaces, this is a pragmatic direction. Of course, the paper's current results are concentrated in offline benchmarks and closed-loop simulations; long-tail risks and adversarial evolution in real production environments remain to be tested.
One-line Summary
PrismGuard decouples agent runtime protection into state tracking and signal scoring, balancing security and speed.
Paragraph Summary
PrismGuard is a runtime protection framework for tool-calling agents whose core idea is to decouple "context understanding" from "blocking verdicts." State Tracker incrementally compresses history into two verdict-free fields — task intent and execution environment — while Signal Guard scores typed safety questions in parallel in a single forward pass, producing no decoding tokens; deterministic rules then combine the signals and allow operators to adjust strictness. On four offline benchmarks, F1 reaches up to 91.02% on multi-step STAC attacks, and generative state compression reduces FPR by up to 22.95 percentage points; in a cross-domain privacy scenario, appending questions yields 75.13% F1. In closed-loop deployment, Qwen3.6's attack success rate drops from 36.58% to 8.26%, with the Guard averaging only 138.7 milliseconds and preserving 89.41% beneficial task utility.
Related articles

Andrew Ng Open-Sources OpenWorker: A New Tool for Building AI Agents
Andrew Ng's team open-sources OpenWorker, a Python agent framework with 20K+ GitHub stars. Here's what it is, its key features, and who should use it.

Vibe Coding Speedrun: The 'Flake' Live Social Product's AI Matchmaking Experiment
A developer used Vibe Coding to rapidly build the live social product 'Flake,' using Live API voice interviews to generate user profiles and arrange chats. This article analyzes its tech choices, matching-efficiency debate, costs, and business model, plus the real issues exposed in the live demo.

Big Tech Architect Reveals: From Vibe Coding to Agent Full-Stack Development in Practice
A ByteDance-background architect shares the AI Coding advancement path: from Vibe Coding to Agent full-stack development, covering interview dimensions, SDD/TDD practices, AI efficiency implementation, and full-stack learning routes, with a seven-question self-check framework.