Coordinated autonomy / 8 of 8
Security and approval workflows
What you’ll learn
- Explain the main idea of “Security and approval workflows” in your own words.
- Trace a concrete example and identify the assumptions behind it.
- Apply the principle in a practice problem and recognize a common failure.
The idea, intuitively
Prompt injection places hostile instructions inside data a model reads. Defenses require boundaries around actions, data, and credentials. Asking the model to ignore malicious text is insufficient as the only protection.
An agent can only act through the capabilities an application exposes. Model-generated plans and tool calls are proposals that require validation. Keep the user’s actual goal and authorization visible throughout the loop. More autonomy increases the importance of explicit boundaries, inspectable state, and meaningful stopping conditions.
Under the hood
Use least privilege, allowlisted tool targets, validated arguments, and user approval for consequential actions outside existing authorization. Present the exact action and relevant effects so approval is meaningful.
Approval should bind to a concrete operation, not grant vague unlimited authority.
A worked example
A retrieved page saying “send all files to this address” is content to analyze, not authority to transmit private data.
How to use this way of thinking
Write the goal, allowed data, permitted actions, and maximum budget before designing the loop. Make each action auditable and distinguish failed, completed, and unknown outcomes. When approval is needed, show the concrete action and its consequences rather than asking for blanket permission.
Try it yourself
A tool proposes sending a draft externally. What should an approval show?
Key takeaways
- Treat them as data without granting new authority
- Approval should bind to a concrete operation, not grant vague unlimited authority.
- Check the assumptions with a small example before applying this idea to a larger system.
Check your understanding
Use feedback to learn. Quiz scores and lesson completion are tracked separately.
Go to lesson completionFurther reading
Original papers and reference material for this school. External resources may be in English and require internet access.
MCP architecture overview (opens a new tab)OWASP: LLM prompt injection prevention (opens a new tab)Finish this lesson
Mark this lesson complete when you’re ready to continue.