AI Publisher: 5-Agent Article Generation Pipeline and Quality Gates

The AI Publisher is a production-grade multi-agent autonomous authoring system engineered to produce deep, authoritative, and factually grounded technical knowledge articles (>1,500 words). Rather than relying on single-shot LLM generation—which suffers from hallucinations, shallow bulleting, and missing citations—the AI Publisher coordinates specialized agents across five rigorous sequential quality gates.

This guide details the pipeline architecture, agent role specifications, inter-agent state contracts, and automated verification gates.


1. Quick-Reference: 5-Stage Agent Pipeline

+-----------------------------------------------------------------------------------------+
|                               AI PUBLISHER QUALITY GATES                                |
+-----------------------------------------------------------------------------------------+
| Stage & Agent          | Input Contract                    | Output Verification Gate   |
+------------------------+-----------------------------------+----------------------------+
| 1. Discovery Agent     | Topic taxonomy & search feedback  | Approved Topic Proposal    |
| 2. Researcher Agent    | Approved topic proposal           | Verified Source Dossier    |
| 3. Outliner Agent      | Research dossier & user intent    | Structured H1/H2 Blueprint |
| 4. Author Agent        | Blueprint + research dossier      | Full Draft (>1,500 words)  |
| 5. Verifier Agent      | Full draft + metadata             | Final Published Article    |
+-----------------------------------------------------------------------------------------+

2. Agent Role Specializations & Invariants

Agent Pipeline State Machine:
[ Discovery ] -> (Slug & Cluster) -> [ Researcher ] -> (Citations & Data) -> [ Outliner ]
                                                                                   |
                                                                                   v
[ Published Page ] <- (Zero Broken Links) <- [ Verifier ] <- (Prose >1.5Kw) <- [ Author ]

The Verifier Gate Invariants

Before writing to the live database, the Verifier Agent enforces:

  1. Word Count Ceiling/Floor: Minimum 1,000 words for deep-dive articles.
  2. KaTeX & Markdown Syntax: All currency symbols escaped (\$50), zero malformed math blocks.
  3. Broken Link Audit: All outbound links resolved against the live page catalog.