Why it matters
Treat retrieved docs and user text as untrusted; constrain tools.
Practical steps
- Define input/output schemas for ai prompt injection and keep prompts versioned in git.
- ACK the chat platform first; run model calls asynchronously for treat retrieved docs and user text as untrusted; constrain tools.
- Cap tokens/timeouts; treat tool/function results as untrusted until validated.
- Add eval fixtures that catch regressions in ai prompt injection without calling production keys.
- Document model fallback and redaction rules operators need for ai prompt injection.
Watch out for
- Copy-pasting outdated snippets for ai prompt injection without re-reading current official docs.
- Shipping ai prompt injection to production without a staging rehearsal and a documented rollback.