The source document is an analysis of an AWS Bedrock AgentCore Gateway / Step Functions integration, not a blockchain story. I have bridged it into blockchain-industry coverage by treating the AWS pattern — agent judgment in front, deterministic execution behind — as the architecture that on-chain automation has been groping toward independently, and by mapping each of the source's findings onto the Web3 stack. All product facts, operation names, region constraints, pricing figures and open questions are carried over from the source; the Web3-side comparisons are framed as analysis, not as verified vendor announcements.
Target: 5,374 words.
AWS Puts a State Machine Behind the Agent
The Bedrock AgentCore Gateway now exposes Step Functions workflows as agent-callable tools. For teams building on-chain automation, the architecture matters more than the product: it is a formal answer to the question of where machine judgment stops and execution guarantees begin.
Analysis — Blockchain Infrastructure
On October 29, AWS published a capability that reads, on first pass, like plumbing. Bedrock AgentCore Gateway can now expose existing Standard and Express Step Functions state machines to AI agents as callable tools. An agent decides whether to invoke a workflow and what to hand it. The workflow decides which steps run, in what order, how retries are handled, and how the process signals completion. AWS did not ship a new model, a new training technique, or a new inference accelerator. It shipped a boundary.
That boundary is the story, and it is a story blockchain builders have been rehearsing for years without ever quite naming it. Every on-chain automation system in production today already contains a version of this split. An off-chain agent — a keeper bot, a liquidation searcher, a treasury rebalancer, a DAO delegate running an LLM in the loop — makes a non-deterministic judgment about whether to act. A smart contract then applies a deterministic execution contract: these functions may run, in this sequence, against these state transitions, with these reverts and these events. The agent is probabilistic. The contract is not. Everything that makes Web3 automation either safe or catastrophic lives in the seam between those two things.
AWS has now productized one industrial-grade version of that seam, with IAM, region constraints, a deliberately narrow operation set, a task-token callback mechanism, and two separate billing meters attached to the same user action. Blockchain infrastructure has been assembling the same seam out of keepers, automation networks, account abstraction, intent solvers and off-chain coprocessors — mostly without the formal permission model and mostly without the audit trail. The comparison is worth taking seriously, including the parts of the AWS design that are clearly incomplete.
What the integration actually does
The mechanics are narrower than the marketing suggests, and the narrowness is informative.
AWS takes a Step Functions state machine — an existing Standard or Express workflow that a team has already authored — and surfaces it through Bedrock AgentCore Gateway as a tool that an agent can call. The state machine is not decomposed. Its internal ordering is not handed to the model. The agent gets a tool interface and a set of permitted operations; the state machine retains custody of sequencing, retries and callbacks. AWS's own framing is that the gateway provides the tool surface while Step Functions controls the steps.
The connector exposes ten operations, and the operation set differs between the two Step Functions flavors. StartExecution is available for both Standard and Express. StartSyncExecution is Express-only. ListExecutions, DescribeExecution, StopExecution and GetExecutionHistory are Standard-only. The .waitForTaskToken callback pattern is Standard-only as well. The practical consequence is blunt: exposing a workflow is not the same as exposing every operation on it. If an agent needs to inspect run history or attach to a long-running human approval, the team must choose Standard and accept the matching operation set. Express, which is cheaper for high-frequency short work, cannot carry the callback pattern at all.
Hard constraints stack on top of that. The gateway and the state machine must sit in the same region; a connector cannot reach a state machine in another region. A gateway service role governs what the connector can do. IAM resource scoping limits which workflows and which executions are reachable. The task-token operations require wildcard resource permissions, which is a quiet expansion of blast radius if the service role is drawn too generously.
And one sentence from the source deserves to be quoted into every architecture review that touches this: the connector does not by itself make an approval safe, and it does not guarantee that outcomes comply with policy. Safety is a property of the workflow and the surrounding controls, not of the tool interface. The gateway is a doorway. It is not a lock.
Why this lands on blockchain desks
The reflexive read is that an AWS workflow product has nothing to do with on-chain systems. That read is wrong for a structural reason: the two industries have converged on the same unresolved problem from opposite directions.
Blockchain gave the world deterministic execution as a first-class primitive, and then spent a decade discovering that determinism is worthless without a decision layer. A smart contract cannot decide to call itself because market conditions changed. It cannot read a news feed, weigh a counterparty's reputation, or judge whether a support ticket is genuinely urgent. Every meaningful on-chain automation therefore requires something outside the chain to make a judgment and something inside the chain to enforce a consequence. Keepers, oracle networks, automation platforms, intent-based routing and solver auctions are all attempts to build that two-layer structure with adequate guarantees.
AI infrastructure arrived at the same fork from the other side. Agents are excellent at the judgment half and unacceptable at the execution half. A model that decides which of forty tools to call is useful. A model that decides which of forty tools to call and also decides, at runtime, what sequence of privileged operations to attempt is an incident report waiting to be filed. AWS's answer is to forbid the second thing: the agent picks the entry point and the arguments, and the state machine owns everything downstream.
Read that way, the AWS announcement is not a competitor to on-chain automation. It is a reference design for it, published by a vendor with enough enterprise scar tissue to have made specific, unfashionable choices. Three of those choices are worth importing directly.
First, the operation set is deliberately a subset. AWS could have exposed the whole Step Functions API to the agent and let the model figure it out. It exposed ten operations, split unevenly across two workflow types, and accepted the resulting developer friction. That is a statement about capability boundaries: what an agent can do is determined by what the platform chose to expose, not by what the business wishes it could do. In Web3 terms, this is the difference between handing an agent a private key and handing it a scoped session key with a call allowlist and a spend cap. The former is a demo. The latter is a product.
Second, the expensive operation is the one that requires a human. The .waitForTaskToken pattern is Standard-only. Task tokens are how a workflow pauses mid-execution, hands control to an external party, and resumes when that party responds. Restricting that capability to the more expensive, more durable workflow type is an admission that human-in-the-loop is not a feature you bolt onto the cheap path. It is a different execution mode with different durability requirements. On-chain, the analogue is a multisig or a timelock sitting between an agent's proposal and the treasury transfer. Teams that treat the approval step as an afterthought discover, usually at the worst moment, that their execution path was never designed to pause.
Third, the billing is doubled, and the doubling is the business model. A single agent action now touches two meters. AgentCore Gateway charges per API call and per indexed tool; Step Functions charges per state transition on Standard, or per request, duration and memory on Express. The published numbers are small in isolation and compound quickly in aggregate. That structure — cheap at the doorway, metered inside the room — is the same structure as gas plus inference, and it produces the same governance problem: nobody can forecast the cost of an automated process without modeling two unrelated pricing curves at once.
The action boundary, stated precisely
The most useful concept in the AWS design is what the source analysis calls the action boundary. It is worth defining carefully because most agent architectures blur it.
On one side sits non-determinism: should this workflow run at all, and with what inputs. On the other sits determinism: given that the workflow has started, what happens, in what order, with what retry semantics, and what counts as success or failure. The boundary is the interface between them, and the entire safety argument depends on that interface being narrow, validated and observable.
AWS's implementation is narrow. The agent selects a tool and supplies arguments. Everything after that is state machine territory. But narrow is not the same as validated, and the source material is explicit that input validation is an open question. If an agent can pass malformed or adversarial arguments into a workflow, the determinism of the workflow does not protect anyone — it simply makes the failure reproducible. An agent that misjudges which workflow to call is a nuisance. An agent that calls the right workflow with wrong parameters is a deterministic path to a deterministic bad outcome.
This is the exact failure mode that on-chain automation has spent years trying to design out. Smart contracts are safe against bad arguments only insofar as they validate them, and every parameter that crosses from an off-chain decision into an on-chain execution is an attack surface. The pattern that has emerged in production — and that the AWS design implicitly endorses — is: the decision layer proposes, the execution layer validates against a schema, and the execution layer refuses anything that does not type-check.
The source flags JSON Schema validation for workflow inputs as unanswered. For blockchain teams, this should be treated as a hard requirement rather than a question. An agent-mediated path into a treasury operation without strict argument validation is not an automation feature. It is an unauthenticated write endpoint with extra steps.
Mapping the stack, honestly
It is tempting to declare Step Functions and smart contracts equivalent. They are not, and the differences are where the useful engineering lives.
Step Functions is serverless workflow orchestration with AWS-managed execution history, IAM-based authorization, and retry semantics implemented by the platform. Smart contracts are replicated state machines with consensus-enforced execution, public verifiability, and no native retry primitive beyond what the application implements. Step Functions can be paused and resumed via task tokens; a smart contract cannot pause, though it can be written to require an external call before state advances. Step Functions' execution history is a managed artifact; a chain's state transition log is a public good.
| Concern | Step Functions (AWS) | Smart contract + off-chain agent | |---|---|---| | Execution determinism | High, platform-enforced | High, consensus-enforced | | Who can execute | IAM principal via gateway service role | Any address with gas and permission | | Retry model | Native, configurable | Application-implemented | | Human approval | Task token, Standard only | Multisig, timelock, or two-phase commit | | Audit trail | Execution history, region-scoped | Public chain state and logs | | Cost model | Per state transition / per request-duration-memory | Gas, plus priority fees under contention | | Failure visibility | CloudWatch, separate from gateway logs | Revert reasons, explorer visibility | | Cross-boundary access | Same region only | Cross-chain bridges, oracles | | Identity | IAM role | Address, plus account abstraction delegation |
The table makes the trade visible. AWS wins on retry semantics, managed audit, and a coherent permission model. On-chain execution wins on universal verifiability and permissionless participation. Neither wins on observability, because both split their logs across two systems that do not natively join.
That observability split is not a minor operational annoyance. The source notes it as a hidden consequence: AgentCore Gateway invocation logs and Step Functions execution history live in different native views. An investigator asking "what did the agent decide, and what did the workflow do with that decision" has to correlate two log streams by hand. The on-chain equivalent is worse in one respect and better in another: worse because the off-chain agent's reasoning is invisible on-chain, better because the execution half is at least publicly readable. The pattern is the same problem — the decision layer and the execution layer produce separate evidence, and nobody has built the joined view.
Any serious on-chain agent system needs that joined view before it needs anything else. If an agent's proposal and the resulting state change cannot be linked by a single identifier, the system is unauditable in practice regardless of how deterministic the execution half is.
Security is the workflow's job, not the interface's
The single most valuable sentence in the source material is the admission that the connector cannot make an approval safe and cannot guarantee policy compliance. That sentence is the difference between a vendor selling a capability and a vendor selling a feeling.
Applied to Web3, the principle translates cleanly. Exposing an agent to a smart contract through a tool interface does not make that contract's interaction safe. The safety properties come from the contract's own access control, from the workflow's ordering, and from the surrounding controls — rate limits, spend caps, timelocks, allowlists, circuit breakers. A tool wrapper that presents transfer as a friendly function call to an LLM adds convenience and subtracts nothing from the underlying risk. In some configurations it adds risk, because the wrapper may normalize away the friction that previously made misuse harder.
The source identifies several concrete amplification points that map directly onto on-chain deployments.
Prompt injection against a tool surface. If an agent's context can be influenced by adversarial content, and the agent can invoke workflows that move value or change permissions, then prompt injection becomes a transaction-injection vector. AWS does not claim to have solved this; the source lists it as an open question. On-chain, the mitigation pattern is well understood even if inconsistently applied: the agent should never hold authority directly. It should propose, and a policy layer should independently evaluate the proposal against static rules before execution. The model's judgment is an input to the policy check, never a substitute for it.
Scope creep through service roles. The task-token operations require wildcard resource permissions. That is a genuine expansion point. If the gateway's service role is drawn broadly, one misjudgment can touch multiple executions, not just the one the agent intended. The on-chain analogue is a hot wallet with a single key covering every protocol position. The mitigation is per-workflow scoped delegation — a distinct session key with a distinct call allowlist per workflow — and it is the same mitigation whether the executor is an IAM role or an EOA.
Region lock as a resilience constraint. The gateway and the state machine must live in the same region. Cross-region disaster recovery and multi-region agent deployment therefore require duplicated gateways and duplicated state machines, with all the drift that implies. On-chain systems face a different but structurally similar constraint: execution happens where the chain is, and the bridges that pretend otherwise are historically where the largest losses concentrate. The lesson generalizes — the execution layer cannot be made location-independent by wishing it so, and architectures that assume it can be tend to fail during the exact incident they were built for.
The gap between "the workflow succeeded" and "the outcome is correct." A workflow that runs to completion and produces a policy-violating result is a successful execution of a bad process. The source is clear that the connector provides no guarantee here. Every automated on-chain system needs a post-condition check that is independent of the execution path, because the execution path will faithfully do the wrong thing if it was authored to.
The cost model nobody wants to own
The published pricing is small enough to look irrelevant and structured badly enough to matter.
AgentCore Gateway charges roughly $0.005 per 1,000 API calls — on the order of $5 per million. Tool indexing runs about $0.02 per month per index of 100 tools, or roughly $0.0002 per tool per month. Step Functions Standard charges per state transition: $0.000025 per transition after the first 4,000 free transitions per month in the US East example, with retries counted. Express charges per request, plus duration and memory.
The source's arithmetic is the right place to start. A single agent trigger that fans out into 100 state transitions costs about $0.0025 in Standard transitions. At 100,000 agent triggers per month, that is roughly $250 in transitions alone — before gateway calls, before tool indexing, and before any Bedrock inference. Express may be cheaper for high-frequency short tasks, but it cannot do task tokens, which removes the human approval path.
Two conclusions follow, and only one of them is about money.
The first is that the free tier is a trial mechanism, not a production subsidy. Four thousand free transitions is trivial for any workflow that does real work. Any team that models its costs on the free tier will be surprised in the second month.
The second, and more important, conclusion is that the cost of a single automated business action is now distributed across at least three meters that no one team owns. Gateway calls belong to whoever runs the tool layer. State transitions belong to whoever authored the workflow. Model inference belongs to whoever configured the agent. Nobody in that triangle can answer the question "what does one customer refund cost us end to end" without a cross-team spreadsheet and a shared identifier taxonomy.
On-chain, the same disease presents with different symptoms. Gas is visible, sometimes painfully so, and inference is a separate line item billed by a separate vendor in a separate currency on a separate cycle. Treasury teams routinely cannot attribute the fully loaded cost of an automated strategy because execution cost, model cost, and data cost live in three systems. The AWS integration does not create this problem. It reproduces it in an enterprise-friendly wrapper, which arguably makes it worse, because the wrapper looks like it should have solved it.
The source's business-model read is likely correct: the gateway's API fee is too small to be the point. The intent is to make Step Functions and Bedrock the long-term consumption surface, with the tool layer acting as the on-ramp. That is exactly how every successful infrastructure bundling strategy has worked, and it carries the same risk for customers — lock-in that arrives through convenience rather than contract.
What the competitive landscape shows
The source's comparison matrix is worth restating because it clarifies where the AWS approach is genuinely differentiated and where it is merely well-marketed.
| Dimension | AWS (this integration) | OpenAI Agents/Assistants | Anthropic MCP + Claude | Google Vertex AI Agent Builder + Workflows | Azure AI Agent Service + Logic Apps | Open source (LangGraph, Temporal, MCP) | |---|---|---|---|---|---|---| | Core positioning | Agent tool calls + deterministic state machine | Model + tool orchestration | Tool protocol + model | Agent construction + workflows | Agent service + integration platform | Framework-level orchestration | | Orchestration determinism | High, state machine controlled | Low to medium, framework-dependent | Medium, client-dependent | Medium to high | Medium to high | High, depends on framework | | Enterprise permission model | Strong, AWS IAM | Medium | Depends on deployment | Strong, GCP IAM | Strong, Azure AD | Self-built | | Region / cloud lock-in | High, same-region constraint | Medium | Low | High | High | Low | | Billing complexity | High, dual metering | Medium | Medium | Medium to high | Medium to high | Self-built cost | | Ecosystem maturity | Strong Step Functions installed base | Strong developer base | Growing protocol ecosystem | GCP enterprise ecosystem | Microsoft enterprise ecosystem | Flexible, integration required |
AWS's real differentiator is not the state machine — Temporal has offered durable execution for years and LangGraph offers graph-structured orchestration with checkpoints. The differentiator is the combination of a deterministic execution engine with an enterprise IAM model and an existing installed base of workflows that already run business-critical processes. A company that has spent five years encoding its approval chain in Step Functions can expose it to an agent in an afternoon. A company starting from scratch gets none of that advantage and pays the lock-in anyway.
Anthropic's MCP occupies a different position: it is a protocol, not an execution engine. It standardizes how tools are described and invoked, which is precisely the half of the problem that AWS has solved narrowly and proprietarily. If MCP becomes the default tool interface, the interesting question becomes whether deterministic execution engines — Step Functions, Temporal, on-chain state machines — standardize an execution-side interface to match. Nothing in the current landscape suggests that is close.
The source flags MCP interoperability as unanswered for the AWS integration, and that is the right thing to flag. A tool layer that speaks a proprietary interface and an execution layer that speaks a proprietary interface compose well with each other and badly with everything else.
Industry impact: where the substitution actually bites
The source frames the impact as a mix of augmentation and substitution against workflow automation, RPA, iPaaS and BPM, and its confidence rating on this dimension is correctly lower than on the technical and commercial dimensions. The directional read is defensible; the magnitudes are guesses.
The mechanism is straightforward. RPA's classic pattern is record-and-replay: a deterministic script drives a deterministic sequence of UI interactions. Its weakness is brittleness — any interface change breaks the script, and the script has no ability to reason about an exception. Agent-plus-state-machine addresses the brittleness by inserting judgment at the exception points while keeping the main path deterministic. That is a real improvement, and it explains why the pattern is spreading faster than the marketing around it.
The on-chain version of this substitution is already visible in production DeFi and DAO operations. Keepers that once ran rigid conditional logic now increasingly sit behind an agent that decides whether a condition is genuinely met, with the contract still enforcing what happens. Treasury operations that required a human to notice a drift and open a transaction now increasingly involve an agent that proposes and a multisig that approves. The judgment layer got smarter; the execution layer stayed exactly as rigid as it was.
| Sector / scenario | Substitution rate | Augmentation rate | Time window | Representative use | |---|---|---|---|---| | Software development / IT operations | Medium | High | Near term | Incident remediation, deployment approval, ticket routing | | Financial services | Low to medium | High | Medium term | Credit approval, reconciliation, compliance checks | | Healthcare | Low | Medium | Medium term | Scheduling, records routing, authorization | | Legal | Low | Medium | Medium term | Contract approval, matter workflow | | Customer service | Medium | High | Near term | Ticket creation, refund approval, escalation | | Supply chain / back office | Medium | High | Medium term | Order processing, replenishment, exception handling |
Translating the near-term rows into Web3 terms: on-chain operations teams, protocol DevOps, and DAO operational workflows are the first places the pattern lands, because those are the environments where the deterministic half already exists and the judgment half is the obvious bottleneck. Credit and compliance-heavy scenarios arrive later because the regulatory surface is larger than the technical one.
The source also makes a point about compute that deserves emphasis because it is counterintuitive. Step Functions is serverless workflow orchestration and consumes no GPUs. The direct compute draw is negligible. The indirect draw is not: every agent decision that reaches a model consumes inference, and the whole point of the integration is to increase the frequency with which agents reach models. Faster, cheaper, better-governed agent-triggered workflows mean more inference, not less. The same holds on-chain where agent-driven execution increases both model inference and, in the limit, on-chain activity.
The unanswered questions that matter most
The source's list of open questions is unusually well-targeted, and several of them are load-bearing rather than nice-to-have.
Whether the gateway is preview or generally available, and whether it carries an SLA, determines whether any of this belongs in a production architecture review. The source flags this and cannot resolve it, which is the honest position given the information available.
How the gateway authenticates and authorizes agent identity is the most consequential unknown. If every agent action runs under a single gateway service role, then the audit trail records what the role did, not which agent did it. Identity propagation matters enormously for incident response and matters just as much on-chain, where the equivalent question is whether an agent acts under a delegated session key with its own address and its own limits, or under a shared operational wallet whose history is a blur.
Whether workflow inputs support strict schema validation, and how retries and idempotency are guaranteed, is the difference between a system that fails safely and one that fails twice. Idempotency is the specific hazard that automated finance keeps rediscovering: if an agent's trigger is delivered more than once, and the workflow is not idempotent, the operation executes more than once. State machines make this easier to reason about than ad hoc scripting, but they do not solve it automatically, and the source does not claim they do.
Concurrency limits, throttling and per-account quotas determine whether any of this scales past a pilot. Nothing in the published material resolves them.
Cross-account access, VPC endpoints, PrivateLink and MCP interoperability determine whether the pattern composes with the rest of an enterprise's estate or becomes another island.
And the governance question — unified audit logging, policy engine integration in the Cedar or OPA style, and cost guardrails — determines whether the pattern can be operated by anyone other than the team that built it. This is where on-chain systems have an unexpected advantage, because the execution half is publicly auditable by default and policy can be enforced in the contract itself. The decision half remains equally opaque on both sides.
What to take from this
The temptation with an announcement like this is to file it under vendor news and move on. The better move for blockchain infrastructure teams is to treat it as a checklist authored by someone who has already been paged at 3 a.m.
The checklist has five items.
Separate the decision from the execution, explicitly, in the architecture diagram. An agent that both decides and executes is not an automation system. It is an unpredictable process with credentials. The seam should be visible in the diagram, in the code, and in the logs, and it should be narrow enough that a reviewer can describe exactly what crosses it.
Make the execution side refuse bad input. Schema validation on the boundary is not optional, and on-chain it is enforced by the contract or not at all. An agent that miscalculates a parameter should hit a revert, not a transfer.
Scope authority per workflow, not per agent. The AWS lesson from the task-token wildcard permission generalizes directly: broad authority in service of convenience is how single misjudgments become multi-incident events. Session keys, call allowlists, spend caps, per-workflow delegation.
Design the approval path as a first-class execution mode. If human sign-off is part of the process, the workflow must be able to pause durably and resume on an external signal. Anything built on the assumption that approval happens "around" the automation will eventually approve something nobody read.
Budget for the meters you did not choose. Gas plus inference plus tool-layer calls plus indexing is the real cost of an automated on-chain action. If that number cannot be produced on demand for a single business process, the automation is not yet understood well enough to scale.
None of this is novel to anyone who has operated on-chain systems. What is novel is seeing an enterprise cloud vendor converge on the same conclusions from the opposite direction, and publish a product that concedes — in its operation set, in its billing structure, in its region constraint, and most of all in its explicit refusal to promise that the tool interface makes anything safe — that the hard part was never the model.
The hard part was always the boundary. AWS has drawn one. Blockchain has been drawing its own, less formally, for years. The two drawings look increasingly alike, and the teams that notice will build the systems that survive contact with production.