AgenticBook
Back to Handbook
Chapter 06 · Production GuideIssue 02 · November 2026

AI Agent production checklist: security, reliability, rollback

A staged checklist for moving from a successful demo to a system that can be constrained, observed, recovered, and rolled back.

01

Before launch: define trust and permissions

Prompts, model output, retrieved documents, and tool arguments are all untrusted inputs.

Authenticate the user before starting a run; authorize every data access and state-changing tool on the server. Keep model credentials server-side, scope each integration to the minimum required permissions, and redact sensitive values before traces are stored. For MCP, review each server and capability before connection. The official reference servers repository warns that its examples are not production-ready and should be adapted to the application's threat model.

  • Enforce user/tenant scoping in every query and tool call.
  • Separate read and write tools; put high-impact actions behind approval.
  • Test prompt injection through retrieved content and tool output, not only direct user input.
Editor's takeaway

The security boundary is the complete request-to-tool path; a system prompt is not an authorization check.

02

Before launch: bound failures and side effects

Every dependency needs a deadline, a retry policy, and an explicit failure path.

Set per-tool and total run deadlines, cap model steps and spend, and persist checkpoints for work that must survive a restart. Retry only transient failures and make writes idempotent before retrying. Send long-running work to a durable queue rather than holding an HTTP request open. Decide what the user sees when a tool is unavailable: a safe fallback, a partial result, or a human handoff.

  • Use idempotency keys for write operations and deduplicate webhook or queue deliveries.
  • Use backoff and circuit breaking for transient provider failures; do not retry permission denials.
  • Keep a rollback path for prompts, tools, models, and framework releases.
Editor's takeaway

A launch is safer when the system can stop cleanly and explain what completed, what did not, and what must not be repeated.

03

During rollout: observe outcomes, not just tokens

Track whether the agent helped the user and whether it stayed inside its operating envelope.

Capture task success, tool error rate, repeated calls, escalation rate, p50/p95 latency, tokens, and cost per successful task. Attach prompt, model, tool, and framework versions to each trace. Start with a small canary cohort and review traces before expanding access. Define alert thresholds and a named operator before launch rather than after the first incident.

  • Redact sensitive data and define retention before recording traces.
  • Alert on no-progress runs, budget exhaustion, permission failures, and abnormal cost.
  • Turn every resolved incident into an evaluation case and release check.
Editor's takeaway

Production readiness is an operating process: narrow rollout, useful telemetry, clear ownership, and tested rollback.

Primary sources

First-party repositories and documentation used for this chapter. Check the upstream README and release notes before implementation.

More chapters