Sub topic 7
Where to put human review
This chapter assumes you can write a parameterized prompt template, that you know why structured output matters, and that you have seen a workflow chained from several steps. You should also be comfortable reading short Python snippets. Here you decide where a person must look at the work before it moves on, and how to make that look worth the time.
Why review is a design decision
A reusable workflow runs the same steps again and again. That is its value, and it is also its risk. A mistake in a template or an input does not happen once. It repeats on every run until someone notices.
Human review is a checkpoint where a person approves, edits, or rejects an output before the workflow continues. Teams often handle review badly in one of two ways:
- Review everything. Every step ends with a person reading the output. The workflow saves little time, and reviewers start approving without reading.
- Review nothing. The workflow publishes straight to a channel. One bad draft goes public before anyone sees it.
The better approach is to place a small number of checkpoints where an error would cost the most, and to let automated checks handle the rest.
The cost-of-error test
For each step, ask three questions:
- Can the output be undone? A draft in a folder can be deleted. A sent email or a published post cannot be fully recalled.
- Who sees it? An internal summary reaches a colleague. A customer email reaches thousands of people.
- What kind of harm is possible? Consider wrong facts, off-brand tone, legal claims, private data, and offensive wording.
A step that is reversible, internal, and low in harm needs little review. A step that is irreversible, public, or legally sensitive needs a person in front of it.
| Step output | Reversible? | Audience | Review level |
|---|---|---|---|
| Summary of a campaign brief | Yes | Internal | Spot check |
| Draft of subject line options | Yes | Internal | Light, one person picks |
| Newsletter body | No once sent | Public list | Required before send |
| Claim about pricing, results, or health | No | Public | Required, with a named approver |
| Weekly performance report | Mostly | Leadership | Check numbers against the source |
| Content that names a customer or uses personal data | No | Varies | Required, with privacy check |
Use the table as a starting point and adjust it to your own risk. A regulated industry will move more rows to "required".
Three kinds of checkpoint
Not every checkpoint is a person reading a draft. There are three common kinds, and the choice affects how much time review takes.
Approval gate
The workflow stops and waits. Nothing moves forward until a person approves. Use a gate immediately before an irreversible action such as publishing, sending, or updating a live page.
Sampling
The workflow runs on its own, and a person reads a fraction of the outputs after the fact, for example one in ten or the first run of each week. Use sampling for steps with low harm and high volume, such as tagging content or writing alt text for an image library. Sampling catches patterns of error. It does not catch every individual error, so it is not suitable for public-facing content.
Exception review
Automated checks inspect every output. Only the outputs that fail a check go to a person. This is the best use of the validation you built in the structured output chapter. A draft with a subject line over 60 characters, a missing field, or a banned word is routed to a human. A draft that passes goes on.
| Kind | Reads | Best for | Weakness |
|---|---|---|---|
| Approval gate | Every output | Irreversible, public steps | Slow, can cause fatigue |
| Sampling | A fraction | High volume, low harm | Misses single errors |
| Exception review | Only flagged outputs | Rules that can be checked by code | Misses errors no rule covers |
Most real workflows combine them. Exception review filters out obvious failures so the person at the approval gate sees only drafts that are already well formed.
Placing checkpoints in a chain
Consider a weekly newsletter workflow with four steps: summarize the brief, draft the body, write subject lines, and schedule the send.
Three design choices matter here.
- Review late, not early. The summary and subject lines are cheap to regenerate, so the reviewer does not need to read them separately. One review of the final package, placed before the irreversible step, covers the whole chain.
- Review early when errors compound. If the first step extracts facts that every later step depends on, a wrong fact spreads through the chain. For a step that extracts prices, dates, or product names, add an early check, either an exception rule or a short human confirmation.
- Always include a way back. A rejection should send the draft to an earlier step with the reviewer's notes. Without that path, the reviewer ends up rewriting the draft by hand, which defeats the purpose.
Building a gate in code
A gate is a function that blocks until it gets a decision. In production this might be a ticket, a chat message with buttons, or a status field in your content system. The sketch below uses the terminal so you can run it as shown.
import json
def validate(draft):
"""Return a list of problems found by automated checks."""
problems = []
for key in ("subject", "preview_text", "body"):
if not isinstance(draft.get(key), str) or not draft[key].strip():
problems.append(f"Missing or empty field: {key}")
if len(draft.get("subject", "")) > 60:
problems.append("Subject is longer than 60 characters")
if "guaranteed" in draft.get("body", "").lower():
problems.append("Body contains the word 'guaranteed'")
return problems
def human_gate(draft, problems):
"""Show the draft and ask a person for a decision."""
print("--- DRAFT FOR REVIEW ---")
print(json.dumps(draft, indent=2))
if problems:
print("Automated flags:", "; ".join(problems))
decision = input("Approve (a) or reject (r)? ").strip().lower()
if decision == "a":
return {"status": "approved", "notes": ""}
notes = input("Reason for rejection: ").strip()
return {"status": "rejected", "notes": notes}
draft = {
"subject": "Spring service discount starts Monday",
"preview_text": "Book a tune-up before the rush.",
"body": "Our spring discount is here. Book your tune-up today.",
}
problems = validate(draft)
result = human_gate(draft, problems)
print(result)The gate shows the automated flags beside the draft. A reviewer who sees "Subject is longer than 60 characters" knows what to check and does not have to hunt for it.
Notice that the decision is returned as data with a status and notes. The next step can read notes and put them into the redraft prompt. That is how the path back works.
Making review fast and reliable
A checkpoint helps only if the reviewer does a real review. Several practices keep the review honest.
Give the reviewer a checklist
Without a checklist, reviewers read for whatever they happen to notice. A short, fixed list gives consistent results.
- Are all facts, prices, dates, and links correct?
- Does the tone match the brand voice?
- Are there claims that need evidence or legal approval?
- Does the text include private data or names that should not appear?
- Is any required disclosure present, such as a note that AI assisted the draft?
Keep the list to five to eight items. A long list gets skimmed.
Show the source next to the output
A reviewer cannot check a number without seeing where it came from. Display the input brief or data table beside the draft. For a report, show the figures from the analytics export next to the sentence that cites them.
Name the owner
Every gate needs one named person or role. "The team will look at it" means nobody is responsible. State who approves, what the deadline is, and what happens if they do not respond. Choose a safe default: if no one approves, the workflow does not send.
Record decisions
Log who approved, when, which version of the template and model produced the draft, and any edits made. This record helps when a problem is traced back later. It also feeds the evaluation work in a later chapter, because the pattern of rejections shows which step needs fixing.
Failure modes of human review
Review can fail without anyone noticing.
- Rubber-stamping. If 99 out of 100 drafts are fine, reviewers learn to click approve. Counter this by keeping the reviewed volume small, by showing automated flags, and by occasionally inserting a known-bad test draft to check that reviewers catch it.
- Review at the wrong point. A reviewer who sees only the final text cannot tell whether a number was invented or copied from the source. Show provenance, meaning where each fact came from.
- Editing instead of fixing the workflow. If a reviewer makes the same edit every week, such as softening a hype word, the template is wrong. Move that rule into the prompt or into a validation check so the edit disappears.
- Bottlenecks. A single approver who is on holiday blocks the whole schedule. Name a backup.
- Automation bias. People tend to trust text that looks polished. A fluent, confident draft with a wrong statistic is the hardest kind to catch. Ask reviewers to verify claims against the source, not to judge whether the writing sounds right.
Reducing review over time
Review is not permanent at the same level. As you collect decisions, you can measure how often each checkpoint finds a real problem.
- Record the approval rate and the type of each rejection.
- If a step is approved without edits for many consecutive runs, consider moving it from a full gate to sampling.
- If a step produces frequent edits of the same kind, fix the template or add a validation rule.
- Never remove a gate before an irreversible, public, or regulated action just because it rarely fails. A rare failure at that point is the expensive one.
Summary
Place review where errors are costly and hard to undo, usually just before publishing or sending. Use approval gates for irreversible steps, sampling for high-volume low-risk steps, and exception review for anything code can check. Give reviewers a short checklist, the source material, and a clear owner. Record decisions, watch for rubber-stamping, and use the pattern of edits to improve the workflow itself.
Exercise
A workflow produces 200 product-page alt text descriptions each month, and also drafts a monthly promotional email that names discount percentages. Choose a review type for each (approval gate, sampling, or exception review) and give one reason for each choice.
Show answer
Alt text: use sampling, perhaps combined with exception review for length or banned words. The volume is high, each item is low harm and can be corrected later, so reading a fraction finds patterns of error cheaply. Promotional email: use an approval gate before sending, with exception review ahead of it. The email goes to a public list, cannot be recalled once sent, and states discount percentages that must match the approved offer, so a named person must verify the figures against the source.
Exercise
A reviewer notices that every week they change "revolutionary" to a plainer word in the draft. What should the team do, and why?
Show answer
Fix the workflow instead of relying on the edit. Add a rule to the prompt template or brand context that bans hype words, and add a validation check that flags them. The repeated edit shows the template is producing a predictable error, and removing it at the source saves reviewer time and reduces the chance of one being missed.
Exercise
Why does the code example return the decision as a dictionary with a status and notes, rather than a plain true or false?
Show answer
A rejection needs to feed back into the workflow. The notes can be inserted into the redraft prompt so the earlier step knows what to change. A boolean would stop the workflow but give the next step nothing to act on.