Skip to content

Source AWS AgentCore Resilience Testing

Reese Hodge edited this page Nov 19, 2026 · 1 revision

Source: Resilience Testing Agents on AgentCore

AWS's 2026-11-18 Architecture Blog presents a way to test how a deployed Strands agent handles tool failures and corrupted tool results, using AWS Fault Injection Service (FIS), Systems Manager (SSM), and Amazon Bedrock AgentCore Runtime. It is relevant to Max Height's graceful-degradation and observability principles, but the published implementation is Python-specific and is not adopted here.

What the post demonstrates

The FIS experiment starts one SSM Automation document. That document writes fault settings below /chaos/{runtime_id}/ in Parameter Store, enables them last, holds them for the experiment, then disables them and waits for the runtime's 10-second parameter cache to expire. The agent's controller checks the settings on each invocation. The agent code must be deployed with chaos_plugins(); SSM settings only activate faults in a runtime that already has the plugin.

The two fault families target different failure modes:

  • Pre-tool faults cancel a tool call and return an error, such as a timeout or network error. They test retry, fallback, and refusal behavior.
  • Post-tool faults let the call succeed, then truncate, remove, or corrupt fields in its result. These can produce a plausible but false answer without a failed request.

The post recommends a written, measurable hypothesis; a dedicated chaos runtime rather than production; repeated trials; and stop conditions tied to customer impact. It also shows contract validation on tool outputs with Pydantic and metrics emitted through Embedded Metric Format. The prompt used in the example improved safe refusals, but AWS explicitly treats prompting as a probabilistic mitigation, not a substitute for testing.

Reported findings and observability

In the authors' runs, the unprompted agent sometimes answered from training data after repeated tool timeouts. With corrupted results, 14 of 15 unprompted runs confidently answered without disclosing degraded data, while all five prompted runs declined and named the invalid data. These are results from one sample agent and its chosen prompts, not a guarantee about other agents.

The impairment was invisible to the infrastructure signals they checked: CloudWatch error metrics remained at zero and the invocations returned HTTP 200. The lesson is to observe tool-result validity and task success, not just request availability. Structured-output schemas validate the model's output shape; they do not prove that the tool data it used was correct.

Bearing on Max Height

The post is directly relevant to Concept-Graceful-Degradation and Concept-Observability: tool-dependent answers need explicit failure and invalid-data scenarios, and success-shaped responses need application-level validation or another way to detect bad results.

The implementation is not a drop-in for this repository. The post imports a Python strands agent and a Python chaos_plugins() package. Max Height pins @strands-agents/sdk 1.24.0; createMaxHeightAgent() builds a TypeScript Agent with the current tools and no plugins option. The checked-out 003-architecture-review branch defines an AgentCore Runtime resource in CDK, but that code alone does not establish that a runtime is deployed. No FIS/SSM fault-injection integration is present in the inspected application code.

No experiment or AWS resource was created. Adopting a deployed FIS/SSM resilience lane would need its own cost and constitutional review before implementation.

AWS Emulator fit

As checked on 2026-11-19, the latest AWS Emulator release was v1.0.523. The evaluation suite at commit abd0811 contains separate tests for:

  • FIS experiment creation, start, target resolution, stop, and deletion. Its example injects an EC2 API error; it does not call SSM Automation.
  • SSM Automation executing GetParameter and PutParameter steps, plus Parameter Store operations such as hierarchical GetParametersByPath.
  • Deploying a small Python AgentCore runtime through CloudFormation and invoking it, with an assertion that the uploaded handler code ran.

This is useful evidence that the emulator can cover some of the necessary local API and runtime boundaries. It does not establish that the exact FIS -> SSM Automation -> Parameter Store -> AgentCore workflow from the blog works end to end. The suite has separate service tests, not a test of that combined flow. The latest release's exact per-operation fidelity for this workflow was not independently checked. An AWS Builder Center analysis of release v1.0.500 reports Systems Manager at 180/309 tests (58.3%); that is an older, service-wide snapshot, not a score for v1.0.523 or for the specific operations above. See Source-AWS-Emulator.

Assessment: the AWS Emulator is a plausible opt-in spike for local API integration, but not yet evidence that this resilience experiment is reproducible locally. The Python plugin would also need to be adapted for Max Height's TypeScript agent. Keep a real, dedicated AWS runtime as the reference for any future end-to-end FIS experiment.

Clone this wiki locally