Key points
A forum post on zhichai.net reviews the Prototype to Production whitepaper, which addresses the gap between AI agent demos and dependable production systems—what it calls the "last mile production gap." A striking figure: ~80% of effort in client engagements goes not to making agents smarter, but to making them *dependable, controllable, auditable, and rollback-able*.
1. People & Process First
- Guardrails, authentication, billing transparency don't emerge automatically—they require defined roles (AI/Prompt Engineers, Cloud Platform teams, on-call).
- AgentOps sits at the intersection of people, process, and technology. GenAI adds new specializations (Prompt Engineer, AI Engineer) on top of traditional MLOps roles.
- Google Cloud's Agent Starter Pack is cited as packaging IaC, CI/CD, evaluation, deployment, and observability into default configurations.
- *Manual pre-PR gating*: engineers run eval suites locally and attach comparison reports to PRs.
- *Automated CI/CD gates*: MLOps-maintained harness blocks deploys on failing metrics (e.g., tool call success rate), using golden datasets and LLM-as-a-judge where needed.
- Phase 1 – Pre-merge CI: unit tests, lint, dependency scanning, eval suites.
- Phase 2 – Post-merge staging CD: integration/load testing, dogfooding.
- Phase 3 – Gated production deployment: usually requires Product Owner sign-off (HITL); promote the same artifact validated in staging.
- Supported by Terraform (IaC) and Secret Manager (runtime secret injection).
- Canary (watch prompt injection and anomalous tool usage), Blue-Green (zero-downtime switching), A/B testing, Feature Flags.
- All require strict versioning of code, prompts, model endpoints, tool schemas, memory structures, and eval datasets—otherwise rollback is just a slogan.
- Observe: logs, traces (causal chains via unique IDs), metrics (e.g., Cloud Trace/Logging/Monitoring; ADK auto-instrumentation).
- Act: stateless containers, async processing (Pub/Sub + Cloud Run), externalized state, latency/reliability/cost trade-offs (caching, smaller models, retries with exponential backoff, idempotent tools). Threat response: contain → triage → resolve via circuit breakers and HITL queues.
- Evolve: feed production failures into eval datasets, expand golden sets, push improvements through the same gated CI/CD pipeline.
- MCP for stateless tool-like capabilities ("do this specific thing"); A2A for delegating complex goals ("achieve this objective").
- Agent Cards (JSON capability descriptors) enable dynamic discovery; non-negotiable requirements: distributed tracing (trace IDs propagated across agents) and robust state management.
- Registries: build Tool/Agent Registries only when scale (thousands of tools/agents) forces it.