01Chapter 1: Where an approval step fits in the agent loopAn approval step is a point in an agent's loop where execution stops until a person decides what happens next. Before you build one, you need to know exactly where it goes. A gate in the wrong place can look like it protects you and still allow the action. This chapter walks through the agent loop, 7 min read
02Chapter 2: Why agents need human checkpointsThis chapter explains why an agent workflow should sometimes stop and wait for a person. It assumes you know how an LLM agent calls tools, can read short Python programs, and understand JSON and simple data structures. Later chapters cover how to classify actions and build the gate. This chapter cov7 min read
03Chapter 3: Deciding which actions need approvalThis chapter assumes you can read short Python programs, know how an LLM agent calls tools, and are comfortable with JSON-shaped data. You don't need to have built an approval gate yet. That comes in the next chapter. Here the question is narrower: for each tool call an agent might make, should a hu6 min read
04Chapter 4: Building an approval gateAn approval gate is a piece of code that stops an agent from running a tool call until a person has decided it may run. This chapter builds one. It assumes you can read short Python programs, know that an agent proposes tool calls and your code executes them, and understand that a call's risk level 5 min read
05Chapter 5: Approve, reject, edit, and feedbackThis chapter covers the decisions a reviewer can make at an approval gate and how your code should act on each one. It assumes you can read short Python programs, know how an agent calls tools, and have seen a basic approval gate that pauses before a risky call. Earlier chapters covered where the ga5 min read
06Chapter 6: What to show the reviewerThis chapter assumes you can read short Python programs and JSON. It also assumes you know how an agent calls tools, and that you have seen the approval gate from the earlier chapters: the workflow pauses, a human decides, and the workflow resumes. Here we look at the message the human sees. A gate 6 min read
07Chapter 7: Pausing and resuming with saved stateThis chapter covers how a workflow stops at an approval gate and later continues, possibly hours later and possibly in a different process. It assumes you have read the chapters on the agent loop and approval gates. You should be comfortable with Python dataclasses, JSON, and the idea of a backgroun6 min read
08Chapter 8: Waiting for humans: timeouts and escalationThis chapter covers what happens while an approval is pending: how the workflow waits, how long it waits, and who gets asked next when nobody answers. It assumes you can read short Python programs, know what a background job or web request is, and have seen the approval gate and the saved-state idea7 min read
09Chapter 9: Policy rules and safe auto-approvalThis chapter assumes you can read short Python programs, know how an agent calls tools, and have seen the risk table and approval gate from the earlier chapters. Here you will replace "ask a human for everything that isn't low risk" with a small policy layer. The layer decides which calls run automa6 min read
10Chapter 10: Avoiding approval fatigueThis chapter assumes you have read the chapters on risk classification, approval gates, and policy rules. You should be comfortable reading short Python programs and know how an agent loop calls tools. Here you will see how an approval system fails when it asks for too many decisions, and how to red7 min read
11Chapter 11: Making sure the approved action is the action that runsThis chapter assumes you have read the earlier chapters on approval gates and decision types. You should be comfortable with the gate that pauses a run, the reviewer's approve, edit and reject decisions, and the saved state that lets a run resume. You should also be able to read short Python program5 min read
12Chapter 12: Recording decisions for auditThis chapter assumes you have read the earlier chapters on approval gates, decision types, and binding an approval to the exact action. You should be comfortable with short Python programs, JSON, and hashing a payload with hashlib. The goal is to record approvals so that someone can later answer w6 min read
13Chapter 13: Prompt injection and approval integrityAn approval step is only useful if the reviewer sees the real action and the action that runs is the one they approved. Prompt injection attacks both conditions. This chapter assumes you have read the earlier chapters on approval gates, edit decisions, and action binding. It also assumes you can rea5 min read
14Chapter 14: Testing approval flowsThis chapter assumes you have built an approval gate like the one in the earlier chapters. That means a risk lookup, a function that pauses for a human decision, a fingerprint that binds an approval to an action, and a pending-approval store with an expiry. You should be comfortable reading Python a4 min read