Skip to main content

Production Readiness

Who this is for

This page is for teams with a working prototype preparing to serve real users. If you are still building your first agent, start with the quickstart guides first and return here when you are ready to move to production.

Shipping an agent to production is not a single event. It is a progression through maturity stages, each adding controls that match the risk level at that stage. This page gives you a structured checklist for that progression and three worked examples showing how to apply it.


The Maturity Path​

Agents move through four stages from first prototype to scaled production. The controls required at each stage accumulate: what is required in pilot remains required at scale.

StageDescriptionWhat changes
PrototypeLocal development, synthetic data, one engineerNo production data, no live tools, no real users
PilotReal users, real data, small controlled audienceLogging active, basic IAM scoped, owner named, rollback plan exists
Controlled ProductionBroader audience, real business impactAll checklist items complete, policy enforcement on, evaluations running
ScaleHigh traffic, multi-tenant, latency and cost SLAsBudget alarms tuned, load tested, incident runbook exercised, deprecation policy defined

Production-Readiness Checklist​

Work through this checklist before advancing from pilot to controlled production. Every item has a rationale; skipping one knowingly is a risk decision that should be documented.

Ownership and Classification​

ItemGuidance
Named business ownerA person, not a team alias, who can make scope and risk decisions for the agent
Named technical owner (on-call)Who responds when the agent misbehaves at 2am
Data classification documentedWhat data the agent can see, process, and write; what it must never touch
Data retention policyHow long session context, memory, logs, and traces are kept; which regulations apply. See data encryption and storage guidance

IAM and Access Control​

ItemGuidance
Least-privilege IAM roleThe agent's execution role grants only what it needs; no * actions or resources. Follow IAM least-privilege best practices
Tool permissions scoped to intentEach tool the agent can call has an IAM policy that matches that tool's actual requirements
No credentials in code or promptsSecrets managed via AWS Secrets Manager or Parameter Store; agent retrieves them at runtime
IAM role reviewed by a second engineerSelf-review catches logical errors; a second reviewer catches scope creep

Identity and Tenant Boundaries​

ItemGuidance
Agent has a workload identityIssued via AgentCore Identity, not a shared service account
User identity propagated through hopsEvery downstream tool call and sub-agent call carries the acting user's scoped token
Tenant namespaces enforcedMemory, session context, and tool access are scoped per tenant; no cross-tenant reads
Multi-tenant isolation testedVerified with test cases that attempt cross-tenant access and confirm they are denied

Content Safety and Abuse Controls​

ItemGuidance
Prompt injection mitigations documentedSystem prompt hardening, input sanitization, and/or Bedrock Guardrails applied
Tool-abuse controls in placePolicy Engine (Cedar) restricts which tools the agent can call and under what conditions. See policy authorization flow
Guardrails configuredBedrock Guardrails applied for content filtering, PII detection, and topic denial where appropriate
Jailbreak and adversarial inputs testedRed-team or automated adversarial evaluation run before pilot; not just happy-path testing

Policy Enforcement​

ItemGuidance
Cedar policies authored and reviewedPolicies define what the agent is allowed to do; reviewed by a second engineer. See Cedar policy authorization
Policy enforcement mode set to ENFORCENot left in LOG_ONLY for production; or a documented exception exists explaining why. See policy enforcement modes
Human approval gates for high-impact actionsActions that are irreversible or high-blast-radius require a human-in-the-loop confirmation step
Exception handling for policy denialsAgent handles denied actions gracefully; does not leak policy details in error messages

Observability and Auditability​

ItemGuidance
Structured logging enabledEvery agent invocation produces a log record with session ID, user/tenant identifier, tools called, and outcome. See observability configuration
Distributed tracing enabledAgentCore Observability traces are active; trace IDs correlate logs across hops
Audit log retention configuredAudit logs retained for the required duration (check your compliance regime)
Alerts for anomalous behaviorAlarms set for error rate spikes, latency outliers, and unexpected tool call patterns

Evaluations​

ItemGuidance
Offline evaluation baseline establishedA ground-truth dataset exists; baseline scores for correctness, safety, and tool-call accuracy are recorded. See the AgentCore Evaluators catalog
Online evaluation sampling configuredA fraction of live traffic is evaluated continuously in production
Evaluation gates combined with deterministic checksCI/CD pipeline requires evaluation scores alongside deterministic tests (unit tests, schema validation, tool-call correctness checks) to meet thresholds before promoting to production
Evaluation results feed rollback decisions, with a human checkpoint for automated triggersA score drop below threshold triggers an alert; pair automated rollback triggers with a review step, especially early in an agent's production life

