# Signals, Not Verdicts: Stateful Runtime Protection for Tool-Using Agents

> PrismGuard separates user intent from tagged external evidence, then scores each exact tool call in one pass; deterministic rules choose Allow or Block. On offline multi-step STAC attacks, it scored 85.33% F1, 10.60 F1 points above the strongest evaluated baseline.

- arXiv: https://arxiv.org/abs/2612.06137
- Authors: Tiancheng Zhu, Mingjie Chen, Mingxue Zhang, Tian Gao, Rui Yang, Yuxuan Xi, Chaohui Xu, Shifeng Peng, Shuang Huang, Junhua Liu, Cong Liu, Guoping Hu, Kui Ren
- Published: 2026-12-04
- Topic: Alignment
- Visual carousel: https://instaxiv.com/p/2612.06137
- Explanation by InstaXiv, a secondary educational summary. Cite the original paper for exact results. InstaXiv is not affiliated with or endorsed by arXiv or Cornell University.

## Can a tool-call guard change policy without retraining?

**+10.60 pts** STAC F1 points vs. ShadowMem

## The verdict must remember what came before

**Transcript plus verdict:** 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.

**Separate evidence and decision:** 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

![Figure 1](https://cdn.instaxiv.com/figures/2612.06137/figure1.webp)

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. (Figure 1)

## 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

**Rule State: raw truncation:** On STAC, fixed raw-history truncation yielded 76.09% F1 and 26.23% false-positive rate (FPR).

**Generative State:** 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

| Method | F1 (%) |
| --- | --- |
| StepGuard | 74.67 |
| ShadowMem | 74.73 |
| TS-Guard | 48.48 |
| AR-Multi | 33.96 |
| **PrismGuard (+10.60 F1 pts)** | **85.33** |

_Offline STAC multi-step chains; positive class: unsafe, hijacked, or unauthorized actions. Same splits; strongest comparator: ShadowMem._

## Unseen privacy risks, frozen Guard weights

| Method | F1 (%) | FPR (%) |
| --- | --- | --- |
| StepGuard | 53.69 | 17.51 |
| ShadowMem | 71.24 | 68.36 |
| TS-Guard | 25.38 | 5.65 |
| AR-Multi | 65.73 | 12.43 |
| **PrismGuard (+3.89 F1 pts)** | **75.13** | **10.73** |

_PrivacyLens; positive: inappropriate disclosures. PrismGuard frozen from TS-Bench; baselines use adapted prompts. Best F1: ShadowMem._

## Attack prevention meets benign task completion

![Figure 4](https://cdn.instaxiv.com/figures/2612.06137/figure4.webp)

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. (Figure 4)

## 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.

## Key takeaways

- 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.

## Links

- arXiv: https://arxiv.org/abs/2612.06137
- PDF: https://arxiv.org/pdf/2612.06137

## Citation

```bibtex
@article{zhu2026signals,
  title   = {Signals, Not Verdicts: Stateful Runtime Protection for Tool-Using Agents},
  author  = {Zhu, Tiancheng and Chen, Mingjie and Zhang, Mingxue and Gao, Tian and Yang, Rui and Xi, Yuxuan and Xu, Chaohui and Peng, Shifeng and Huang, Shuang and Liu, Junhua and Liu, Cong and Hu, Guoping and others},
  journal = {arXiv preprint arXiv:2612.06137},
  year    = {2026},
  url     = {https://arxiv.org/abs/2612.06137}
}
```
