Berildocs GitHub

Memory cards

Tool output is untrusted input to the next turn

confidence: highupdated: 2026-11-24status: activeaitoolinjection

Claim#

A tool returns a page, file or email containing instructions. The model treats it as context and follows it.

Test#

Plant an instruction in a tool result. Ask a follow-up. Watch the next tool call.

Proof#

A second-order action from the tool content.

Failure modes#

A single-turn prompt is not second-order. The content must come from a tool.