Build a validator loop that catches AI hallucinations before content goes live. Step-by-step engineering guide to scoring agent output, verifying citations