A step-by-step guide for engineers on wrapping models in an agentic harness — with tools, validation, retries, and memory — to produce citation-worthy content