Educational / lab material. Use only a local model, fictional documents, and a simulated endpoint.

Draw the trust boundary

I split the system into prompt, retrieval, tool or action, and audit. Each area has a different kind of untrusted input. The important question is not “is the model intelligent?” but “which actions can happen without human confirmation?”

Safety checklist

  1. Does retrieved data have a clear scope?
  2. Is the output treated as a command or only as a suggestion?
  3. Do tools have an allowlist, timeout, and enough logging for investigation?
  4. Is there a clean path to separate the model from any real system?

Good design usually reduces permission before increasing capability.