02Chapter 2: How an agent turns model output into tool callsThis chapter assumes you know what function calling is at a basic level, can read short Python and JSON, and have used an API with an authentication token. It explains the mechanics of an agent loop, so that later chapters can say exactly where each permission control belongs.6 min read
03Chapter 3: Threat model: prompt injection and the confused deputyThis chapter assumes you know how LLM tool calling works, you have used APIs with authentication tokens, you can read short Python and JSON snippets, and you know basic access control terms such as roles and permissions. The earlier chapters covered least privilege and how an agent turns model outpu8 min read
04Chapter 4: Excessive agency: too many tools, too much permission, too much autonomyThis chapter assumes you know how LLM tool calling works, can read short Python and JSON snippets, and understand basic access control such as roles and permissions. It builds on the threat model from the previous chapter. There, prompt injection and the confused deputy showed how untrusted text can7 min read
05Chapter 5: Giving each agent only the tools its task needsThis chapter assumes you know how LLM tool calling works: the model receives a list of tool definitions and replies with a tool name and arguments. It also assumes you can read short Python and JSON snippets and know what roles and permissions are. Earlier chapters covered the threat model and exces6 min read
06Chapter 6: Enforcing authorization in code, not in the promptThis chapter assumes you know how LLM tool calling works, can read short Python and JSON snippets, and understand basic access control terms such as roles and permissions. It also assumes you have read the earlier chapters on the threat model and on tool scoping.6 min read
07Chapter 7: Constraining tool argumentsThis chapter assumes you know how LLM tool calling works, can read short Python and JSON snippets, and understand roles and permissions. A tool allowlist decides which tools an agent may call. This chapter covers what happens inside an allowed call: which argument values the tool accepts.6 min read
08Chapter 8: Scoped, short-lived, per-user credentialsThis chapter assumes you know how LLM tool calling works, what an API token or an IAM role is, and how to read short Python and JSON snippets. Earlier chapters covered tool allowlists and authorization checks in code. This chapter covers the credentials those tools use to reach other systems.6 min read
09Chapter 9: Human approval for irreversible or high-impact actionsThis chapter assumes you know how LLM tool calling works, can read short Python and JSON snippets, and understand roles and permissions. Earlier chapters covered tool allowlists, authorization in code, and argument constraints. Those controls decide what an agent may do. Human approval decides whi7 min read
10Chapter 10: Breaking the combination of private data, untrusted input, and exfiltrationThis chapter assumes you know how LLM tool calling works, can read short Python and JSON snippets, and have met prompt injection and the confused deputy problem in earlier chapters. It also assumes you have seen tool allowlists and deterministic authorization. Here you will learn a structural rule f7 min read
11Chapter 11: Sandboxing code execution and limiting network egressThis chapter assumes you know how LLM tool calling works, can read short Python and JSON snippets, and understand tokens and basic access control. Earlier chapters covered tool allowlists, deterministic authorization, argument constraints, and scoped credentials. Those controls decide which calls ar7 min read
12Chapter 12: Rate limits and budgets as blast-radius controlThis chapter assumes you have read the earlier chapters on tool scoping, deterministic enforcement, and human approval. You should also be comfortable reading short Python snippets and know what a rate limit on an API looks like.6 min read
13Chapter 13: Logging tool calls for detection and reviewThis chapter covers audit logging of tool calls. It assumes you know how LLM tool calling works, how API tokens and roles work, and that you can read short Python and JSON snippets. It builds on the earlier chapters on enforcing authorization in code and on human approval. Those controls decide what5 min read
14Chapter 14: Reviewing and testing an agent's permissionsThis chapter assumes you have read the earlier chapters on tool scoping, deterministic enforcement, argument constraints, scoped credentials, and approval. You should be able to read short Python and JSON snippets and run pytest. Everything so far was about building limits. This chapter covers how5 min read