t1-p3-04draft5–8h

Guardrail layer against injected instructions

requires: t1-p3-03

Add input validation rejecting prompt-injection patterns found in retrieved content - for example a document containing "ignore previous instructions" - and output validation that blocks answers below a confidence threshold from being shown without a low-confidence banner.

Retrieved documents are untrusted input. This is the defining security property of RAG and the one most systems get wrong: the corpus is treated as data right up until its text lands in a prompt, where it silently becomes instructions.

No result yet. Run `learn verify t1-p3-04` locally, or push to trigger CI.

contractcontract: t1_p3_04_guardrails
unrun