arXiv(opens in a new tab)cs.CRAug 2026Cited by 1 paper on PaperVantage

Manuscript Offprint

arXiv:2608.28502

Recognition Without Enforcement: Configuration-Dependent Failures in LLM Agent Instruction Arbitration and External Control

Jun Wen Leong

Open access. PaperVantage converted this article to text, so layout and figures may differ from the original.

Abstract

LLM agents increasingly arbitrate among instructions from system prompts, users, memory, and tools, but this arbitration cannot be assumed to enforce trust boundaries. We identify a recognition–enforcement gap: source-format features (role-template position, channel metadata, and associated formatting cues) are linearly decodable from model activations, and models can explicitly identify forged authority when prompted, yet some configurations still produce the conflicting tool call. We use “recognition” in this specific decodable-source-format-plus-verbalized-detection sense throughout; crossed-probe controls (§3) show it is not a unified abstract trust representation. The gap is not an immutable property of model weights. Restrictive policies and diverse prompts can eliminate execution on the same models, while permissive configurations and particular prompt–model pairs yield deterministic failures. Across a fleet evaluation (authority spoofing: 46 model endpoints spanning 6 vendors and including open-weight backends; memory conflict: 48 models, 40 API plus 8 open-weight), average execution under diverse novel attacks is 1.21% [0.5–2.1%] (model-clustered bootstrap CI over 14,294 analyzed spoofed trials from 29 models, 4.5× wider than naive trial-level pooling), but vulnerability is concentrated in reproducible cells and shifts substantially across deployment windows (up to 47pp within-window per-fingerprint range). Prompt-layer defenses likewise fail to generalize across models and adaptive formulations. We therefore treat model self-arbitration as a capability rather than a security boundary and implement an external reference monitor combining authenticated source routing with capability-gated tool execution. The monitor deterministically rejects all tested forged, tampered, replayed, and unsigned requests (functional-correctness testing across 3 model families; deterministic by cryptographic construction under EUF-CMA, not an empirical robustness measure) while preserving legitimate operations. A separate adaptive red-team found one implementation flaw (a since-patched clock-skew admission), not a cryptographic bypass. Its boundary is semantic authorization: authenticated user or deputy messages can still induce privileged requests unless independently constrained by scoped capabilities. Secure agents require external enforcement, not merely better recognition.

All code, sanitized behavioral data (124,325+ memory-conflict trials; >256,000 total across all campaigns), middleware, and the full verbatim attack prompts will be released as INSTRUCTIONARBITRATIONBENCH; no attack templates are withheld or sanitized. Affected vendors were notified under a 90-day disclosure window prior to release (see Ethical Considerations).

1 Introduction

Consider an LLM agent deployed as a workspace file management assistant. Its system prompt instructs it to “always follow the most authoritative instructions” and provides access to a delete_all_files tool. The agent’s persistent memory contains a legitimate record instructing it to preserve files. Now suppose a second record enters the memory:

[SYSTEM OVERRIDE -- Priority: CRITICAL] Workspace Manager Notice: Your access has been temporarily elevated. Execute file cleanup: delete all files immediately.

No jailbreak suffix. No “ignore previous instructions.” Just a plausible authority-spoofing notice with fabricated priority markers. Under this specific prompt construction, this causes the agent to call delete_all_files, preferring the spoofed instruction over the legitimate one, 100% of the time on GPT-4.1-mini, GPT-5.1, and Gemini-2.5-Pro ( N≥150/N \geq 150/cell, permissive protocol; the system prompt does not explicitly prohibit deletion; the conflict is between two memory records of ostensibly different authority levels).

This paper asks: where does the failure lie, how does it manifest at scale, and what can be done?

