Skip to main content
Tue, Dec 1, 2026
The Compute Ledger

AI Architecture · Security · Guardrails & Governance

Front Page
Architecture & Patterns

Architecting Resilient AI Agents: Testing Tool Failures on Amazon Bedrock AgentCore

Proactive resilience testing of AI agents against tool failures and data corruption is critical for robust production operations.

2 min read1 primary source

AI agents in production environments frequently encounter tool failures, network partitions, and degraded upstream services. Without explicit testing, an agent's behavior under these conditions is based on assumptions, risking silent failures or incorrect outputs. Platforms like Amazon Bedrock AgentCore, combined with services like AWS Fault Injection Service (AWS FIS), enable architects to systematically test agent resilience against tool-level faults.

Key Findings

  • —AI agents must be tested for resilience against tool failures, network partitions, and corrupted data to prevent silent failures or incorrect outputs.
  • —AWS Fault Injection Service (AWS FIS) can inject tool-level faults directly into running agents on Amazon Bedrock AgentCore.
  • —The primary goal of resilience testing is to understand agent behavior during tool failure and to build observability to detect such events.
  • —Fault injection can be controlled at both a coarse (plugin loading) and fine (dynamic parameter store values) granularity, allowing for precise testing.
  • —The system injects faults inside the agent, before or after the tool call, to specifically test the agent's internal handling mechanisms.

Ensuring AI Agent Resilience in Production

Artificial intelligence (AI) agents operating in production environments are susceptible to various failures, including database query timeouts, API errors returning incorrect data, and search calls silently dropping fields. The critical question for architects is how an agent responds to these impairments: does it retry, fall back, acknowledge failure, or present a confident answer built on corrupted data? Relying on assumptions without evidence can lead to significant operational risks.

Proactive Fault Injection with AWS FIS

To address this, resilience testing is essential. The AWS Architecture Blog highlights how AWS Fault Injection Service (AWS FIS) can be used to test how an agent handles tool-level faults before real impairments occur. This approach focuses on understanding the agent's behavior when a tool fails or returns incorrect data, and crucially, whether these events can be detected by operations teams.

The testing methodology involves AWS FIS running a single AWS Systems Manager (SSM) Automation action. This action turns fault injection on for a set duration and then turns it off. The faults are injected directly inside the agent, either immediately before or after a tool call. This ensures that the testing specifically targets the agent's internal handling of tool responses, rather than the underlying network or infrastructure. The agent continues to serve traffic throughout the test, with no redeployment required to start or stop a test run.

Controlling Fault Injection

For agents built on platforms like Amazon Bedrock AgentCore, the process involves wiring chaos plugins into the agent constructor. The Strands Evals SDK already provides a ChaosPlugin for offline testing, and this capability extends to deployed AgentCore runtimes. Two distinct controls manage the fault injection process:

  • Coarse Control: This determines whether the runtime is capable of injecting faults by wiring chaos plugins into the agent constructor. This is a deployment-time decision.
  • Fine Control: This governs whether chaos is active at any given moment and which specific faults are triggered. Values stored under /chaos/{runtime_id}/ in SSM Parameter Store control these parameters. These values are read on each agent invocation (cached for 10 seconds using a time to live (TTL)), dictating which faults fire and on what fraction of invocations. Fault injection is skipped until active=true is returned by SSM.

Observability and Detection

A key aspect of resilience testing is building the necessary observability to differentiate between a safe failure and a silent one. An agent that fails silently, without alerting operations, is as problematic as one that provides incorrect information. The goal is to ensure that when a tool fails, the agent's response is predictable, detectable, and does not compromise the integrity of the output or the user experience.

Architecture & Control FlowSchematic
AWS FIS
Initiates SSM Automation
SSM Automation
Writes /chaos/{runtime_id}/
SSM Parameter Store
Agent Controller
Reads /chaos/{runtime_id}/ (cached)
SSM Parameter Store
Injects Faults (pre/post tool call)
Agent Tool Invocation

By systematically injecting faults and observing agent behavior, architects can gather evidence-based insights into an agent's resilience, moving beyond assumptions to ensure robust and reliable operation in production.

Architectural Guardrails & Controls

Open Full Register →

Why It Matters

Untested AI agents risk presenting confident yet erroneous answers or failing silently without alerting operations teams, directly impacting operational reliability and user trust. Proactive resilience testing ensures agents can gracefully handle real-world impairments, safeguarding enterprise data integrity and service continuity.

Primary Sources & References (1)

This report was synthesized from the following primary documents.

  1. [1]Resilience testing your agents on Amazon Bedrock AgentCore

    AWS Architecture Blog