Quarantine the tool result: a code-level defence for injected agent output
You can’t make a model reliably ignore instructions hidden in a web page or ticket, but you can make sure that when it fails, the damage is small. Three patterns you can apply today: wrap every tool result in a typed envelope the planner never treats as instructions, strip authority from tools once tainted data is in context, and keep a replay harness of injected payloads in CI so the defence is tested instead of assumed.