A guard for AI agents that answers several fixed safety questions in one pass and leaves the block decision to editable rules. On the authors' benchmarks it blocks most attacks while keeping most benign tasks working.
Going deeper

| Question | Target Scope | Type & Legal Options | Risk Trigger |
|---|---|---|---|
| Core Action-Safety Questions | |||
| Harmful Intent () | Task Intent | Boolean: false, true | true |
| External Redirection () | Env. & Pending Call | Categorical: none, observed_only, action_linked, unknown | action_linked |
| Operational Risk () | Pending Call & State | Ordinal: 0 (safe), 1 (controversial), 2 (unsafe) | 1 or 2 |
| Unseen-Taxonomy Extension: Outbound Privacy (PrivacyLens) | |||
| Outward Transfer () | Pending Call | Categorical: no_outbound, message_or_payload, file_or_access, unresolved | message_or_payload, file_or_access |
| Private Fact () | Pending Call & State | Categorical: private_fact, topic_only, non_sensitive, unresolved | private_fact |
| Boundary Conflict () | Pending Call & Intent | Categorical: specific_permission, communication_only, explicit_conflict, unresolved, not_applicable | explicit_conflict |
Picture a bank teller who must approve every withdrawal an assistant makes for a customer. The customer said at the start: nothing goes abroad. Later a letter arrives saying the auditor approved a transfer abroad. A tired teller either forgets the first instruction or blocks everything to be safe.
This paper's teller keeps two notebooks. One holds only what the customer said. The other holds everything else that arrived, each note labelled with where it came from. When a withdrawal slip comes in, the slip itself is read exactly as written, and the teller ticks three boxes: is the customer's goal bad, does this slip follow the letter, how risky is it.
The bank manager writes the rule for which ticks mean stop, and can change it without retraining the teller. In the authors' tests this caught most fake letters and still let most honest work through. Keeping the notebooks up to date is still slow, and cleverer forgers were not tried.
The abstract, word for word, with the five densest phrases unpacked.
Tool-using agents execute multi-step workflows across deployments with widely varying risk tolerances. Existing runtime monitors struggle under both demands because they bundle context summarization with verdict generation: they either feed growing transcripts or rigid truncation rules that drop early constraints and raise false alarms, or bind slow token-by-token decoding to one hardcoded blocking policy. We present PrismGuard, a runtime protection framework built around structured risk signals rather than monolithic verdicts1. A State Tracker incrementally summarizes confirmed history into two isolated fields2: Task Intent, tracking user goals and restrictions, and Execution Environment, holding action progress and source-tagged observations without pre-computing safety verdicts, while pending tool arguments pass through unencoded. A question-conditioned Signal Guard reads this state, the literal pending call, and typed safety questions in one forward pass, scoring all legal answer options simultaneously with zero decoded tokens3. Deterministic downstream rules combine these signals, letting operators tune blocking strictness or append questions for unseen domains without retraining4. Across four offline action-safety benchmarks, PrismGuard reaches up to 91.02% F1 and outperforms evaluated guards by up to 10.60 F1 points on multi-step chained attacks in STAC, while generative state compression cuts false-positive rates (FPR) across every benchmark by up to 22.95 percentage points over fixed truncation5. Testing adaptation to unseen risk requirements on contextual privacy disclosure (PrivacyLens) by appending three domain questions to the frozen TS-Bench Guard yields 75.13% F1 at 10.73% FPR, outperforming prompt-adapted baselines by 3.89 to 49.75 F1 points with 57.63 percentage points lower FPR than persistent security memory. In closed-loop interactive deployments with host replanning, the same frozen Guard cuts Qwen3.6 attack success rates from 36.58% to 8.26% on AgentDojo and from 36.36% to 15.19% on AgentDyn, preserving 89.41% benign utility on AgentDojo at 138.7 ms mean Guard wait time, 5.2 × to 115 × faster than the evaluated runtime baselines.
Read four parts of it, in this order.
Skip Section 6 if you know the agent-guard literature.
If the gains are smaller than they look, start here.
| Qwen3.6-35B-A3B | Spark X2.6-4B | |||||||
| Method | Chks/ep | Guard (k) | State (s) | Judge (ms) | Chks/ep | Guard (k) | State (s) | Judge (ms) |
| AgentDojo | ||||||||
| StepGuard | 4.45 | 3.19 | – | 696.8 | 4.45 | 3.23 | – | 736.3 |
| TS-Guard | 4.83 | 4.05 | – | 15281.3 | 4.69 | 4.20 | – | 14496.4 |
| ShadowMem | 4.27 | 0.90 | 14.15 | 3936.1 | 4.32 | 0.93 | 15.23 | 3981.2 |
| AR-Multi | 4.91 | 0.96 | 6.09 | 758.9 | 4.28 | 0.92 | 5.53 | 763.3 |
| PrismGuard | 4.77 | 1.02 | 6.20 | 133.0 | 4.13 | 0.98 | 5.76 | 135.4 |
| AgentDyn | ||||||||
| StepGuard | 6.21 | 5.70 | – | 824.8 | 8.57 | 6.48 | – | 883.7 |
| TS-Guard | 7.43 | 6.51 | – | 15451.4 | 9.16 | 7.43 | – | 14736.7 |
| ShadowMem | 4.21 | 0.90 | 14.59 | 3859.1 | 4.21 | 0.92 | 15.50 | 3922.8 |
| AR-Multi | 8.65 | 1.02 | 7.28 | 770.5 | 8.99 | 1.02 | 7.42 | 762.8 |
| PrismGuard | 8.63 | 1.10 | 7.94 | 149.2 | 8.92 | 1.08 | 7.48 | 134.4 |
Although restricting Task Intent updates to trusted user-role messages isolates user goals and restrictions from direct external tampering, the State Tracker Tφ operates as a frozen prompted language model rather than a learned compressor or deterministic taint tracker. It can still omit an early user constraint, merge distinct tool outputs too aggressively, or blur source attribution inside Execution Environment when untrusted text uses subtle phrasing. Because pending tool arguments alone cannot recover dropped trajectory history, downstream questions such as H or Apriv lose decisive evidence if an imprecise summary omits a scoped grant or prohibition. Training Tφ directly against downstream Guard supervision, such as RL over question F1/NLL rewards or distillation from full-transcript teachers, would help retain compact scope and source qualifiers while pruning chatter. Prior work shows that adaptive attacks can bypass indirect-prompt-injection defenses [62]; pairing learned state compression with deterministic decoding and evaluating the State Tracker against adaptive injections remains open.
PI
| Representation | F1 | Recall | FPR | Acc. |
|---|---|---|---|---|
| Rule State | 85.84 | 81.03 | 2.12 | 94.26 |
| Generative State | 89.73 | 86.64 | 1.77 | 95.74 |
STAC
| Representation | F1 | Recall | FPR | Acc. |
|---|---|---|---|---|
| Rule State | 76.09 | 85.37 | 26.23 | 78.43 |
| Generative State | 80.56 | 70.73 | 3.28 | 86.27 |
StepGuard
| Representation | F1 | Recall | FPR | Acc. |
|---|---|---|---|---|
| Rule State | 89.98 | 93.36 | 28.32 | 86.14 |
| Generative State | 89.59 | 87.61 | 15.93 | 86.43 |
TS-Bench
| Representation | F1 | Recall | FPR | Acc. |
|---|---|---|---|---|
| Rule State | 92.19 | 93.87 | 8.86 | 92.44 |
| Generative State | 91.83 | 92.23 | 7.82 | 92.20 |
Nothing on this page was recomputed. Every claim points to the paper so you can check it.
More latest news
Read all