AgentOps: monitoring and evaluating enterprise AI agents
A reusable framework for running enterprise AI agents reliably: evaluation gates, monitoring, drift detection, rollback and deployment approvals for Snowflake Cortex agents and semantic views.
Context
Client demand for AI agents was growing faster than the practices needed to run them reliably. In the engagements our team saw, evaluation, monitoring and development practices were inconsistent, and agents that fell short of expectations were undermining confidence in the whole idea.
The supported workflows had three recurring gaps: no consistently enforced evaluation or release criteria, little visibility into why agents failed or how they were used, and no clear control over changes moving between environments. Developers had limited evidence about what to fix or build next.
The answer also had to be reusable. Each client had its own environments and requirements, so the controls needed to adapt to them rather than be rebuilt for every engagement.
My role and ownership
I co-designed and built the framework with a senior engineer. I personally implemented the evaluation, monitoring, rollback, drift detection and dashboard capabilities, along with the configuration-management and deployment controls. Changes were developed in a fork and reviewed and merged upstream.
Technical approach
- Evaluation gates. Evaluations against defined quality criteria and failure modes, including LLM-as-judge scoring, so release decisions rested on evidence rather than a spot check.
- Monitoring and dashboards. Visibility into agent behaviour, failures and usage patterns, so teams could investigate existing agents and decide what to improve next. I also fixed dashboard defects, including raw database errors reaching the interface.
- Configuration capture. A workflow that brings Snowflake configuration changed in Snowsight back into Git, using native YAML round trips for semantic views and
DESCRIBE AGENTexports for agents. - Drift detection. CI checks in GitHub Actions that fail when a deployed object diverges from its recorded definition, so evaluations never run against something that no longer matches Git.
- Rollback and approvals. Rollback capabilities, plus a human approval step before irreversible production deployments.
Applying it with a client
A retail group’s data team reported limited agent adoption and little clarity about how its agents behaved. We adapted the framework to their use case and demonstrated how monitoring and evaluation could expose failure patterns such as unproductive loops and unsuccessful interactions, support investigation and guide development priorities.
Tradeoffs
Two decisions shaped the framework. The first was deploy safety: a hard-fail gate maximises safety but blocks legitimate releases, and a warn-only check is easy to ignore. A human approval step before irreversible production deployments let routine changes flow while forcing a deliberate sign-off on destructive ones.
The second was evaluation cost. Running an LLM judge on every interaction is thorough but expensive. With the client we discussed a risk-based approach: evaluate higher-risk workloads fully and sample lower-risk ones, accepting less coverage where the consequences of a miss are smaller.
Outcome
The framework brought repeatable governance and engineering feedback into the workflows it supported. Agent behaviour became more auditable, Git became the configuration reference across development and production, and automated drift checks failed whenever deployed objects diverged from their definitions. It was adopted by multiple organisations, and multiple changes were reviewed and merged upstream.
Reflection
Most of the agent problems I saw were not model failures. They were governance failures: no shared definition of “good enough”, no view of what agents were doing, and no control over what changed between environments. Treating agents as production artifacts, with version control, evaluation and deliberate release gates, is what made them something teams could improve rather than abandon. Next I would connect drift detection directly to evaluation runs, so a quality regression is caught at the same moment drift is.