Incident Response​

ItemGuidance
Incident runbook writtenStep-by-step response for: agent producing harmful output, policy bypass, cost spike, data incident. See runtime security best practices
Rollback procedure testedA rollback has been executed in a non-production environment at least once
On-call rotation includes agent ownersThe technical owner is reachable; escalation path defined
Post-incident review process definedHow lessons from agent incidents are captured and fed back into policy and evaluation updates

Cost​

ItemGuidance
Per-agent cost attribution configuredApplication inference profile tagged and linked to a cost center
Budget alarm setAWS Budgets alarm fires before the monthly limit is exceeded, not after
Token and tool call cost estimatedBack-of-envelope estimate of cost per invocation at expected volume
Runaway spend circuit breaker definedWhat happens if costs spike 3x over baseline: alert, throttle, or disable

Rollback and Deprecation​

ItemGuidance
Previous version pinned and accessibleThe last known-good version (prompt, tools, model, config) can be restored quickly. See runtime versioning
Rollback triggers definedSpecific conditions that automatically or manually initiate a rollback
Deprecation plan writtenIf the agent will eventually be retired, the migration path for users is documented

Three Worked Examples​

The full checklist applies to all agents in controlled production. The examples below highlight which items carry the most weight for different agent risk profiles.

Read-Only Research Agent​

An agent that reads internal knowledge bases and summarizes documents. It cannot write data, call external APIs, or take irreversible actions.

PriorityChecklist items that matter most
CriticalNamed owner, data classification (what data it can see), least-privilege read-only IAM, logging
ImportantPrompt injection mitigations (it sees sensitive documents), offline evaluations for accuracy
Lower weightHuman approval gates (no writes), tenant isolation (if single-tenant), cost budgets (low token volume expected)

The primary risk for a read-only agent is data exposure, not action abuse. Focus on IAM scoping, memory namespace isolation, and prompt injection controls.

Low-Risk Write Agent​

An agent that creates draft tickets, sends internal Slack notifications, or writes records to a staging system. Writes are low-blast-radius and reversible.

PriorityChecklist items that matter most
CriticalLeast-privilege IAM with write scoped to specific resources, Cedar policies constraining tool calls, audit logging
ImportantRollback procedure tested, evaluation gates, tenant boundaries enforced
Lower weightHuman approval gates for every action (overhead exceeds risk), extensive adversarial testing before first pilot

The primary risk is unintended writes accumulating over time. Cedar policies that restrict the agent to specific write targets and audit logs that capture every write are the two highest-leverage controls.

High-Impact Agent​

An agent that executes financial transactions, modifies production infrastructure, or sends external customer-facing communications.

PriorityChecklist items that matter most
CriticalEvery item on the checklist; no exceptions
EspeciallyHuman approval gates for irreversible actions, adversarial testing before pilot, policy enforcement verified in ENFORCE mode, incident runbook exercised
AdditionalLegal or compliance review of agent scope before production; separate cost budget with low ceiling initially

High-impact agents warrant the full checklist and then some. Consider a staged rollout that starts with a small percentage of traffic under close monitoring before full production deployment.


Guardrails, Policy, and Evaluations: Different Tools for Different Problems​

It is tempting to pick one of these three and treat it as the safety solution. Each solves a distinct problem, and they need to be combined intentionally.

Bedrock Guardrails operate at the model input/output layer. They answer: "Is this content safe to send to or receive from the model?" They catch harmful topics, PII, and off-policy content. They do not know anything about authorization: a guardrail cannot tell you whether a specific user is allowed to call a specific tool.

AgentCore Policy (Cedar) operates at the Gateway layer. It answers: "Is this principal authorized to perform this action on this resource?" It is deterministic: the same principal, action, and resource always produce the same allow or deny. It does not evaluate content quality or catch subtle harmful phrasing.

Evaluations measure quality over time. They answer: "Is the agent actually doing the right thing, correctly, and safely, across the range of real inputs it sees?" They are the only mechanism that catches quality regressions, behavioral drift, and emergent failure modes that rule-based controls cannot anticipate.

The relationship is:

Guardrails: safe content+Policy: authorized actions+Evaluations: correct behavior=Production-safe agent

An agent with only guardrails can be manipulated into unauthorized actions. An agent with only policies can produce correct-seeming but actually wrong outputs. An agent with only evaluations can pass metrics while still taking harmful actions in edge cases. Combine all three.


Further Reading​