Manuscript Offprint

arXiv:2610.33201

Position, Role or Label? A Controlled Study of Instruction Conflicts in LLM Agents

Anish Laddha, Nitesh Pradhan, Gaurav Srivastava

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

Abstract

LLM agents take instructions from the operator, repository configuration, user, tool results and saved memory, which often conflict. Instruction-hierarchy benchmarks ask whether the higher-ranked source wins, but a source sets position, role and label at once. First, we build WHOWINS, 1,080 code-scored scenarios in five task types, each with up to five mutually exclusive instructions, and seven controlled experiments that vary only how instructions are delivered. Second, we study 14 open-weight models (0.6B to 122B, thinking off and on) over 1,887,356 scored replies, checking main findings on held-out scenarios. Inside one message the first of two conflicting lines wins 72.42 to 94.66%, and across messages it keeps 22.95 to 62.65%. A policy sent first in the system (or developer) message loses most conflicts with later lines in every Qwen model but wins most on gpt-oss when it acts. In tool and file-write tasks it wins less often than the same text sent first as a labelled user message, in every model-mode. Third, we test whether pairs forecast larger conflicts; forecasts improve in every model-mode once they know where the task line is. Finally, by our keyword patterns at most 2.92% of decided pair replies flag or hedge a conflict.

1 Introduction

An LLM agent reads instructions from several places in one conversation: the operator's system prompt, a configuration file in the repository, the user, the output of a tool it called, and notes it saved in an earlier session. These instructions often disagree, and a reply can follow only one of them. The choice decides whose instruction is carried out: the operator's policy, the user's request or a line inside a tool result.

The usual answer is an instruction hierarchy, in which system messages outrank user messages and user messages outrank tool outputs (Wallace et al., 2024). Benchmarks find that models often break it (Geng et al., 2026; Zhang et al., 2025), but most cannot say why, because a source changes three things at once: its position in the input, the chat role that carries it, and the label that names it. A system prompt comes first, is sent in the system role and reads like a policy, so when a model ignores it, any of the three may be the cause. Constraint benchmarks put both instructions in one message (He et al., 2026b; Javed et al., 2026), and most hierarchy benchmarks test one pair at a time, whereas an agent meets conflicts across several messages and among more than two sources. Pairwise results alone cannot determine what a model does when three or more instructions conflict (Appendix G). No study in Table 1 or Appendix Q varies position, role and label together with the text held fixed, or tests whether pairs forecast larger conflicts.

We first build WHOWINS, which keeps the text of each instruction fixed and changes only how it reaches the model (Figure 1). The instructions are placed in five seats: operator, repository configuration, user, tool result and saved memory note. Seven controlled experiments vary which seats conflict (two, three or five) and in what order, chat role against text label, one message against separate messages, plain lines against realistic context, seats that agree, the number of instructions, and declared priority tiers (Section 3.3).

We then run WHOWINS on 14 open-weight models and test whether their pairs forecast larger conflicts. Three results bear on assumptions of current hierarchy work. First, constraint benchmarks put both lines in one message (He et al., 2026b; Javed et al., 2026), yet whether two lines share a message changes which one wins. Inside one message the first of two conflicting lines wins 72.42 to 94.66% of the replies that follow either, and in two mes-

Figure

Figure 1: Overview. A scenario has a task and up to five options that no reply can satisfy together (here, five casings of one key). Each option is placed in a seat, a message with its own position, chat role and label; each experiment varies their delivery. 14 models reply (filled: thinking off; open: on), and code scores the option a reply followed. Right: per family, the median over model-modes and the range, as shares of decided replies (dashed: 50%), and the operator line's real role minus label in tool and file-write tasks (dashed: 0).

sages its share falls by 19.96 to 60.68%, so in these models, when two conflicting lines share one message, their order largely decides the winner. Second, the hierarchy puts the system message on top (Wallace et al., 2024), yet on both Qwen families the system role does not protect a line sent first. The operator line sent first wins less than half of its conflicts with a later line in all 10 Qwen 3 and 14 Qwen 3.5 model-modes, while on gpt-oss it wins most when it acts. In tool and file-write tasks, a policy sent first in the system (or developer) message wins less often than the same text sent first as a labelled user message, in all 26 model-modes, by 6.41 to 48.75%. Third, under Luce's choice axiom pair strengths fix the choice in any larger set (Luce, 2005), but a pairwise ranking of seats does not carry over by itself. In every model-mode, forecasts of larger conflicts improve once they know where the task line is, and one strength per seat helps in 10 of 14 Qwen 3.5 model-modes and both gpt-oss models but in only 3 of 10 on Qwen 3. Thinking helps Qwen follow declared tiers, but for every model the data rule out that even two tiers hold in 95% of usable replies. By our keyword patterns, at most 2.92% of decided pair replies flag or hedge the conflict.

We make four contributions. (1) WHOWINS, 1,080 scenarios in five task types with up to five mutually exclusive options each, scored by code with no LLM judge (Section 3). (2) A controlled study of 14 open-weight models from three families (0.6B to 122B), thinking off and on: 26 model-modes and 1,887,356 scored replies, with main findings checked on held-out scenarios (Section 4). (3) A test of whether choice models fitted on pairs forecast three- and five-way conflicts (Section 4.4). (4) The benchmark and its code, public on GitHub 1^{1} and as the whowins Python package, and every scored reply, which we will release separately (Appendix P). Appendix P.2 shows how to install the package, score a reply and run a model.

References (25)