Sub topic 1
The draft-and-approve pipeline at a glance
Prerequisites
This chapter assumes basic experience prompting a large language model, familiarity with writing and publishing workflows, and the ability to read simple Python. The goal is not to automate the publishing decision. The goal is to make drafting faster while keeping responsibility for publication clear.
The draft-and-approve pipeline at a glance
A draft-and-approve pipeline separates creation from authorization. A model produces a first draft from a controlled brief. Automated checks find obvious problems. A qualified reviewer evaluates the draft, requests changes or approves it, and a publishing control releases only the approved version.
| Stage | Main owner | Output |
|---|---|---|
| Brief | Content lead | Audience, purpose, sources, constraints |
| Draft | AI model and author | Unapproved text |
| Review | Independent reviewer | Feedback or approval |
| Publish | Publishing system | Approved content |
Writing a brief the model can work from
A brief is the input contract for drafting. State the intended audience, purpose, format, required sources, facts that must be preserved, prohibited claims, and acceptance criteria. Include the boundaries of the task, such as word count and tone. Link to authoritative source material instead of asking the model to guess.
A useful brief also identifies uncertainty. Mark facts that require checking and distinguish them from suggestions. This gives the reviewer a concrete basis for judging the result.
Generating a first draft
Treat model output as a proposal, not evidence of correctness. Give the model the brief and ask it to follow the constraints. Preserve the prompt, model version, source set, and generated text so another person can reproduce the attempt.
Run cheap checks before review. These can detect missing sections, banned phrases, placeholders, invalid links, and length violations. They reduce mechanical work, but they cannot establish that claims are true or that the content serves its audience.
> callout note > Never let a successful automated check count as human approval. Checks filter drafts; reviewers make decisions.
Modeling content as states and transitions
Represent each item with explicit states: DRAFT, IN_REVIEW, CHANGES_REQUESTED, APPROVED, and PUBLISHED. Allow only documented transitions. For example, an item can move from IN_REVIEW to APPROVED or CHANGES_REQUESTED, but it cannot jump directly from DRAFT to PUBLISHED.
Store the actor and timestamp for every transition. Approval should record the exact version reviewed. If the text changes afterward, the item must return to review.
Exercise
Why should publication require the same text that the reviewer approved?
Show answer
Otherwise an approved decision could be attached to unreviewed changes.