Amazon Web Services has released a fresh Step Functions pattern designed to integrate AI agents into airline rebooking operations while maintaining strict code-based oversight of reservation modifications and financial transactions. The approach leverages Amazon Bedrock AgentCore agents to generate new flight itineraries and draft compensation communications following flight disruptions, with deterministic workflow steps verifying each proposal before any reservation change or payment occurs.

AWS summarizes the design philosophy with the statement: "The principle is that agents propose, and deterministic code validates." On the same day, AWS reinforced this architectural approach through a case study featuring Abnormal AI, emphasizing that agents require a computational environment capable of performing calculations, processing information, and programmatically confirming results before delivery.

Keeping financial actions behind deterministic validation

Airline rebooking represents an ideal use case for agentic workflows, as AI can assist operations teams in automating the labor-intensive work of identifying alternative routes, evaluating constraints, and managing coordination—tasks that normally demand extensive manual effort when rebooking hundreds of passengers following a flight cancellation.

AWS's new pattern combines specialized Amazon Bedrock AgentCore agents with AWS 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 an agent's reasoning layer, the pattern relocates these functions to Step Functions, where deterministic steps encapsulate each agent's non-deterministic operations. This architecture prevents agents from executing direct actions such as modifying reservations or processing payments. Instead, Step Functions validates every agent proposal before implementation, maintaining a complete execution history for compliance and review purposes.

This design diverges from multi-agent collaboration models, where a supervisor agent manages subordinate agents and their tool interactions. AWS's approach instead transfers these orchestration decisions from the agent layer to the Step Functions workflow. According to AWS, this separation enables developers to deploy AI agents with greater safety—leveraging agent reasoning for proposal generation while restricting any action until deterministic code approves it.

Though airline rebooking serves as AWS's primary example, the same pattern extends to other high-stakes financial and regulatory scenarios where deterministic code must intercede between agent recommendations and system actions.

Code execution as computational reasoning infrastructure

Alongside publishing the Step Functions pattern for validating agent decisions, AWS advanced its case for integrating code execution into agentic reasoning through a case study of Abnormal AI, a behavioral AI security vendor.

Abnormal AI employs Amazon Bedrock AgentCore Code Interpreter, a fully managed, serverless runtime within Amazon Bedrock AgentCore that enables agents to execute code on demand, to power its real-time inline email threat detection capabilities. AWS characterizes Code Interpreter as more than a coding utility: "It's fundamental infrastructure that agents use to reason computationally."

The approach pairs a managed, secured sandbox environment with a large language model to merge two distinct capabilities: the semantic reasoning and coherence delivered by an LLM alongside the computational precision, data manipulation, and verification enabled by code execution. For operational tasks—such as converting data into structured formats or performing counts—that resist straightforward semantic reasoning, a computational scratchpad permits agents to work through problems algorithmically and validate outcomes rather than depending solely on language-based reasoning.

Semantic reasoning reaches its limits

AWS is not alone in pursuing separation between model reasoning and downstream execution. Last month, Perplexity introduced Portable Computer, a local-first variant of its Computer agent running on an Nvidia DGX Spark workstation that positions deterministic software as the decision-maker for model actions. Rather than combining reasoning and execution within a single layer, Perplexity decouples them: probabilistic reasoning proposes next steps while deterministic software determines whether execution should proceed.

As agents assume increasingly critical responsibilities—spanning accounts payable, procurement, and monthly financial close operations—semantic reasoning alone cannot ensure that agent proposals merit immediate execution. However, a deterministic validation layer may provide a measurable safeguard between proposal generation and action implementation.