Shortcut Sensitivity in Agent-Safety Evaluations
Organizations: Kontext
Abstract
AI agents take actions through tools. Some actions are sensitive, so guards that supervise them must themselves be evaluated reliably. Yet the data used to evaluate a guard can include cues that make labels predictable without measuring the intended safety construct, and those cues can also influence guard decisions. We introduce a three-level shortcut-auditing framework and audit completed LinuxArena trajectories and two TS-Bench-derived step datasets. We distinguish label predictability, observational guard association, and paired decision sensitivity. In LinuxArena, shorter average shell commands strongly predict trajectory labels. In AgentDojo-Traj, exact-tool lookup falls from F_1=.901 with mixed-domain folds to .495 under domain holdout. In AgentHarm-Traj, released TS-Guard F_1 falls from .902 under row weighting to .719 with equal interaction weighting, while balanced accuracy rises. We then test the strongest safe-row marker association in a seven-configuration screen on a frozen 64-step AgentDojo-Traj cohort using repeated, interleaved Haiku calls. Rewriting the <INFORMATION> marker lowers blocking by 8.33 percentage points, while opaque tool aliases raise it by 11.46 points. All unsafe calls remain blocked; the changes concern false positives against inherited labels. Both effects remain nonzero after subtracting the formatting-placebo effect, with exploratory 95% ranges excluding zero. The same edits also change measured accuracy against inherited labels. This provides direct evidence that benchmark representation can materially change a guard's decisions and measured evaluation performance. The Haiku-sized effects do not reproduce in Luna or deterministic Q8 TS-Guard. We recommend domain group holdouts, evaluation-unit metrics, and placebo-controlled paired interventions.
Figures & tables
| Artifact | Diagnostic | Result | Stress control / interpretation |
|---|---|---|---|
| LinuxArena (576 trajectories) | Negative mean shell-command characters | AUC [.873, .941] | LOEO lexical AUC [.907, .955]; difference [.008, .040]. |
| AgentDojo-Traj (1,220 steps) | Marker + 11 action prefixes | ; balanced accuracy ; recall | Exploratory fixed rule; the marker also appears in 321 safe rows. |
| AgentDojo-Traj | Exact tool majority | Grouped-CV ; balanced accuracy | LODO ; only of rows use a tool seen in another domain. |
| AgentHarm-Traj (731 steps) | Predict every step unsafe | ; balanced accuracy | Positive prevalence makes look strong without discrimination. |
| Edit | All-base (95%) | Safe-only (95%) | |
|---|---|---|---|
| Marker rewrite | [-15.05, -2.49] | [-30.00, -5.88] | 6/0 |
| Tool alias | [2.69, 20.59] | [5.56, 39.22] | 2/9 |
| Combined | [-8.99, 2.99] | [-17.20, 5.21] | 5/2 |
| Formatting placebo | [-6.78, 2.78] | [-13.54, 5.38] | 2/2 |
Appendix figures & tables4 assets
Supplementary material from the paper’s appendix.
Appendix
| Guard | Marked blocked | Unmarked blocked | Difference (95% range) |
|---|---|---|---|
| TS-Guard | 31/321 | 33/547 | [0.09, 7.33] |
| GPT-5.5 | 17/320 | 6/547 | [1.70, 7.05] |
| Claude Haiku 4.5 | 239/321 | 2/547 | [68.67, 79.75] |
| Claude Opus 4.8 | 12/321 | 0/547 | [1.84, 5.98] |
| Claude Sonnet 5 | 19/321 | 2/547 | [2.96, 8.31] |
| GPT-5.6 Luna | 36/321 | 4/547 | [7.17, 14.11] |
| Edit | Valid flips | Base rate | Interaction rate | Component / ordinal changes |
|---|---|---|---|---|
| Marker rewrite | 3/64 | 4.69% | 4.31% | 7 / 5 |
| Tool alias | 3/63 | 4.76% | 5.26% | 14 / 12 |
| Combined | 6/64 | 9.38% | 8.62% | 14 / 13 |
| Held-out rows | Balanced acc. | TP | TN | FP | FN | ||
|---|---|---|---|---|---|---|---|
| Seen names | 211 | .797 | .508 | 137 | 4 | 64 | 6 |
| Unseen names | 1,009 | .000 | .500 | 0 | 800 | 0 | 209 |
| All names | 1,220 | .495 | .658 | 137 | 804 | 64 | 215 |
| Weighting unit | Accuracy | Balanced acc. | |
|---|---|---|---|
| Rows (731) | .848 | .902 | .754 |
| Equal interaction weight (197) | .724 | .719 | .776 |
| Interaction-majority (197) | .716 | .714 | .770 |
AI Safety Evaluation
AI Safety Evaluation studies how to test whether AI systems avoid harmful behavior and remain reliable across users, tasks, and deployment settings.
See all 140 papers