Sub topic 1
The draft-and-approve pipeline at a glance
An AI model can write a first draft in seconds. Deciding whether that draft is accurate, on-brand, and safe to publish still takes a person. This chapter gives you the map for the rest of the tutorial: the stages a piece of content passes through, who owns each stage, and where the controls sit. The later chapters build each part in detail.
Prerequisites
This chapter assumes the following:
- You have prompted a large language model (LLM) and know that its output can be fluent and wrong.
- You know a basic content workflow: someone writes, someone edits, someone publishes.
- You can read simple Python. The code examples use dataclasses, lists, and f-strings.
You do not need any workflow software. The examples use plain Python so the ideas stay visible.
Why a pipeline instead of "generate and post"
The simplest setup is to prompt a model and paste the result into your publishing tool. This works until it fails once in public. The failures come from the following sources:
- Fabricated facts. The model states a price, date, or quote that no source supports.
- Tone and policy drift. The text makes promises your organization does not make, such as "guaranteed results".
- Unclear ownership. Nobody can say who decided that a given text was fit to publish.
- Silent edits. Someone changes the text after it was checked, and the checked version is no longer the published one.
A pipeline addresses these by splitting the work into named stages. Each stage has an owner, an input, an output, and a rule about what may happen next. The model does the cheap, fast part. People keep the decisions that carry accountability.
The stages and who owns them
The table lists the stages in order. "Owner" means who is responsible for the stage's output, not necessarily who does the typing.
| Stage | Owner | Input | Output |
|---|---|---|---|
| Brief | Requester or editor | A content need | A written brief: audience, purpose, sources, constraints |
| Draft | AI model | The brief | A first draft |
| Pre-checks | Automated rules | The draft | A list of mechanical problems, possibly empty |
| Review | Reviewer (a person) | Draft and rubric | Approve or request changes, with notes |
| Revise | Author or editor | Reviewer notes | A new version, which goes back to review |
| Approve | Approver (a person) | A reviewed version | A recorded approval tied to that exact text |
| Publish | Publishing system | An approved version | Live content |
| Measure | Process owner | The audit log | Metrics and process changes |
Two things are worth noticing. First, the model owns only one stage. Everything before and after it is either human judgment or deterministic software. Second, the audit trail is not a stage of its own. Every stage writes to it.
The flow as a diagram
Content does not move in a straight line. A rejected draft loops back, and a draft that fails pre-checks never reaches a reviewer.
Read the diagram for the rule it enforces: the only arrow into "Publish" comes from an approval. There is no shortcut from "AI draft" or "Revise" to "Publish". Much of the tutorial is about keeping that true when people are busy.
Where human judgment belongs
Not every step needs a person. A useful way to decide is to ask what kind of judgment the step requires.
- Mechanical judgment can be automated. Does the text contain a TODO marker? Is a banned phrase present? Is a required disclaimer missing? Rules check these cheaply and consistently.
- Contextual judgment needs a person. Is this claim true for our product? Does this tone suit a customer who just had an outage? Would legal be comfortable with this sentence?
- Accountable judgment needs a person with the right authority. Someone must be able to say "I approve this" and have that statement recorded and attributable.
Automation can shrink the reviewer's workload, but it cannot hold accountability. An automated check that passes means "nothing mechanical was found", not "this is good". Later chapters return to this difference, because confusing the two is a common route to rubber-stamping.
A minimal model of the pipeline
Before you build the real state machine in a later chapter, it helps to write the pipeline down as data. The next example lists the stages, marks which ones are gates (points where progress needs a human decision), and checks that no gate is owned by a machine.
from dataclasses import dataclass
@dataclass(frozen=True)
class Stage:
name: str
owner: str # "person", "machine", or "system"
gate: bool # True if progress requires a recorded human decision
PIPELINE = [
Stage("brief", "person", False),
Stage("draft", "machine", False),
Stage("pre_checks", "system", False),
Stage("review", "person", True),
Stage("approve", "person", True),
Stage("publish", "system", False),
]
def gates(pipeline):
return [stage.name for stage in pipeline if stage.gate]
def validate(pipeline):
problems = []
for stage in pipeline:
if stage.gate and stage.owner != "person":
problems.append(f"gate '{stage.name}' is not owned by a person")
return problems
print(gates(PIPELINE))
print(validate(PIPELINE))Running this prints ['review', 'approve'] and then []. If you change the owner of approve to "machine", validate reports the problem. This is a small example of a larger habit: write the rules of the process as something you can check, not only as a policy document.
What makes an approval meaningful
Having an approval step is not enough. An approval is meaningful only when it meets four conditions. The remaining chapters of the tutorial implement each one.
- Independence. The approver is not the author. A person who checks their own work is much less likely to see its flaws.
- Specificity. The approval applies to one exact version of the text. If the text changes afterward, the approval no longer counts.
- Criteria. The reviewer checks against a written rubric, not a vague sense that the text "looks fine".
- Record. The system keeps who approved what, and when, in a log that cannot be quietly rewritten.
The second condition catches many real incidents. A draft is approved on Monday, an editor tidies a sentence on Tuesday, and the Tuesday version goes live without anyone looking at it. Tying approval to the exact text, for example by storing a hash of the approved version, makes that failure impossible to do by accident.
Scaling effort to risk
A weekly newsletter blurb and a statement about drug dosage should not get the same review. If every item gets the heaviest process, reviewers are overloaded and start approving without reading. If every item gets the lightest process, high-risk content slips through.
A common answer is to assign each item a risk tier at the brief stage and let the tier set the number of required approvals and which reviewer roles are involved. A low-risk item might need one reviewer. A high-risk item might need two independent approvers, one of them a subject expert. The tiering chapter covers how to choose tiers and avoid gaming them.
Common errors when setting up a pipeline
- Treating the model as the author of record. The model has no accountability. A named person must own each item, even when the model wrote every word.
- Putting the only gate at the end. If the first human sees the draft right before publishing, there is pressure to wave it through. Place checks earlier too, such as automated pre-checks right after drafting.
- Letting approval be implicit. "Nobody objected" is not an approval. Require an explicit, recorded action.
- Allowing edits after approval without re-review. Any change after approval invalidates it.
- Measuring nothing. Without simple numbers such as turnaround time and how often drafts need changes, you cannot tell whether the process helps or only adds delay.
How the rest of the tutorial fits together
The chapters follow the order of the pipeline and then widen out.
- Input side: writing a brief the model can work from, then generating the draft.
- Control side: modeling content states, placing approval gates, and defining reviewer roles and separation of duties.
- Quality side: automated pre-checks, a written rubric, and the revision loop.
- Record and release: the audit trail and publish control tied to approval.
- Tuning: risk tiers, review failure modes, and workflow metrics.
Keep the pipeline diagram in mind as you read. Each later chapter zooms in on one box or one arrow.
Exercise
A teammate proposes this shortcut: after a draft passes the automated checks, the system publishes it automatically, and a human reviews it afterward. Which of the four conditions for a meaningful approval does this break, and what is the risk?
Show answer
It breaks the requirement that approval comes before publishing, and with it the rule that the only path into "Publish" is an approval. A passing automated check means only that no mechanical problem was found. It says nothing about accuracy, tone, or policy. Content with a factual error or an unsupported promise would be live before anyone accountable had judged it, and the later human review could only find the problem after the damage. The fix is to keep the human approval as a gate ahead of the publish step, and to use the automated checks only to reduce the reviewer's workload.
Exercise
Using the Stage dataclass from the chapter, add a "legal_review" stage owned by a person that is a gate, insert it between "review" and "approve", and state what validate(PIPELINE) returns.
Show answer
Insert Stage("legalreview", "person", True) between the review and approve entries in the PIPELINE list. validate returns [] because every gate is owned by a person. The gates function would then return ['review', 'legalreview', 'approve'].