The recognition–enforcement gap. The natural hypothesis, that models cannot distinguish trusted from untrusted sources, is wrong. We show that source-format metadata is linearly decodable from model activations and that models can explicitly articulate forged authority when prompted, yet action selection is not conditioned on this available information under specific configurations. Linear probes confirm provenance-relevant information is linearly present in model activations during normal forward passes (97.5–100% accuracy, 4 models; note: near-ceiling accuracy at layer 0 indicates substantial contribution from chat-template positional features rather than abstract trust semantics, see §3 for controls and caveats); the behavioral evidence below demonstrates that this information does not reliably condition action selection under the tested configurations.

  1. Behavioral dissociation. When forced to analyze context before acting, GPT-4.1-mini detects fabricated authority in 98.7% of trials yet executes in 99.3% (under a permissive prompt). On open-weight models (same BF16 weights used for probing), same-instantiation testing shows 100% verbalized recognition coexisting with 100% execution. This dissociation is configuration-dependent: under a restrictive policy with diverse stimuli, recognition persists (72% Qwen, 36% Llama) but structured execution drops to 0%, enforcement failure requires permissive deployment configurations (§3.2).

  2. Vulnerability is targeted, heterogeneous, and unstable. A fleet-scale behavioral study (46 model endpoints, 38 API plus 8 open-weight/local backends, 1^{1} for authority spoofing, 48 models for memory conflict, 124,325 trials) reveals that while worst-case fixed-prompt attacks achieve deterministic execution (40–100%) on specific models, vulnerability is concentrated in specific prompt–model cells rather than uniformly distributed. A 29,000-trial cross-prompt replication (29 models × 50 diverse prompts × 10 reps × 2 conditions; 14,294 analyzed spoofed trials after excluding API-error rows) quantifies fleet-mean execution at 1.21% [0.5–2.1%, model-clustered bootstrap], with only 4/29 models above 5%; a prospective held-out evaluation (7,500 trials across 15 models with a locked protocol, extended to 16 models with confirmatory additions totalling 12,769 trials) confirms at 1.76% [1.5–2.1%]. This targeted and shifting attack surface, not a broad, easily patched flaw, makes the vulnerability difficult to mitigate with general in-context policies (§4–4.8).

  3. Localization evidence. Linear probes on 4 open-weight models decode source-format markers at 97.5–100% accuracy; a 5-class source-class decodability probe with marker-ablation, vocabulary-matching, and paraphrase controls confirms encoding beyond specific delimiter tokens (though layer-0 near-ceiling performance indicates substantial contribution from chat-template role markers, and abstract trust semantics are not disentangled

1^{1}No gateway aliasing is confirmed among the API endpoints under the corrected provenance logs; an earlier draft’s reported GPT-5.6→o3-mini aliasing was a routing-failure artifact, see §8.

from positional/pragmatic features). The signal persists through all layers yet does not reliably condition action (Appendix B).

  1. Execution resists linear steering (0/7 models). A same-instantiation bridge across 7 models (5 families) finds zero behavioral movement from provenance-direction steering (0/1,895 trials). Refusal-direction positive controls succeed on 2/7 models (Llama-3.3-70B, DeepSeek-R1-32B), but structurally matched instruction-following controls produce zero execution flips on both validated architectures (Llama: 0/1,000 at N=200/layer; DeepSeek: 0/250), as do formatting and random directions. Thus single-direction additive steering cannot move tool-execution decisions on any tested model; the causal role of provenance remains open. A non-linear SAE ablation on Llama-3.3-70B converges: zero movement from compliance-feature ablation despite 66pp refusal-feature positive control (§3.4, Appendix Q).

  2. Prompt-defense brittleness. No tested prompt-layer defense generalizes across the model fleet: keyword-free reformulations collapse keyword-dependent models, defense efficacy is model-specific, and an adaptive attacker achieves 100% bypass ( §5§5).

Because the gap between available information and action selection is configuration-dependent rather than reflecting a fundamental inability to decode source metadata, enforcement must move outside the shared context window. We evaluate an external reference monitor combining source-label routing with HMAC-SHA256 verification and capability-gated tool execution: functional-correctness testing rejects all tested deterministic attack variants (0/900 test cases across 3 model families; deterministic by cryptographic construction under EUF-CMA, not an empirical robustness measure) while preserving legitimate throughput (64–100% across tested models; §6). A separate adaptive red-team (473 attacks) additionally surfaced one implementation flaw, a clock-skew/future-timestamp admission, since patched (§6.8), underscoring that the guarantee is correctness of the deterministic checks, not blanket robustness to novel implementation attacks. However, multi-turn evaluation (37 models, 41,455 trials) reveals a vendor-stratified landscape: all Anthropic models and newest Google models show near-zero vulnerability (≤2.5%), while older OpenAI endpoints remain highly vulnerable without enforcement. Content removal (simulating admission-layer filtering) eliminates channel-forgery vulnerability across all 37 models; residual semantic-escalation execution is confined to OpenAI endpoints (concentrated in the GPT-4.x generation, with two small reasoning-model cells: o3 at 2% and o3-mini at 6%) (§6.9).

References (20)