do-and-judge
Pattern: Single-Task Execution with Judge Verification
Phase 1: Task Analysis and Model Selection
Complexity + Risk + Scope → Model Selection
│
Phase 2: Dispatch Implementation Agent
[CoT Prefix] + [Task Body] + [Self-Critique Suffix]
│
Phase 3: Dispatch Judge Agent
Independent verification with structured criteria
│
Phase 4: Parse Verdict and Iterate
├─ PASS (≥4) → Report Success
└─ FAIL (<4) → Retry with Feedback (max 2)
└─ Return to Phase 3
│
Phase 5: Final Report or Escalation
Success summary OR escalate to user after max retriesUsage
When to Use
Quality Enhancement Techniques
Phase
Technique
Benefit
Theoretical Foundation
Last updated