How to trust hundreds of AI agents in production

Managing one AI agent is simple, but scaling to hundreds across an enterprise requires consistent governance. Discover how to build a reliable platform foundation using end-to-end tracing, clear ownership, enforced budgets, and automated evaluations so your teams can deploy AI agents safely and predictably.
Key takeaways
- Establish clear visibility and ownership: Capture every agent interaction as a trace tree and link each agent to a central registry so you know who owns it, what it costs, and where delays happen.
- Measure real work, not just uptime: Track task success, latency, and cost per successful run against 30-day service-level objectives, and enforce strict token and step limits to prevent runaway cloud bills.
- Automate quality checks at scale: Pair LLM judges with deterministic validation to grade full agent traces, turning production failures into test cases that gate future releases.
When you build your first AI agent, you know it personally: its prompt, its tools, its habits. It is like having one puppy. When it makes a mess on the rug, you know who did it.
Scale across an enterprise and that changes. An orchestrator hands work to sub-agents, and teams across departments build their own agents in code, low-code and no-code tools. That is not one puppy. That is a dog park with no fence.
So what replaces knowing your agents personally? Governance changes with the agent count; the foundation does not, and it starts at agent one. On Google Cloud that means using Agent Registry, Agent Identity, Agent Gateway and Model Armor, plus OpenTelemetry tracing. These services are specific to Google Cloud, but the patterns apply to any cloud.
Platform thinking: The six questions to ask
From a few agents to hundreds, six questions keep coming up. Here is how a platform answers each one.
1. Which agent made this call?
When hundreds of agents call each other, flat logs cannot show who called whom. Capture every run as a trace tree.
Consider a typical invoice processing request. An orchestrator plans the task and invokes a vendor-lookup agent and a doc-extractor agent, and each of those calls its own tools, such as ERP search and OCR. Under the OpenTelemetry semantic conventions, which Google’s Agent Development Kit (ADK) emits by default, every step is a span: invoke_agent, generate_content or execute_tool.
Start at the failing span and walk up the tree. The first agent you reach made the call.
2. Why is this run four times slower than yesterday?
When an agent slows down, everyone blames the model first. It even gets blamed for bad Wi-Fi and slow databases.
Picture a run that took 10 seconds yesterday and 41 seconds today. On the trace timeline, the model calls still take one or two seconds each. The model isn’t the constraint. The time went into the OCR tool inside the doc-extractor agent: three timeouts at eight seconds each, then success on the fourth try. No error, no alert, and a 30-second delay inside a “successful” run. Traces show this in minutes. Logs never do.
Across a fleet, every team must tag spans the same way. OpenTelemetry defines the standard attributes (agent name, version, conversation ID, model, tokens); set these three yourself:
- yourcompany.team: Who owns the agent.
- yourcompany.tenant: Who pays for the run.
- gen_ai.prompt.version: What changed.
And keep private data out of traces: ADK 2.13 and later leave prompts and responses out of spans by default (on earlier versions, set ADK_CAPTURE_MESSAGE_CONTENT_IN_SPANS=false), and redact anything you do capture with Sensitive Data Protection.
3. What does healthy look like?
Uptime is not a health metric for agents. An agent that returns a 200 OK status while hallucinating is simply running, not healthy. Measure the work itself, with six numbers per agent, all from traces:
- Task success: Runs that end in a usable, validated answer.
- Latency, including time to first answer: The wait for a real first response, not the first token. (Time to first answer is the time to the first chunk of the final response, or, in trace terms, the first token of the last model call. That’s what the user feels and what moves when a tool is slow.)
- Steps per run: Model and tool calls per task; a spike is the first sign of a loop.
- Tool errors and retries: Where slow runs hide.
- Model errors and rate limits: 429 quota errors and provider latency.
- Cost per successful task: Total spend divided by successful runs only. If success falls from 90% to 60%, the bill looks the same but each good answer costs 50% more.
Then write these down as service-level objectives (SLOs) per agent over 30 days, from your own baseline; a fleet-wide average hides the three agents that are failing.
Illustrative targets: 99% of runs end in a usable answer; 95% finish within 20 seconds; 90% of sampled runs score 4 of 5 or better with a judge model. Teams skip the quality SLO most often, and it is the one users feel.
Usable is the mechanical check you can run on every request; correct is the judge’s job on a sample. A run is usable when it finished without an error, timeout or budget stop, didn’t fall back to a canned refusal on a request it should handle, and returned output that validates against the agent’s contract.
4. Who gets paged when something goes wrong?
With one agent, the owner is obvious. With hundreds, the platform has to know who to alert.
If you page an engineer every time one request is slow, your team will tune out alerts by Friday. Page based on burn rate instead: how fast an agent is using its monthly error budget. With a 1% budget (the flip side of a 99% success SLO), burning 2% of it in one hour is a 14.4x rate: Send a page. Burning 10% in three days is a 1x rate, on pace to exhaust it by the end of the month: Open a ticket.
Route the alert by Agent Registry ID: make sure every code, low-code and no-code agent has one, and link its owner and SLOs to it, so the alert reaches the current owner.
When the pager goes off, read the alert, pull the slowest and failed traces in that window, diff a bad trace against a good one, check what changed (release, prompt, model, tool), and fix user impact first: roll back, flip the kill switch, or switch models. Then turn the bad run into a test case.
5. Why did one agent run up the bill?
A looping agent looks healthy on a normal dashboard: CPU is low and requests return. Without hard limits, your first alert is the cloud bill.
ADK’s default cap is 500 model calls per run (RunConfig max_llm_calls=500). That is a safety net. If your invoice agent needs 500 calls to read one PDF, it is not reading an invoice, it is writing a book. Lower the cap to 10 or 15, based on what your traces show.
Then enforce budgets platform-wide:
- Token and dollar budgets per tenant.
- Stop on repeats: the same tool with the same inputs three times in a row.
- Hard timeouts on every tool call and every run.
- A kill switch for every agent version, with no redeploy.
Asking the model nicely not to loop will not stop a loop. The model does not pay your cloud bill.
6. Can we trust the agents’ answers?
With one agent, you read its answers. With hundreds, a judge model scores a sample and a person checks the judge.
Test sets written before launch only cover what you thought of. Production shows you the rest, so run evaluation as a loop:
- Trace every run.
- Sample a slice of runs, plus every failure.
- A judge model scores each trace against your grading rules.
- A person reviews the low scores.
- Each confirmed failure becomes a ground-truth test case.
- The tests gate every release: in CI for code agents, and before group sharing for no-code agents.
Keeping the LLM judge honest
A judge that only reads the answer is easy to fool: a wrong answer can still sound confident. In one study of AI coding agents, a plain LLM judge agreed with human experts about 70% of the time, even when shown the agent’s trajectory. A judge built as an agent, one that could open the files and check the work itself, agreed about 90% of the time (Zhuge et al., “Agent-as-a-Judge”, ICML 2025). So give your judge the trace and, wherever you can, a way to verify the result.
There are four judge habits to design against:
- Rubber-stamping bad paths: A right answer reached through broken tool calls is still a bad run. Grade the full trace.
- Position and verbosity bias: Judges favor the first answer and the longer one. Swap the order and use task-specific rules.
- Self-preference: Judges rate their own model family higher. Judge with a different family.
- Math, logic and format slips: Pair the judge with deterministic checks such as schema validation.
Then keep checking the judge against human ground truth.
What the platform owes every agent
Low-code and no-code agents never start in Git, so enforcement has to be automatic. Every agent, whether code, low-code or no-code, should get these by default:
- Tracing on by default, carried across every hop.
- A registry entry linking owner, on-call and SLOs to its Agent Identity.
- Agent Gateway policy and Model Armor guardrails.
- SLO templates and burn-rate alerts that page the owner.
- Step, token and dollar budgets, enforced.
- Kill switches, versioned rollbacks and ownership transfer.
- Trajectory evals that gate every code deploy and group share.
- Cost per successful task, by agent, team and tenant.
Without these defaults, every team builds its own slightly broken version.
Where to start
Don’t start with a platform overhaul. Start with one agent at a time:
- Pick the agent people complain about most.
- Trace it end to end, and read ten of its slow runs.
- Give it an owner, 30-day SLOs and a budget.
- Turn its worst run into a test case.
Then make what you built the default for the next team. You cannot know hundreds of agents personally. With traces, owners, budgets and evals, you do not have to.
Frequently asked questions

Nelma specializes in multi-agent platforms and custom agents on Google Cloud, AWS, and Azure. She embeds with enterprise teams to design grounded retrieval architectures, deploy scalable operational pipelines, and establish observability metrics that turn complex AI systems into dependable, production-ready outcomes.
Nelma Perera
AI/Cloud Application and Infrastructure Architect

