Sub topic 2
Why agents need human checkpoints
This 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 covers the reasons, so you can judge when a checkpoint is worth its cost.
What a checkpoint is
A human checkpoint is a point in a workflow where the agent stops before an action, shows a person what it intends to do, and continues only after that person decides. The agent does not guess. It waits.
A checkpoint differs from a log or an alert. A log tells you what happened afterward. An alert tells you something is wrong. A checkpoint sits before the action and can prevent it.
Why agents need them
An agent chooses its own actions at run time. You wrote the loop, but you did not write the exact sequence of tool calls. Four properties of agents make that a problem when the actions have side effects.
Models make confident mistakes
A language model produces plausible output, and plausible output is sometimes wrong. It can pick the wrong record, misread an instruction, or fill in an argument it was never given. The tone of a wrong answer is the same as the tone of a right one. The agent will not reliably warn you.
For a read-only tool, a wrong call costs a little time. For a tool that sends an email or deletes a record, a wrong call changes the world.
Errors compound over many steps
An agent runs a loop of many steps, and each step builds on earlier ones. If step 2 misreads a customer ID, steps 3 to 8 may act on the wrong customer. Small error rates add up over long runs. A checkpoint before the first irreversible step stops the chain at the point where a person can still intervene cheaply.
Some actions cannot be undone
Reversibility is the main reason to add a checkpoint. If a mistake can be fixed with one more tool call, such as renaming a draft, the cost is low. If it cannot be fixed, the cost is whatever the action did.
- A sent email cannot be recalled in general.
- A payment may be refundable, but only with delay, fees, and a support process.
- A deleted record may exist in a backup, but restoring it takes effort and may lose newer data.
- A message posted to a public channel has already been read.
Agents read untrusted text
An agent often reads content it did not write: web pages, emails, documents, tool results. That content can contain instructions aimed at the model. This is prompt injection. The agent may treat the text as a command and call a tool the user never wanted. A human checkpoint on risky tools gives a reviewer a chance to notice that an action does not match the user's request. Chapter 13 covers this in detail. For now, remember that the model's decision to call a tool is not proof that the user wanted it.
Where the checkpoint sits
The checkpoint goes between the model proposing a tool call and the system executing it. The model only proposes. Your code decides whether to run.
This placement matters. If the check lives inside the prompt ("ask the user before sending email"), the model can forget or be talked out of it. If the check lives in the code that executes tools, no model output can skip it.
What a checkpoint buys you
A checkpoint gives you four things.
- Error prevention. A person catches the wrong recipient or the wrong record before it is used.
- Accountability. A named person made the decision, and you can record it. Chapter 12 covers audit trails.
- Containment. If the agent is manipulated or confused, the damage stops at the gate.
- Trust. Teams often will not deploy an agent with write access unless a person stays in control of the risky parts. A checkpoint can be what makes deployment acceptable.
What a checkpoint costs
Checkpoints are not free, and a design that ignores their cost fails in practice.
- Latency. A run that took seconds now waits minutes or hours for a person.
- Reviewer time. Every approval consumes attention from someone with other work.
- Complexity. The workflow must pause, store state, and resume. Chapter 7 covers this.
- Attention decay. If a reviewer sees too many requests, they approve without reading. This is approval fatigue, and it turns a safety control into a formality. Chapter 10 covers it.
The goal is not to approve everything. The goal is to put checkpoints where the expected harm of a mistake is higher than the cost of asking.
A rough decision rule
Ask three questions about each tool.
| Question | Low concern | High concern |
|---|---|---|
| Can the effect be undone? | Yes, by a simple call | No, or only with a costly process |
| Who is affected? | Only the user's own draft data | Customers, outsiders, or shared systems |
| How wide is the effect? | One record | Many records, or a broadcast |
A tool with high concern in any row is a candidate for approval. A tool with low concern in every row can usually run without one. The next chapter turns this into a classification scheme. Cost, secrets, and legal duties can add more rows.
A worked example
Consider a support agent with three tools.
from dataclasses import dataclass
@dataclass(frozen=True)
class ToolCall:
name: str
args: dict
TOOLS = {
"search_docs": "Reads the knowledge base. Read-only.",
"send_email": "Sends a message to a customer. Cannot be recalled.",
"delete_record": "Removes a customer record. Hard to restore.",
}A customer writes: "I was charged twice. Please fix it." The agent searches the documentation, which is harmless. It drafts a reply and prepares this call:
call = ToolCall(
name="send_email",
args={"to": "[email protected]", "body": "Your refund of $450 is approved."},
)
print(call)The agent has no authority to approve refunds. The model wrote the sentence because it sounded helpful. Without a checkpoint, the customer now holds a written promise of $450. With a checkpoint, a reviewer sees the draft, notices that the refund was never authorized, and rejects it with a reason. The reason returns to the agent, which can then rewrite the reply to say the case is under review.
Searching the docs ran with no human involved. Only the call with an outside effect paused.
Common mistakes
- Gating everything. Reviewers stop reading, and the checkpoint gives false confidence.
- Gating nothing, then adding alerts. Alerts arrive after the action, so they cannot prevent it.
- Putting the rule in the prompt. The model can ignore or forget it, or be manipulated into skipping it.
- Judging by tool name only. The same tool can be harmless with one argument and harmful with another.
send_emailto the user's own address differs fromsend_emailto a mailing list. Later chapters on policy rules handle this. - Treating approval as a fix for a bad design. If an agent should never delete records, remove the tool. A human click is a weaker control than not granting the capability.
Key points
- An agent chooses its own tool calls, and models can be confidently wrong.
- Errors compound across steps, and some actions cannot be undone.
- Untrusted text can steer the agent, so a tool call is not proof of user intent.
- Place the checkpoint in the code that executes tools, between proposal and execution.
- Use checkpoints where the harm from a mistake outweighs the cost of waiting for a person.
Exercise
An agent has these tools: list_invoices (reads invoices), create_draft_reply (saves a draft that only the user sees), and send_bulk_notice (emails all customers). Which should require approval, and which of the three decision questions (undo, who is affected, how wide) justifies your answer for each?
Show answer
Only send_bulk_notice needs approval. It fails all three questions: a sent email cannot be recalled, it affects outside customers, and it reaches many people at once. list_invoices is read-only, so it has no effect to undo. create_draft_reply is easy to undo by deleting the draft, it affects only the user's own data, and it touches one item. Both can run without a checkpoint.
Exercise
A teammate proposes adding "Always ask the user for confirmation before deleting anything" to the system prompt instead of writing a gate in code. Give two reasons this is weaker, and name one case where the prompt approach fails even though the model is behaving normally.
Show answer
First, the model may forget or misapply the instruction, especially late in a long run. Second, injected text in a document or web page can tell the model to skip confirmation, and the model may follow it. A failure with normal behavior: the model believes it has already received confirmation, for example because a tool result or retrieved document contained the words "user confirmed", so it deletes without asking. A gate in the execution code does not depend on what the model believes.
Exercise
Why is an alert sent after an agent emails a customer not a substitute for a checkpoint?
Show answer
An alert reports the action after it has happened. The email cannot be recalled, so the alert cannot prevent the harm. A checkpoint acts before execution and can stop the action.