A loop between a writer model and a reviewer model has two bad endings. In one, the reviewer approves everything and the loop is decoration. In the other, the reviewer never approves and the pipeline spins, spending money, until something times out. Every gate in the article pipeline is a pair of decisions: what makes it fail, and what happens when it has failed for the last allowed time.

The gates at a glance

A table with four columns: gate, fails when, then, and where the loop stops. Research citation gate, under the GEO flag: fails with fewer than 3 sources outside the brand's own site, or any claim without a source, or too few competitors covered in a comparison article; then the citation mapping runs again over the same research; after 2 retries the uncited claims are rewritten as hedged statements and the pipeline continues, flagged as hedged. Review team: fails when the fact checker marks a claim incorrect or the editor's score is under 6 of 10; then the writer gets a revision guide with required fact fixes first; draft version 5 passes automatically. Five deterministic rules: fail on a number without a source, a title that does not carry the question's terms, and three structure and style rules; this forces a rewrite; only below version 3, after which the report is kept and no longer blocks. Fabrication check, under the GEO flag: fails on a statement that traces to no citation in the source inventory; it blocks; it is never auto-passed, and at the cap the untraceable text is removed or hedged. Final review: fails with a quality score under 5; then back to the team; draft version 6 is approved automatically.
Figure 1. Five gates. Each has a failing condition, a consequence, and a ceiling. The ceilings differ on purpose: style may be let through, a statement with no source may not.

The research citation gate

The strict article mode puts a gate between research and writing. Its position is the point: a writer that is handed weak research will write a confident article from it, and no review afterwards fully undoes that.

After the web research, the node asks a model to map the findings to citations through a forced tool call, so the answer is a list of claims with a source URL on each. Each URL is fetched. Then the gate is evaluated.

def _evaluate_gate(*, claims, inventory, competitor_mentions, article_type, required_competitors):
    reasons: list[str] = []
    external_authority = sum(1 for r in inventory if not r.is_first_party)
    if external_authority < _MIN_EXTERNAL_AUTHORITY:
        reasons.append(f"external_authority={external_authority}<{_MIN_EXTERNAL_AUTHORITY}")
    uncited = [c for c in claims if not str(c.get("source_url") or "").strip()]
    if uncited:
        reasons.append(f"uncited_claims={len(uncited)}")
    if article_type in ("ranked_list", "comparison") and required_competitors:
        covered = len({c for c in competitor_mentions if c})
        if covered < required_competitors:
            reasons.append(f"competitor_context={covered}<{required_competitors}")
    return (not reasons), reasons

Type annotations are removed to fit. All three conditions are counts.

ConditionWhy
At least three sources that are not the brand’s own siteAn article sourced only from the brand it promotes is an advertisement
No claim without a sourceA claim the model could not attach to a URL is the likeliest to be invented
Enough competitors covered, for ranked lists and comparisonsA comparison that names one product is not one

The gate returns its reasons as strings, and they are stored in the state. A failed run says why it failed.

The ceiling. The citation mapping and the gate run up to three times over the same research data and sources: once, and two retries. The web research itself is not repeated. If the gate still fails, the pipeline continues in hedge mode.

hedged_research_data = research_data
hedged = False
if not passed:
    hedged_research_data = _apply_hedge_mode(research_data, claims)
    reasons = [*reasons, "hedge_mode_applied"]
    passed = True  # hedge-mode unblocks the pipeline (G-3) — no infinite retry
    hedged = True

Hedge mode rewrites each uncited claim so that it is stated as a report and not as a fact, and sets a flag. The flag travels. The fact checker downstream reads it and applies extra scrutiny to an article whose research was hedged.

There is a second, blunter guard. If the gate flag is still false when the graph reaches the edge after research, because the node crashed before hedging, the edge ends the team. The writer is never called on research that did not pass.

The review team

In the default mode every draft goes to three reviewers at once.

ReviewerModelLooks at
Fact checkerThe other vendor from the writer, with claims verified through web searchUp to six checkable claims: numbers, dates, names, statistics
EditorClaudeFlow and readability, as a score out of ten
SEOGPTSearch structure, as a score out of ten

The strict mode runs a different team: a fabrication audit on a fixed Claude model in the fact checker’s place, a GEO reviewer in the SEO reviewer’s place, and the same editor. There a draft passes when the fabrication gate, the GEO gate, the editor’s brand gate and the deterministic rules all pass.

In the default mode the decision uses two of the three reviewers.

