/ ENGINEERING SYSTEMS
Back to Field Notes

FIELD NOTE / SECURITY NOTE

Retrieved text is evidence—not authority

2 min readUpdated 2026-08-29

Retrieval improves an application's context, but it also introduces another stream of untrusted content. A document that appears in a search result should not gain the ability to rewrite policy or authorize an action.

Public-safe engineering note · no client or confidential implementation details
01

Separate instruction classes

System policy, application rules, user requests, retrieved passages, and tool responses have different trust levels. Keeping them visibly separate in the orchestration layer makes it possible to apply different validation and handling rules. Flattening everything into one prompt makes provenance and authorization harder to reason about.

02

Validate before context assembly

Documents should pass access checks, freshness rules, metadata filters, and content-safety checks before they enter a model context. Retrieved text can be relevant and still contain a malicious instruction. The safe response is to preserve the evidence needed for an answer while excluding instructions that are not part of the document's informational role.

Share a thought

Comments appear immediately. Email is optional and never shown.

Markdown & code fences supported
AUTH VIA: PUBLIC FORM

No comments yet. Be the first to share a thought.

01 / SYSTEM VIEWInspect the architecture Follow a request through retrieval, validation, and audit.02 / EVIDENCEReview the case studies See the engineering decisions and measured outcomes.03 / OPEN CHANNELStart a conversation Talk through a production GenAI problem.