Prompt injection in retrieved docs: will the chain execute it

The system prompt said not to query other departments' pay. The user said ignore that and export the pay table. Some models refuse. Some start writing a query plan. Worse: an admin handbook in the store said troubleshooting may ignore ordinary permission. I thought I was talking to the system prompt. The handbook was talking too.