AWS Keeps AI Agents Out of the Money With Step Functions Guardrails
Amazon's new workflow pattern lets AI agents propose flight rebookings while deterministic code validates every change before touching reservations or payments. The approach reflects a broader industry shift toward separating agent reasoning from execution.

Amazon Web Services unveiled a fresh Step Functions pattern this week that positions AI agents as proposal generators in airline rebooking scenarios, with deterministic workflows standing guard over any actual reservation modifications or payment processing. Amazon Bedrock AgentCore agents can now draft new travel itineraries and compose compensation messages following flight disruptions, but only after deterministic validation steps approve those suggestions does the system execute changes.
The design philosophy behind this approach is straightforward: "The principle is that agents propose, and deterministic code validates." On the same day, AWS reinforced this reasoning with a case study of Abnormal AI, a behavioral security platform, arguing that agents require computational environments where they can perform calculations, handle data, and programmatically confirm results before delivering outputs.
Separating Proposals From Execution in High-Stakes Workflows
Airline rebooking presents an ideal use case for agent-driven workflows. Operations teams currently spend considerable effort manually identifying alternative routes, evaluating constraints, and managing coordination when disruptions strike—particularly when hundreds of passengers need new bookings following a cancellation.
AWS's pattern orchestrates specialized Bedrock AgentCore agents alongside Step Functions to deliver what the company describes as "the reasoning power of generative AI with the guardrails of deterministic validation." Rather than embedding orchestration, validation, routing, and retry logic within agent reasoning itself, the pattern delegates this work to Step Functions, where deterministic operations encapsulate each agent's non-deterministic behavior. This architecture prevents agents from directly executing actions such as writing reservations or processing payments. Instead, Step Functions maintains execution history for audit purposes while applying agent proposals only after deterministic validation succeeds.
This separation differs from multi-agent collaboration models, where a supervisor agent manages sub-agent operations and tool invocations. AWS's approach relocates those orchestration decisions from the agent layer into the Step Functions workflow itself. The company suggests this separation could enable safer AI agent deployment—leveraging agent reasoning to generate ideas while restricting actual execution until deterministic code authorizes it.
Beyond airline rebooking, this pattern could extend to other sensitive financial and regulatory workflows where deterministic code must intervene between agent suggestions and system actions.
Code Execution as Infrastructure for Computational Reasoning
Alongside its Step Functions pattern, AWS highlighted the role of code execution in agent reasoning through its work with Abnormal AI, a behavioral AI security company. Abnormal AI leverages Amazon Bedrock AgentCore Code Interpreter—a fully managed, serverless runtime enabling agents to execute code on demand—to power real-time inline email threat detection.
AWS characterizes Code Interpreter as more than a development tool. According to the company, it functions as "fundamental infrastructure that agents use to reason computationally." The capability pairs a managed, secured sandbox with a large language model to combine distinct strengths: the semantic reasoning and coherence of an LLM alongside the computational abilities, data handling, and verification that code execution provides. For operational tasks—such as converting information into structured formats or performing counts—that don't naturally align with semantic reasoning, a computational scratchpad allows agents to work through problems using code and verify outcomes rather than depending solely on language-based reasoning.
A Broader Industry Movement Toward Execution Controls
AWS is not alone in pursuing this separation of reasoning from action. Last month, Perplexity released Portable Computer, a local-first variant of its Computer agent running on an Nvidia DGX Spark workstation that places deterministic software in command of model-driven actions. Rather than combining reasoning and execution in a single layer, Perplexity uses probabilistic reasoning to suggest next steps while deterministic software determines whether execution should proceed.
As agents assume increasingly consequential responsibilities—spanning accounts payable, procurement, and monthly financial close operations—semantic reasoning alone cannot ensure agent proposals warrant immediate execution. However, a deterministic validation layer may provide at least one verifiable checkpoint between proposal and action.