The Alternatives Issue For tool owners Sign in

Instruction hierarchy

Instruction hierarchy is a model's trained ordering of trust — system prompt outranks user message which outranks retrieved content — used to resist prompt injection and jailbreak attempts.

In more detail

What it means

Introduced by OpenAI in 2024 and now widely adopted, instruction hierarchy explicitly trains models to weight different sources of instructions differently. The system prompt (highest trust) sets policy; the user message (medium trust) can request actions within policy; tool output and retrieved content (lowest trust) provide information but should not be obeyed as instructions. The technique meaningfully reduces indirect prompt-injection success rates but does not eliminate them. Combine with input/output guardrails and tight tool surfaces for production safety. In practice, place non-negotiable policy in the system prompt, repeat critical constraints near the tool definitions, and treat retrieved text as data by default, requiring explicit user confirmation before acting on instructions found inside it.

Part 1 of 1

Common mistakes

  • Treating instruction hierarchy as complete protection — it raises the bar, not closes the door.
  • Putting trust-sensitive policy in the user message instead of the system prompt.

FAQ

Questions readers ask.

What is instruction hierarchy?

Instruction hierarchy is a model's trained ordering of trust — system prompt outranks user message which outranks retrieved content — used to resist prompt injection and jailbreak attempts.

What are the common mistakes with instruction hierarchy?

Treating instruction hierarchy as complete protection — it raises the bar, not closes the door. Putting trust-sensitive policy in the user message instead of the system prompt.

Last updated: 2026-09-18. Raw markdown: https://promtable.com/glossary/instruction-hierarchy.md. Found a mistake? Tell us.