All terms
Safety & Alignment
Context Isolation
Keeping trusted instructions, user data, tool outputs, and secrets separated from each other.
Definition
Context isolation is a design practice that keeps different kinds of text — trusted instructions, user data, retrieved content, tool outputs, and secrets — separated so they cannot quietly contaminate one another. It is a key defense against prompt injection, where hidden instructions in untrusted text try to hijack the model.