Sub topic 2
Why agents need human checkpoints
This chapter assumes you know how an LLM agent calls tools, can read short Python programs, and understand JSON. It explains why a human approval step belongs in some agent workflows. Later chapters cover how to build one.
What goes wrong without a checkpoint
An agent loop chooses a tool, runs it, reads the result, and repeats. Nothing in that loop checks whether the chosen action is a good idea. The model produces the tool call, and the runtime executes it.
A model's output is a prediction, not a verified decision. Three kinds of failure follow from that:
- Wrong action. The model picks the wrong tool or the wrong record, for example deleting customer 4182 when the user meant 4128.
- Wrong interpretation. The user's request was ambiguous, and the model guessed instead of asking.
- Hijacked action. Text from a web page, email, or document contains instructions, and the model follows them. This is called prompt injection.
In a chat window, these mistakes cost little, because a person reads the reply before acting on it. Once the agent has tools that send email, move money, or change data, the mistake becomes a side effect in the real world.
Why more prompting does not fix it
You can add "be careful" to the system prompt, but that lowers the error rate without removing it. Over thousands of runs, a small error rate still produces real incidents. Prompt-level rules are also advice to the model, not enforcement. A checkpoint in code is enforcement, because the runtime refuses to execute the call until a person decides.
What a human adds
A reviewer supplies things the model lacks:
- Context outside the prompt. The reviewer knows the customer is in a legal dispute, or that the quarter just closed.
- Accountability. An organization can hold a person responsible for a decision. It cannot hold a model responsible.
- Independent judgment. The reviewer does not share the model's mistaken reasoning or the injected text that misled it.
Where the cost lands
Not every step needs a person. A checkpoint costs time, and reviewers have limited attention. The deciding question is how bad the outcome is if the model is wrong, and whether you can undo it.
Matching the checkpoint to the stakes
| Situation | Example | Checkpoint? |
|---|---|---|
| Read-only, low impact | Searching internal docs | Usually no |
| Reversible write | Creating a draft | Often no, but log it |
| Hard to undo | Sending an email to a customer | Yes |
| Destructive or costly | Deleting records, issuing refunds | Yes |
| Unfamiliar tool | A tool nobody has classified | Yes, until reviewed |
The next chapter turns this table into a rule you can code.
Common mistakes
- Approving at the end only. If the human sees only the final result, the side effects have already happened. The checkpoint must come before the action.
- Treating the checkpoint as optional. If the agent can skip the pause, for example by calling the tool through another path, it provides no protection.
- Gating everything. If every step asks for approval, reviewers start clicking "approve" without reading. Chapter 10 covers this failure.
Summary
Agents guess, and some guesses cause damage that is hard to reverse. A human checkpoint adds context, accountability, and independent judgment at the point where an action becomes real. Place checkpoints by risk and reversibility, not everywhere.
Exercise
An agent can call search_docs, create_draft_reply, and send_refund. Which would you put behind a human checkpoint, and why?
Show answer
Put send_refund behind a checkpoint. It moves money and is hard to undo. search_docs only reads data, so it needs no approval. create_draft_reply is reversible because the draft can be edited or deleted, so it can run without approval. Sending the draft to a customer would need a checkpoint.