AWS Builder Center
Agents fake what they can’t do: notes from the Once Upon Agentic AI workshop

Agents fake what they can’t do: notes from the Once Upon Agentic AI workshop

An agent with no dice tool still “rolled” dice, a model added 5 + 3 + 6 as 18, and a schema accepted a d6 showing 15. What the Once Upon Agentic AI workshop showed me about where agents need guardrails.

I spent an evening on the Once Upon Agentic AI workshop: a Game Master agent built step by step with Strands, then split into a dice server over MCP, a Rules Agent and a Character Agent over A2A, and finally moved to Amazon Bedrock AgentCore. The mechanics are well explained in the workshop itself. This article is about what I saw the agents do when nobody was checking, because that’s what I’ll take back to real work.

The agent rolled dice it didn’t have

In Chapter 8 the Character Agent runs on AgentCore and stores characters in AgentCore Memory. To test it, I called it directly:
agentcore invoke --runtime characteragent "Create a male dwarf fighter named Thorin"
It answered with a neat table: Strength rolled 6, 5, 4, 3, drop the 3, total 15, and so on for all six abilities. The sums were right. The problem is that the Character Agent has no dice tool. In this architecture only the Game Master can roll, through the MCP dice server. Called directly, the agent didn’t say “I can’t roll”. Its description promises abilities “rolled 4d6 drop lowest”, so it produced plausible numbers and presented them as rolls.
Nothing in the output gave it away. That’s the part that worries me: a missing capability doesn’t show up as an error, it shows up as a confident fake.

Real dice, wrong arithmetic

When the dice did go through the tool, the rolls were real, and the dice server logs confirmed every value. What the model did with them was less reliable:
  • It rolled 5, 3, 1, 6, dropped the 1 and reported 5 + 3 + 6 = 18. That’s 14.
  • It struck through a 6 in the table while saying it dropped the 3.
  • It rolled a total of 12 against a goblin it had described as AC 15 one turn earlier, then narrated a hit.
None of these failures came from the tools. They all came from steps the model did “in its head”: summing, comparing, choosing which die to drop.

The schema checked the shape, not the meaning

The Game Master returns a Pydantic  StoryOutput  with a  dice_rolls  list. In one run it contained  {"dice_type": "d6", "result": 15} . Structured output validated it happily:  result  is an integer, as declared. A six-sided die can’t show 15. The model had put the ability total into the field meant for a single roll.
Structured output is a contract about form. If a value has to make sense, for example  result <= faces , that rule has to live in a validator, not in the hope that the model fills the fields correctly.

Details nobody asked for

I asked for “a character named Thorin, a Dwarf Fighter”. The story came back with Thorin Ironforge, male. In a later run, Thorin Stonehelm. Neither the surname nor the gender was in the request or in the database. For a fantasy game it’s charming. In a system that writes customer records, it’s data that appeared from nowhere.
The Character Agent’s own tool docstring warns that names aren’t unique and suggests checking first. By the end of the evening the database held three Thorins. A warning in a description is advice to the model, not a constraint.

What I’d change in a real system

The pattern behind all of this is the same: the model is good at deciding what to do and at narrating, and unreliable at anything that has one correct answer.
  • Deterministic steps go into tools. Drop-lowest-and-sum, hit-or-miss against AC, uniqueness checks. The model calls them and narrates the result.
  • Every agent gets only the tools its role needs, and its description matches them. If an agent can’t perform an action, its description shouldn’t promise it, or the model will fill the gap.
  • Validate meaning, not just structure. Pydantic validators on the output model catch the impossible values the schema lets through.
  • Isolate state per caller from the start. The Chapter 5 orchestrator is a single agent instance, so a new player in the web UI saw all my earlier requests. The remote agents use a factory per context, the entry point should too.

Practical tips if you take the workshop

  • You can run Chapters 1-7 on your own machine against the sandbox: export the credentials from “Get AWS CLI credentials” in the event page. Every new terminal needs them again.
  • For Chapter 8, use the sandbox Code Editor: it has the AWS CLI, the AgentCore CLI and the region already set.
  • Start the knowledge base ingestion as early as the workshop allows. In the sandbox it took longer than the rest of my Chapter 8 work, and the 8-hour window ran out before it finished.
  • The installed strands-harness rejects  session="fantasy-campaign" . Use  session={"id": "fantasy-campaign"} .
The workshop teaches how to connect agents. The most useful thing I took from it was seeing where they need to be fenced in.
Any opinions in this article are those of the individual author and may not reflect the opinions of AWS.
Enjoyed reading this content? Let the author know!

Your likes, comments, shares, and saves help creators reach more builders.

Loading recommendations

Loading article