# Auto-pass after 4 revisions to prevent infinite loops
if draft_version >= 5 and not passed:
    logger.warning(f"Auto-passing after {draft_version} revisions")
    passed = True

# Calculate composite score
fact_penalty = (
    len([i for i in fact_issues if i.get("verdict") in ("incorrect", "unverifiable")]) * 1.5
)
seo_score = seo_result.get("seo_score", 7)
raw_score = (editor_score * 0.5 + seo_score * 0.2 + 8 * 0.3) - fact_penalty
score = max(1, min(10, round(raw_score)))

Before this block, the draft fails if any fact issue is marked incorrect, or failing that if the editor’s score is under 6. The SEO score never fails a draft by itself. It contributes to the composite score that is stored with the article.

The two fact verdicts are treated differently. incorrect fails the review, and the correction goes to the writer as a required fix. unverifiable does not fail it. It costs a point and a half each on the score and produces a line in the revision guide telling the writer to hedge the statement or remove it. The reviewer could not prove the claim wrong, so the draft is not blocked, and the claim is not left standing as it was.

The ceiling. At draft version 5 a failing draft is passed. The outer graph’s final review has its own, at version 6.

Five rules that are not a model

The third gate uses no model at all. Five rules are checked by plain code on every blog draft.

Rule in the codeWhat it is about
numbers_sourcedNumbers in the text carry a source
title_question_termsThe title contains the terms of the question the article answers
answer_unitThe first sentence under each heading is a direct answer
contrastive_negationThe “not X, but Y” construction
em_dashThe em dash

These rules were vendored from TRAIL Search in October 2026, where they are the product’s own content rules.

Being deterministic, they give the same verdict every time, which makes them cheap and makes their loop dangerous: a writer model that cannot satisfy a rule will fail it identically on every attempt. So their ceiling is lower than the model reviewers’. A rule failure forces a rewrite only while the draft version is below 3. From version 3 the rules still run and their report is still saved with the article, and they no longer block.

The fabrication check

In strict mode a fabrication audit takes the place of the legacy fact checker. It audits the draft against the source inventory built during research and returns every statement that traces to no citation. The legacy claim extraction and web verification do not run in this mode.

This gate has the one ceiling that is not a pass. At draft version 5, where every other failure is let through, text with no source is not. It is scrubbed: removed, or rewritten as hedged where it was marked hedgeable. Then the draft passes.

Letting a clumsy paragraph through at the fifth draft costs the reader some patience. Letting an invented statistic through costs the brand its credibility.

Tests

The gates are pure functions over state, which makes them the best-tested part of the pipeline.

TestAsserts
test_gate_fails_below_min_external_authorityTwo outside sources are not enough
test_first_party_sources_dont_count_toward_external_authorityThe brand’s own pages do not count
test_gate_fails_on_uncited_claimOne claim without a URL fails the gate
test_gate_ignores_competitor_requirement_for_non_ranked_typesThe competitor rule applies to comparisons only
test_run_geo_research_retries_twice_then_hedgesThe ceiling is two retries, then hedge mode
test_apply_hedge_mode_softens_only_uncited_claimsCited claims are left as written
test_research_gate_blocks_writer_when_gate_falseThe graph edge ends the team
test_rules_force_rewrite_only_below_v3The deterministic rules stop blocking at version 3
test_run_geo_review_fabrication_auto_pass_exemption_scrubs_at_capAt the cap, untraceable text is scrubbed, not passed
test_run_geo_review_fabrication_blocks_below_capBelow the cap it blocks
test_research_node_on_off_only_differ_in_geo_keysWith the flag off, output differs only in the strict-mode keys

Failure modes

What happensWhat the system does
Research finds too few outside sourcesThe citation mapping is retried twice over the same research, then the claims are hedged and flagged
The research node crashes before hedgingThe graph edge ends the team without writing
The fact checker’s output cannot be parsedTreated as no issues found
A reviewer raisesIts result is replaced by a neutral default and the others decide
A rule can never be satisfied by the writerIt stops blocking at version 3
The review never passesAuto-passed at version 5, with fabricated text scrubbed first in strict mode

Limits

  • The model reviewers fail open. A fact checker that crashes or returns unparseable output counts as finding nothing. The run continues, and that draft was not fact-checked.
  • Auto-pass is a compromise. A draft that failed four reviews is published as passing. The stored score and the review feedback show it, and nothing stops it.
  • The strict gates are behind a flag. The research gate and the fabrication check exist only in strict mode, which is off by default.
  • The legacy auto-pass has no test of its own. The strict-mode ceiling is tested. The original one is covered only by reading it.