Cognition · Software component
Output Verifier
Software componentCognitionCognition & Memoryarc:OutputVerifier
A deterministic checker that validates agent outputs against objective quality checks, such as unit tests or metric thresholds, and triggers revision when they fail.
Responsibility. Checks outputs objectively and triggers revision on failure.
Also known as: Quality-triggered check, Unit-test gate, Verification agent, Validation gate, Verification checkpoint, Quality validation, run_tests node, Validator agent, validate_quality node, Test execution node, Test validation for rejection fine-tuning, Reasoning validation layer, Deterministic validator, Schema validation, Format checking, Constraint enforcement, Verification layer
Relationships
is configured by structural
invokes dependency
is invoked by dependency
reads dependency
- Conversation State Store abstract Ch3.9
writes dependency
- Working Memory Buffer abstract Ch2.2
triggers dynamic
- Reflection Critic abstract Ch1.2
guards control
- Answer Synthesizer abstract Ch1.3 Ch3.4 +1
- Reasoning Engine Ch3.9
- Worker Agent abstract Ch1.3
is orchestrated by control
evaluates assurance
is evaluated by assurance
Design guidance
- SHOULD be preferred over probabilistic reflection for objectively verifiable outputs.
- SHOULD be placed at workflow boundaries so errors (e.g., decimal-place extraction errors) do not propagate downstream.
- SHOULD check each recommendation before presentation for consistency with stated preferences, an explicit explanation linking features to needs, and acknowledgment of violated constraints.
- SHOULD validate outputs against schema, format patterns and domain constraints before they reach users.
Quantitative guidance
As stated by the sources; verify before use.
- Example trigger: code failing 20% of unit tests activates reflection (Ch1.2).
- Removing the financial-calculation verification step dropped task success 82%->76%; a verification step may double latency (Ch3.4).
- E-commerce agent (91% resolution, 71% satisfaction): 34% of multi-turn conversations contradicted earlier preferences, 42% of recommendations lacked explanations, 28% violated stated constraints; after validation layers satisfaction rose 18%, returns fell 12%, operational cost fell 7% (Ch3.9 case study).
- Schema validation takes milliseconds, so most outputs pass the first stage cheaply (Ch3.10).
Classification
- Patterns
- Quality-triggered reflectionVerification checkpointDefense-in-depth stage 1 (pre-output)
- Technologies
- pytestPydantic
- Quality attributes
- Functional suitability: correctness and validity (ISO/IEC 25010 | NIST AI RMF: valid)Reliability (ISO/IEC 25010 | NIST AI RMF: valid and reliable)
- Risks mitigated
- Confident hallucinations passing self-reviewSilent error propagationPremature terminationPoor responses reaching usersStructural hallucinations (fabricated fields, invalid types, impossible values)
Sources
- Ch1.2: T. Nguyen, "Core Agent Patterns," in Mastering Agentic AI Systems: Guide for the NVIDIA NCP-AAI Exam, 1st ed. 2026, ch. 1.2. ISBN: 9798244538229.
- Ch1.3: T. Nguyen, "Multi-Agent Systems," in Mastering Agentic AI Systems: Guide for the NVIDIA NCP-AAI Exam, 1st ed. 2026, ch. 1.3. ISBN: 9798244538229.
- Ch2.1: T. Nguyen, "Framework Landscape and Selection," in Mastering Agentic AI Systems: Guide for the NVIDIA NCP-AAI Exam, 1st ed. 2026, ch. 2.1. ISBN: 9798244538229.
- Ch2.2: T. Nguyen, "LangGraph," in Mastering Agentic AI Systems: Guide for the NVIDIA NCP-AAI Exam, 1st ed. 2026, ch. 2.2. ISBN: 9798244538229.
- Ch3.4: T. Nguyen, "Tuning Model Parameters for Production Performance," in Mastering Agentic AI Systems: Guide for the NVIDIA NCP-AAI Exam, 1st ed. 2026, ch. 3.4. ISBN: 9798244538229.
- Ch3.5: T. Nguyen, "Prompt Optimization, Few-Shot Learning, Fine-Tuning," in Mastering Agentic AI Systems: Guide for the NVIDIA NCP-AAI Exam, 1st ed. 2026, ch. 3.5. ISBN: 9798244538229.
- Ch3.9: T. Nguyen, "Reasoning Quality," in Mastering Agentic AI Systems: Guide for the NVIDIA NCP-AAI Exam, 1st ed. 2026, ch. 3.9. ISBN: 9798244538229.
- Ch3.10: T. Nguyen, "Efficiency Metrics," in Mastering Agentic AI Systems: Guide for the NVIDIA NCP-AAI Exam, 1st ed. 2026, ch. 3.10. ISBN: 9798244538229.
- Ref7.15: "Advanced Agentic AI Optimization Techniques," unpublished reference note (15-Advanced-Agentic-Optimization.md), Mastering Agentic AI Systems: Guide for the NVIDIA NCP-AAI Exam supplementary materials, 2026. unpublished note