These are target-state architecture patterns for agent operations at enterprise scale, not required prerequisites for a first prototype. Native AgentCore capabilities are clearly distinguished from customer-built patterns throughout this page.
Agent Ops
Platform engineers designing deployment and operations for agents on AgentCore — specifically the CI/CD pipeline, traffic management, A/B testing, lifecycle governance, and operational feedback loops.
Agent Ops extends DevOps practices to the unique challenges of AI agents. Because agents are non-deterministic and continuously evolving, they require purpose-built CI/CD pipelines, continuous evaluation, traffic management, and lifecycle governance. This page covers the full deployment pipeline, ongoing operations, and the clear distinction between what AgentCore Runtime provides natively and what you build on top.
Agent CI/CD Pipeline
An agent deployment pipeline validates quality, safety, and performance at every stage. It goes beyond "does it build?"
Pipeline Stages
| Stage | What Happens | Gate Criteria |
|---|---|---|
| Commit | Code pushed, PR created | Linting, type checks, unit tests pass |
| Build & Test | Container image built, integration tests run | All tests pass, image scans clean |
| Validate (Evals) | Deterministic tests plus batch evaluations against test dataset | Deterministic checks pass, quality score ≥ threshold, latency ≤ SLA |
| Promote to Stage | Deploy to staging environment | Smoke tests pass, no regression vs. baseline |
| Registry | Agent version registered with metadata | Approval workflow complete (if required) |
| Promote to Prod | Deploy to production with traffic ramp | Canary metrics healthy, no alerts triggered |
Quality Feedback Loop
When evaluations fail at the Validate stage, the pipeline provides actionable feedback:
Treat evaluation failures like test failures - they block the pipeline. This ensures only validated agents reach production.
Ongoing Operations
Once an agent is in production, operations shift to continuous monitoring, experimentation, and lifecycle management.
Monitoring & Evaluations
Continuous operational health checks powered by AgentCore Observability, Evaluations, CloudWatch Alarms, and Cost Explorer.
| Signal | Monitors | Action on Breach |
|---|---|---|
| Quality | Builtin.Faithfulness, Builtin.ResponseRelevance, Builtin.Correctness scores (evaluators) | Alert owner, escalate if sustained |
| Cost | Token spend, tool invocation costs per agent | Throttle, switch model, notify team |
| Behavior | Response distribution, tool usage patterns | Investigate drift, trigger on-demand eval |
| Availability | Success rate, timeout rate, error rate | Auto-scale, circuit break, rollback |
Versioning, Endpoints, and Canary Rollout
AgentCore Runtime versions automatically. Any change that affects behavior (protocol settings, container image, network configuration) creates a new immutable version; unrelated changes do not. Endpoints are the mechanism for controlling which version actually serves traffic. See Runtime lifecycle settings for full details on endpoint management.
| Change Type | Version Created | DEFAULT Endpoint | Named Endpoint (e.g. PROD) |
|---|---|---|---|
| Initial creation | V1 | Points to V1 | Not yet created |
| Container image update | V2 | Moves to V2 | Stays on V1 until updated manually |
Point PROD at V2 explicitly | No new version | Unchanged | Moves to V2 |
| Container image update again | V3 | Moves to V3 | Stays on V2 |
See Agent Runtime versioning for the full versioning model.
This gives you blue-green deployment out of the box: cut a new version, validate it behind a staging endpoint, then repoint PROD to it once you're confident.
A canary pattern built on top of endpoint versioning looks like:
- Deploy the new agent version, create a
canaryendpoint pointed at it, leavePRODon the current version. - Route a small percentage of live traffic to
canarythrough your routing layer. - Compare quality, latency, and cost between
canaryandPRODusing AgentCore Observability's per-version metrics. - If the canary holds or improves on quality thresholds, repoint
PRODto the new version and delete thecanaryendpoint. If it regresses, deletecanaryand repoint traffic back toPROD. No code change is needed sincePRODnever moved.
Native A/B Testing
AgentCore provides native A/B testing with Gateway-driven weighted traffic splitting. This lets you compare agent variants scientifically — with statistical significance — without building your own routing layer.
Two modes are available (A/B testing overview):
- Config-bundle mode — compares prompt, tool, or model configuration variants running on the same runtime. Use this when you want to test whether a prompt rewrite or model upgrade improves quality without changing infrastructure. See config-bundle A/B testing.
- Target-based mode — routes traffic to two different runtime endpoints. Use this for comparing fundamentally different agent architectures or framework versions. See target-based A/B testing.
Both modes support percentage-weighted traffic splits via --control-weight / --treatment-weight (0–100, default 50/50). Routing is sticky by runtimeSessionId, so a given session always reaches the same variant. Online evaluations score both variants throughout the test, and statistical significance is reported automatically.
# Start an A/B test with a 90/10 traffic split
agentcore run ab-test \
--control-endpoint arn:aws:bedrock-agentcore:...:endpoint/prod \
--treatment-endpoint arn:aws:bedrock-agentcore:...:endpoint/candidate \
--control-weight 90 \
--treatment-weight 10
You can also create and query A/B tests programmatically via the CreateABTest / GetABTest APIs.
Agent Lifecycle Management
An agent's operational lifecycle (is it being built, tested, or serving traffic) and its registry status (is it discoverable and approved for reuse) are two different, loosely-coupled tracks. Runtime versioning and endpoints drive the first; AWS Agent Registry drives the second.
| Operational Phase | What's Happening | Typical Registry Status |
|---|---|---|
| Development | Build, test locally, iterate on prompts | DRAFT, not yet submitted |
| Review | Submitted for security/compliance review | PENDING_APPROVAL |
| Production | Serving live traffic behind a PROD endpoint | APPROVED, discoverable for reuse |
| Deprecated | Marked for removal, consumers notified | DEPRECATED, no longer surfaced in search |
A record can also land in REJECTED if a reviewer declines it. That's not a phase an agent passes through on the way to production. It's a dead end that sends the publisher back to DRAFT.
Key lifecycle operations:
- Version History: AgentCore Runtime creates an immutable version on every behavior-affecting change (see the endpoint versioning table above). This is independent of Registry status.
- Rollback: repoint the
PRODendpoint to a previous Runtime version. Registry status does not need to change for a rollback. The record still describes the same logical agent. - Deprecation Workflow: move the Registry record to
DEPRECATEDso it stops appearing in search and the MCP discovery endpoint, notify known consumers, and set a sunset date for the underlying Runtime endpoint. Traffic redirection after the sunset date is handled by your routing layer, not by Registry itself.
Services Summary
| Capability | Primary Service | Label |
|---|---|---|
| CI/CD Pipeline | CodePipeline + CodeBuild (or GitHub Actions) | Adjacent AWS |
| Evaluation Gates | AgentCore Evaluations | AgentCore-native (docs) |
| Monitoring & Alerts | AgentCore Observability + CloudWatch Alarms | AgentCore-native + Adjacent AWS |
| Cost Tracking | AWS Cost Explorer + Cost Allocation Tags | Adjacent AWS |
| Version Management | AgentCore Runtime endpoint versioning (docs) | AgentCore-native |
| A/B Testing | AgentCore native — Gateway-driven weighted splitting (docs) | AgentCore-native |
| Canary Rollout (custom %) | Customer-built routing layer + AgentCore Observability | Customer-built pattern |
| Agent Catalog | AWS Agent Registry | Preview (docs) |
Further Reading
- A/B Testing Overview — native Gateway-driven traffic splitting
- Config-bundle A/B Testing — prompt/tool/model variants on same runtime
- Target-based A/B Testing — different runtime endpoints
- Agent Runtime Versioning — immutable versions and endpoint promotion
- Runtime Lifecycle Settings — endpoint management and lifecycle phases
- AgentCore Evaluators —
Builtin.*evaluator IDs and usage