Critic loop: draft, review against a rubric, revise within a cap

A critic loop has one model draft an answer and a reviewer check it against a rubric, with a capped number of revisions. Use it when quality is checkable and a first draft is often wrong.

Critic loop in 60 seconds

  • What: a writer step drafts, a reviewer step scores the draft against a rubric, and failed drafts go back with comments.
  • Who decides the path: a reviewer. Your code only enforces the round cap and the pass rule.
  • Best for: outputs with checkable quality, such as replies that must follow policy, summaries that must match sources, or code that must pass tests.
  • Weak spots: vague rubrics, reviewers that agree with everything, and loops that polish a draft that was wrong from the start.
  • Origin: Self-Refine (Madaan et al., 2023) showed one model can draft, critique, and refine without extra training.

Where this type fits

In the orchestration patterns hub, patterns are grouped by who decides the path. In a pipeline, router, fan-out, or state graph, your code decides. In a single agent, supervisor, or peer handoff, a model decides. The critic loop belongs to its own family: a reviewer decides whether the work moves on or goes back. Your code supplies the guard rails, which are the rubric, the round limit, and the exit rules.

The problem it solves

A model that answers in one pass has no second look. It writes the first plausible thing, and if that thing contains a wrong number, a missed requirement, or a tone that breaks policy, the error goes straight to the user. Humans avoid this by reviewing their own work, or having a colleague do it. Without a review step, quality depends entirely on how lucky the first draft was.

You could ask the writer to be more careful in the prompt, and that helps a little. But the same call that writes the draft is poorly placed to judge it. It has already committed to a line of reasoning, and it tends to defend it. A separate call, with a different job and a different prompt, looks at the finished text fresh. Its only task is to find what is wrong against a stated list of criteria.

The second problem is control. If you simply say 'improve this until it is good', nothing stops the loop, and nothing defines good. A critic loop turns that vague wish into a contract: a rubric of specific checks, a pass rule, and a hard cap on rounds. That contract is what makes the pattern safe to run in production.

How it works

  • Receive the task: the input, plus any source material the draft must respect.
  • Draft: the writer produces a first version. It sees the task and the rules, but not the rubric scores yet.
  • Review: the reviewer gets the task, the draft, and the rubric. It returns a structured verdict: a pass or fail for each criterion, a short comment for each failure, and an overall decision.
  • Decide: if every required criterion passes, the draft is the output. If not, and rounds remain, go to the next step. If no rounds remain, stop.
  • Revise: the writer receives its draft and the reviewer's comments, and produces a new version. Return to the review step.
  • Exit safely: when the cap is reached, return the best draft so far and flag it for a person instead of pretending it passed.
The writer and reviewer alternate until the draft is approved or the round cap is reached.

The diagram shows two roles, not two models. They can be the same model with different prompts, or a stronger model reviewing a cheaper writer. What matters is that the reviewer has a different instruction and sees the draft as finished work. The dashed return arrow is the only loop, and it is bounded. The warning box is the exit that most first versions forget.

Research supports the basic idea. Self-Refine (Madaan et al., 2023) has one model draft, critique its own output, and refine it in a loop, with no extra training. Multiagent debate (Du et al., 2023) takes a related route, where several model instances propose answers and debate them over rounds to reach a common answer. The critic loop is the simpler, more controllable cousin: one writer, one reviewer, one rubric.

A worked example

Acme sells subscriptions. A customer writes: 'I was charged twice this month. I want my money back today.' Acme's policy says duplicate charges are refunded within 5 working days, the reply must name the refund amount, and it must not promise a same-day refund. The writer receives the ticket, the policy text, and the billing record showing two charges of 24.00.

Round 1. The writer drafts: 'Sorry about that. We will refund the extra 24.00 within 24 hours.' The reviewer checks four criteria and returns the verdict below. The draft fails because it promises 24 hours, which contradicts the policy of 5 working days.

Reviewer verdict for round 1 (illustrative) (json)
{
  "criteria": {
    "names_refund_amount": {"pass": true},
    "matches_refund_timeline": {"pass": false, "comment": "Says 24 hours. Policy says 5 working days."},
    "no_same_day_promise": {"pass": true},
    "polite_and_brief": {"pass": true}
  },
  "approved": false
}

Round 2. The writer receives its draft and the single comment. It produces: 'Sorry for the double charge. We will refund the extra 24.00 within 5 working days, and you will get an email when it is sent.' The reviewer passes all four criteria and approves. The loop used 2 of its 3 rounds. The output goes to the customer. Had the second draft still failed, a third round would run, and after that the best draft would go to a support agent with the reviewer's comments attached.

Building it

A capped critic loop with a structured verdict (illustrative) (python)
import json

MAX_ROUNDS = 3  # hard cap: each round costs two model calls

RUBRIC = [
    'names_refund_amount',
    'matches_refund_timeline',
    'no_same_day_promise',
    'polite_and_brief',
]

# llm.generate() is a placeholder for any model call that returns text.
def write(task, context, feedback=None, previous=None):
    prompt = f'Task: {task}\nPolicy and data: {context}\n'
    if previous:
        prompt += f'Previous draft: {previous}\nFix only these problems: {feedback}\n'
    return llm.generate(prompt)

