Brifing

Using NVIDIA NeMo to Convert Agent Failures into Automated Tests

Optimize agent reliability by transforming production trace errors into actionable evaluation benchmarks.

Nvidia Developer Blog3 min

1Optimizing Agentic AI Reliability

Building reliable AI agents requires moving beyond generic benchmarks to domain-specific validation. Agents often fail by selecting incorrect tools, missing context, or violating operational constraints. NVIDIA NeMo provides a structured framework to analyze production traces, identify recurring failure patterns, and implement targeted improvements to prompts, tools, and system-level control flows.

2Analyzing Traces with NeMo Compass

NeMo Compass automates the inspection of large trace corpora by converting raw execution logs into a structured backlog of issues. By comparing agent actions against defined behavioral rules, such as those in an ETHOS.md file, the tool identifies anomalies and links them to specific trace IDs for efficient debugging and remediation.

3Automating Evaluation with NeMo Author

NeMo Eval Author utilizes coding agents to generate custom evaluations based on identified failures. It supports Harbor and NVIDIA NeMo Gym formats, allowing developers to create verifiers that check if agents meet specific domain requirements. This process ensures that tests evolve alongside the agent, reflecting real-world usage patterns and known failure modes.

4Iterative Harness Improvement Cycle

The optimization cycle involves updating the agent’s harness, such as modifying system prompts or middleware, to address identified flaws. After applying fixes, developers rerun evaluations on both development and held-out tasks. This rigorous verification process prevents regressions and ensures that improvements generalize effectively across diverse scenarios rather than just fitting specific examples.

5Preventing Unauthorized Tool Execution

In a practical enterprise assistant example, the agent incorrectly executed a message-sending tool without user confirmation. By analyzing the trace and updating the system prompt to explicitly require review before action, developers successfully corrected the behavior. This demonstrates how targeted harness changes can resolve critical logic errors in complex agent workflows.

6Engineering Workflow Performance Gains

Applying this loop to Dassault Systèmes engineering workflows yielded significant efficiency improvements. The optimization process reduced malformed tool calls from 142 to zero and achieved a 28% relative improvement in overall evaluation scores. Furthermore, the agent performed tasks with 35% fewer tool calls per run across six distinct engineering simulation scenarios.

7Automated Optimization at Scale

The engineering workflow optimization was achieved through an automated loop running overnight without human intervention. Over a 12-hour period, the system identified and resolved recurring issues where arguments were placed outside expected fields. This highlights the potential for autonomous systems to refine their own performance metrics and improve operational accuracy over time.

8Maintaining Evaluation Integrity

To avoid overfitting, developers must maintain a set of held-out tasks that remain hidden from the coding agents proposing changes. By accepting updates only when they improve both development and held-out sets, teams ensure robust performance. If results remain inconclusive, NeMo Compass can be rerun to generate fresh insights for further refinement.

9Future of Agentic Maintenance

The integration of trace analysis and automated evaluation represents a shift toward systematic agent maintenance. By treating failures as data for new test cases, organizations can build self-improving systems. Future efforts should focus on expanding evaluation suites to cover broader behavioral ranges, ensuring long-term reliability in increasingly complex and technical production environments.

Original article: Nvidia Developer Blog — Using NVIDIA NeMo to Convert Agent Failures into Automated Tests