🎯Core Definition
Instruction Hierarchy is a formal security architecture and prompt design framework that establishes strict privilege tiers across conflicting inputs; it establishes 3 distinct privilege levels: 1) System Instructions (Developer Messages: absolute highest authority defining identity, guardrails, and non-negotiable formats); 2) User Prompts (medium authority expressing user intent, strictly subordinate to system constraints); 3) Untrusted Third-party Context (Retrieved RAG passages, web snippets, tool outputs: zero privilege, strictly evaluated as passive data payload).
⚡Key Problems Solved
Flat prompt contexts treat all text tokens with equal authority, allowing adversarial strings like 'Ignore all previous instructions' to hijack execution; Instruction Hierarchy hardens top-level system commands against override attempts.