Lesson 2 · Unit 04
Guardrails
Prompts advise, the harness enforces: sandbox, permissions, approvals
What you practise
- Sandboxes and permissions, approval before anything irreversible, injected instructions in fetched content, least privilege, logs you can audit
Try a question from this lesson
Pick one
An agent is told in its prompt never to delete outside /tmp. One day the model asks for delete("/home/ada/projects"). What decides whether the folder is deleted?
Correct answer
The code that executes the tool call
Why
A prompt is a request to the model, and the model has just ignored it. The call only happens if the program runs it. A path check in that code is a guarantee that holds whatever the model says.
The ideas
Concept cards are short on purpose. In the app they appear between questions, after you have met the idea.
Concept
Guardrails live in the harness
The harness is the program around the model: the loop, the tools and their checks. A rule in the prompt is advice the model usually follows. A rule in the harness is enforced.
Four kinds: a sandbox limits what the agent can reach, permissions limit what it may do, approvals put a person before risky actions, and logs record what happened.
Concept
Instructions in the data
An agent reads web pages, emails, files and tool results. Any of them can contain text that looks like an instruction, and a model cannot reliably tell data from orders.
The damage depends on the tools. The dangerous mix is private data, untrusted content, and a way to send data out. Remove one of the three and an injected instruction has little to work with.
9 more exercises in the app
- 1× match the pairs
- 4× multiple choice
- 1× fill the blanks
- 1× true or false
- 1× type the answer
- 1× order the lines
Bitpath is an iOS app in development. Join the waitlist and you get one email when it is ready to try.