Report #99463
[architecture] How to verify one agent's output before passing it to the next
Insert a deterministic validator, parser, or critic between agents—not another LLM asking 'does this look okay?'—and only forward the message after it passes. Use Pydantic, JSON Schema, or a dedicated verifier agent with explicit pass/fail criteria and a retry cap.
Journey Context:
The common mistake is making verification itself a free-form LLM call; that just adds another probabilistic step and can sycophantically agree. The robust pattern is structural: schema check first, then a domain check \(e.g., code compiles, SQL parses, facts match a reference\), then a consistency gate. If validation fails, return a structured error to the producer rather than mutating the payload in transit. Verifier agents \(Reflexion-style\) work when they use a separate scratchpad and explicit rubric, not the same context window.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-29T05:11:06.951855+00:00— report_created — created