Signals, Not Verdicts: Stateful Runtime Protection for Tool-Using Agents
Zhu et al. in Alignment
Can a tool-call guard change policy without retraining?
Signals, Not Verdicts: Stateful Runtime Protection for Tool-Using Agents
The verdict must remember what came before
Some guards reread growing transcripts; others truncate them, risking lost user restrictions. Autoregressive verdicts add decoding latency and can tie enforcement to a fixed criterion.
PrismGuard compresses confirmed history into user intent and source-tagged observations, passes the pending call literally, then applies rules to typed risk signals.
A forged approval should not become consent

In this quarterly-report trace, the user forbids external sharing, while an untrusted note claims auditor approval. PrismGuard blocks the hijacked email but allows a later local draft save under the Balanced rule.
Store intent separately from evidence
- 1
Anchor user intent
Only trusted user-role messages update Task Intent, retaining the user's goal, authorized scope, and restrictions.
- 2
Tag external evidence
The tracker is instructed to keep external observations in Execution Environment with source tags, rather than precomputing safety verdicts.
- 3
Keep arguments literal
Pending tool arguments bypass state summarization and reach scoring unchanged, preserving literal recipients, paths, URLs, and numbers.
Signals first; rules make the verdict
- 1
Ask three risk questions
H checks harmful or unauthorized user intent; A flags calls that adopt untrusted text, not merely encounter it; U grades operational risk in context.
- 2
Score legal options together
Qwen3.5-4B Guard, trained with cross-entropy plus Brier loss, scores legal options over state, questions, and exact calls in one pass, with zero decoded tokens.
- 3
Set policy outside the model
Rules decide Allow/Block; operators tune rules or append questions without retraining. PrivacyLens tests outbound transfer, private facts, and boundary conflicts.
State compression cuts false alarms on attack chains
On STAC, fixed raw-history truncation yielded 76.09% F1 and 26.23% false-positive rate (FPR).
With the SFT Guard and rules fixed, STAC yielded 80.56% F1 and 3.28% FPR.
In this ablation, STAC FPR fell by 22.95 percentage points.
Multi-step attacks expose the clearest separation
Offline STAC multi-step chains; positive class: unsafe, hijacked, or unauthorized actions. Same splits; strongest comparator: ShadowMem.
Unseen privacy risks, frozen Guard weights
PrivacyLens; positive: inappropriate disclosures. PrismGuard frozen from TS-Bench; baselines use adapted prompts. Best F1: ShadowMem.
Attack prevention meets benign task completion

With the fixed policy, Qwen3.6-35B-A3B: AgentDojo (no guard vs PrismGuard) ASR 36.58% to 8.26%, benign completion 89.41%; AgentDyn ASR 36.36% to 15.19%, benign completion 56.86%. Broken axes separate guarded from unguarded.
What this guard does not settle
State can lose provenance
The prompted tracker may omit early constraints or blur source tags; resilience to adaptive injections remains untested.
New questions have a limit
New questions assume the Guard represents their concepts; cross-question attention can shift scores on existing signals.
Only mediated actions are covered
Only mediated tool calls are checked; natural-language responses are outside the gate, and multi-call batches are atomic.
State updates are the slow part
Weighted mean Guard wait was 138.7 ms; synchronous state compression took 5.76 to 7.94 s per check in this harness. Asynchronous overlap remains unbenchmarked.
Why it matters
- Separating user intent from tagged observations gives the Guard distinct evidence to score, rather than mistaking exposure for adoption.
- Operators can tune downstream rules or add questions for a new risk domain while keeping Guard weights frozen.
- Whether a prompted State Tracker can preserve subtle constraints and provenance under adaptive attacks remains an open question.
34 upvotes on Hugging Face 11 slides, 3 min
1 day ago