# AgentDoG2: An Efficient Alignment Framework for Emergent Risk in Long-Horizon Agent Tasks

> AgentDoG2 expands safety evaluation to long agent workflows, develops adaptive goal-manipulation attacks, and explores co-evolving defenses with trajectory and pre-execution guards. Across three step-level benchmarks, AgentDoG-Step 4B reached 94.0% mean worst-class recall, versus 93.3% for Gemini-3.8-Flash.

- arXiv: https://arxiv.org/abs/2611.41434
- Authors: Dongrui Liu, Qingyu Liu, Tianyi Zhou, Donghang Duan, Yilian Shi, Qinghua Mao, Yu Li, Xinhao Li, Haoyu Wang, Dadi Guo, Zhonghao Yang, Jiachen Ma, Peng Huang, Xingbang He, Ruiyang Qin, Peng Wang, Leitao Yuan, Yuejin Xie, Jinchen He, Ning Wu, Junfeng Fang, Yueming Lyu, Wen Shen, Wenjie Wang, Le Yang, Qiaosheng Zhang, Xiang Wang, Bo Zhang, Mingjie Li, Yinpeng Dong, Zhuosheng Zhang, Zhongjie Ba, Shangding Gu, Jie Zhang, Na Zou, Tianhang Zheng, Quanshi Zhang, Xingjun Ma, Hui Xue, Xiangnan He, Xia Hu
- Published: 2026-12-01
- Topic: Alignment
- Visual carousel: https://instaxiv.com/p/2611.41434
- 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 AgentDoG-Step's 4B guard catch risk before execution?

**94.0%** 3-test WCR vs Gemini-3.8-Flash: 93.3

## Why long agent tasks strain turn-by-turn safety checks

**Single-step view:** A tool call can look authorized alone; its risk may depend on an earlier poisoned premise, stale permission, or an obligation left open.

**Context-aware guard:** AgentDoG2 audits completed trajectories; AgentDoG-Step judges a candidate action from prior history, before execution and without its outcome.

In long tasks, safety depends on what happened earlier and what the agent does next.

## One taxonomy links source, failure and harm

