AIToday
Large Language ModelsAI Safety & AlignmentZenn AI/MLPublished: Dec 2, 2026, 10:01 JST

AWS workshop: contain AI agents with Amazon Bedrock AgentCore

Send on LINE
AWS workshop: contain AI agents with Amazon Bedrock AgentCore

3 Key Points

  1. What happened

    At re:Invent 2026, AWS's workshop used a Strands-built customer-service agent, workshop_agent, deliberately prompted to be eager about refunds, then showed four signals — Cost, Observability, Evaluation, Authorization — and staged stops from Cedar Policy to session kill.

  2. Why it matters

    The workshop's lesson is that prompt instructions can be overridden, so the boundary must sit outside the model — judging the actual tool arguments, not the chat text — and each stop is reversible, escalating from tool to session to agent to organization.

Ask AI

Ask the AI about this article. Questions and answers are published on this page

Context & Analysis

The workshop's setup is the interesting part: workshop_agent, a Strands-built financial-services agent, was intentionally prompted to be aggressive about issuing refunds. That turns the exercise from a demo of correct behavior into a test of how an outer layer catches an agent that is doing exactly what it was told to do, badly.

The architecture reflects that split. AgentCore Runtime, Memory, Gateway and Policy run the agent, while Observability, Evaluation and AWS Budgets produce signals that EventBridge routes through a Lambda into a DynamoDB-backed dashboard, where an administrator can stop a session or strip IAM permissions. Because the monitoring and shutdown path sits outside the execution environment, a prompt-injected agent does not also take over the controls meant to contain it. During the stress test, roughly 12 jailbreak-style prompts and 6 refund requests (half under $1,000, half over) were thrown at it.

The closing takeaway — that a model can be fooled but the authorization layer cannot — is the same thread AWS pulled in its Developer Keynote, where "Trust the boundaries, not the agents" framed Project C2 for AI-written code. The two target different things, agent actions versus generated code, but share the bet that probabilistic models need deterministic checks wrapped around them, with a human still setting the criteria.

FAQ
What are the four signals the workshop watches?
Cost (a $2 monthly budget, flagged at 80% and 95%), Observability (latency, errors, tokens, call volume), Evaluation (any bad LLM-as-a-judge verdict), and Authorization (refusing refunds of $1,000 or more).
How does a team actually stop an agent?
In order of increasing scope: switch a Gateway Cedar Policy to ENFORCE, end the session with StopRuntimeSession, add an IAM Deny policy blocking bedrock:InvokeModel, or apply an SCP organization-wide. Each step can be reversed.
Why not just rely on the system prompt?
The workshop assumes prompt instructions will be broken, so the boundary is placed outside the model and checks the real arguments passed to tools rather than the wording of the conversation.
Send on LINE

AI news that matters for your work, delivered every morning.

Pick your industry and the AI tools you use, and get news related to your work every day.

By signing up you agree to the Terms of Service and Privacy Policy.

Free · 30 seconds with Google · unsubscribe anytimeWhat is AIToday? →

Related Articles

Next articleAdjusting for splits? Your backtest leaks future data