All case studies

AI engineering · 2026

Building and releasing production AI agents for two university brands in Mexico

Rashid Azarang leads engineering on conversational agents for two university brands in Mexico. He built the tests that gate releases for admissions and student support.

Building and releasing production AI agents for two university brands in Mexico

I’m Rashid Azarang. As a contractor, I lead engineering on conversational agents for two university brands in Mexico. The agents handle admissions, enrollment, appointment scheduling and student support on Google Cloud. I own agent behavior, workflow integrations and the evaluation gates that decide whether a change can ship. The institution serves a student population of more than 700,000.

Here is how I built the release gates.

The problem with shipping a probabilistic system

An agent is a language model wrapped in prompts, tools, and business rules. Change any of them and behavior moves somewhere you did not intend. In ordinary software, a regression suite answers "did I break something?" — deterministic assertions over deterministic code. In an agent, the thing under test is a conversation: the same input can produce many acceptable phrasings and many subtly wrong ones, and the difference between those two sets is the product.

An illustration of one question that branches into many answers, some acceptable and some subtly wrong, on their way to a single gate. The gate is what lets a probabilistic system ship.

Most teams respond by demo-testing: run a few conversations, read them, feel good, ship. That works until the first change that silently breaks appointment logic three turns into a conversation nobody re-read. The alternative is to make evaluation a deploy gate — something that runs in the pipeline and can say no. But a gate needs a verdict, and a verdict needs to be stable: if the same change passes on Tuesday and fails on Wednesday without anything changing, engineers learn to ignore it, and then you have a slower demo test.

Getting to a stable verdict took four pieces of engineering.

Golden cases, written as code

The base unit is a golden case: a scripted scenario — a prospective student asking about a program, an enrolled student needing to reschedule, a conversation that must end in a handoff — with the expectations for each turn written down. The gate replays 138 of them before a release, and they are versioned in the repository next to the code they test, so a change to behavior and the change to its expectations arrive in the same pull request and get reviewed together.

Two properties matter more than the count. First, cases carry mocked state: the date, the student's situation, the catalog the agent should consult all come from the fixture, not from the world. Second, expectations distinguish what is checkable deterministically (did the agent call the scheduling tool? did it refuse to invent a price?) from what needs judgment (was the answer actually responsive, in the right register, correct about the program?). Conflating those two is the root of most flaky agent suites.

A judge you can trust to say no

The judgment half is scored by an LLM judge — a second model that reads the transcript and the case's expectations and scores the turn. Everyone builds this. Almost nobody calibrates it, and an uncalibrated judge is worse than none: it fails good changes, engineers learn to re-run until green, and the gate is now theater.

An illustration of one judged turn: the transcript of a golden case, a rubric split into deterministic checks and semantic judgment, and the verdict of the calibrated judge. The scores in it are illustrative, not from a real run.

Calibration was case-by-case labor against hand-labeled turns: run the judge, compare with the human label, find the disagreement, and fix the rubric — not the model — until they agree. The failures that surfaced were specific and instructive:

The result is a judge whose no means something — trusted enough that it blocks merges, which is the whole point.

Hermetic cases, honest pass rates

The suite's early pass rates were quietly wrong: cases shared user state through the agent's memory, so case B started with residue from case A. A suite like that reports whatever the accident of execution order produces — and it forbids parallelism, because order is load-bearing.

The fix was hermetic per-case users: every case runs as its own synthetic user with its own seeded state, visible to the judge so it scores against what the case actually contains. Once cases were genuinely independent, parallelism came free — first at the set level, then per case, opt-in — and the full regression run stopped being the slowest step of the pipeline.

Gates that differ by environment

The final piece is where evaluation runs. One depth everywhere is wrong in both directions — too slow for every integration merge, too shallow for a production promotion. So the gate depth follows the environment, under trunk-based promotion: a smoke set on integration, the full golden regression before QA promotes. Each environment answers the question appropriate to it, and the expensive answer is bought exactly where it pays.

I also use recorded pricing responses to check the costs-and-promotions service. Replaying those responses helps catch a refactor that changes an amount a student sees.

The admissions team needed to check what reached its own records. I designed a testing center for the university agents on top of a teammate’s issue tracker. The center brings the conversation, tool calls, latency and bug report for each turn together. Admissions set the rule for the saved name. QA reproduced and reported the mismatch, I corrected the validation rule, and the designated tester repeated the scenario and recorded the verdict. Watch the walkthrough or try the guided chat.

The stack underneath

Agents on Google ADK, deployed through Agent Engine, with Vertex AI / Gemini as the model layer and its native online evaluators watching production alongside the offline harness. Services on Cloud Run, the estate managed with Terraform, pipelines on Azure DevOps, access under IAM with Secret Manager, telemetry to Cloud Monitoring with PII boundaries enforced before anything is exported. The harness itself is plain Python, with more than 500 test modules, because the machinery that judges a system should be more boring than the system it judges.

What this buys

The practical result is that a change to the university agents ships the way ordinary software ships: open a pull request, the gate runs, a stable verdict comes back, and no actually stops the line. Evaluation stopped being a phase after development and became the definition of done.

The general lesson I keep from it: a probabilistic system becomes shippable when the things around it are deterministic. The model may sample; the gate may not. Every piece of this — calibrated judging, deterministic-only checks, hermetic state, environment-scaled depth — is one instance of moving a decision from the model's discretion to the harness's.

For a related Cloud Run deployment, see the MetaMCP gateway case study.

Rashid Azarang, a close portrait in a dark T-shirt, with white wireless earbuds

Written by

Senior AI Engineer · Monterrey, Mexico

AI assistedWith the help of AI for research, drafting, and editing.

Further reading

Go deeper.

Papers, essays, case studies, and more from the site.

Research

Every paper, pre-registration and dataset, with what it takes to run them again.

View all