A risky task with several writes needs more than one approval at the start: the first write may be fine while the third is wrong, and a single upfront approval cannot see the third write’s details. Chained approvals put a gate before each write, so the approver sees the exact change at each step before it runs. LangGraph’s interrupts pause the graph at a chosen point and wait for a person, which is the mechanism for each gate; the chain is simply several of them, one before each write. Keep the work before each gate read-only, because the node re-runs from the top on resume, and show the approver the exact change, not a summary.
What you need
- A task with two or more write steps, each with its exact change known only at run time
- A person who will answer approval requests at each step
- A durable checkpointer so a paused run survives a restart
Step 1: Place a gate before each write, not just the first
Add an interrupt before every write step, carrying the exact change as its payload: the target, the rows affected, and the values. A gate after the write is decoration, not control.
Step 2: Show the exact change at each gate
Surface each gate’s payload to the approver and wait for a decision before that write runs. Approve runs the write; reject skips it and routes the run elsewhere.
Step 3: Test the chain by rejecting the middle write
Run the task, approve the first write, reject the second, and confirm the first write landed, the second did not, and the run handled the rejection cleanly. If the second write lands anyway, its gate is in the wrong place.
Worked example: synthetic approval chain check
The table below is a synthetic example. It shows the expected result of chained approvals; no write was made.
| Write step | Gate before it? | Decision |
|---|---|---|
| Update the order | Yes | Approved, ran |
| Issue the refund | Yes | Rejected, skipped |
| Send the confirmation | Yes | Not reached |
| No write runs unapproved | Yes | Pass |
Expected result (UNTESTED). the first write runs on approval, the second is skipped on rejection, and no write runs without its own gate. This check was not run live; the table shows the expected result for the synthetic example.
Limits
- A chain of gates means a chain of waits: a slow approver slows the whole task.
- The paused node re-runs from the top on resume, so work before each gate must be safe to repeat.
- An approval at one step does not cover the next step, even when the steps look alike.
- A gate nobody answers is a stuck run, so give each gate an expiry that ends as a no.