def review(task, context, draft):
    # The reviewer sees the rubric. The writer does not see scores.
    prompt = (
        f'Task: {task}\nPolicy and data: {context}\nDraft: {draft}\n'
        f'Check each criterion in {RUBRIC}. Reply as JSON: '
        '{"criteria": {name: {"pass": bool, "comment": str}}}'
    )
    raw = llm.generate(prompt)
    try:
        verdict = json.loads(raw)
    except json.JSONDecodeError:
        # An unreadable verdict must never count as approval.
        return False, 'reviewer returned invalid JSON', 0
    results = verdict.get('criteria', {})
    failed = [n for n in RUBRIC if not results.get(n, {}).get('pass')]
    comments = '; '.join(results.get(n, {}).get('comment', n) for n in failed)
    return not failed, comments, len(RUBRIC) - len(failed)

def critic_loop(task, context):
    draft, feedback = None, None
    best, best_score = None, -1
    for round_no in range(1, MAX_ROUNDS + 1):
        draft = write(task, context, feedback, draft)
        approved, feedback, score = review(task, context, draft)
        if score > best_score:
            best, best_score = draft, score
        if approved:
            return {'text': draft, 'rounds': round_no, 'needs_person': False}
    # Cap reached: return the best draft and flag it, never silently ship.
    return {'text': best, 'rounds': MAX_ROUNDS, 'needs_person': True, 'comments': feedback}

Three details matter. The writer is told to fix only the listed problems, which stops it rewriting parts that already passed. An unparseable verdict counts as a failure, because treating it as approval would let broken reviews pass silently. And the loop remembers the best-scoring draft, since the last draft is not always the best one.

Design decisions

  • Rubric design: write 3 to 6 specific, yes-or-no criteria, each tied to a source of truth such as a policy or schema. Default to binary checks, because scores like 7 out of 10 drift between calls.
  • Round cap: default to 2 or 3 rounds. Most gains come in the first revision, and each round adds two calls of latency and cost.
  • Reviewer choice: use a different prompt at minimum. Where budget allows, use a stronger or different model as reviewer, since a model reviewing its own text tends to approve it.
  • Use real checks where they exist: run schema validators, unit tests, and link checkers first. Let the model reviewer cover only what code cannot check.
  • Failure handling: on cap, return the best draft with the open comments and route it to a person. Log every round so you can see why drafts failed.
  • Stopping on no progress: if the same criterion fails twice with the same comment, stop early. More rounds will not help.
  • Versioning: version the rubric and both prompts together. A rubric change alters what passes, so compare results before and after.

Measuring it

  • First-pass approval rate: drafts approved in round 1 divided by all tasks. A very high rate suggests the rubric is too easy.
  • Rounds to approval: the average and the 95th percentile. This drives latency and cost.
  • Cap-hit rate: tasks that reached the cap divided by all tasks. These are your human review queue.
  • Reviewer accuracy: sample 100 reviewed drafts, have a person label each criterion, and compute agreement with the reviewer. Track false approvals most closely.
  • Quality lift: score final outputs and first drafts with the same human or test-based check, then compare. If the lift is small, the loop is not worth its cost.
  • Cost per accepted output: total tokens across all rounds divided by approved outputs.
Computing reviewer false-approval rate from labelled samples (illustrative) (python)
def false_approval_rate(samples):
    # samples: list of {'reviewer_approved': bool, 'person_approved': bool}
    approved = [s for s in samples if s['reviewer_approved']]
    if not approved:
        return 0.0
    wrong = [s for s in approved if not s['person_approved']]
    return len(wrong) / len(approved)

When to use it, and when not to

SituationUse this type?Why
Replies that must follow a written policyYesThe policy gives the reviewer concrete checks, and errors are costly.
Summaries that must match a source documentYesA reviewer can compare claims to the source and flag unsupported ones.
Code with a test suiteYes, with real tests as the criticTests are a stronger reviewer than a model, so use them first.
Quick chat answers where speed mattersNoTwo or more calls per answer adds delay users will notice.
Creative writing with no clear criteriaRarelyWithout checkable criteria the reviewer gives vague comments and the loop wanders.
The first draft is wrong because facts are missingNoRevising cannot add missing information. Fix retrieval first.
High-stakes decisions such as payments or legal textYes, plus a personA critic loop reduces errors but does not remove them. Add a human checkpoint.

Trade-offs

DimensionEffectWhat to do about it
QualityCatches rubric failures that a single pass missesKeep the rubric specific and audit the reviewer against human labels.
LatencyEach round adds a write call and a review callCap rounds at 2 or 3, run cheap code checks first, and stream only approved text.
CostTokens multiply with each round, since drafts and comments are resentPass only the draft and comments, use a smaller writer, and track cost per accepted output.
ComplexityTwo prompts, a verdict format, and exit logic to maintainKeep the verdict as small JSON and version prompts and rubric together.
Failure modesRubber-stamp reviewers, endless nitpicking, and drift away from the taskUse a different reviewer prompt or model, cap rounds, and fix the writer only on listed failures.

The reflexive agent uses the same draft, critique, and revise cycle inside a single agent. The critic loop is the orchestration view: the reviewer is a separate step with its own prompt, model, and rubric, which you can test and replace on its own. A supervisor with workers splits work into sub-tasks, while a critic loop improves one piece of work repeatedly.

A human checkpoint uses a person as the reviewer. The two combine well: let the critic loop clear easy errors, then send only cap-hit or high-risk outputs to a person. That keeps people on the cases where their time counts.

What this means for your role

Common mistakes

Further reading

A critic loop works when the rubric is specific, the reviewer is independent, and the cap is firm. Start with two rounds, measure the lift, and add rounds only if the data supports it.

Search topics

↑↓ to move · Enter to open · Esc to close