![Figure 2](https://cdn.instaxiv.com/figures/2611.41434/figure2.webp)

Across 18 risk sources, 21 failure modes and 11 real-world harm categories, the map adds covert goal manipulation, authority and obligation violations, and loss of control. (Figure 2)

## ATBench-Pro stretches evaluation across long workflows

| Method | Cases | Avg tool calls | Avg tokens/trajectory |
| --- | --- | --- | --- |
| HINTBench (v2) | 596 | 6.92 | 4.78k |
| **ATBench-Pro** | **1,000** | **48.98** | **57.51k** |

_HINTBench v2 tool-call and token averages use 566 publicly released test trajectories (596 cases listed)._

## Attacks plan around dependencies, then adapt live

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

Phase 1 maps critical task dependencies into an attack blueprint; Phase 2 grounds it in the target's live trajectory. Failed attempts trigger revisions. (Figure 4)

## Reported ASR varies sharply across attack benchmarks

| Method | ASR for Codex (%) |
| --- | --- |
| AgentLAB | 35.76 |
| AutoControl-Arena | 3.59 |
| **ManipulationArena** | **54.18** |

_Same Codex/GPT-6.1-Sol setup across distinct suites; ManipulationArena has 888 reusable plans under a 7-strategy, 6-channel design._

## Three guards intervene at different points

![Figure 6](https://cdn.instaxiv.com/figures/2611.41434/figure6.webp)

AgentDoG2 internalizes the taxonomy and drops CoT; AgentDoG-Jev predicts structured fields in one pass; AgentDoG-Step screens candidate actions before execution. (Figure 6)

## Train on risky context without teaching over-refusal

![Figure 8](https://cdn.instaxiv.com/figures/2611.41434/figure8.webp)

Real workflows provide shared prefixes; each injected risk yields one unsafe and three safe continuations (refuse, safely complete, or ignore the trigger), then a verifier repairs failed groups. (Figure 8)

## AgentDoG2 2B tops ATBench, not ATBench-Pro

| Method | ATBench acc. (%) | ATBench-Pro acc. (%) |
| --- | --- | --- |
| AgentDoG1.5-U 2B | 76.8 | 53.0 |
| AgentDoG1.5-U 4B | 78.4 | 72.1 |
| StepGuard-4B | 77.7 | 67.3 |
| GLM-5.3 | 76.6 | 83.4 |
| **AgentDoG2 2B** | **80.3** | **78.3** |

_Binary accuracy (%); GLM-5.3 leads ATBench-Pro. AgentDoG2 latency: 1.9–18.6× speedup vs matched AgentDoG1.5-U across three benchmarks._

## One forward pass replaces autoregressive safety decoding

**AgentDoG1.5:** Timing used a single H200 GPU (concurrency 1, prefix caching off; mean of 64 balanced trajectories over 3 repeats). Matched AgentDoG1.5 models generate analysis and labels token by token.

**AgentDoG-Jev:** It reuses task and trajectory inputs and labels, but predicts one or three structured decision fields in a single forward pass, without autoregressive decoding.

ATBench binary checks: 103.9–184.9× faster than matched models; accuracy stayed within 1.3 points except at 0.8B.

## AgentDoG-Step 4B tops balanced pre-execution recall

| Method | Overall WCR (%) |
| --- | --- |
| Gemini-3.8-Flash | 93.3 |
| StepGuard-4B | 81.8 |
| **AgentDoG-Step 4B (+0.7 pp)** | **94.0** |

_Pre-execution inputs only; overall is the unweighted mean across TS-Bench-Dojo, TS-Bench-ASB and StepShield. WCR=min(safe recall, unsafe recall)._

## Why label risk on a safe step?

**Safety Only:** With binary labels and rewards alone, safe-query participation in nonzero-variance GDPO updates fell from 24.8% at iteration 20 to 10.9% at 100.

**Safety + Risk Source:** On TS-Bench-Dojo, matched AgentDoG-Step 4B variants differed only in safe-step Risk Source training. At iteration 100, Safety + RS gave 41.8% safe-group participation and 96.9% Safe F1 (Safety Only: 10.9%, 96.4%).

## SafeRSI evolves the policy and the harness together

![Figure 19](https://cdn.instaxiv.com/figures/2611.41434/figure19.webp)

Policy branch: failure traces yield critic-reviewed safe continuations without environment resets, then SFT and fresh attacks. In parallel, attribution guides soft policies or hard runtime checks, tested on risky and benign tasks. (Figure 19)

## Lower attack success comes with a function-calling cost

| Method | Manipulation ASR (%) | BFCL-v3 accuracy (%) |
| --- | --- | --- |
| Claude Code / Opus 5.5 | 46.82 | 72.60 |
| Base DeepSeek / Qwen3.8-27B | 65.84 | 75.34 |
| SafeRSI V2 (no AgentDoG-Step) | 25.68 | 65.17 |
| **SafeRSI V2 + AgentDoG-Step** | **24.21** | **64.92** |
| **SafeRSI V1 + AgentDoG-Step** | **21.40** | **67.39** |

_Defense results; ManipulationArena ASR is lower-better; BFCL-v3 is function-call accuracy. V1 without AgentDoG-Step: 28.04% / 66.72%._

## Where this evidence stops

- **Text-only setting**: The taxonomy and defenses are built primarily around text trajectories; native multimodal agent environments remain outside the tested scope.
- **Open-world attacks**: SafeRSI is described as preliminary, and the authors leave open whether it handles attacks using strategies or channels outside the evaluated set in open-world deployment.
- **Two reported rounds**: The supplied evaluation reports V1 and V2 only; sustained improvement or robustness beyond these rounds is not demonstrated.

Best used when: Read these scores as evidence on the reported text-based benchmarks, not as an open-world safety guarantee.

## Key takeaways

- A benign-looking tool call can inherit a poisoned premise or stale permission from earlier in the task.
- Pair full-trajectory audits with pre-execution action checks, and track function-calling accuracy alongside safety.
- Can these defenses transfer to multimodal environments and attacks using strategies or channels outside those tested?

## Links

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

## Citation

```bibtex
@article{liu2026agentdog,
  title   = {AgentDoG2: An Efficient Alignment Framework for Emergent Risk in Long-Horizon Agent Tasks},
  author  = {Liu, Dongrui and Liu, Qingyu and Zhou, Tianyi and Duan, Donghang and Shi, Yilian and Mao, Qinghua and Li, Yu and Li, Xinhao and Wang, Haoyu and Guo, Dadi and Yang, Zhonghao and Ma, Jiachen and others},
  journal = {arXiv preprint arXiv:2611.41434},
  year    = {2026},
  url     = {https://arxiv.org/abs/2611.41434}
}
```
