Sub topic 10
Review and approve before publishing
This chapter covers the last step before a draft goes public: a human review that checks what automation cannot. It assumes you have read the earlier chapters on the repurposing prompt and on keeping claims traceable to the source. It also assumes you can read basic Python (3.10 or later) and have the unsupported_numbers check and the repurpose loop from those chapters available.
Why automatic checks are not enough
The unsupported_numbers check finds numbers in a draft that are missing from the source. It does not find a claim that is wrong in words. Suppose the source says "a pilot with 12 customers reduced onboarding time" and the draft says "customers everywhere cut onboarding time". No number differs, yet the draft claims much more than the source does.
Automatic checks narrow the reviewer's attention. They do not replace the reviewer. Treat each check as a way to find the places most likely to be wrong, and treat the human decision as the only thing that moves a draft toward publication.
| Problem | Caught by a script? | Caught by a reviewer? |
|---|---|---|
| Invented statistic | Often | Yes |
| Word limit exceeded | Yes | Yes |
| Overstated claim ("some" becomes "all") | No | Yes |
| Wrong tone for the brand | No | Yes |
| Legal or compliance wording | No | Yes, if they know the rules |
| Missing disclosure or required label | Only if you write a rule | Yes |
| Quote attributed to the wrong person | Rarely | Yes |
What a reviewer checks
Give reviewers a short, fixed checklist. A checklist makes reviews consistent between people and between days. Five questions cover most of the risk:
- Is every claim in the draft present in the source, at the same strength?
- Does every flagged number match the source, or is it removed?
- Do names, titles, dates, and product names match the source exactly?
- Does the draft follow the format spec (length, structure, call to action)?
- Does it sound like the brand, and is it appropriate for this channel?
Questions 1 to 3 are about facts, and the reviewer answers them by comparing the draft with the source side by side. Questions 4 and 5 are about fit. A reviewer who finds a problem in question 1 should fix it or send the draft back, not just note it.
Strength of claims
Models tend to turn hedged statements into firm ones. Watch for these shifts:
- "may" or "can" becomes "will" or "does".
- "some customers" becomes "customers".
- "in our pilot" disappears, so a local result sounds general.
- A correlation ("after the redesign") becomes a cause ("because of the redesign").
- A time frame is dropped ("in Q3" becomes no time frame at all).
When you see one of these, restore the source's wording. Do not accept the stronger version because it reads better.
The review states
A draft should always have an explicit status. A small set of states is enough, and each transition should be something a person does or a rule enforces.
The important edge is approved --> needs_review. If someone changes even one word after approval, the approval no longer describes the text that will be published. The next section shows how to enforce this in code.
A review gate in code
The gate below stores a fingerprint (a SHA-256 hash) of the approved text. The publish check compares that fingerprint with the current text. If they differ, the draft is not publishable. The gate also recomputes unsupported numbers at approval time, because the reviewer may have edited the draft since the first check.
import hashlib
import re
from dataclasses import dataclass, field
from datetime import datetime, timezone
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))
def fingerprint(text: str) -> str:
return hashlib.sha256(text.encode("utf-8")).hexdigest()
CHECKLIST = [
"claims_match_source",
"numbers_verified",
"names_and_dates_match",
"follows_format_spec",
"on_brand_voice",
]
@dataclass
class Review:
format_name: str
draft: str
status: str = "needs_review"
approved_hash: str | None = None
reviewer: str | None = None
approved_at: str | None = None
notes: list[str] = field(default_factory=list)
def edit(review: Review, new_draft: str) -> None:
"""Any edit invalidates a previous approval."""
review.draft = new_draft
review.status = "needs_review"
review.approved_hash = None
review.reviewer = None
review.approved_at = None
def approve(
review: Review,
source: str,
reviewer: str,
answers: dict[str, bool],
accepted_numbers: set[str] | None = None,
) -> None:
accepted = accepted_numbers or set()
missing = [item for item in CHECKLIST if not answers.get(item, False)]
if missing:
raise ValueError(f"Checklist items not passed: {missing}")
remaining = [
n for n in unsupported_numbers(source, review.draft) if n not in accepted
]
if remaining:
raise ValueError(f"Unsupported numbers still in draft: {remaining}")
review.status = "approved"
review.approved_hash = fingerprint(review.draft)
review.reviewer = reviewer
review.approved_at = datetime.now(timezone.utc).isoformat()
def is_publishable(review: Review) -> bool:
return (
review.status == "approved"
and review.approved_hash == fingerprint(review.draft)
)
if __name__ == "__main__":
source = "Webinar attendance rose 42% after the redesign."
review = Review("linkedin_post", "Attendance rose 42% and tripled signups, 3x.")
all_pass = {item: True for item in CHECKLIST}
try:
approve(review, source, "dana", all_pass)
except ValueError as err:
print("Blocked:", err)
edit(review, "Attendance rose 42% after the redesign.")
approve(review, source, "dana", all_pass)
print("Publishable:", is_publishable(review))
review.draft += " Join us!"
print("Publishable after late edit:", is_publishable(review))Running it prints three lines. The first blocks the draft because 3 is not in the source. The second shows Publishable: True after the fix. The third shows Publishable after late edit: False, because the text no longer matches the approved fingerprint.
What `accepted_numbers` is for
Some numbers are legitimate but absent from the source, such as the current year in a call to action or "3" in "three bullets". The reviewer lists these in accepted_numbers. That makes the exception an explicit decision attached to one review, instead of a loosened rule that applies to every draft.
Connecting the gate to the batch loop
The repurpose function from the earlier chapter marks every draft needs_review. Keep that default. Wrap each result in a Review object, and let nothing reach a publishing step unless is_publishable returns True.
def to_reviews(results: dict) -> list[Review]:
return [
Review(format_name=name, draft=info["draft"])
for name, info in results.items()
]
def publish_ready(reviews: list[Review]) -> list[Review]:
return [r for r in reviews if is_publishable(r)]The publishing code should call publish_ready, never read raw drafts. Putting the check in one place means a new channel cannot skip it by accident.
Designing the human process
Code enforces the gate, but the process decides whether the review is real. These points matter most.
Who reviews
Pick a reviewer who can judge the facts, not only the style. For a white paper about security controls, a copy editor can judge tone but may not notice that "encrypted" was swapped for "secure". When the topic is technical or regulated, add a subject-matter expert for question 1 and let marketing handle questions 4 and 5. Avoid having the same person who wrote the prompt be the only reviewer. They know what the draft should say and tend to read past what it does say.
How much to review
Review every draft in full while you are new to a format or a model. Once a format has passed many reviews with few factual fixes, you can lower the effort for low-risk channels, for example by sampling internal newsletters. Keep full review for anything with numbers, customer names, health, finance, or legal claims. Write the rule down so it does not drift.
Reviewer fatigue
Reviewing ten near-identical drafts leads to skimming. Three habits help:
- Put the source claim list next to each draft, so the reviewer compares claims and not impressions.
- Show the flagged numbers at the top of the review screen, so the highest-risk items are seen first.
- Review one format at a time across assets, not all formats of one asset in a row, so the checklist stays fresh.
Record what you changed
Keep notes on why drafts were rejected or edited. After a few rounds the notes show patterns, such as the model always dropping the "in our pilot" qualifier. Add a line about that to the prompt, and the same problem appears less often. Review feedback is the best source of prompt improvements you have.
Edge cases and failure modes
- Source updated after approval. If the original asset is corrected (a figure changes, a quote is withdrawn), every derived draft is stale. Store the source's fingerprint with each review and send drafts back to
needs_reviewwhen it changes. - Regeneration. Regenerating a draft produces a new text, so it must go through
editor create a newReview. Never copy an old approval onto new text. - Number formats. The regex treats
1,000and1000as different strings, and42 percentas42without a percent sign. The check can both over-flag and under-flag, so treat an empty list as "no flags found", not as "verified". - Spelled-out numbers. "Three times" and "half" are not found by a digit regex. The reviewer's checklist covers them.
- Rubber-stamping. If approvals take a few seconds each, the gate is not working. Track time-to-approve and the share of drafts that need changes. A rate near zero for a new format is a warning sign, not good news.
- Silent edits in the publishing tool. Some platforms add tracking links or reformat text. Compare the final published text with the approved text where you can.
Summary of the approach
Automatic checks find likely problems. A named human decides. The decision is attached to a fingerprint of the text, so later edits cancel it. Publishing code reads only drafts that pass the gate. Reviewer notes feed back into the prompt, which reduces the same errors over time.
Exercise
A reviewer approves a LinkedIn draft on Monday. On Tuesday, the social media manager changes "Join us" to "Join us today" and tries to publish. With the gate from this chapter, what happens and why? Name the function that decides it and the data it compares.
Show answer
The draft is not publishable. is_publishable compares approved_hash, the SHA-256 fingerprint stored at approval time, with fingerprint(review.draft) for the current text. The edit changed the text, so the two hashes differ and the function returns False. The manager must send the draft back through review, either by calling edit (which resets the status to needs_review) or by creating a new review for the new text.
Exercise
The source says "In a pilot with 12 customers, onboarding time fell 30%." A draft says "Customers cut onboarding time by 30%." unsupported_numbers returns an empty list. Is the draft safe to approve? Explain, and write a corrected sentence.
Show answer
No. The check passes because 30% appears in the source, but the claim is stronger: the draft drops "in a pilot with 12 customers" and turns a small-sample result into a general one. A reviewer applying checklist question 1 (claims match the source at the same strength) should reject it. A corrected sentence is: "In a pilot with 12 customers, onboarding time fell 30%."
Exercise
Your batch run produces 40 drafts, and reviewers approve all of them within an average of five seconds each. List two signals you would check and one change you would make to the process.
Show answer
Check the share of drafts that needed any change (near zero is suspicious) and the time-to-approve per draft (five seconds is too short to compare claims with a source). Possible change: show the source claim list and the flagged numbers beside each draft, require the reviewer to answer each checklist item separately, and sample-audit a few approved drafts against the source to see whether errors got through.