Sub topic 10
Review and approve before publishing
This chapter assumes you can write prompts for a chat model and have read the earlier chapters on the core message, format specs, and the repurposing prompt. Python helps for the code, but the review process works without it.
A model can produce a fluent draft that contains a claim your source never made. Fluency hides this error. Automatic checks catch some problems, and a person must catch the rest before anything goes public.
What automatic checks can and cannot do
Automatic checks are cheap and fast, so run them first. They narrow the reviewer's attention to the likeliest problems.
The number check from the previous chapter lists every figure in a draft that does not appear in the source:
import re
def numbers_in(text: str) -> set[str]:
return set(re.findall(r"\d+(?:[.,]\d+)*%?", text))
def unsupported_numbers(source: str, draft: str) -> list[str]:
return sorted(numbers_in(draft) - numbers_in(source))This check has limits. It cannot see a wrong claim that contains no number, such as "customers love the new dashboard" when the source never says so. It also flags harmless differences. A draft that writes "three" where the source says "3" passes, while "1,200" against "1200" is flagged. Treat its output as a list of places to look first, not as a verdict.
| Check | Catches | Misses |
|---|---|---|
| Word count | Drafts over the spec's limit | Weak or off-topic content |
| Unsupported numbers | Invented statistics, altered figures | Invented claims without numbers |
| Human review | Tone, context, subtle claims | Nothing, if the reviewer is careful and has the source |
A review checklist
Give the reviewer the source, the core message, and the draft side by side. Then ask them to work through the same list every time:
- Is every number, name, date, and quote present in the source?
- Does any sentence claim more than the source does? Watch for words such as "always," "proven," "best," and "guaranteed."
- Does the draft carry the core message, not a different one?
- Does it match the brand voice?
- Does it follow the format spec: length, structure, and call to action?
- Does it contain anything legal or compliance should see, such as health, financial, or comparative claims?
If a draft fails item 1 or 2, do not patch it by hand. Fix the prompt or the source notes and regenerate, so the same error does not return in the next batch.
Make approval an explicit state
The batch loop from the earlier chapter marks every draft needs_review. Keep that rule. A draft should reach approved only when a named person changes it.
from datetime import datetime, timezone
VALID_STATUSES = {"needs_review", "approved", "rejected"}
def set_status(result: dict, status: str, reviewer: str, note: str = "") -> dict:
if status not in VALID_STATUSES:
raise ValueError(f"Unknown status: {status}")
if status == "approved" and result["unsupported_numbers"]:
if not note:
raise ValueError("Explain why flagged numbers are acceptable")
result["status"] = status
result["reviewer"] = reviewer
result["note"] = note
result["reviewed_at"] = datetime.now(timezone.utc).isoformat()
return resultThe function refuses to approve a draft with flagged numbers unless the reviewer writes a reason. This leaves a record of who approved what and why. If a claim causes a problem later, you can trace it.
Note that the diagram below shows the full flow.
Common errors
- Reviewing without the source. A reviewer who sees only the draft judges how it sounds, not whether it is true.
- Trusting the automatic check. A clean number check means no invented figures were found. It does not mean the draft is accurate.
- Fixing drafts by hand and nothing else. The next batch repeats the same mistake.
- Approving in bulk. Reviewing twelve drafts in one pass leads to skimming. Review each format against its own spec.
Exercise
A draft LinkedIn post passes the unsupported-numbers check with an empty list, but it says "Our customers see faster results than with any competing tool." The source never mentions competitors. Should you approve it, and what should you change?
Show answer
Do not approve it. The number check only compares figures, so it cannot detect an unsupported comparative claim. Reject the draft, then regenerate after tightening the prompt (for example, "Do not compare to competitors unless the source does"). Also add comparative claims to the reviewer checklist, as they may need legal review.