Overview
Input quarantine, output schemas, tool allow-lists.
Why it matters
Untrusted content reaches the model via retrieval, tools and user input. Defence-in-depth means treating every one of those channels as adversarial.
Where this sits in the stack
Prompt-injection defence is one of the load-bearing decisions in a KG/RAG/agent system: choices made here propagate to retrieval quality, agent reliability, cost per query, and the on-call burden of whoever ships it. Teams that name this trade-off explicitly ship faster than teams that leave it implicit.