<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title>DEV Community: Kento IKEDA</title>
    <description>The latest articles on DEV Community by Kento IKEDA (@ikenyal).</description>
    <link>https://dev.to/ikenyal</link>
    <image>
      <url>https://media2.dev.to/dynamic/image/width=90,height=90,fit=cover,gravity=auto,format=auto/https:%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F634239%2Fefa867e9-b872-436c-a450-2c5115bd4394.jpg</url>
      <title>DEV Community: Kento IKEDA</title>
      <link>https://dev.to/ikenyal</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/ikenyal"/>
    <language>en</language>
    <item>
      <title>Is AWS Blocks Becoming "CDK Blocks"? What the Move to aws/cdk-blocks and the Rename Change</title>
      <dc:creator>Kento IKEDA</dc:creator>
      <pubDate>Wed, 18 Nov 2026 23:27:34 +0000</pubDate>
      <link>https://dev.to/aws-builders/is-aws-blocks-becoming-cdk-blocks-what-the-move-to-awscdk-blocks-and-the-rename-change-2ikd</link>
      <guid>https://dev.to/aws-builders/is-aws-blocks-becoming-cdk-blocks-what-the-move-to-awscdk-blocks-and-the-rename-change-2ikd</guid>
      <description>&lt;p&gt;When I opened the AWS Blocks repository this morning (Japan time), the URL had changed.&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;&lt;a href="https://github.com/aws/cdk-blocks" rel="noopener noreferrer"&gt;aws/cdk-blocks on GitHub&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;I have been contributing to &lt;code&gt;aws-devtools-labs/aws-blocks&lt;/code&gt; since the public preview started in June, so this was a bit of a surprise.&lt;/p&gt;

&lt;blockquote&gt;
&lt;p&gt;It moved from aws-devtools-labs to the &lt;code&gt;aws&lt;/code&gt; organization? And the name is CDK Blocks?&lt;/p&gt;
&lt;/blockquote&gt;

&lt;p&gt;re:Invent is just around the corner, so a lot tends to happen at this time of year.&lt;/p&gt;

&lt;p&gt;Judging from the public GitHub Actions logs, the transfer happened shortly before 20:00 UTC on November 18, 2026. A &lt;a href="https://github.com/aws/cdk-blocks/actions/runs/44385777194" rel="noopener noreferrer"&gt;CodeQL job&lt;/a&gt; that ran at 19:58 UTC still checked out &lt;code&gt;aws-devtools-labs/aws-blocks&lt;/code&gt;, while a &lt;a href="https://github.com/aws/cdk-blocks/actions/runs/44385992543" rel="noopener noreferrer"&gt;Dependabot job&lt;/a&gt; at 20:00 UTC already targeted &lt;code&gt;aws/cdk-blocks&lt;/code&gt;. That Dependabot job received the response "Repository 'aws/cdk-blocks' is disabled.", which suggests the transfer was still in progress at that moment.&lt;/p&gt;

&lt;p&gt;This is not an official AWS announcement. It is a quick write-up of what can be read from the public repository and its pull requests. At the time of writing (November 19, 2026, Japan time), I could not find any official announcement from AWS. The repository has moved and the code has started to be renamed, but the README and the documentation have not been touched yet. Please read this as a report on the very first signs of a rename.&lt;/p&gt;

&lt;h2&gt;
  
  
  What we know so far
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;The repository moved from &lt;code&gt;aws-devtools-labs/aws-blocks&lt;/code&gt; to &lt;code&gt;aws/cdk-blocks&lt;/code&gt;. The old URL redirects to the new one.&lt;/li&gt;
&lt;li&gt;The product is heading toward the name "CDK Blocks". A pull request from the development team says, "The product is being renamed to CDK Blocks."&lt;/li&gt;
&lt;li&gt;The README and the documentation are still untouched. The README heading is still "AWS Blocks (Preview)" and the name CDK Blocks does not appear in it yet. The documentation is still the "AWS Blocks Developer Guide".&lt;/li&gt;
&lt;li&gt;The npm packages are still &lt;code&gt;@aws-blocks/*&lt;/code&gt;, and no packages under the new names have been published yet.&lt;/li&gt;
&lt;li&gt;Pull requests with breaking changes to package names, environment variables, and folder names are concentrated around the time of the transfer.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;In short, the rename has only just begun, and any impact on users' code will come with future releases. That is as far as I think we can say right now.&lt;/p&gt;

&lt;h2&gt;
  
  
  What happened around the transfer
&lt;/h2&gt;

&lt;p&gt;The transfer itself takes a moment, but the rename work inside the repository had started the day before. Here are the related pull requests in UTC.&lt;/p&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Time (UTC)&lt;/th&gt;
&lt;th&gt;Change&lt;/th&gt;
&lt;th&gt;Status&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;11/17 23:18&lt;/td&gt;
&lt;td&gt;Rename the Kotlin Gradle plugin's extension and tasks to &lt;code&gt;cdkBlocks&lt;/code&gt; (&lt;a href="https://github.com/aws/cdk-blocks/pull/1593" rel="noopener noreferrer"&gt;#1593&lt;/a&gt;)&lt;/td&gt;
&lt;td&gt;Merged&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;11/18 09:47&lt;/td&gt;
&lt;td&gt;Rename the &lt;code&gt;AWS_BLOCKS_*&lt;/code&gt; environment variables to &lt;code&gt;CDK_BLOCKS_*&lt;/code&gt; (&lt;a href="https://github.com/aws/cdk-blocks/pull/1602" rel="noopener noreferrer"&gt;#1602&lt;/a&gt;)&lt;/td&gt;
&lt;td&gt;Merged&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;11/18 14:24&lt;/td&gt;
&lt;td&gt;PR opened to rename the npm packages to &lt;code&gt;@aws-cdk-blocks/*&lt;/code&gt; and the umbrella package to &lt;code&gt;aws-cdk-blocks&lt;/code&gt; (&lt;a href="https://github.com/aws/cdk-blocks/pull/1627" rel="noopener noreferrer"&gt;#1627&lt;/a&gt;)&lt;/td&gt;
&lt;td&gt;In review&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;11/18 19:58-20:00&lt;/td&gt;
&lt;td&gt;Repository transferred to &lt;code&gt;aws/cdk-blocks&lt;/code&gt;
&lt;/td&gt;
&lt;td&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;11/18 20:18&lt;/td&gt;
&lt;td&gt;Update CODEOWNERS for the move (&lt;a href="https://github.com/aws/cdk-blocks/pull/1645" rel="noopener noreferrer"&gt;#1645&lt;/a&gt;)&lt;/td&gt;
&lt;td&gt;Merged&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;11/18 21:41&lt;/td&gt;
&lt;td&gt;Rename &lt;code&gt;.blocks-sandbox&lt;/code&gt; to &lt;code&gt;.cdk-blocks-sandbox&lt;/code&gt; (&lt;a href="https://github.com/aws/cdk-blocks/pull/1644" rel="noopener noreferrer"&gt;#1644&lt;/a&gt;)&lt;/td&gt;
&lt;td&gt;Merged&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;11/18 21:52&lt;/td&gt;
&lt;td&gt;Point the GitHub OIDC trust policy at the new repository name (&lt;a href="https://github.com/aws/cdk-blocks/pull/1647" rel="noopener noreferrer"&gt;#1647&lt;/a&gt;)&lt;/td&gt;
&lt;td&gt;Merged&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;p&gt;There are also &lt;a href="https://github.com/aws/cdk-blocks/pull/1630" rel="noopener noreferrer"&gt;#1630&lt;/a&gt;, which renames the generated backend folder from &lt;code&gt;aws-blocks/&lt;/code&gt; to &lt;code&gt;cdk-blocks/&lt;/code&gt;, and &lt;a href="https://github.com/aws/cdk-blocks/pull/1607" rel="noopener noreferrer"&gt;#1607&lt;/a&gt;, which renames the hidden local data folder from &lt;code&gt;.blocks&lt;/code&gt; to &lt;code&gt;.cdk-blocks&lt;/code&gt;. Both are still in review.&lt;/p&gt;

&lt;p&gt;On the product name, the description of &lt;a href="https://github.com/aws/cdk-blocks/pull/1602" rel="noopener noreferrer"&gt;#1602&lt;/a&gt; includes this sentence:&lt;/p&gt;

&lt;blockquote&gt;
&lt;p&gt;The product is being renamed to CDK Blocks, so the &lt;code&gt;AWS_BLOCKS_*&lt;/code&gt; environment variables no longer match the name customers see.&lt;/p&gt;
&lt;/blockquote&gt;

&lt;p&gt;So "CDK Blocks" is not a name I guessed from the repository name. It is the name the development team itself uses in its pull requests.&lt;/p&gt;

&lt;h2&gt;
  
  
  What the &lt;code&gt;aws&lt;/code&gt; organization and the CDK name suggest
&lt;/h2&gt;

&lt;p&gt;The destination, the &lt;a href="https://github.com/aws" rel="noopener noreferrer"&gt;aws&lt;/a&gt; organization, is where repositories such as the AWS CDK and the AWS CLI live. The source, aws-devtools-labs, has "labs" in its name, and it gave me the impression of a place for experimental developer tool projects. The project has moved from there to the organization that hosts AWS's major open-source projects.&lt;/p&gt;

&lt;p&gt;The CDK in the new name also fits how Blocks works. As I described in a previous post, Blocks runs the same code differently depending on the execution context, and at deploy time it generates CDK constructs.&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;&lt;a href="https://dev.to/aws-builders/what-is-aws-blocks-how-it-differs-from-amplify-and-app-studio-and-what-each-one-is-aiming-for-2kn0"&gt;What Is AWS Blocks? How It Differs from Amplify and App Studio, and What Each One Is Aiming For&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;The rename work also includes changes that tie Blocks more closely to CDK. The description of &lt;a href="https://github.com/aws/cdk-blocks/pull/1602" rel="noopener noreferrer"&gt;#1602&lt;/a&gt; says that the opt-out for usage data collection (telemetry) will no longer be a Blocks-specific environment variable but will merge into CDK's own &lt;code&gt;CDK_DISABLE_CLI_TELEMETRY&lt;/code&gt;. That change itself is in progress in &lt;a href="https://github.com/aws/cdk-blocks/pull/1606" rel="noopener noreferrer"&gt;#1606&lt;/a&gt; (in review at the time of writing).&lt;/p&gt;

&lt;p&gt;Putting this together, it seems natural to read this as Blocks being promoted from an experimental project to a member of the CDK family. The move from a labs organization to &lt;code&gt;aws&lt;/code&gt;, a name that carries CDK, and the merge of the telemetry setting into CDK all point in the same direction. That said, the README still says "Preview", and public information does not tell us when the preview will end or whether it will become generally available (GA). Whether anything will be announced at re:Invent included, I will wait for an official announcement on its formal positioning.&lt;/p&gt;

&lt;h2&gt;
  
  
  Changes likely to affect users
&lt;/h2&gt;

&lt;p&gt;At the time of writing, existing projects should not break. The old URL redirects, the latest npm release is from November 2, and the package names are still &lt;code&gt;@aws-blocks/*&lt;/code&gt;. The documentation can still be read at the &lt;a href="https://docs.aws.amazon.com/blocks/latest/devguide/what-is-blocks.html" rel="noopener noreferrer"&gt;AWS Blocks Developer Guide&lt;/a&gt; URL. The badges and links in the README also still point to &lt;code&gt;aws-devtools-labs/aws-blocks&lt;/code&gt;.&lt;/p&gt;

&lt;p&gt;None of the rename pull requests above have been released to npm yet, including the merged ones. Your project will be affected when they are included in a future release and you upgrade to that version.&lt;/p&gt;

&lt;p&gt;The biggest change is probably the npm package rename (&lt;a href="https://github.com/aws/cdk-blocks/pull/1627" rel="noopener noreferrer"&gt;#1627&lt;/a&gt;). Code that imports from &lt;code&gt;@aws-blocks/blocks&lt;/code&gt; will need to be rewritten to use &lt;code&gt;aws-cdk-blocks&lt;/code&gt; or &lt;code&gt;@aws-cdk-blocks/*&lt;/code&gt;. According to the description of &lt;a href="https://github.com/aws/cdk-blocks/pull/1627" rel="noopener noreferrer"&gt;#1627&lt;/a&gt;, there are about 1,500 import specifiers to rewrite in the repository alone. The PR also notes that because the umbrella package becomes an unscoped name, tooling in the repository that identified packages by checking whether the name starts with &lt;code&gt;@aws-blocks/&lt;/code&gt; would silently miss the umbrella package, without raising any error. It is worth checking whether your own project handles package names as strings anywhere.&lt;/p&gt;

&lt;p&gt;Next is the environment variable change (&lt;a href="https://github.com/aws/cdk-blocks/pull/1602" rel="noopener noreferrer"&gt;#1602&lt;/a&gt;). &lt;code&gt;AWS_BLOCKS_DISABLE_TEMPLATE_METADATA&lt;/code&gt; and &lt;code&gt;AWS_BLOCKS_FRAMEWORK_SINK&lt;/code&gt; move to &lt;code&gt;CDK_BLOCKS_*&lt;/code&gt;, and the old names are no longer read. There is no fallback to the old names, so if you set them in CI or scripts, you will need to update them along with the release.&lt;/p&gt;

&lt;p&gt;If the folder renames (&lt;a href="https://github.com/aws/cdk-blocks/pull/1630" rel="noopener noreferrer"&gt;#1630&lt;/a&gt;, &lt;a href="https://github.com/aws/cdk-blocks/pull/1607" rel="noopener noreferrer"&gt;#1607&lt;/a&gt;) land, the structure of generated projects will change as well. How to migrate existing projects is something to check in the release notes once they are merged.&lt;/p&gt;

&lt;p&gt;Breaking changes during a preview are nothing unusual. But with this many name-related changes landing together, it would be safer to review the changes (the changesets) more carefully than usual before upgrading to the next release. If you have automated dependency updates enabled, keep an eye out so they are not pulled in without review.&lt;/p&gt;

&lt;h2&gt;
  
  
  GitHub OIDC is something a redirect does not fix
&lt;/h2&gt;

&lt;p&gt;Among these pull requests, the one likely to matter to anyone who transfers a repository is &lt;a href="https://github.com/aws/cdk-blocks/pull/1647" rel="noopener noreferrer"&gt;#1647&lt;/a&gt;.&lt;/p&gt;

&lt;p&gt;When you transfer a repository, GitHub redirects access from the old URL. Browsing, &lt;code&gt;git clone&lt;/code&gt;, and &lt;code&gt;git push&lt;/code&gt; all keep working with the old URL.&lt;/p&gt;

&lt;p&gt;GitHub Actions authenticating to AWS through OIDC, however, is not covered by the redirect. The token that GitHub issues carries the current repository name, as in &lt;code&gt;repo:aws/cdk-blocks:environment:&amp;lt;env&amp;gt;&lt;/code&gt;. The IAM role trust policies in AWS, on the other hand, had the old name pinned, as in &lt;code&gt;repo:aws-devtools-labs/aws-blocks:environment:&amp;lt;env&amp;gt;&lt;/code&gt;. Because the names did not match, the step that obtains AWS credentials failed, and according to the description of &lt;a href="https://github.com/aws/cdk-blocks/pull/1647" rel="noopener noreferrer"&gt;#1647&lt;/a&gt;, E2E tests were blocked on every open pull request.&lt;/p&gt;

&lt;p&gt;On top of that, merging the pull request does not fix it by itself. The stack that defines the trust policies is deployed by hand rather than by CI, so someone with the right permissions has to redeploy it to each E2E AWS account, the description says.&lt;/p&gt;

&lt;p&gt;When you transfer or rename a repository, you should check the &lt;code&gt;sub&lt;/code&gt; condition in your IAM role trust policies at the same time. The redirect makes it easy to miss, and the failures show up in places you usually do not look at during a transfer, such as deployments and E2E tests.&lt;/p&gt;

&lt;h2&gt;
  
  
  Impact on contributors and forks
&lt;/h2&gt;

&lt;p&gt;GitHub's documentation explains that when a repository is transferred, its issues, pull requests, wiki, stars, and watchers move with it, and forks remain associated with the repository after the transfer.&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;&lt;a href="https://docs.github.com/en/repositories/creating-and-managing-repositories/transferring-a-repository" rel="noopener noreferrer"&gt;Transferring a repository (GitHub Docs)&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;In fact, the pull requests I had opened, including the ones still in review, moved to &lt;code&gt;aws/cdk-blocks&lt;/code&gt; as they were. Contributors who open pull requests from forks probably do not need to stop working because of the transfer itself.&lt;/p&gt;

&lt;p&gt;Local clones also keep working with the old URL thanks to the redirect. However, the same documentation strongly recommends updating the remote URL of existing local clones. It also says the redirect is permanently deleted if a repository or fork with the same name is created at the old location. Rather than relying on the redirect, it is safer to switch early.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;git remote set-url origin git@github.com:aws/cdk-blocks.git
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;If you have pull requests that are not merged yet, there are two more things worth keeping in mind.&lt;/p&gt;

&lt;p&gt;The first is the cause of CI failures. As &lt;a href="https://github.com/aws/cdk-blocks/pull/1647" rel="noopener noreferrer"&gt;#1647&lt;/a&gt; describes, right after the transfer, E2E tests on every open pull request failed at authentication. Until the trust policies are redeployed, a failing E2E run does not necessarily mean your change is the cause.&lt;/p&gt;

&lt;p&gt;The second is conflicts with the rename pull requests. &lt;a href="https://github.com/aws/cdk-blocks/pull/1627" rel="noopener noreferrer"&gt;#1627&lt;/a&gt; rewrites about 1,500 imports in the repository, so once it is merged, pull requests that touch files containing imports are likely to conflict. The same goes for the folder renames in &lt;a href="https://github.com/aws/cdk-blocks/pull/1630" rel="noopener noreferrer"&gt;#1630&lt;/a&gt; and &lt;a href="https://github.com/aws/cdk-blocks/pull/1607" rel="noopener noreferrer"&gt;#1607&lt;/a&gt;. Once these are merged, you will probably need to bring your branch up to date with the latest &lt;code&gt;main&lt;/code&gt;.&lt;/p&gt;

&lt;h2&gt;
  
  
  Closing thoughts
&lt;/h2&gt;

&lt;p&gt;What looked like a single URL change this morning turned out, once I followed the pull requests, to be part of a coordinated effort: rename work had started the day before, and a fix for CI authentication landed right after the transfer. With CDK in the name and the project now in the &lt;code&gt;aws&lt;/code&gt; organization, where Blocks belongs within AWS has become easier to see than before.&lt;/p&gt;

&lt;p&gt;Still, what we can see so far is only the beginning of the rename. The README and the documentation are untouched, and there is no official explanation from AWS about the product name or its future. This post covers only what can be read from the repository, so if an official announcement comes out, please treat it as the source of truth.&lt;/p&gt;

&lt;p&gt;re:Invent is almost here. As one of the contributors, I am looking forward to seeing what gets announced for CDK Blocks.&lt;/p&gt;

</description>
      <category>aws</category>
      <category>typescript</category>
      <category>github</category>
      <category>opensource</category>
    </item>
    <item>
      <title>Where to Draw the Boundaries When AI Agents Write Code: Building a Control Layer Around Kiro CLI and Running It for a Month</title>
      <dc:creator>Kento IKEDA</dc:creator>
      <pubDate>Mon, 16 Nov 2026 08:10:31 +0000</pubDate>
      <link>https://dev.to/aws-builders/where-to-draw-the-boundaries-when-ai-agents-write-code-building-a-control-layer-around-kiro-cli-52k8</link>
      <guid>https://dev.to/aws-builders/where-to-draw-the-boundaries-when-ai-agents-write-code-building-a-control-layer-around-kiro-cli-52k8</guid>
      <description>&lt;blockquote&gt;
&lt;p&gt;This article is an English version of a post I contributed to the &lt;a href="https://aws.amazon.com/jp/blogs/news/kiro-cli-agent-write-boundaries/" rel="noopener noreferrer"&gt;AWS Blog (Japanese)&lt;/a&gt;.&lt;/p&gt;
&lt;/blockquote&gt;

&lt;h2&gt;
  
  
  Introduction
&lt;/h2&gt;

&lt;p&gt;Hello, I'm Kento Ikeda, Representative of BrightFlow LLC. I have been an AWS Community Builder in the DevTools category since 2021.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://bright-flow.jp/" rel="noopener noreferrer"&gt;BrightFlow&lt;/a&gt; supports companies' engineering work as an external CTO and technical advisor, and also builds its own product. In our product development, we use AI extensively, and we also experiment with how the development process itself is run. Sharing what we learn along the way, as in this article, is part of that experiment.&lt;/p&gt;

&lt;p&gt;Having AI agents write code and open pull requests (PRs) is no longer unusual. The more we delegate, the less the question is about model capability and the more it is about boundaries:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Who decides the task, who can request a write, and who actually writes?&lt;/li&gt;
&lt;li&gt;When an agent says "done" or "tests passed", what do we accept as fact?&lt;/li&gt;
&lt;li&gt;Can we verify afterwards what was reviewed and what was merged?&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;There are now many ways to combine AI agents. You can have two coding agents talk to each other, or, as with Kiro, use official features to run multiple agents in stages. This article is not about how to combine agents. It is about where to place the boundaries when you let combined agents write: who holds the permissions, how far changes may go, and under what conditions a change gets merged.&lt;/p&gt;

&lt;p&gt;To develop our product, I built a system that uses Kiro CLI as the implementer (BRIDGE from here on) and ran it for about a month. In this article, I describe why I built BRIDGE, its architecture and four boundaries, what I learned from running it, and finally how it compares with Kiro's built-in features as of October 2026.&lt;/p&gt;

&lt;blockquote&gt;
&lt;p&gt;Note: The setup described here is from my own environment and is not a configuration recommended by AWS. See the "Terms of use" section at the end.&lt;/p&gt;
&lt;/blockquote&gt;

&lt;h2&gt;
  
  
  1. Why I built BRIDGE
&lt;/h2&gt;

&lt;p&gt;I started building BRIDGE at the end of August 2026. By then, &lt;a href="https://kiro.dev/changelog/web/introducing-kiro-web-preview/" rel="noopener noreferrer"&gt;Kiro Web&lt;/a&gt; (preview released on May 7, 2026), which works autonomously in the cloud, and &lt;a href="https://kiro.dev/blog/introducing-kiro-crew/" rel="noopener noreferrer"&gt;Kiro Crew&lt;/a&gt; (released on August 4, 2026), which you self-host and keep running, were already available. So my reason for building my own was not that the official features made it technically impossible.&lt;/p&gt;

&lt;p&gt;I built it because I had decided on three ways of working first:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Combine the strengths of two different AIs and run them as a team.&lt;/strong&gt; Just as a human development team splits roles between design and implementation, I wanted an AI that plans and reviews to work with Kiro as the implementer. It is a lightweight form of orchestration. The planning AI gathers information from outside the repository, such as documents, tickets, and web content, through apps and connectors added to that AI. It then hands Kiro, which is good at implementation, a well-organized request. I designed the planning AI to be replaceable by any MCP-capable AI so that it would not be tied to a specific product.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Keep humans watching what they should watch, and delegate the rest for efficiency.&lt;/strong&gt; Humans step in for direction-setting decisions and when the AI gets stuck. The rest of the routine flow goes through AI review all the way to merge.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Let expected changes proceed, and stop on unexpected ones.&lt;/strong&gt; When the files to be changed are obvious from the request, the work can proceed without waiting for confirmation. When changes reach files nobody expected, the work should stop automatically for review.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;The first point is also exactly why boundaries are needed. Information that the planning AI collects from external apps is input whose content I cannot control. Since Kiro acts on requests written from that information, the system has to decide what may be written and under what conditions a merge happens, regardless of the request.&lt;/p&gt;

&lt;p&gt;If you only want two agents to talk to each other locally, you do not need to build anything. In that case, however, both agents almost always run in the same environment with the same credentials. What I needed was a system that does not give write credentials to the planning AI and that fixes the write paths and conditions in the system itself. I used Kiro as the implementer, but this approach applies no matter which agents you combine.&lt;/p&gt;

&lt;h2&gt;
  
  
  2. BRIDGE architecture and four boundaries
&lt;/h2&gt;

&lt;h3&gt;
  
  
  Overall architecture
&lt;/h3&gt;

&lt;p&gt;BRIDGE consists of an MCP (Model Context Protocol) server that the chat-side AI connects to, and a controller behind it that runs the implementation.&lt;/p&gt;

&lt;p&gt;On the chat side, in principle any client that can connect to a remote MCP server works. ChatGPT custom MCP apps and Claude custom connectors are two examples. I actually used ChatGPT, and all numbers and incidents in this article come from using BRIDGE through ChatGPT.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fy4ktr7r32g0a0qszypc8.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fy4ktr7r32g0a0qszypc8.png" alt="Figure 1: Architecture and boundaries" width="800" height="226"&gt;&lt;/a&gt;&lt;br&gt;
&lt;em&gt;Figure 1: Architecture and boundaries. Only the Dev Controller holds GitHub and Kiro credentials.&lt;/em&gt;&lt;/p&gt;

&lt;p&gt;BRIDGE connects to Kiro in two ways. On the READ path, it opens a Kiro session over the Agent Client Protocol (ACP) and only has Kiro read the repository's configuration files (steering files). On the WRITE path, it runs Kiro CLI in headless mode and receives the output in stream-json format. BRIDGE uses Kiro CLI 2.21.x (V2 engine).&lt;/p&gt;

&lt;p&gt;The flow from request to merge is as follows.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fqw94g9z7te5sglpwj3eu.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fqw94g9z7te5sglpwj3eu.png" alt="Figure 2: Flow from request to merge" width="800" height="447"&gt;&lt;/a&gt;&lt;br&gt;
&lt;em&gt;Figure 2: Flow from request to merge.&lt;/em&gt;&lt;/p&gt;
&lt;h3&gt;
  
  
  Where humans were involved
&lt;/h3&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Starting work and making decisions&lt;/strong&gt;: I started each piece of work by making a request in the chat. After that, the AI called tools in sequence, and I gave instructions when the AI stopped or a decision was needed.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Executing writes&lt;/strong&gt;: I set the chat client's tool confirmation to "always allow". I did not turn off confirmations so that I could hand over everything. Because the boundaries described below were built into the system, turning off confirmations does not change what the AI can request. Writes are limited to the scope declared for each request, execution is confined to a sandbox, and only a PR with the specified HEAD can be merged. By having the system enforce boundaries instead of having a human judge each operation, I balanced the freedom given to the AI against safety. On the other hand, whether the changes were correct was left to AI review and verification. I return to this in Lesson 4 of Section 3.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Features used&lt;/strong&gt;: On the chat side, I used the custom MCP connection feature provided by the client. On the Kiro side, I used the official Kiro CLI.&lt;/li&gt;
&lt;/ul&gt;
&lt;h3&gt;
  
  
  Boundary 1: Do not hand over credentials, and fix the operations that can be requested
&lt;/h3&gt;

&lt;p&gt;When you let an agent write, the first thing to decide is who holds the write credentials. If the agent itself holds a GitHub token or cloud credentials, it can write anywhere, depending on how it interprets instructions. However, not holding credentials is not the same as not being able to write. It only becomes a boundary once the types of operations and their arguments are fixed as well.&lt;/p&gt;

&lt;p&gt;In BRIDGE, the chat-side AI holds neither a GitHub token nor a Kiro API key. All it has is a way to call five tools.&lt;/p&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Tool&lt;/th&gt;
&lt;th&gt;Path&lt;/th&gt;
&lt;th&gt;Role&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;&lt;code&gt;inspect_app&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;READ&lt;/td&gt;
&lt;td&gt;Check repository status&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;code&gt;inspect_pr&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;READ&lt;/td&gt;
&lt;td&gt;Get PR metadata and diff&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;code&gt;execute_dev_task&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;WRITE&lt;/td&gt;
&lt;td&gt;Delegate a development task to Kiro, and open a PR if it passes verification&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;code&gt;merge_pr_and_sync&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;WRITE&lt;/td&gt;
&lt;td&gt;Merge only if the specified HEAD SHA matches, then sync&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;code&gt;inspect_dev_task&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;WRITE&lt;/td&gt;
&lt;td&gt;Check a task's execution status&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;p&gt;The target repository, base branch, and merge method are fixed on the server and cannot be specified from the chat side.&lt;/p&gt;

&lt;p&gt;I separated READ and WRITE at three levels: the URL, the OAuth scope, and the chat-side connection settings (separate apps for READ and WRITE). The URLs for READ and WRITE each contain a different secret value. This secret is not a substitute for authentication. Tool execution always requires OAuth authentication. The URL secret is an aid that narrows what is visible from outside by returning 404 for every other path. Because the URLs contain secrets, access logs are not recorded.&lt;/p&gt;
&lt;h3&gt;
  
  
  Boundary 2: Decide the allowed scope of changes up front, and verify it afterwards
&lt;/h3&gt;

&lt;p&gt;"Do not touch any other files" is an expectation, not a guarantee. The allowed scope of changes needs to be decided up front in a machine-readable form and checked against the actual diff after the work.&lt;/p&gt;

&lt;p&gt;In BRIDGE, when the chat-side AI calls &lt;code&gt;execute_dev_task&lt;/code&gt;, it must declare, along with the instructions, which files may be created, modified, or deleted.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight json"&gt;&lt;code&gt;&lt;span class="p"&gt;{&lt;/span&gt;
  &lt;span class="nl"&gt;"taskId"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s2"&gt;"example-task-001"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
  &lt;span class="nl"&gt;"baseCommit"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s2"&gt;"&amp;lt;40-character commit SHA&amp;gt;"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
  &lt;span class="nl"&gt;"instruction"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s2"&gt;"…"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
  &lt;span class="nl"&gt;"verifierProfile"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s2"&gt;"test"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
  &lt;span class="nl"&gt;"changePolicy"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
    &lt;span class="nl"&gt;"allowedChanges"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="p"&gt;[&lt;/span&gt;
      &lt;span class="p"&gt;{&lt;/span&gt; &lt;span class="nl"&gt;"path"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s2"&gt;"app/src/example.ts"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="nl"&gt;"type"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s2"&gt;"modify"&lt;/span&gt; &lt;span class="p"&gt;}&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
      &lt;span class="p"&gt;{&lt;/span&gt; &lt;span class="nl"&gt;"path"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s2"&gt;"app/src/example.test.ts"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="nl"&gt;"type"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s2"&gt;"create"&lt;/span&gt; &lt;span class="p"&gt;}&lt;/span&gt;
    &lt;span class="p"&gt;]&lt;/span&gt;
  &lt;span class="p"&gt;}&lt;/span&gt;
&lt;span class="p"&gt;}&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;After Kiro runs, the Dev Controller observes the actual diff in the workspace and fails the task if there is even one change that was not declared. This check is how the third way of working from Section 1 is implemented: expected changes proceed, and only unexpected changes stop the work.&lt;/p&gt;

&lt;h3&gt;
  
  
  Boundary 3: What stops writes is the execution environment, not the agent's own report
&lt;/h3&gt;

&lt;p&gt;Agents report what they did. But if you decide whether a write is allowed by looking at that report, the decision breaks when the output format changes or the agent does something unexpected. Treat the output as a record for later verification, and let the execution environment (a sandbox) set the upper limit on writes.&lt;/p&gt;

&lt;p&gt;BRIDGE runs the entire Kiro CLI process in a sandbox built with Linux bubblewrap and seccomp. As a result, not only shell commands but also writes through Kiro's built-in file tools are confined at the OS level to a disposable workspace. If a sandbox cannot be set up, Kiro is not started. The only tools pre-approved for Kiro are &lt;code&gt;read&lt;/code&gt;, &lt;code&gt;grep&lt;/code&gt;, &lt;code&gt;glob&lt;/code&gt;, and &lt;code&gt;write&lt;/code&gt;, and shell execution is not allowed. (These are Kiro CLI 2.x tool names. In V3, they were renamed to names such as &lt;code&gt;read_file&lt;/code&gt; and &lt;code&gt;grep_search&lt;/code&gt;.) The stream-json output is recorded but not used to decide whether a write is allowed.&lt;/p&gt;

&lt;p&gt;The Kiro CLI version BRIDGE used (2.21.x) did not yet have Kiro's local command sandbox, which I describe later.&lt;/p&gt;

&lt;h3&gt;
  
  
  Boundary 4: Fix what was reviewed and what gets merged
&lt;/h3&gt;

&lt;p&gt;A PR can be updated after review. At merge time, you need to confirm at least that the HEAD of the reviewed PR and the HEAD of the PR being merged are the same. In addition, if the target branch has moved forward, the post-merge state differs from what was reviewed.&lt;/p&gt;

&lt;p&gt;In BRIDGE, a merge request can specify only the PR number and the HEAD SHA at review time (&lt;code&gt;expectedHeadSha&lt;/code&gt;). The Dev Controller fetches the PR again and confirms that BRIDGE created it, that it is not a draft, and that GitHub reports no conflicts. It then passes &lt;code&gt;expectedHeadSha&lt;/code&gt; as &lt;code&gt;sha&lt;/code&gt; to the GitHub merge API. If the HEAD has moved, GitHub rejects the merge. Because BRIDGE merges based on AI review rather than GitHub approvals, it checks the HEAD SHA match itself instead of relying on branch protection's approval settings.&lt;/p&gt;

&lt;p&gt;After merging, BRIDGE syncs the repository on the server and returns the latest &lt;code&gt;main&lt;/code&gt; SHA and whether the merge commit is reachable. It reports "merged but sync failed" separately from "not merged", so that the calling AI does not misread the result and repeat the operation.&lt;/p&gt;

&lt;p&gt;Merging and syncing became a single step because of something that happened right after operation began. After a PR was merged on GitHub, the repository on the server stayed out of date, and the next task started work based on an old commit. That task was stopped when the base mismatch was detected at PR creation. Since then, merging and syncing have been handled as one step rather than two.&lt;/p&gt;

&lt;h3&gt;
  
  
  Size
&lt;/h3&gt;

&lt;p&gt;BRIDGE grew to about 49,000 lines of TypeScript (about half of it tests). That is because each stage of writing (creating the workspace, running in the sandbox, checking the scope of changes, freezing the artifact, verification, and PR creation) checks things independently without trusting the result of the previous stage.&lt;/p&gt;

&lt;h2&gt;
  
  
  3. What I learned from running it for a month
&lt;/h2&gt;

&lt;p&gt;This section first presents the PR statistics, then the lessons drawn from them, and finally the incidents that actually happened during operation.&lt;/p&gt;

&lt;h3&gt;
  
  
  3.1 PR statistics
&lt;/h3&gt;

&lt;p&gt;I collected about one month of PRs, from the start of operation, in the repository of the product we developed with BRIDGE.&lt;/p&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Status&lt;/th&gt;
&lt;th&gt;Count&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;Merged&lt;/td&gt;
&lt;td&gt;317 (about 51%)&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Closed (not merged)&lt;/td&gt;
&lt;td&gt;159 (about 25%)&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Open&lt;/td&gt;
&lt;td&gt;148 (about 24%)&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;p&gt;About half were not merged. When I examined the 307 unmerged PRs one by one, most of them were not PRs that had been rejected in review.&lt;/p&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Reason not merged&lt;/th&gt;
&lt;th&gt;Count&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;The PR has no diff at all&lt;/td&gt;
&lt;td&gt;122&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Connectivity-check PR&lt;/td&gt;
&lt;td&gt;9&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Same content as an already-merged PR&lt;/td&gt;
&lt;td&gt;2&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;A later PR for the same work was merged (*1)&lt;/td&gt;
&lt;td&gt;37&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Conflicts with main at the time of collection&lt;/td&gt;
&lt;td&gt;81&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Applies cleanly to main at the time of collection but not merged (*2)&lt;/td&gt;
&lt;td&gt;56&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;strong&gt;Total&lt;/strong&gt;&lt;/td&gt;
&lt;td&gt;&lt;strong&gt;307&lt;/strong&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;p&gt;Collection period: September 11 to October 12, 2026 (state as of October 12, 2026). Each PR is counted under the first reason that applies, checked from the top row down.&lt;br&gt;
*1 Includes estimates based on PR names.&lt;br&gt;
*2 About 20 of these appear to be PRs that only wrote investigation results to files (estimated from file names).&lt;/p&gt;

&lt;p&gt;PRs with no diff, connectivity checks, identical content, and those superseded by a later merged PR add up to 170. More than half of the unmerged PRs never needed to be merged in the first place.&lt;/p&gt;

&lt;p&gt;Each BRIDGE PR consists of a single commit whose parent is the base at creation time. I checked whether a PR had a diff in two ways: by comparing the tree of that commit with the tree of the base, and by the number of changed files GitHub reports for the PR.&lt;/p&gt;

&lt;h3&gt;
  
  
  3.2 Lessons from operation
&lt;/h3&gt;

&lt;p&gt;Here are four lessons from the statistics, each with a way to address it.&lt;/p&gt;

&lt;h4&gt;
  
  
  Lesson 1: Work that only has a write path will be done through the write path
&lt;/h4&gt;

&lt;p&gt;The READ path's &lt;code&gt;inspect_app&lt;/code&gt; could only return the repository status and the result of checking configuration files. There was no path for reading code and answering questions. As a result, the chat-side AI used &lt;code&gt;execute_dev_task&lt;/code&gt; even for tasks such as reconciliation, auditing, and confirmation. When Kiro finished without changing anything, a PR with no changes was created. There were also PRs that wrote investigation results to the repository as text files.&lt;/p&gt;

&lt;p&gt;The boundaries themselves were never broken during this time. Investigation tasks also ran within the declared scope of changes and inside the sandbox, and no unauthorized writes occurred. The problem was that the read path was insufficient, so the path meant for writing was also used for investigation, increasing PRs with no changes and PRs that only contained investigation results.&lt;/p&gt;

&lt;p&gt;The more strictly you restrict writes, the more broadly you need to provide read paths. Otherwise, the write path gets used for investigation.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;How to address it&lt;/strong&gt;: Separate investigation and confirmation into a path that is completed with reads only. In Kiro, Workflows' &lt;code&gt;investigate&lt;/code&gt; recipe, which investigates without changing source and returns a report, or Permissions settings that do not allow writes, can play this role. The key is to receive investigation results as a report instead of writing them to the repository.&lt;/p&gt;

&lt;h4&gt;
  
  
  Lesson 2: If creating a PR is the completion condition, PRs become an input/output channel
&lt;/h4&gt;

&lt;p&gt;BRIDGE created a PR even when there were no changes, because the PR doubled as the task completion notice. For tasks with no changes, it should have returned only the result without creating a PR.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;How to address it&lt;/strong&gt;: Add "there is a diff" as a condition for creating a PR, and return only the result for tasks without a diff. Then PRs with no changes are never created. In addition, a mechanism that regularly detects PRs with no diff, duplicate PRs, and PRs left in conflict with main helps prevent PRs from piling up.&lt;/p&gt;

&lt;p&gt;After writing the original article, I cleaned up the unmerged PRs created during the collection period. Closing PRs in bulk is an operation that is hard to undo. So I had the AI draft the cleanup policy and the commands, and I ran them after reviewing them. I did not close PRs based on their number or age alone; I closed them after comparing them with later PRs for the same work and checking their diff against the current main. Three small changes that were still needed turned up in the process, and I recreated them with BRIDGE against the current main and merged them. All unmerged PRs from the collection period have now been cleaned up.&lt;/p&gt;

&lt;h4&gt;
  
  
  Lesson 3: Minimal logging to protect secrets makes it impossible to measure the effect of boundaries
&lt;/h4&gt;

&lt;p&gt;To avoid leaking paths, file contents, or tokens, the Dev Controller was designed to log only fixed strings. Task results (failures due to undeclared changes, merge rejections due to SHA mismatches, and so on) were only returned to the chat side as responses and were not recorded on the server.&lt;/p&gt;

&lt;p&gt;As a result, I could not count afterwards how many times Boundary 2 and Boundary 4 actually stopped processing. I should have recorded, from the start, the types of results and their counts, which contain no secrets.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;How to address it&lt;/strong&gt;: Do not record paths or file contents, but record the result types (success, undeclared change, SHA mismatch, and so on) and their counts. Then you can count the effect of boundaries without leaking secrets. These two goals are compatible.&lt;/p&gt;

&lt;h4&gt;
  
  
  Lesson 4: If you automate AI review, design the scope and record of that review
&lt;/h4&gt;

&lt;p&gt;The median time from PR creation to merge for merged PRs was 32 seconds. About half were merged within 30 seconds of creation, and more than 80% within 10 minutes. There were zero GitHub reviews, and review decisions remained only in the chat conversation. Because the confirmation for write tools was set to "always allow", most merges were executed based only on AI review, without my approval each time. I did not record how much of each PR's diff I read myself, so this cannot be measured. It is reasonable to assume that PRs merged within tens of seconds relied on the AI's review.&lt;/p&gt;

&lt;p&gt;The input to review also had limits. The diff returned by &lt;code&gt;inspect_pr&lt;/code&gt; is capped at 8 KiB per file, 50 files, and 128 KiB in total, and a truncation flag is set when it exceeds those limits. The AI may not have seen all the changes.&lt;/p&gt;

&lt;p&gt;Running BRIDGE also revealed a limit in how Boundary 4 was implemented. More than 90% of merged PRs were merged into the same main they were created from. In that case, the contents of main after the merge are the same as the state BRIDGE verified before creating the PR. On the other hand, about 6% (19 PRs) were merged after main had moved forward following review. For these 19 PRs, I compared the files each PR changed with the files changed on main after the review, and found no overlap. There is also no record of the changes being reverted afterwards. Even so, the post-merge state of these 19 PRs went into main without being verified. They should have been verified again against the latest main before merging.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;How to address it&lt;/strong&gt;: Add the following three conditions for merging to cover this limit.&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;CI build and tests pass against the latest main&lt;/li&gt;
&lt;li&gt;The diff used for review was not truncated&lt;/li&gt;
&lt;li&gt;The review decision and its rationale are kept somewhere that can be referred to later, such as the PR&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;If you switch to having humans approve merges, GitHub branch protection (see Section 4) can satisfy the first condition.&lt;/p&gt;

&lt;h3&gt;
  
  
  3.3 Incidents during operation
&lt;/h3&gt;

&lt;p&gt;Here are two incidents that happened during operation and could occur in any setup that connects an external AI client to an MCP server.&lt;/p&gt;

&lt;h4&gt;
  
  
  Incident 1: Starting OAuth and fetching the tool list were waiting on each other
&lt;/h4&gt;

&lt;p&gt;This incident happened with a ChatGPT custom MCP app, but it involves issues common to connecting an OAuth-protected MCP server to external clients.&lt;/p&gt;

&lt;p&gt;When I created the ChatGPT custom MCP app, it showed zero tools, and OAuth account linking never started.&lt;/p&gt;

&lt;p&gt;Two causes overlapped. The first was that the per-tool authentication declarations were not reaching ChatGPT. ChatGPT looks at each tool's &lt;code&gt;securitySchemes&lt;/code&gt; in the tool list (&lt;code&gt;tools/list&lt;/code&gt;) to decide which authentication is required. The official MCP TypeScript SDK I used (&lt;code&gt;@modelcontextprotocol/server&lt;/code&gt; 2.0.0) strips unknown keys from tool definitions, so writing &lt;code&gt;securitySchemes&lt;/code&gt; directly did not make it into the response. The second was that BRIDGE did not return &lt;code&gt;tools/list&lt;/code&gt; unless the request was authenticated. ChatGPT starts authentication after seeing the tool list, and BRIDGE did not return the tool list until authentication was complete. Each was waiting for the other.&lt;/p&gt;

&lt;p&gt;I addressed it as follows.&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;I declared &lt;code&gt;securitySchemes&lt;/code&gt; inside &lt;code&gt;_meta&lt;/code&gt;, which the SDK does not strip, and added a step that copies that value to &lt;code&gt;securitySchemes&lt;/code&gt; directly under each tool just before returning the &lt;code&gt;tools/list&lt;/code&gt; response. This step only changes the shape of the &lt;code&gt;tools/list&lt;/code&gt; response and does not touch tool execution or authentication decisions. The WRITE path builds its tool list response itself, so it places the value directly under each tool from the start. READ tools require only the read scope, and WRITE tools require only the write scope.&lt;/li&gt;
&lt;li&gt;I limited what is allowed without authentication to just three methods: &lt;code&gt;initialize&lt;/code&gt;, &lt;code&gt;notifications/initialized&lt;/code&gt;, and &lt;code&gt;tools/list&lt;/code&gt;. Requests with invalid tokens or tokens with the wrong scope are rejected instead of being downgraded to anonymous.&lt;/li&gt;
&lt;li&gt;For unauthenticated &lt;code&gt;tools/call&lt;/code&gt;, BRIDGE returns a tool error containing &lt;code&gt;_meta["mcp/www_authenticate"]&lt;/code&gt; so that ChatGPT can start authentication.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;In production, I confirmed that &lt;code&gt;initialize&lt;/code&gt; and &lt;code&gt;tools/list&lt;/code&gt; succeed, that the READ tool list contains only the two READ tools, and that an unauthenticated &lt;code&gt;tools/call&lt;/code&gt; returns an error prompting authentication.&lt;/p&gt;

&lt;p&gt;One constraint remains: tool names and input schemas are visible without authentication to anyone who knows the URL. The secret in the URL narrows who can see them, but it is only an aid that limits visibility. Tool execution is still protected by OAuth authentication.&lt;/p&gt;

&lt;h4&gt;
  
  
  Incident 2: Long-running tools collided with MCP client retries
&lt;/h4&gt;

&lt;p&gt;The READ path's &lt;code&gt;inspect_app&lt;/code&gt; sometimes took about 60 seconds to complete. The outer MCP client retried the same request after about 60 seconds, and the retry collided with the original request still in progress and received a "busy" error. The same happened with the implementation tool &lt;code&gt;execute_dev_task&lt;/code&gt;: each retry was assigned a new task ID and rejected as a second task with a "busy" error, while the original task kept running.&lt;/p&gt;

&lt;p&gt;&lt;code&gt;execute_dev_task&lt;/code&gt; is a synchronous tool that completes everything from implementation to PR creation in a single call. I addressed this problem not by rebuilding the call as asynchronous, but by keeping it synchronous and adding what was missing.&lt;/p&gt;

&lt;p&gt;First, instead of rejecting retries, BRIDGE now joins them to the operation in progress and returns the same result (single-flight). Whether two requests are the same is determined by the request contents, not by an automatically assigned task ID. Requests with different contents are still rejected as "busy". I also raised the time limit for implementation in steps from 120 seconds to 600 seconds. In production, I confirmed that a retry arriving about a minute later joined the operation in progress without starting a new task.&lt;/p&gt;

&lt;p&gt;Even so, if the chat side timed out while waiting for a response, there was no way to tell whether the task was still running or had finished. So I added &lt;code&gt;inspect_dev_task&lt;/code&gt;, which reports the status (running or completed) for a given task ID. This made it possible to check the result after a timeout without running the same request again.&lt;/p&gt;

&lt;p&gt;As a result, the setup now normally receives results synchronously and checks status only when a response is lost. Looking back, being able to finish everything through PR creation in a single call, without repeatedly checking status, was an advantage of the synchronous design. On the other hand, as long as long-running work is exposed synchronously, the interaction with client-side timeouts remains. If you build something like this, it is worth considering from the start an asynchronous design that returns only the start of execution and checks status with a separate tool.&lt;/p&gt;

&lt;h2&gt;
  
  
  4. Comparison with Kiro's built-in features
&lt;/h2&gt;

&lt;p&gt;Even in the roughly two months between late August 2026, when I started building BRIDGE, and October 2026, when I wrote this article, Kiro gained new features. For example, Workflows, which runs each step in an independent agent session, became available on September 30, 2026 in &lt;a href="https://kiro.dev/changelog/cli/2-26/" rel="noopener noreferrer"&gt;Kiro CLI (2.26.0)&lt;/a&gt; and &lt;a href="https://kiro.dev/changelog/web/introducing-workflows/" rel="noopener noreferrer"&gt;Kiro Web&lt;/a&gt;.&lt;/p&gt;

&lt;p&gt;In this section, I look at how much of BRIDGE's four boundaries and the lessons from operation can be achieved with Kiro's built-in features as of October 2026. Everything here is limited to what I could confirm in the official documentation.&lt;/p&gt;

&lt;h3&gt;
  
  
  The four boundaries and Kiro's features
&lt;/h3&gt;

&lt;p&gt;&lt;strong&gt;Boundary 1 (Do not hand over credentials, and fix the operations that can be requested)&lt;/strong&gt;: With Permissions, you can set allow, ask, or deny for each operation the agent can use (reading and writing files, shell, MCP, and so on). Deny always takes precedence, and the settings can be embedded in an agent's configuration. This lets you configure per role, for example by giving a reviewer agent no write access.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Boundary 2 (Decide the allowed scope of changes up front, and verify it afterwards)&lt;/strong&gt;: The up-front part can be done with Permissions. You can specify the paths that &lt;code&gt;fs_write&lt;/code&gt; may write to with globs, and in headless mode every operation that would require confirmation is treated as denied, so the agent cannot write outside the explicitly allowed scope. The after-the-fact verification is something you build in yourself. Using Hooks, which can run a command when the agent finishes, or CI that checks the files changed in a PR, you add a step that compares the allowed scope with the actual diff. BRIDGE implements this verification itself, including per-request declarations and the distinction between create, modify, and delete.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Boundary 3 (What stops writes is the execution environment)&lt;/strong&gt;: In Kiro CLI and Kiro IDE, you can use the &lt;a href="https://kiro.dev/docs/sandbox/" rel="noopener noreferrer"&gt;local command sandbox&lt;/a&gt;, which isolates commands run locally. It uses bubblewrap on Linux and Seatbelt on macOS. What it covers is the shell commands the agent runs and their child processes. The agent itself and its built-in file tools are outside the sandbox, and file reads and writes are controlled with Permissions. If you want OS-level isolation that includes writes through file tools, one option is to isolate the whole process, as BRIDGE does. In addition, Kiro Web runs agents in an isolated sandbox in the cloud, and Kiro Crew has an OS-level sandbox and signed audit logs.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Boundary 4 (Fix what was reviewed and what gets merged)&lt;/strong&gt;: Workflows provides a recipe (&lt;code&gt;publish-pr&lt;/code&gt;) that creates a PR, addresses review comments, brings the PR to a mergeable state, and hands it to a human. If a human does the final merge, combining this with GitHub branch protection lets you align what was reviewed with what gets merged.&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Align the reviewed HEAD with the merged HEAD&lt;/strong&gt;: "Dismiss stale pull request approvals when new commits are pushed" revokes approvals when new commits are added after approval. Together with this, "Require approval of the most recent reviewable push" requires someone other than the pusher to approve the latest update.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Handle updates to the base&lt;/strong&gt;: "Require branches to be up to date before merging" prevents merging until required checks pass with the latest base merged in. For repositories where merges frequently overlap, merge queue is also available.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;You can also split roles within Kiro. In Workflows, each step runs in an independent session, and results pass between steps only through explicit handoffs. Since you can specify the agent and model for each step, you can have different models handle design, implementation, and review.&lt;/p&gt;

&lt;h3&gt;
  
  
  Do my reasons for building my own still hold?
&lt;/h3&gt;

&lt;p&gt;Let me check the three reasons from Section 1 against Kiro's built-in features as of October 2026.&lt;/p&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Reason for building my own&lt;/th&gt;
&lt;th&gt;In Kiro as of October 2026&lt;/th&gt;
&lt;th&gt;Need to build your own&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;1. Combine the strengths of different AIs and run them as a team&lt;/td&gt;
&lt;td&gt;Workflows can assign different agents and models to the planning, implementation, and review steps. External tools and information are available by adding MCP servers to Kiro&lt;/td&gt;
&lt;td&gt;Usually not needed. Needed if you want an AI other than Kiro as the planner and want to keep the apps, connectors, and conversation context already set up in that AI&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;2. Delegate everything except what humans should see&lt;/td&gt;
&lt;td&gt;Workflows' &lt;code&gt;publish-pr&lt;/code&gt; takes a PR to a mergeable state and hands the final merge to a human&lt;/td&gt;
&lt;td&gt;Needed only if you want to delegate merging too. Not needed if humans approve merges&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;3. Stop on unexpected changes&lt;/td&gt;
&lt;td&gt;Permissions can restrict writable paths in advance. After-the-fact verification can be built in with Hooks or CI&lt;/td&gt;
&lt;td&gt;Needed for the verification step if you want each request to declare its scope and verify create, modify, and delete separately. In most cases, up-front restrictions plus human PR review are enough&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;p&gt;In other words, as of October 2026, if you keep everything within Kiro, most of the three reasons can be satisfied with built-in features. On the other hand, if you choose to use an AI other than Kiro as the planner, to delegate merging, or to verify scope in detail per request, you need a system outside Kiro. BRIDGE is the setup you get when you choose all three.&lt;/p&gt;

&lt;h3&gt;
  
  
  If you want to start the same thing with Kiro
&lt;/h3&gt;

&lt;p&gt;If you want to start working this way with Kiro, without an external system like BRIDGE, you first build it from Kiro's built-in features and then add what you need based on the lessons from operation.&lt;/p&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Boundary&lt;/th&gt;
&lt;th&gt;What Kiro's features cover&lt;/th&gt;
&lt;th&gt;What you add yourself (lessons from operation)&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;1. Do not hand over credentials, and fix operations&lt;/td&gt;
&lt;td&gt;Permissions, Custom Agents (no write access for the reviewer), Workflows' &lt;code&gt;investigate&lt;/code&gt; (read-only investigation)&lt;/td&gt;
&lt;td&gt;Make investigation and confirmation possible through the read path alone&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;2a. Decide the scope of changes up front&lt;/td&gt;
&lt;td&gt;Permissions (path patterns for &lt;code&gt;fs_write&lt;/code&gt;)&lt;/td&gt;
&lt;td&gt;—&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;2b. Verify afterwards&lt;/td&gt;
&lt;td&gt;Hooks' Stop trigger can be used as the place to plug it in&lt;/td&gt;
&lt;td&gt;A step that compares the allowed scope with the diff. No PR for tasks without changes. Regular detection of PRs that are no longer needed&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;3. Stop writes in the execution environment&lt;/td&gt;
&lt;td&gt;Local command sandbox, Kiro Web's sandbox, Kiro Crew&lt;/td&gt;
&lt;td&gt;Record the types and counts of results where a boundary stopped something, without secrets&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;4. Fix what is reviewed and merged&lt;/td&gt;
&lt;td&gt;Workflows' &lt;code&gt;publish-pr&lt;/code&gt;, GitHub branch protection (dismissing approvals, approval of the latest push, keeping up with the base), merge queue&lt;/td&gt;
&lt;td&gt;Verify against the latest main. If AI review takes things all the way to merge, add to the merge conditions that the review input was complete and that the decision was recorded&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;p&gt;If you use an AI other than Kiro as the planner, you also need a system that does not give that AI credentials, fixes the operations and arguments it can request, and separates READ and WRITE. If you expose long-running work, it is also worth deciding up front whether it will be synchronous or asynchronous.&lt;/p&gt;

&lt;h2&gt;
  
  
  Summary
&lt;/h2&gt;

&lt;p&gt;Combining AI agents can now be done with Kiro's built-in features. The hard part is not connecting them. It is deciding which judgments to leave to the AI, what the system guarantees, and under what conditions work moves to the next stage.&lt;/p&gt;

&lt;p&gt;Here is how responsibilities were split in BRIDGE. The right-hand column lists what the BRIDGE system alone cannot guarantee and what has to be covered by the fixes from the lessons or by human checks.&lt;/p&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Judgment left to the AI&lt;/th&gt;
&lt;th&gt;What the system guarantees&lt;/th&gt;
&lt;th&gt;What that alone cannot guarantee&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;How to implement&lt;/td&gt;
&lt;td&gt;Whether changes stay within the declared files&lt;/td&gt;
&lt;td&gt;Whether changes within the scope are implemented correctly&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;What tests are needed&lt;/td&gt;
&lt;td&gt;Whether build and tests passed in a disposable environment&lt;/td&gt;
&lt;td&gt;Whether build and tests also pass against the latest main&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Review result&lt;/td&gt;
&lt;td&gt;Whether the HEAD of the PR being merged matches the HEAD at review time&lt;/td&gt;
&lt;td&gt;Whether the review saw the whole diff, and whether main moved after the review&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Whether to merge&lt;/td&gt;
&lt;td&gt;Whether the post-merge main contains the commit&lt;/td&gt;
&lt;td&gt;Whether a human agreed with that decision&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;p&gt;When designing boundaries, you need to think beyond the boundaries themselves: how the AI will behave outside them, and whether you can verify afterwards that they worked. If you start the same thing with Kiro, these two points are worth checking too.&lt;/p&gt;

&lt;p&gt;BrightFlow's product is currently in development. I will announce the release on social media, so please take a look when it comes out.&lt;/p&gt;

&lt;h2&gt;
  
  
  Terms of use
&lt;/h2&gt;

&lt;p&gt;The setup in this article is built only with features each service officially provides: on the Kiro side, the official Kiro CLI (headless mode and ACP), and on the chat side, the custom MCP connection feature.&lt;/p&gt;

&lt;p&gt;The terms of use of each service regarding combining AI agents with external tools may be updated. If you try a similar setup, check the latest terms of use for Kiro, the AI chat you use, and GitHub.&lt;/p&gt;

</description>
      <category>kiro</category>
      <category>aws</category>
      <category>ai</category>
      <category>devops</category>
    </item>
    <item>
      <title>Blocking an AI agent's shortcuts with tools: what verifying code comments taught me about steering and MCP</title>
      <dc:creator>Kento IKEDA</dc:creator>
      <pubDate>Sat, 14 Nov 2026 00:25:16 +0000</pubDate>
      <link>https://dev.to/aws-builders/blocking-an-ai-agents-shortcuts-with-tools-what-verifying-code-comments-taught-me-about-steering-i90</link>
      <guid>https://dev.to/aws-builders/blocking-an-ai-agents-shortcuts-with-tools-what-verifying-code-comments-taught-me-about-steering-i90</guid>
      <description>&lt;p&gt;AI agents now review code and write tests as a matter of routine. They do not read only the code. They read the comments too, and sometimes they interpret the code through what a comment says it is meant to do.&lt;/p&gt;

&lt;p&gt;I picked writing-tracker (MIT), a web app that another developer published on GitHub. It records how far along you are in writing a book. It was built with Lovable, an AI app builder, over three days at the end of April 2025, and it has not been updated since. The code and comments the AI wrote are still there as they were, and it has logic such as aggregation and ordering whose behavior can be checked against its comments, so it made a good subject.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://github.com/shateers/writing-tracker" rel="noopener noreferrer"&gt;https://github.com/shateers/writing-tracker&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;I gave the app to Kiro and asked: "Check whether any comment disagrees with what the code actually does." The statistics screen has a table that lists your progress for the last six months, one row per month. The code that builds it says:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight typescript"&gt;&lt;code&gt;&lt;span class="c1"&gt;// Generate last 6 months&lt;/span&gt;
&lt;span class="k"&gt;for&lt;/span&gt; &lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="kd"&gt;let&lt;/span&gt; &lt;span class="n"&gt;i&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="mi"&gt;0&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt; &lt;span class="n"&gt;i&lt;/span&gt; &lt;span class="o"&gt;&amp;lt;&lt;/span&gt; &lt;span class="mi"&gt;6&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt; &lt;span class="n"&gt;i&lt;/span&gt;&lt;span class="o"&gt;++&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
  &lt;span class="kd"&gt;const&lt;/span&gt; &lt;span class="n"&gt;monthStart&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="k"&gt;new&lt;/span&gt; &lt;span class="nb"&gt;Date&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;currentDate&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;getFullYear&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;currentDate&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;getMonth&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="o"&gt;-&lt;/span&gt; &lt;span class="n"&gt;i&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="mi"&gt;1&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
  &lt;span class="c1"&gt;// ...&lt;/span&gt;
  &lt;span class="n"&gt;periods&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;push&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="p"&gt;{&lt;/span&gt; &lt;span class="n"&gt;label&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="sb"&gt;`${monthName} ${monthStart.getFullYear()}`&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;start&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="n"&gt;monthStart&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;end&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="n"&gt;monthEnd&lt;/span&gt; &lt;span class="p"&gt;}&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
&lt;span class="p"&gt;}&lt;/span&gt;
&lt;span class="c1"&gt;// Reverse to have most recent month first&lt;/span&gt;
&lt;span class="n"&gt;periods&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;reverse&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;The rows of the table come from the list of six months this code builds (&lt;code&gt;periods&lt;/code&gt;). The first month in &lt;code&gt;periods&lt;/code&gt; becomes the top row, and the rest follow downward. If the comment is right, the month that ends up first after &lt;code&gt;reverse()&lt;/code&gt;, and so the top row of the table, is the current month. Kiro read the code and judged the comment correct. Then a property-based test (PBT) checked the same behavior, and it disagreed on the first run.&lt;/p&gt;

&lt;p&gt;PBT is a testing technique where, instead of writing input and expected-output pairs one at a time, you write a property that should hold for any input, and the framework generates many inputs to check it. When it finds an input that breaks the property (a counterexample), it shrinks it to the simplest form it can. Here the property was "whatever today is, the top row of the table is the current month", and the test built the table again and again, setting "today" to many different dates.&lt;/p&gt;

&lt;p&gt;For example, with today set to January 2020, the top row was not January 2020 but August 2019, the oldest of the six months shown (August 2019 to January 2020).&lt;/p&gt;

&lt;p&gt;The cause is the order in which the loop adds months. It starts from the current month (&lt;code&gt;i = 0&lt;/code&gt;) and appends each earlier month to the end of &lt;code&gt;periods&lt;/code&gt;. In the January 2020 example the list is "January 2020, December 2019, ..., August 2019", so the current month is already first. Calling &lt;code&gt;reverse()&lt;/code&gt; on that flips the list and puts the oldest month, August 2019, at the top. To put the newest month first, as the comment says, the &lt;code&gt;reverse()&lt;/code&gt; was never needed.&lt;/p&gt;

&lt;p&gt;"If the agent believes whatever it reads, make it run the code."&lt;/p&gt;

&lt;p&gt;That is why I built spec-lantern. It is a Kiro Power. A Kiro Power bundles instructions for the agent with an MCP server configuration, and you install it into Kiro from GitHub or elsewhere. The current Kiro docs recommend the Agent Plugins format for new powers; spec-lantern uses the earlier &lt;code&gt;POWER.md&lt;/code&gt; format, which still works. spec-lantern makes the agent predict whether each comment is true, locks that prediction, and then runs the code in an isolated environment to find out. It is also my entry for Kiroween 2026, Kiro's hackathon.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://github.com/ikenyal/spec-lantern" rel="noopener noreferrer"&gt;https://github.com/ikenyal/spec-lantern&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;What building it taught me is that "make it run the code" is not enough. To reach its goal, the agent kept finding shortcuts I had not anticipated. And different kinds of shortcuts needed fixes in different places. Some were solved by one more sentence in the instructions. Others came back no matter how often I rewrote the instructions, and stopped only when I changed how the tools work.&lt;/p&gt;

&lt;p&gt;This post walks through those shortcuts, taken from the actual records, and explains where I blocked each one (steering, meaning the instructions given to the agent; the MCP tools; or the execution environment) and why there. None of these ideas are specific to Kiro, so they may also be useful if you hand verification work to Claude Code or another agent.&lt;/p&gt;

&lt;h2&gt;
  
  
  How spec-lantern works
&lt;/h2&gt;

&lt;p&gt;spec-lantern consists of a Kiro Power (&lt;code&gt;POWER.md&lt;/code&gt; plus seven steering documents) and its own MCP server. The agent can touch the target repository only through the MCP server's tools.&lt;br&gt;
&lt;/p&gt;

&lt;pre data-lang="mermaid"&gt;&lt;code&gt;flowchart TB
  subgraph agent["Done by the agent (Kiro)"]
    direction LR
    A[Split comments&amp;lt;br/&amp;gt;into claims] --&amp;gt; B[Write executable&amp;lt;br/&amp;gt;properties] --&amp;gt; C[Predict&amp;lt;br/&amp;gt;PASS/FAIL]
  end
  subgraph tools["Done by the MCP server's tools"]
    direction LR
    D[Lock the&amp;lt;br/&amp;gt;prediction] --&amp;gt; E[Run in isolation] --&amp;gt; F[Compare with&amp;lt;br/&amp;gt;the prediction]
    F --&amp;gt; G[Replay the&amp;lt;br/&amp;gt;counterexample] --&amp;gt; H[Fix on a&amp;lt;br/&amp;gt;throwaway copy]
  end
  agent --&amp;gt; tools&lt;/code&gt;&lt;/pre&gt;



&lt;p&gt;The agent's job ends at prediction. It splits comments into claims, writes an executable property for each claim (a test written with fast-check and Vitest), and predicts the result of running it. If the test passes, the result is PASS and the comment was right. If it fails, the result is FAIL: the comment disagrees with what the code does, which is to say it lied. Everything after that (locking the prediction, running, comparing, applying a fix) is done by the MCP server's tools.&lt;/p&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Tool&lt;/th&gt;
&lt;th&gt;Role&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;&lt;code&gt;lock_prediction&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;Records hashes of the prediction and the property file, with a timestamp&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;code&gt;supersede_prediction_lock&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;Re-locks with a recorded reason when a property is fixed after locking&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;code&gt;execute_properties&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;Runs the target in isolated containers and saves the raw results&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;code&gt;replay_counterexample&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;Replays a failure with the recorded random seed, time zone, and fixed clock&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;code&gt;compare_predictions&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;Compares the locked predictions with the execution results&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;code&gt;apply_fixes_and_reexecute&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;Applies a fix to a throwaway copy and reruns every property&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;p&gt;I did not start with this split. Earlier, the agent wrote the comparison tables and result files itself, and the lock did not protect the property files. As I dealt with the six shortcuts below one by one, the part left to the agent got smaller, and it ended up like this.&lt;/p&gt;

&lt;h2&gt;
  
  
  Six shortcuts the agent took
&lt;/h2&gt;

&lt;p&gt;None of these were taken out of malice. Each was the agent meeting its goal by the shortest route available. A human engineer near a deadline might well make the same calls. That is exactly why reminders do not stop them: whenever the conditions line up, they come back in the same form.&lt;/p&gt;

&lt;p&gt;What follows is what actually happened before any countermeasure. How I blocked them comes in the next section. To say it up front: some could be prevented by how the instructions (the prompt) were written, and some could not, no matter how often I rewrote them, and needed changes to how the tools work. That difference is the subject of this post.&lt;/p&gt;

&lt;h3&gt;
  
  
  One and two: distorted predictions
&lt;/h3&gt;

&lt;p&gt;The first is the "read and believe" from the opening. Put a comment next to code, and the agent interprets the code on the assumption that the comment is right. Accepting "to put the newest month first" is a more natural way to read than tracing the order before &lt;code&gt;reverse()&lt;/code&gt; yourself. In human review too, comments that explain intent exist to reduce the effort of reading code. Believing comments is built into the act of reading.&lt;/p&gt;

&lt;p&gt;I thought running the code would solve this one. But within the run-the-code setup, a second shortcut appeared: the convenient prediction.&lt;/p&gt;

&lt;p&gt;This happened while I was trying the packaged Power in a separate environment. spec-lantern's highlight is the moment when a comment that looked right on reading turns out to be a lie when executed: a prediction of PASS and a result of FAIL.&lt;/p&gt;

&lt;p&gt;Kiro understood that aim. And for one comment, even though it had noticed while reading that something looked off, it predicted PASS. Its report gave the reason as "to make the mismatch between prediction and result meaningful". It thought the answer was FAIL and predicted PASS on purpose, to create the highlight.&lt;/p&gt;

&lt;p&gt;What makes this shortcut hard is that it becomes more likely the better the agent understands the system's purpose. A prediction matters as a record of how the agent judged the code from reading it. Once it is mixed with a judgment about which result would look good, it stops being a record and becomes staging. A staged prediction, placed next to the execution result, no longer shows how Kiro read the code, and loses its meaning as a prediction.&lt;/p&gt;

&lt;h3&gt;
  
  
  Three and four: contaminated expected values
&lt;/h3&gt;

&lt;p&gt;The third is deciding the test's answer by looking at the implementation. For a second subject I picked MoodPlays (MIT), also built with Lovable. It finds nearby places to match your mood, and it has logic such as parsing opening hours and calculating distances.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://github.com/gargi04sahu/MoodPlays" rel="noopener noreferrer"&gt;https://github.com/gargi04sahu/MoodPlays&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Here, five of the first ten properties Kiro wrote computed the expected value (the answer the test treats as correct) with the same calculation as the code under test.&lt;/p&gt;

&lt;p&gt;Take distance as an example. The shape of the problem is: copy the formula from the code into the test, and check that both give the same result. Such a test passes even if the formula is wrong. It looks like a test, but it treats the implementation's calculation as correct and uses it as the answer, so it is the same thing as the first shortcut, read and believe. When rewriting, I replaced these with expectations grounded in something other than the code: the real distance between two points with known latitude and longitude, or the concrete example given in a comment, when there is one. In software testing, whatever decides whether a result is correct is called a test oracle. What was needed here was a test oracle grounded independently of the code under test.&lt;/p&gt;

&lt;p&gt;This shortcut is hard because it is the agent's most reliable way to write a "correct" test. Deriving the expected value yourself risks getting it wrong. Using the same calculation as the code at least guarantees the test will not break at run time. Once passing the tests becomes the goal, deciding the answer from the implementation is the rational choice.&lt;/p&gt;

&lt;p&gt;The fourth is peeking before the lock. This also happened with MoodPlays. Before locking its predictions, Kiro copied the target code and ran it on the spot with &lt;code&gt;node -e&lt;/code&gt; (a Node.js command that runs a short snippet), to check in advance whether the tests would pass.&lt;/p&gt;

&lt;p&gt;Kiro presumably did not want to miss. But this makes the prediction meaningless. A prediction in spec-lantern is a record of how far reading alone can tell whether a comment is right. If you run the code and see the result before predicting, of course you will be right, and you can no longer tell whether reading was enough.&lt;/p&gt;

&lt;h3&gt;
  
  
  Five and six: broken records
&lt;/h3&gt;

&lt;p&gt;The fifth is rewriting after the lock. While I did several full runs to record the demo video, in one run Kiro kept editing property files after locking and re-running.&lt;/p&gt;

&lt;p&gt;The cause was that the tab-switching UI did not work in the test's simulated browser (jsdom), so the monthly table was never rendered and the test counted rows that were not there. That is a test defect, so fixing it was legitimate. The final result was correct, and Kiro's report showed reasonable grounds for each fix. But those reasons were not recorded, and afterwards nothing distinguished this run from one where the tests were edited until they matched the prediction. Inside a system built to show that predictions were right, it was no longer possible to prove that this prediction was right.&lt;/p&gt;

&lt;p&gt;The sixth is hand-written tallies. Earlier, the agent copied execution results and comparison tables into files by hand. In one run it miscopied a prediction into the comparison table. In the next run, Kiro re-read the lock files and noticed the error. A miscopy is an honest mistake, but the fact that a table showing whether predictions were right can contain errors is itself the problem. A reader cannot tell whether the table is right without opening the original files.&lt;/p&gt;

&lt;h3&gt;
  
  
  What the six have in common
&lt;/h3&gt;

&lt;p&gt;Lined up, the six show that shortcuts can get into every stage: prediction, expected values, execution, and records.&lt;/p&gt;

&lt;p&gt;Looking back, none of them are specific to AI. Teams that are just starting to write tests run into similar things. Filling in expected values with whatever the implementation outputs. Making a failing test pass by changing the test instead of the code. Reading code in review through what the comment says it intends. Copying errors creeping into hand-compiled reports. All of these happen on human teams.&lt;/p&gt;

&lt;p&gt;The reasons are probably the same for humans and AI. One is goal displacement. The real purpose of testing is to find where code does not do what it should, but day to day, "the tests pass" is the visible result. Then humans and AI alike take the shortest route to passing. The other is that the checker and the checked are the same. If the person who wrote the implementation also decides the expected values, the same assumptions go into both. If the person who made the prediction also tallies the results, they read the results in the prediction's favor without meaning to.&lt;/p&gt;

&lt;p&gt;Human teams have compensated with process and systems. Test-driven development, writing tests before the implementation, separates expected values from the implementation. CI checks that block merging until tests pass, and code review by someone else, keep people from judging their own work. Handing verification to an AI agent needs the same kind of measures. The difference is that they have to be built into instructions, tools, and the execution environment in a form the agent can read. spec-lantern's "lock the prediction before running" is close to TDD's "write the test before the implementation".&lt;/p&gt;

&lt;p&gt;On top of that, the thing that decided where to put each countermeasure was whether the agent was aware that it was taking a shortcut.&lt;/p&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Shortcut&lt;/th&gt;
&lt;th&gt;Stage&lt;/th&gt;
&lt;th&gt;Agent aware?&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;Read and believe&lt;/td&gt;
&lt;td&gt;Prediction&lt;/td&gt;
&lt;td&gt;No (it judged the comment and code to agree)&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Convenient prediction&lt;/td&gt;
&lt;td&gt;Prediction&lt;/td&gt;
&lt;td&gt;Yes (it wrote the reason in its report)&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Deciding the answer from the implementation&lt;/td&gt;
&lt;td&gt;Expected values&lt;/td&gt;
&lt;td&gt;No (it wrote them as ordinary tests)&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Peeking before the lock&lt;/td&gt;
&lt;td&gt;Expected values&lt;/td&gt;
&lt;td&gt;Yes (it chose to run the code before locking)&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Rewriting after the lock&lt;/td&gt;
&lt;td&gt;Records&lt;/td&gt;
&lt;td&gt;No (it did it as fixing test defects)&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Hand-written tallies&lt;/td&gt;
&lt;td&gt;Records&lt;/td&gt;
&lt;td&gt;No (Kiro itself corrected the error in the next run)&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;p&gt;Shortcuts the agent is aware of have a reason. If there is a reason, you can stop the shortcut by changing what the reason rests on. Shortcuts the agent is not aware of are not shortcuts from its point of view; they are ordinary work. No amount of warning stops them, because the agent does not think it is doing anything that needs a warning. This difference decided where to block each one.&lt;/p&gt;

&lt;h2&gt;
  
  
  Three layers for blocking shortcuts
&lt;/h2&gt;

&lt;p&gt;The countermeasures fell into three layers.&lt;/p&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Layer&lt;/th&gt;
&lt;th&gt;What it is&lt;/th&gt;
&lt;th&gt;Shortcuts it blocked&lt;/th&gt;
&lt;th&gt;Strength and cost&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;Steering&lt;/td&gt;
&lt;td&gt;Instructions bundled with the Power, &lt;code&gt;.kiro/steering/&lt;/code&gt;
&lt;/td&gt;
&lt;td&gt;Convenient prediction, deciding the answer from the implementation, peeking before the lock&lt;/td&gt;
&lt;td&gt;Flexible, but left to the agent's judgment&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;MCP tools&lt;/td&gt;
&lt;td&gt;Prediction locks, comparison, saving results&lt;/td&gt;
&lt;td&gt;Rewriting after the lock, hand-written tallies&lt;/td&gt;
&lt;td&gt;Cannot be bypassed as a procedure, but adds friction&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Execution environment&lt;/td&gt;
&lt;td&gt;Two-phase isolation, throwaway copies, fixed run conditions&lt;/td&gt;
&lt;td&gt;Read and believe (execution gives the answer), writes to the original repo, failures that cannot be reproduced&lt;/td&gt;
&lt;td&gt;Cannot be crossed physically, but costly to change&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;p&gt;The lower the layer in the table, the more reliably it blocks a shortcut regardless of what the agent decides. The higher the layer, the more you can leave situational judgment to the agent, and the easier the countermeasure is to change. Awareness mostly decided which layer handled which shortcut. If the agent is aware, change the premise with steering. If not, change the shape of the work itself with tools or the execution environment.&lt;/p&gt;

&lt;p&gt;This split also matches what human teams already do. Coding conventions and review guidelines explain why, and leave it to each person's judgment; that is steering. CI checks and branch protection that blocks merging without approval take the decision out of people's hands and make the step impossible to skip; that is the MCP tools. Permission design that keeps developers away from production, and test environments that cannot reach the outside, create boundaries that cannot be crossed at all; that is execution-environment isolation. Human teams found that careless mistakes do not go away with reminders, and prevented them with CI and permissions. Blocking unaware shortcuts with tools and the execution environment follows the same idea.&lt;/p&gt;

&lt;p&gt;Here is what I did in each layer and why.&lt;/p&gt;

&lt;h3&gt;
  
  
  Steering: change what counts as success
&lt;/h3&gt;

&lt;p&gt;Steering is guidance the agent reads every time. In Kiro, Markdown files in &lt;code&gt;.kiro/steering/&lt;/code&gt; are loaded for each task, and the instructions bundled with a Power play the same role.&lt;/p&gt;

&lt;p&gt;Against convenient predictions, I rewrote the prediction section of the instructions as follows. I did not want to stop at "don't predict strategically", because a bare prohibition would leave the agent still treating "creating a mismatch" as success, and it might reach the same goal by other means.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight markdown"&gt;&lt;code&gt;1. Read the code and predict what you &lt;span class="gs"&gt;**actually believe**&lt;/span&gt;: exactly one of PASS
   or FAIL. If you suspect the code does not do what its comment says, predict
   FAIL and write one line of reasoning. Never predict strategically (for
   example "PASS so that a mismatch is meaningful"); a prediction you do not
   believe makes the whole report dishonest. A correct FAIL prediction is a
   valid, useful result: it shows the bug was visible by reading.
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;The point is the last sentence. A correct FAIL prediction is also a valuable result, because it shows the bug could be seen by reading. The agent chose the convenient prediction because it judged that "a mismatch" was worth more to the system than "a correct prediction". Change what that judgment rests on, and the reason to take the shortcut disappears. In the runs after this change, Kiro predicted FAIL for the suspicious comment, execution returned FAIL, and the prediction was right.&lt;/p&gt;

&lt;p&gt;Deciding the answer from the implementation was a different kind of problem. The agent was not aware of it, so an abstract "write against an independent standard" gives it nothing to check its own tests against. So I added a step that asks before locking, "could this expected value be produced with the same calculation as the code under test?", and listed concrete forms of it: using a data constant from the code as the expected value, writing the same branch as the code into the test, repeating the code's calculation on random inputs.&lt;/p&gt;

&lt;p&gt;This is an attempt to create awareness of an unaware shortcut. Concrete examples let the agent notice that it is deciding the answer from the implementation. It helped, but it is not complete. The forms are endless, and any form missing from the list goes unnoticed. As described later, this is where the final check still depends on a human.&lt;/p&gt;

&lt;p&gt;Peeking before the lock has not happened in any run since I added a sentence forbidding it. Peeking was something the agent chose to do, so I think showing what the act amounts to ("running the target code before predicting is executing the target") is enough for it to stop choosing it.&lt;/p&gt;

&lt;p&gt;Steering works where the agent makes judgments. By changing what a judgment rests on, or what an act means, it removes the reason to take a shortcut. The flip side is that as long as there is room for judgment, it will eventually miss. Shortcuts that do serious damage when steering misses had to be blocked in the next layer.&lt;/p&gt;

&lt;h3&gt;
  
  
  MCP tools: make the procedure impossible to bypass
&lt;/h3&gt;

&lt;p&gt;Steering could not prevent rewriting after the lock or hand-written tallies. Both are ordinary work to the agent. Fixing a broken test and summarizing results in a table are correct things to do, and forbidding them forbids necessary work too. So I left the work allowed and changed the tools so that a record is always left.&lt;/p&gt;

&lt;p&gt;The prediction lock hashes both the prediction and the property file.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight typescript"&gt;&lt;code&gt;&lt;span class="k"&gt;export&lt;/span&gt; &lt;span class="kd"&gt;interface&lt;/span&gt; &lt;span class="nc"&gt;PredictionLock&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
  &lt;span class="n"&gt;propertyId&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="kt"&gt;string&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
  &lt;span class="n"&gt;verdict&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="nc"&gt;Verdict&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
  &lt;span class="n"&gt;hashAlgorithm&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s2"&gt;"sha256"&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
  &lt;span class="cm"&gt;/** Hex digest over (Predicted_Result + Correctness_Property bytes). */&lt;/span&gt;
  &lt;span class="n"&gt;contentHash&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="kt"&gt;string&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
  &lt;span class="cm"&gt;/** Hex sha256 over the RAW Correctness_Property test file bytes alone. */&lt;/span&gt;
  &lt;span class="n"&gt;propertyContentHash&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="kt"&gt;string&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
  &lt;span class="c1"&gt;// lockedAt, etc.&lt;/span&gt;
&lt;span class="p"&gt;}&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Before running, &lt;code&gt;execute_properties&lt;/code&gt; checks the current hash of each property file against its lock. If they differ, it refuses to run and points the agent to &lt;code&gt;supersede_prediction_lock&lt;/code&gt;. That tool keeps the reason for the change and the previous hash in &lt;code&gt;locks/superseded/&lt;/code&gt;, then re-locks. If the prediction itself would change, it refuses.&lt;/p&gt;

&lt;p&gt;I did not choose to forbid changes after locking because test defects are real. The fifth shortcut was caused by one. If fixes are forbidden, the agent is left with two options: report the result of the broken test as is, or stop. Reporting it as is means saying "the comment lied" when the test failed only because of its own defect. Stopping leaves it unknown whether the comment is right. What was needed was not to stop fixes but to make it possible for anyone, later, to confirm that a fix was made, why, and that the prediction did not change.&lt;/p&gt;

&lt;p&gt;Hand-written tallies went away because the step itself went away. The agent no longer copies results; the tools save them to files themselves. &lt;code&gt;execute_properties&lt;/code&gt; and the other tools write the raw result to a timestamped file and return its path. &lt;code&gt;compare_predictions&lt;/code&gt; never takes predictions from the caller; it always reads them from the lock files. With no step where the agent writes the comparison table, there is nothing to miscopy. Not taking predictions from the agent also removes any chance of swapping a prediction just before the comparison.&lt;/p&gt;

&lt;p&gt;Counting lying comments is also the tools' job. A lie here means a comment that execution showed, with a FAIL, to disagree with what the code actually does. One root-cause bug can make several properties fail. In MoodPlays, a substring check &lt;code&gt;includes('24')&lt;/code&gt; in the closing-time logic treated places that close at a time containing "24", such as 13:24, as open 24 hours, and two properties failed. Counting that as two lies would overstate it. &lt;code&gt;compare_predictions&lt;/code&gt; returns the number of lies grouped by root cause separately from the number of wrong predictions. If the agent counted, choosing which number to report would be one more judgment call.&lt;/p&gt;

&lt;p&gt;Blocking with tools has a cost. The stricter the procedure, the more trial and error it takes the agent to use the tools correctly. In early runs, Kiro could not work out the shape of the data the tools expected, and kept calling them again while reading the errors. I reduced that friction by asking less of the caller. For example, &lt;code&gt;execute_properties&lt;/code&gt; no longer needs every property passed in one by one: given the folder that holds the spec, it builds them itself. If you add procedures that block shortcuts, you also need to make the right way easy. Otherwise the agent keeps getting stuck in front of the blocked path.&lt;/p&gt;

&lt;h3&gt;
  
  
  Execution environment: a boundary that cannot be crossed
&lt;/h3&gt;

&lt;p&gt;The last layer is a boundary the agent cannot cross whatever it decides. This layer is also what finally corrects the first shortcut, read and believe: whether a belief from reading was right is settled here, by actually running the code.&lt;/p&gt;

&lt;p&gt;The target code runs in containers, in two phases. spec-lantern uses Podman, but the features it relies on (an internal network with no route out, and starting a container with no network) also exist in Docker and other container runtimes, so the approach carries over.&lt;/p&gt;

&lt;p&gt;In the first phase, dependencies are installed on an internal network with no route out (with Podman, &lt;code&gt;podman network create --internal&lt;/code&gt;). The only thing that can reach the outside is Verdaccio (a server that proxies the npm registry), placed there as the relay. Installation runs with &lt;code&gt;--ignore-scripts&lt;/code&gt;, so no package can run arbitrary scripts during install. In the second phase, the tests run in a container started with &lt;code&gt;--network none&lt;/code&gt;. The dependencies are already on disk, so no network is needed.&lt;/p&gt;

&lt;p&gt;The phases are split because installing needs a network and testing does not. Running tests in one container with the network open would let the code you are checking talk to the outside world. spec-lantern deals with code whose contents you do not fully know. Whether it is someone else's public app or your own repository written by AI, you do not know what is in it until you run it. Until partway through development, spec-lantern still had an older path that ran the target in a single container with the network open. I removed it, and now there is no path inside spec-lantern itself where the target code runs while connected to a network.&lt;/p&gt;

&lt;p&gt;This layer also guarantees that the original repository is never touched. An earlier implementation mounted the original repository straight into the container, and the install phase rewrote &lt;code&gt;node_modules&lt;/code&gt; and &lt;code&gt;package.json&lt;/code&gt;. I did not notice while testing in my development repository; it surfaced only when I tried the packaged Power in a separate environment. Now every run, replay, and fix uses a throwaway copy created under &lt;code&gt;~/.spec-lantern/worktrees&lt;/code&gt;. &lt;code&gt;apply_fixes_and_reexecute&lt;/code&gt; writes only to the copy, and returns the diff it actually applied, computed before the copy is deleted.&lt;/p&gt;

&lt;p&gt;Reproducibility belongs to this layer too. Each run records the random seed, the time zone, and a fixed clock, and &lt;code&gt;replay_counterexample&lt;/code&gt; reproduces a failure under those conditions. There was a hole here as well. The record said "clock fixed to January 1, 2025", but tests that rendered UI components saw the real current date. On the general execution path the time zone was fixed, but the clock itself was not. If the recorded conditions differ from the actual ones, the claim that a run is reproducible falls apart. As a fix, I added a test that checks the recorded conditions are really applied at run time: if a test sees a date other than the recorded one, it fails.&lt;/p&gt;

&lt;h3&gt;
  
  
  Not reporting test defects as bugs
&lt;/h3&gt;

&lt;p&gt;The execution environment has one more important job: classifying results. As the fifth shortcut showed, a test can fail for reasons other than a bug in the code under test: a mistake in how the test is written, a missing environment setting, a timeout. If all of these count as FAIL, test defects get reported as "the comment lied".&lt;/p&gt;

&lt;p&gt;spec-lantern classifies each result as a verdict (PASS or FAIL), an execution error, a timeout, or runner unavailable. A FAIL comes only from an assertion inside the test failing with a counterexample. For example, if a test that renders a UI component forgets to set the simulated browser environment, it crashes with &lt;code&gt;document is not defined&lt;/code&gt;. That is an execution error, not a verdict, and the message includes how to fix it: add the environment setting on the first line.&lt;/p&gt;

&lt;p&gt;With this classification, the agent does not have to guess whether a failing test means a bug in the target or a defect in its own test. In the run with the fifth shortcut, Kiro stopped on a FAIL that came from counting a table whose tab never opened, judging that "reporting this as evidence of a bug would be dishonest". When the classification and the agent's judgment line up, test defects do not get reported as bugs.&lt;/p&gt;

&lt;h2&gt;
  
  
  Checking spec-lantern's own code by running it
&lt;/h2&gt;

&lt;p&gt;The mechanisms for blocking shortcuts also found a bug in spec-lantern itself.&lt;/p&gt;

&lt;p&gt;spec-lantern has a safety device (the Safety Gate) that keeps target code from running directly on the user's machine, outside a container. When it receives an instruction that starts with a command that runs the target code on the spot, such as &lt;code&gt;npm run&lt;/code&gt; or &lt;code&gt;node&lt;/code&gt;, it refuses without running it. A PBT I wrote for this check found that &lt;code&gt;npm run&lt;/code&gt; (followed only by spaces) slipped through. The check trimmed trailing spaces from the input and then did a prefix match against "npm run " with its space, so the trimmed "npm run" did not match. It was a failure that appeared or not depending on the random seed. With tests that list input and expected-output pairs by hand, the inputs lean toward the uses the author has in mind. You can write "&lt;code&gt;npm run build&lt;/code&gt; is refused" and "&lt;code&gt;ls&lt;/code&gt; is allowed", but "input followed only by spaces" is beyond what the author of the check imagined, so it rarely shows up in such tests. PBT generates inputs regardless of what the author has in mind, so inputs beyond the author's imagination are included too. It avoided, at the point where test inputs are produced, the problem mentioned earlier: when the checker and the checked are the same, the same assumptions get in. Simply trimming spaces on both ends would then wrongly refuse harmless strings like &lt;code&gt;node_modules...&lt;/code&gt;, so I changed it to match whole tokens and confirmed it passed ten runs in a row.&lt;/p&gt;

&lt;p&gt;What spec-lantern asks of the code it checks is to not trust explanations and to confirm by running. I applied the same standard to spec-lantern's own safety device. A system that tells other code "don't trust explanations" would not be convincing if it trusted its own safety device because "I wrote it, so it must be safe". And a safety device is the part where trusting it and missing something does the most damage.&lt;/p&gt;

&lt;h2&gt;
  
  
  Kiro features that helped
&lt;/h2&gt;

&lt;p&gt;Several Kiro features helped me build this.&lt;/p&gt;

&lt;p&gt;The first was spec-driven development. Kiro wrote the spec for spec-lantern itself, and I implemented it as 12 requirements in EARS form, a design with 35 Correctness Properties (properties that should hold for any input, which become PBTs), and 21 tasks. The one thing I changed by hand was the task order: I built first a thin path where a component from a real app runs in a real container and returns a real FAIL. If everything is connected only at the end, problems that show up only when you actually run things, like the ones in this post, appear too late. In fact, a design flaw in the isolation (a file-sharing problem between Verdaccio, the relay, and the virtual machine Podman runs) surfaced as soon as that path switched to two-phase isolation.&lt;/p&gt;

&lt;p&gt;Steering is where I carried lessons into the next task. For example, there is a rule that the report shows only facts confirmed by execution (&lt;code&gt;report-data-fidelity.md&lt;/code&gt;). Early in building the report screen, sample data that Kiro prepared for the screen included a comment that does not exist in the target app. It came with a file name and line number and looked indistinguishable from a real one. I added the rule the day I noticed. From then on it was read every time Kiro built the report screen that shows results, or the mini game where you guess whether real comments are lies (Trust or Test?), and it steered Kiro's implementation toward checks that compare generated data against the original files and stop the build if they differ.&lt;/p&gt;

&lt;p&gt;A Kiro Power is a way to package the MCP server with the instructions and hand them out together. The MCP server is bundled into one file with esbuild and started with &lt;code&gt;npx&lt;/code&gt; from a public repository. Add the GitHub URL through Kiro's "Add Custom Power", and someone else's environment gets the same instructions and tools. In the packaged Power's configuration, &lt;code&gt;apply_fixes_and_reexecute&lt;/code&gt;, which applies fixes, is left out of auto-approval, so a person always confirms it.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://kiro.dev/docs/powers/installation/" rel="noopener noreferrer"&gt;https://kiro.dev/docs/powers/installation/&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;a href="https://github.com/ikenyal/spec-lantern-power" rel="noopener noreferrer"&gt;https://github.com/ikenyal/spec-lantern-power&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Another thing that helped find problems was trying the packaged Power again and again in an environment separate from the development repository. In the development repository, Kiro can pick up the history from steering and past artifacts. So if the Power's instructions leave something out, Kiro fills the gap from that history and the problem never shows. In a separate environment, the Power's instructions and tools are all it has. Many of the shortcuts and holes in this post surfaced only there. They would not have been found without testing under the same conditions a user has.&lt;/p&gt;

&lt;p&gt;For larger fixes I used Kiro workflows (an implement-and-review loop). A reviewer checks the diff against the original request, which cut down on things missed when fixing problems found in testing.&lt;/p&gt;

&lt;h2&gt;
  
  
  Results after the countermeasures
&lt;/h2&gt;

&lt;p&gt;With all of this in place, I gave the same request to a fresh copy of writing-tracker, using only the packaged Power. One run, no property edits after locking, and all four predictions were right. This time Kiro predicted FAIL for the &lt;code&gt;reverse()&lt;/code&gt; comment, and execution returned FAIL. It also predicted and confirmed a second bug: because each month ends at 00:00 on its last day, a book updated later on the last day of a month is not counted in that month. The fixes were applied only to a throwaway copy, and the original repository did not change.&lt;/p&gt;

&lt;p&gt;What matters more to me than the predictions being right is being able to show that they were right. Lock times are also in git commits, so anyone can check from the history that predictions came before execution. Kiro's earlier locked prediction (PASS) and its final prediction (FAIL) are recorded the same way and can be checked the same way.&lt;/p&gt;

&lt;p&gt;You can see the results in the public report. The same page has a mini game where you guess which comments lied.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://d2xayupxggkiqt.cloudfront.net/" rel="noopener noreferrer"&gt;https://d2xayupxggkiqt.cloudfront.net/&lt;/a&gt;&lt;/p&gt;

&lt;h2&gt;
  
  
  Limits of spec-lantern
&lt;/h2&gt;

&lt;p&gt;Even with these countermeasures, three things are not prevented.&lt;/p&gt;

&lt;p&gt;First, the agent chooses which comments to check. Recording a hard-to-check comment as "unverifiable" with a reason is legitimate, but the more of them there are, the more gets missed. For now, the scope is limited to UI components that run on props alone (values passed in from outside) and pure functions. Code that depends on a database or an external API can only be handled with recorded responses.&lt;/p&gt;

&lt;p&gt;Second, whether tests are written against an independent standard still depends on a human check in the end. Even with steering that forbids it and a self-check step, there is no way to catch every answer decided from the implementation. A lock guarantees that the prediction came before execution, not that the test is right. Confusing the two creates a new read-and-believe: "it is locked, so the test must be right".&lt;/p&gt;

&lt;p&gt;Third, spec-lantern's isolation currently assumes Podman running on the local machine. Cleanup removes only resources whose owning process is confirmed to have exited, but if Podman is shared from another container, that check may not hold. Starting containers and installing dependencies also takes time, and tests that render UI components many times have exceeded the default time limit. The balance between strictness and waiting time needs tuning to the size of the target.&lt;/p&gt;

&lt;h2&gt;
  
  
  Ideas that apply to any AI agent
&lt;/h2&gt;

&lt;p&gt;All of this carries over to agents other than Kiro.&lt;/p&gt;

&lt;p&gt;The most important one, I think, is to ask, when you find a shortcut, whether the agent is aware of taking it. A shortcut the agent is aware of has a reason, and instructions or a prompt can change what that reason rests on. A shortcut it is not aware of does not stop with warnings, so the shape of the work has to change through tools or the execution environment. If you skip that distinction and add another prohibition to the instructions for every shortcut you find, the instructions keep growing and the shortcuts survive in new forms.&lt;/p&gt;

&lt;p&gt;The concrete ways of blocking with tools carry over directly too. Do not let the agent copy results; have the tool save them and return the path. Do not take values used for comparison or judgment from the agent; read them from fixed files. Instead of forbidding work, make sure that work always leaves a record. These designs can be built the same way with Claude Code hooks or MCP servers.&lt;/p&gt;

&lt;p&gt;Locking the prediction before running is also an idea for agent verification in general. In clinical trials and in research fields such as psychology, there is a procedure called preregistration: before collecting data, you register your hypotheses and analysis plan in a public place, so you cannot change them to fit the results. Locking predictions is a close cousin. Whether an agent "was right" or "was fooled" means something only when the prediction cannot move afterwards. If an agent reports "I checked it" without a locked prediction, nobody outside can tell whether that report comes from reading and believing or from running and confirming.&lt;/p&gt;

&lt;h2&gt;
  
  
  Kiro on day one and Kiro at the end
&lt;/h2&gt;

&lt;p&gt;On day one, Kiro read the &lt;code&gt;reverse()&lt;/code&gt; comment, judged it correct, and execution overturned that judgment. After the countermeasures, Kiro predicted FAIL for the same comment, and the prediction matched the result. What changed in between is the setup: predictions locked before running, results saved by the tools, and target code run only in isolation. Because of that, anyone can check afterwards whether a prediction was right.&lt;/p&gt;

&lt;p&gt;When you hand verification to an agent, how capable the agent is matters, of course. But just as much, the question is whether you have built a setup in which the agent cannot take shortcuts. Rather than blaming an AI for believing comments, build the setup first, so that it does not matter whether it believes them. spec-lantern is one way to do that.&lt;/p&gt;

</description>
      <category>kiro</category>
      <category>ai</category>
      <category>testing</category>
      <category>mcp</category>
    </item>
    <item>
      <title>Will AWS Emulator Replace the AWS Blocks Mocks? What Running Both Revealed About a Third Testing Layer</title>
      <dc:creator>Kento IKEDA</dc:creator>
      <pubDate>Thu, 12 Nov 2026 06:30:49 +0000</pubDate>
      <link>https://dev.to/aws-builders/will-aws-emulator-replace-the-aws-blocks-mocks-what-running-both-revealed-about-a-third-testing-2h9c</link>
      <guid>https://dev.to/aws-builders/will-aws-emulator-replace-the-aws-blocks-mocks-what-running-both-revealed-about-a-third-testing-2h9c</guid>
      <description>&lt;p&gt;On November 11, 2026 (US time), AWS released &lt;a href="https://aws.amazon.com/about-aws/whats-new/2026/11/aws-emulator-now-available/" rel="noopener noreferrer"&gt;AWS Emulator&lt;/a&gt;. It is a tool that receives your AWS SDK and AWS CLI calls on your own machine instead of in the cloud, and answers them with the same shape of response that AWS would return.&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;&lt;a href="https://github.com/aws/aws-emulator" rel="noopener noreferrer"&gt;AWS Emulator on GitHub&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;When I saw the announcement, the first thing that came to mind was this:&lt;/p&gt;

&lt;blockquote&gt;
&lt;p&gt;Do the AWS Blocks mocks still have a reason to exist?&lt;/p&gt;
&lt;/blockquote&gt;

&lt;p&gt;I have been making small contributions to AWS Blocks since it entered public preview. In a &lt;a href="https://dev.to/aws-builders/what-is-aws-blocks-how-it-differs-from-amplify-and-app-studio-and-what-each-one-is-aiming-for-2kn0"&gt;previous post&lt;/a&gt;, I looked at how Blocks differs from Amplify and App Studio.&lt;/p&gt;

&lt;p&gt;One of the defining features of Blocks is that &lt;code&gt;npm run dev&lt;/code&gt; runs the whole application on your machine without an AWS account. That works because every Block ships its own local implementation, in other words a mock. Now AWS itself has released a tool that reproduces AWS locally, so I wanted to know whether the two collide or fit together.&lt;/p&gt;

&lt;p&gt;This post looks at the source code of both repositories, the raw data behind the fidelity scores that AWS Emulator publishes, and the results of running the same operations against the Blocks mocks and against AWS Emulator. It is one user and contributor's reading, not an official AWS position or roadmap.&lt;/p&gt;

&lt;h2&gt;
  
  
  The short answer: not a replacement, but a third layer
&lt;/h2&gt;

&lt;p&gt;Here is where things stand today.&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;The two tools replace AWS at different layers. Blocks swaps in its mock at import time. AWS Emulator answers at the AWS API boundary.&lt;/li&gt;
&lt;li&gt;The Blocks documentation states that no emulator is needed, and the AWS SDK is never loaded during local development. There is no place for AWS Emulator in today's Blocks developer experience.&lt;/li&gt;
&lt;li&gt;At the same time, Blocks has no layer of tests that checks how AWS responds to what its AWS implementations send. Each Block's design document (DESIGN.md) lists many differences between the mock and AWS, and many of them are left to be verified in a sandbox (a temporary environment deployed to real AWS).&lt;/li&gt;
&lt;li&gt;AWS Emulator publishes how closely it matches AWS as a "fidelity score". Taking only the operations that Blocks actually calls, data reads and writes (DynamoDB, S3, SQS and others) matched AWS 80 to 100 percent of the time. Realtime delivery to browsers, email sending, and sign-in flows still score low.&lt;/li&gt;
&lt;li&gt;I started AWS Emulator on GitHub Actions and pointed the Blocks AWS implementations at it without changing any code. KVStore returned the same results as the mock, and FileBucket returned exactly the S3 behavior described in DESIGN.md (lowercased metadata keys and delete-marker handling).&lt;/li&gt;
&lt;li&gt;IAM, data operations on the database (PostgreSQL), throttling, and eventual consistency remain gaps that AWS Emulator does not close.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;So the most I can say today is that AWS Emulator does not replace the mocks, but has room to sit between the mocks and the sandbox as a third layer. On top of that, the place where it felt most useful first was not the developer's machine but the Blocks project's own tests.&lt;/p&gt;

&lt;h2&gt;
  
  
  A quick recap of AWS Blocks
&lt;/h2&gt;

&lt;p&gt;AWS Blocks is an open-source framework that entered public preview in June 2026. It lets you build backends on AWS in TypeScript.&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;&lt;a href="https://github.com/aws-devtools-labs/aws-blocks" rel="noopener noreferrer"&gt;AWS Blocks on GitHub&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Its building unit is the "Block". There is KVStore for key-value data, FileBucket for files, AsyncJob for background work, Realtime for pushing updates to browsers, several Auth Blocks for sign-in, and more. Each one is distributed as an npm package.&lt;/p&gt;

&lt;p&gt;A Block bundles three things: the infrastructure definition for AWS (AWS CDK), the implementation that calls AWS services (AWS SDK), and a local implementation for running on your machine. All three share the same typed API, so your application code does not change between them.&lt;/p&gt;

&lt;p&gt;In your backend code, you define a Block like this:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight typescript"&gt;&lt;code&gt;&lt;span class="k"&gt;import&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt; &lt;span class="nc"&gt;Scope&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="nc"&gt;KVStore&lt;/span&gt; &lt;span class="p"&gt;}&lt;/span&gt; &lt;span class="k"&gt;from&lt;/span&gt; &lt;span class="s1"&gt;'@aws-blocks/blocks'&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;

&lt;span class="kd"&gt;const&lt;/span&gt; &lt;span class="n"&gt;scope&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="k"&gt;new&lt;/span&gt; &lt;span class="nc"&gt;Scope&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="s1"&gt;'my-app'&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
&lt;span class="kd"&gt;const&lt;/span&gt; &lt;span class="n"&gt;sessions&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="k"&gt;new&lt;/span&gt; &lt;span class="nc"&gt;KVStore&lt;/span&gt;&lt;span class="o"&gt;&amp;lt;&lt;/span&gt;&lt;span class="kt"&gt;string&lt;/span&gt;&lt;span class="o"&gt;&amp;gt;&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;scope&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="s1"&gt;'sessions'&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
&lt;span class="c1"&gt;// Inside an API, call sessions.put('user-1', 'hello') or sessions.get('user-1')&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;There is no DynamoDB table name and no SDK call in this code. When you deploy, KVStore becomes a DynamoDB table, and Blocks also sets up the permissions that let your Lambda functions read and write it.&lt;/p&gt;

&lt;p&gt;A Blocks application can run in three ways, and this post depends on keeping them apart.&lt;/p&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Mode&lt;/th&gt;
&lt;th&gt;Command&lt;/th&gt;
&lt;th&gt;Summary&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;Local development&lt;/td&gt;
&lt;td&gt;&lt;code&gt;npm run dev&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;Every Block runs its local implementation. No AWS account needed&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Sandbox&lt;/td&gt;
&lt;td&gt;&lt;code&gt;npm run sandbox&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;Deploys a temporary, per-developer backend to real AWS and runs on real services&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Deployment&lt;/td&gt;
&lt;td&gt;&lt;code&gt;npm run deploy&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;Deploys the whole application to AWS with CDK (CloudFormation)&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;p&gt;The &lt;a href="https://docs.aws.amazon.com/blocks/latest/devguide/cli-reference.html" rel="noopener noreferrer"&gt;CLI reference&lt;/a&gt; covers the commands in detail.&lt;/p&gt;

&lt;p&gt;In this post, "mock" means the local implementation from the first row, and "sandbox" means the temporary environment on real AWS from the second row.&lt;/p&gt;

&lt;h2&gt;
  
  
  What AWS Emulator is
&lt;/h2&gt;

&lt;p&gt;AWS Emulator reproduces the AWS APIs on your machine. You don't need an AWS account, and your requests go to the emulator instead of AWS. There is no additional service fee.&lt;/p&gt;

&lt;p&gt;You start the emulator and point the AWS CLI or an AWS SDK at its local endpoint. Your application and test code stay the same, and they read and write resources that live inside the emulator. The state is kept in memory and disappears when you stop the emulator.&lt;/p&gt;

&lt;p&gt;It ships as RPM and Debian packages for Linux, and as a Dockerfile for macOS and Windows. There is also an embedded mode for Rust tests that runs an isolated emulator per test, and a skill for AI coding agents so you can let your agent handle the setup.&lt;/p&gt;

&lt;p&gt;The service definitions are generated from the same API models that the AWS SDKs are built from. For any service whose API model is published, the shape of requests and responses lines up with AWS. When AWS adds a service or an API, it appears in the emulator, and its behavior is filled in release by release. Operations whose behavior is not implemented yet return 501 Not Implemented.&lt;/p&gt;

&lt;p&gt;What stands out most in this release is how the emulator was built. According to the AWS senior principal engineer who started the effort, the code was written entirely by autonomous AI agents. The team has not written or reviewed any of it.&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;&lt;a href="https://www.aboutamazon.com/news/aws/how-autonomous-ai-agents-built-aws-emulator" rel="noopener noreferrer"&gt;How we built the agents that built AWS Emulator&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;The starting prompt had three steps: write tests with the AWS CLI, iterate on them until they pass against real AWS, then build an in-memory implementation that passes the same tests.&lt;/p&gt;

&lt;p&gt;Tests that have been confirmed against real AWS become the reference, and the agents keep fixing the implementation against them. These reference tests are called fidelity tests, and their results are published with every release as fidelity scores. According to the &lt;a href="https://docs.aws.amazon.com/emulator/latest/userguide/fidelity.html" rel="noopener noreferrer"&gt;official explanation&lt;/a&gt;, the emulator matches AWS most closely today for control plane APIs, such as creating and deleting resources. Fidelity for the data plane (the main function of a service, such as reading and writing data), and support for CloudFormation and the AWS CDK, varies by service. The analysis later in this post uses the raw data behind these scores.&lt;/p&gt;

&lt;p&gt;The repository is open source, but it does not accept pull requests. &lt;a href="https://github.com/aws/aws-emulator/blob/main/.github/CONTRIBUTING.md" rel="noopener noreferrer"&gt;CONTRIBUTING.md&lt;/a&gt; explains that AI agents keep the emulator up to date with AWS, and asks for issues instead.&lt;/p&gt;

&lt;p&gt;AWS also states its limits clearly. The README says not to use the emulator for production workloads or to test security. The &lt;a href="https://docs.aws.amazon.com/emulator/latest/userguide/security.html" rel="noopener noreferrer"&gt;security page&lt;/a&gt; adds that it does not evaluate IAM policies or resource-based policies the way AWS does, so a request that AWS denies might succeed in the emulator, and the reverse can also happen.&lt;/p&gt;

&lt;p&gt;Tools that reproduce AWS locally are not new. The AWS SAM CLI can run Lambda functions and API Gateway locally, and the third-party LocalStack has been around for a long time. In 2025, AWS itself added &lt;a href="https://aws.amazon.com/about-aws/whats-new/2025/09/localstack-integration-vs-code-ide-local-testing" rel="noopener noreferrer"&gt;LocalStack integration&lt;/a&gt; to the AWS Toolkit for VS Code.&lt;/p&gt;

&lt;p&gt;What is new about AWS Emulator is that it is official, that it generates nearly every service mechanically from the API models, and that it keeps publishing how closely it matches AWS as a score.&lt;/p&gt;

&lt;h2&gt;
  
  
  Two kinds of "local"
&lt;/h2&gt;

&lt;p&gt;Both tools run locally, but they replace AWS at very different points.&lt;/p&gt;

&lt;p&gt;AWS Blocks switches implementations with Node.js conditional exports. You list a file for each condition under &lt;code&gt;exports&lt;/code&gt; in &lt;code&gt;package.json&lt;/code&gt;, and Node.js picks the file that matches the current context. Here is what the KVStore &lt;code&gt;package.json&lt;/code&gt; contains:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight json"&gt;&lt;code&gt;&lt;span class="nl"&gt;"exports"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
  &lt;span class="nl"&gt;"."&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
    &lt;span class="nl"&gt;"browser"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s2"&gt;"./dist/index.browser.js"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
    &lt;span class="nl"&gt;"cdk"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt; &lt;span class="nl"&gt;"default"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s2"&gt;"./dist/index.cdk.js"&lt;/span&gt; &lt;span class="p"&gt;}&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
    &lt;span class="nl"&gt;"aws-runtime"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s2"&gt;"./dist/index.aws.js"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
    &lt;span class="nl"&gt;"default"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s2"&gt;"./dist/index.mock.js"&lt;/span&gt;
  &lt;span class="p"&gt;}&lt;/span&gt;
&lt;span class="p"&gt;}&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;By default you get the mock. During CDK synthesis you get the CDK construct. Only when the backend is bundled for Lambda does the &lt;code&gt;aws-runtime&lt;/code&gt; condition load the implementation that uses the AWS SDK. The &lt;a href="https://docs.aws.amazon.com/blocks/latest/devguide/local-development.html" rel="noopener noreferrer"&gt;local development guide&lt;/a&gt; says that each Block ships a local implementation with the same typed API as production, so no emulator or additional tooling is required. It also says the AWS SDK is never loaded during local development.&lt;/p&gt;

&lt;p&gt;AWS Emulator works one layer below. As described above, it receives the SDK calls themselves and returns the same shape of responses and errors as AWS.&lt;/p&gt;

&lt;p&gt;Here is how the two relate:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;Application code (new KVStore(...))
  │
  ├─ npm run dev (default) ──→ Blocks mock          … reproduces the Blocks API
  │
  └─ aws-runtime condition ──→ Blocks AWS implementation
                                  │
                                  └─ AWS SDK
                                       │
                                       ├─ AWS_ENDPOINT_URL ──→ AWS Emulator  … reproduces the AWS API
                                       │
                                       └─ AWS
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;The two also reproduce different things.&lt;/p&gt;

&lt;p&gt;The Blocks mock reproduces the Blocks APIs, such as KVStore and FileBucket. When you write a value to KVStore, the mock stores it directly in local files or memory without going through DynamoDB. No DynamoDB request or response appears anywhere.&lt;/p&gt;

&lt;p&gt;AWS Emulator reproduces the AWS APIs, such as DynamoDB and S3. It answers the requests that arrive from an SDK or the CLI in the same shape that DynamoDB or S3 would.&lt;/p&gt;

&lt;p&gt;Because they reproduce different things, AWS Emulator has no place in today's Blocks developer experience. &lt;code&gt;npm run dev&lt;/code&gt; never calls the SDK, so there is nothing to point at the emulator in the first place.&lt;/p&gt;

&lt;p&gt;Neither repository mentions the other. The only hit for "emulator" in the Blocks repository is a pull request about the Android emulator.&lt;/p&gt;

&lt;h2&gt;
  
  
  The gap in how Blocks tests itself
&lt;/h2&gt;

&lt;p&gt;Does that mean AWS Emulator has nothing to offer Blocks? Not quite. What caught my attention was how Blocks tests its AWS implementations.&lt;/p&gt;

&lt;p&gt;KVStore has &lt;a href="https://github.com/aws-devtools-labs/aws-blocks/blob/main/packages/bb-kv-store/src/parity.test.ts" rel="noopener noreferrer"&gt;parity tests&lt;/a&gt; that keep the mock and the AWS implementation behaving the same way. Here is how the AWS implementation is exercised:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight typescript"&gt;&lt;code&gt;&lt;span class="cm"&gt;/**
 * Capture what the AWS runtime would send to DynamoDB and control what it reads
 * back, without touching the network. Real `KVStore`, real `PutCommand`.
 */&lt;/span&gt;
&lt;span class="kd"&gt;function&lt;/span&gt; &lt;span class="nf"&gt;captureAws&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;id&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="kt"&gt;string&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;respond&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="o"&gt;=&amp;gt;&lt;/span&gt; &lt;span class="kt"&gt;any&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="o"&gt;=&amp;gt;&lt;/span&gt; &lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="p"&gt;{&lt;/span&gt;&lt;span class="p"&gt;}&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
  &lt;span class="kd"&gt;const&lt;/span&gt; &lt;span class="n"&gt;store&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="k"&gt;new&lt;/span&gt; &lt;span class="nc"&gt;AwsKVStore&lt;/span&gt;&lt;span class="o"&gt;&amp;lt;&lt;/span&gt;&lt;span class="kt"&gt;string&lt;/span&gt;&lt;span class="o"&gt;&amp;gt;&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="p"&gt;{&lt;/span&gt; &lt;span class="n"&gt;id&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s1"&gt;'root'&lt;/span&gt; &lt;span class="p"&gt;}&lt;/span&gt; &lt;span class="k"&gt;as&lt;/span&gt; &lt;span class="kt"&gt;any&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;id&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
  &lt;span class="kd"&gt;const&lt;/span&gt; &lt;span class="n"&gt;sent&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="kt"&gt;any&lt;/span&gt;&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
  &lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;store&lt;/span&gt; &lt;span class="k"&gt;as&lt;/span&gt; &lt;span class="kt"&gt;any&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;docClient&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;middlewareStack&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;add&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;
    &lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;_next&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="kt"&gt;any&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="o"&gt;=&amp;gt;&lt;/span&gt; &lt;span class="k"&gt;async&lt;/span&gt; &lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;args&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="kt"&gt;any&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="o"&gt;=&amp;gt;&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
      &lt;span class="n"&gt;sent&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;push&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;args&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;input&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
      &lt;span class="k"&gt;return&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt; &lt;span class="n"&gt;output&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="nf"&gt;respond&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="p"&gt;}&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
    &lt;span class="p"&gt;}&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
    &lt;span class="p"&gt;{&lt;/span&gt; &lt;span class="n"&gt;step&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s1"&gt;'initialize'&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;name&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s1"&gt;'kv-parity-intercept'&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;override&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="kc"&gt;true&lt;/span&gt; &lt;span class="p"&gt;}&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
  &lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
  &lt;span class="k"&gt;return&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt; &lt;span class="n"&gt;store&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;items&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="o"&gt;=&amp;gt;&lt;/span&gt; &lt;span class="n"&gt;sent&lt;/span&gt; &lt;span class="p"&gt;}&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
&lt;span class="p"&gt;}&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;The code does exactly what the comment says, in three steps.&lt;/p&gt;

&lt;p&gt;First, it creates the real AWS implementation of KVStore (&lt;code&gt;AwsKVStore&lt;/code&gt;). Next, it adds a middleware to the DynamoDB client inside it. Middleware in the AWS SDK for JavaScript v3 lets you run code before and after a request is sent. This middleware records the request in &lt;code&gt;sent&lt;/code&gt;, never sends it to DynamoDB, and returns whatever &lt;code&gt;respond()&lt;/code&gt; returns as the response.&lt;/p&gt;

&lt;p&gt;In other words, the DynamoDB response the test receives is a value the test author prepared in &lt;code&gt;respond&lt;/code&gt;. Real DynamoDB is never called from start to finish.&lt;/p&gt;

&lt;p&gt;So this approach can verify what the AWS implementation sends, and nothing more. How DynamoDB responds stays within what the test author assumed.&lt;/p&gt;

&lt;p&gt;The same gap shows up in each Block's DESIGN.md. Many Blocks have a "Mock vs AWS Behavior Differences" table that honestly lists where the mock and AWS behave differently, and "verify in a sandbox" appears again and again in the mitigation column. For FileBucket, the differences include how S3 handles delete markers, lowercased user metadata keys, and the error codes returned for an unknown versionId.&lt;/p&gt;

&lt;p&gt;There is also one telling pull request. &lt;a href="https://github.com/aws-devtools-labs/aws-blocks/pull/999" rel="noopener noreferrer"&gt;PR #999&lt;/a&gt;, merged in October, checks the CDK bootstrap status before deploying. Its verification notes say the maintainer pointed &lt;code&gt;AWS_ENDPOINT_URL&lt;/code&gt; at a hand-made fake STS/SSM endpoint to exercise the real SDK clients and error handling without an AWS account.&lt;/p&gt;

&lt;p&gt;The maintainers needed a way to reproduce AWS responses locally and built one on the spot. That is exactly where AWS Emulator could fit.&lt;/p&gt;

&lt;h2&gt;
  
  
  Running the same operations against the mock and the emulator
&lt;/h2&gt;

&lt;p&gt;To see what this gap looks like in practice, I wrote a small script that runs the same operations against both the Blocks mock and the Blocks AWS implementation pointed at AWS Emulator. As I explain later, the place where AWS Emulator felt most useful first was testing in CI. So instead of my own machine, I started the emulator on a GitHub Actions Linux runner.&lt;/p&gt;

&lt;p&gt;Setting up the emulator was just a matter of installing the published RPM and starting it. On startup it writes three files to &lt;code&gt;~/.aws/emulator/9297/&lt;/code&gt;: &lt;code&gt;config&lt;/code&gt; with the endpoint and certificate location, &lt;code&gt;emulator_credentials&lt;/code&gt; with the credentials, and the self-signed certificate &lt;code&gt;ca.pem&lt;/code&gt;. To run the AWS implementation, I set these environment variables and loaded the Block with the &lt;code&gt;aws-runtime&lt;/code&gt; condition:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;&lt;span class="nv"&gt;D&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;~/.aws/emulator/9297
&lt;span class="kd"&gt;export&lt;/span&gt; &lt;span class="nv"&gt;AWS_CONFIG_FILE&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="nv"&gt;$D&lt;/span&gt;/config
&lt;span class="kd"&gt;export&lt;/span&gt; &lt;span class="nv"&gt;AWS_SHARED_CREDENTIALS_FILE&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="nv"&gt;$D&lt;/span&gt;/emulator_credentials
&lt;span class="kd"&gt;export&lt;/span&gt; &lt;span class="nv"&gt;NODE_EXTRA_CA_CERTS&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="nv"&gt;$D&lt;/span&gt;/ca.pem   &lt;span class="c"&gt;# make Node.js trust the self-signed certificate&lt;/span&gt;
&lt;span class="kd"&gt;export&lt;/span&gt; &lt;span class="nv"&gt;AWS_ENDPOINT_URL&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;https://127.0.0.1:9297
node --conditions=aws-runtime --import tsx probe.ts --aws
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;I did not touch the Blocks AWS implementation code. Neither KVStore nor FileBucket hard-codes an endpoint when creating its SDK client, so the environment variables alone were enough to redirect them.&lt;/p&gt;

&lt;p&gt;The table and bucket did have to exist beforehand, though. They are normally created by CDK at deploy time, so I created them directly with the SDK. A DynamoDB table starts in the &lt;code&gt;CREATING&lt;/code&gt; state, and writing to it right away returns &lt;code&gt;ResourceNotFoundException&lt;/code&gt;. That matches real DynamoDB, and I had to wait about three seconds before the table was usable. The mock never has this wait.&lt;/p&gt;

&lt;p&gt;I used AWS Emulator 1.0.322 and the latest Blocks packages on npm (blocks 0.9.0, bb-kv-store 0.4.0, bb-file-bucket 0.4.0). For KVStore and FileBucket, I picked operations that DESIGN.md lists as differences.&lt;/p&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Operation&lt;/th&gt;
&lt;th&gt;Blocks mock&lt;/th&gt;
&lt;th&gt;AWS implementation + AWS Emulator&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;Write to KVStore and read it back&lt;/td&gt;
&lt;td&gt;The written value&lt;/td&gt;
&lt;td&gt;The written value&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Write to an existing key with &lt;code&gt;ifNotExists&lt;/code&gt;
&lt;/td&gt;
&lt;td&gt;&lt;code&gt;ConditionalCheckFailedException&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;&lt;code&gt;ConditionalCheckFailedException&lt;/code&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Write with an expired TTL, then read&lt;/td&gt;
&lt;td&gt;&lt;code&gt;null&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;&lt;code&gt;null&lt;/code&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Write a 450 KB value&lt;/td&gt;
&lt;td&gt;&lt;code&gt;ItemTooLargeException&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;&lt;code&gt;ItemTooLargeException&lt;/code&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Write to FileBucket with metadata &lt;code&gt;Owner&lt;/code&gt;, then read&lt;/td&gt;
&lt;td&gt;Key stays &lt;code&gt;Owner&lt;/code&gt;
&lt;/td&gt;
&lt;td&gt;Key becomes &lt;code&gt;owner&lt;/code&gt;
&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Read with an unknown versionId&lt;/td&gt;
&lt;td&gt;&lt;code&gt;null&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;&lt;code&gt;null&lt;/code&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Restore an unknown versionId&lt;/td&gt;
&lt;td&gt;&lt;code&gt;NoSuchVersion&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;&lt;code&gt;NoSuchVersion&lt;/code&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Overwrite across a delete marker, permanently delete the current version, then read&lt;/td&gt;
&lt;td&gt;&lt;code&gt;replacement&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;&lt;code&gt;null&lt;/code&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;p&gt;The four KVStore rows returned the same results from the mock and from the emulator. The behavior that DESIGN.md describes as aligned between the mock and AWS came back the same way through the AWS implementation.&lt;/p&gt;

&lt;p&gt;The differences appeared in two FileBucket rows.&lt;/p&gt;

&lt;p&gt;Metadata keys came back unchanged from the mock and lowercased from the emulator. DESIGN.md explains that S3 lowercases user metadata keys, so code that reads &lt;code&gt;metadata.Owner&lt;/code&gt; works locally and gets &lt;code&gt;undefined&lt;/code&gt; on AWS. The emulator reproduced that S3 behavior. A difference that DESIGN.md could only describe in words became visible as a test result.&lt;/p&gt;

&lt;p&gt;The last row is easier to follow with S3 versioning in mind. A bucket with versioning enabled keeps past versions when you overwrite or delete an object. Deleting by key alone does not remove data. Instead, a "delete marker" is stacked on top as the latest version, and reads then see the object as deleted. Only deleting a specific version (by versionId) removes that version permanently.&lt;/p&gt;

&lt;p&gt;The steps follow the DESIGN.md table exactly:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;put('old')
delete()               ← versioning is on, so a delete marker is added
put('replacement')
delete(current versionId) ← permanently deletes replacement
get()
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;DESIGN.md says the mock returns &lt;code&gt;old&lt;/code&gt; here, while S3 makes the earlier delete marker current and treats the key as deleted. The emulator returned &lt;code&gt;null&lt;/code&gt;, exactly as described for S3.&lt;/p&gt;

&lt;p&gt;The latest mock on npm, however, returned &lt;code&gt;replacement&lt;/code&gt;, the version that had just been permanently deleted, not &lt;code&gt;old&lt;/code&gt;. It turns out this mismatch was already fixed by &lt;a href="https://github.com/aws-devtools-labs/aws-blocks/pull/693" rel="noopener noreferrer"&gt;PR #693&lt;/a&gt;, merged the day after 0.4.0 was published. The fix replaces the local current copy with the next version when the current version is permanently deleted. Reading the code on &lt;code&gt;main&lt;/code&gt;, the mock should now return &lt;code&gt;old&lt;/code&gt; as DESIGN.md says. The fix has not been released yet, so the npm version still shows the old behavior.&lt;/p&gt;

&lt;p&gt;That leaves three different answers to the same steps: &lt;code&gt;null&lt;/code&gt; from the emulator reproducing S3, &lt;code&gt;old&lt;/code&gt; from the mock on &lt;code&gt;main&lt;/code&gt;, and &lt;code&gt;replacement&lt;/code&gt; from the published mock. The difference between &lt;code&gt;old&lt;/code&gt; and &lt;code&gt;null&lt;/code&gt; is documented in DESIGN.md as a known gap.&lt;/p&gt;

&lt;p&gt;This is not something you are likely to hit in day-to-day development. Still, it shows the nature of the gap well. Even with a table of mock-versus-AWS differences and tests of what the AWS implementation sends, this kind of drift cannot be caught by any single test unless there is a layer that checks how AWS actually responds. You only find it by laying the mock, DESIGN.md, and real AWS behavior side by side. Doing that check with AWS Emulator confirmed that the S3 behavior written in DESIGN.md comes back exactly as described.&lt;/p&gt;

&lt;p&gt;The &lt;code&gt;ItemTooLargeException&lt;/code&gt; row for KVStore deserves a mention too. The KVStore AWS implementation checks whether the message of a &lt;code&gt;ValidationException&lt;/code&gt; from DynamoDB contains "size has exceeded" with a regular expression, and turns it into &lt;code&gt;ItemTooLargeException&lt;/code&gt;. The conversion depends on the wording of the message, not the error type. It worked against the emulator because the emulator's DynamoDB implementation defines the message "Item size has exceeded the maximum allowed size" as a constant that matches AWS.&lt;/p&gt;

&lt;p&gt;Being generated from API models only means the shape of requests and responses matches AWS. The source shows that AWS Emulator also tries to match the wording of error messages. For a library like Blocks that reinterprets errors based on their wording, this makes a real difference.&lt;/p&gt;

&lt;h2&gt;
  
  
  Gaps AWS Emulator can and cannot close
&lt;/h2&gt;

&lt;p&gt;So how much of what Blocks calls does AWS Emulator reproduce today?&lt;/p&gt;

&lt;p&gt;AWS Emulator publishes fidelity scores with every release. The &lt;a href="https://github.com/aws/aws-emulator/releases/tag/v1.0.322" rel="noopener noreferrer"&gt;v1.0.322 release&lt;/a&gt; attaches the raw evaluation data as &lt;code&gt;scores.json.gz&lt;/code&gt;. It records, for each short scenario (a sequence of calls such as creating, reading, and deleting a resource), whether the emulator's responses matched the ones recorded on AWS.&lt;/p&gt;

&lt;p&gt;At the service level, DynamoDB, S3, and SQS pass roughly 60 to 70 percent. That number is not very useful for Blocks, though, because Blocks calls only a small subset of each service's operations.&lt;/p&gt;

&lt;p&gt;So I listed the SDK clients that each Block's AWS implementation imports, narrowed the data down to the operations they actually call, and recomputed the match rate per step within each scenario.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fa4qdfcxml93wnk36l0yo.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fa4qdfcxml93wnk36l0yo.png" alt="AWS Emulator fidelity for the operations AWS Blocks calls. DynamoDB, S3, SQS, Secrets Manager, and SSM operations match 80 to 100 percent of the time. Cognito InitiateAuth is at 50 percent. Realtime PostToConnection and EmailClient SendEmail are low." width="800" height="551"&gt;&lt;/a&gt;&lt;br&gt;
&lt;em&gt;Built from scores.json.gz in aws/aws-emulator v1.0.322&lt;/em&gt;&lt;/p&gt;

&lt;p&gt;A few caveats apply. Only the tests classified as "wire" in scores.json carry per-step detail, and they make up about a quarter of the total. Operations with single-digit step counts are too few to read even a trend. The official documentation also explains that adding tests can surface differences that were already there as new failures, so a score should be read as a snapshot. What you see here is a trend at one point in time.&lt;/p&gt;

&lt;p&gt;Even so, the split between operations that are already reproduced and those that are not is clear.&lt;/p&gt;

&lt;p&gt;The operations called by the data-oriented Blocks (KVStore, DistributedTable, FileBucket, enqueuing in AsyncJob, Secret, AppSetting) have high match rates. Among the differences that DESIGN.md says to check in a sandbox, those about the shape of DynamoDB and S3 responses or their error codes are candidates for checking with AWS Emulator instead.&lt;/p&gt;

&lt;p&gt;On the other hand, Realtime delivery to browsers, email sending in EmailClient, and the sign-in flow in AuthCognito do not look ready to be verified with the emulator yet.&lt;/p&gt;

&lt;p&gt;And regardless of the scores, some gaps remain that AWS Emulator does not close.&lt;/p&gt;

&lt;p&gt;The first is IAM. The DESIGN.md files of several Blocks, including KVStore, FileBucket, and AsyncJob, list "No IAM enforcement" as a difference, and the AWS Emulator README also says not to use it for security testing. According to the official security page, some services evaluate the policies of IAM users and roles that you create inside the emulator, but not the same way AWS does. Requests signed with the emulator's own keys are never denied. Blocks wires permissions automatically through CDK grants, and for now the only place to check that they are correct is a sandbox.&lt;/p&gt;

&lt;p&gt;The second is the database. The Database and DistributedDatabase Blocks connect to PostgreSQL-family databases on AWS, such as Aurora Serverless v2 and Aurora DSQL. AWS Emulator does have an &lt;a href="https://github.com/aws/aws-emulator" rel="noopener noreferrer"&gt;Aurora DSQL service&lt;/a&gt;, but it implements only management operations such as creating and deleting clusters. The path that runs SQL is not an AWS API, so it belongs to PGlite in the Blocks mock or to a sandbox, not to the emulator.&lt;/p&gt;

&lt;p&gt;The third is behavior that depends on timing and scale, such as throttling and eventual consistency. Blocks itself treats these as inherently non-deterministic in DESIGN.md and offers no mitigation, and it is hard to expect the emulator to cover them either.&lt;/p&gt;

&lt;p&gt;One more thing worth noting is that CloudFormation scores only around 20 percent at the service level. The official documentation also says that support for CloudFormation and the AWS CDK varies by service. Since a Blocks application is a CDK application, deploying a Blocks template to the emulator as-is to run the whole AWS implementation does not look practical yet.&lt;/p&gt;
&lt;h2&gt;
  
  
  Blocks testing in three layers
&lt;/h2&gt;

&lt;p&gt;Putting this together, Blocks testing can be thought of in three layers.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;Blocks mock                 AWS Emulator                 Sandbox (real AWS)
types, logic, usage   ··&amp;gt;   API responses and errors ··&amp;gt;  IAM, performance,
                                                          eventual consistency
      │                                                          ▲
      └──────── bridged today by the DESIGN.md difference tables ┘
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Layer&lt;/th&gt;
&lt;th&gt;What it can verify&lt;/th&gt;
&lt;th&gt;What it cannot verify&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;Blocks mock&lt;/td&gt;
&lt;td&gt;Types, business logic, how Blocks are used, the feel during development&lt;/td&gt;
&lt;td&gt;How AWS responds&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;AWS Emulator&lt;/td&gt;
&lt;td&gt;The requests the AWS implementation sends, and the shape of the AWS API responses and errors&lt;/td&gt;
&lt;td&gt;IAM, PostgreSQL data operations, timing and scale&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Sandbox (real AWS)&lt;/td&gt;
&lt;td&gt;Real behavior, including permissions, performance, and eventual consistency&lt;/td&gt;
&lt;td&gt;Speed and convenience&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;p&gt;Today, Blocks has the first and third layers. The DESIGN.md difference tables bridge the space between them in prose. With AWS Emulator in between, some rows of those tables might move from "be careful" in prose to "verified" by tests. The metadata and delete-marker rows in this post are examples of exactly that.&lt;/p&gt;

&lt;h2&gt;
  
  
  What I expect for AWS Emulator and Blocks
&lt;/h2&gt;

&lt;p&gt;From here on, this is my own expectation based on public information. It is not something AWS or the Blocks maintainers have said.&lt;/p&gt;

&lt;p&gt;The first thing I expect is AWS Emulator showing up in the Blocks project's own tests. The parity tests' &lt;code&gt;captureAws&lt;/code&gt; returns hand-written DynamoDB responses. Replace that with responses from the emulator, and the tests could check not only what the AWS implementation sends but also how AWS responds, inside CI and without an AWS account. There would be no need to hand-build fake endpoints for each verification, as in &lt;a href="https://github.com/aws-devtools-labs/aws-blocks/pull/999" rel="noopener noreferrer"&gt;PR #999&lt;/a&gt;.&lt;/p&gt;

&lt;p&gt;Use on developers' machines would likely come next. For example, a mode separate from &lt;code&gt;npm run dev&lt;/code&gt; that runs the AWS implementations against the emulator. As the run above showed, loading the Blocks with the &lt;code&gt;aws-runtime&lt;/code&gt; condition and pointing the SDK at the emulator through environment variables was enough to run the AWS implementations without an account. The foundation already exists.&lt;/p&gt;

&lt;p&gt;There are two challenges before that happens.&lt;/p&gt;

&lt;p&gt;The first is who creates the resources. The AWS implementations assume that the tables and buckets created by CDK already exist. In my run, I created the table and bucket with the SDK by hand and wrote the code to wait for the table to become usable. Judging by the CloudFormation scores, deploying the template to the emulator is not practical yet, so Blocks would need a separate way to prepare resources for the emulator.&lt;/p&gt;

&lt;p&gt;The second is keeping the simplicity that Blocks local development promises. Blocks local development needs no AWS account, no internet connection, and no running container daemon. AWS Emulator, on the other hand, installs as a package on Linux but needs Docker on macOS and Windows. Requiring the emulator would give up the "nothing to set up" simplicity.&lt;/p&gt;

&lt;p&gt;That is why I don't think the mocks will go away. There are gaps the emulator cannot close, such as PostgreSQL data operations and IAM. And the experience of running everything with just &lt;code&gt;npm run dev&lt;/code&gt; is at the heart of what Blocks offers. With both in mind, it seems natural to position AWS Emulator not as a replacement for the mocks, but as an option that sits between the mocks and the sandbox.&lt;/p&gt;

&lt;h2&gt;
  
  
  Why "AWS Emulator makes the mocks unnecessary" doesn't hold yet
&lt;/h2&gt;

&lt;p&gt;There is an opposing view. If an official emulator returns the same responses as AWS, wouldn't it be cleaner for Blocks to rely on it than to keep writing and maintaining a mock for every service?&lt;/p&gt;

&lt;p&gt;The cost of maintaining the mocks is certainly not small. The DESIGN.md difference tables are long for every Block, and as the FileBucket drift in this post shows, the tables and the implementation can fall out of sync. AWS Emulator, by contrast, is maintained by AI agents that keep running fidelity tests and fixing the implementation, and the &lt;code&gt;issues/&lt;/code&gt; directory in its repository shows fixes accumulating over time.&lt;/p&gt;

&lt;p&gt;Still, there are two reasons to be careful about replacing the mocks right away.&lt;/p&gt;

&lt;p&gt;The first is that the mocks and the emulator reproduce different things. The Blocks mocks reproduce the types and error contracts of Blocks. The emulator reproduces the AWS APIs, so even with the emulator you still need the Blocks AWS implementations, which means more moving parts on your machine.&lt;/p&gt;

&lt;p&gt;The second is the set of challenges above: Docker, preparing resources, and the database and IAM gaps. Putting those on users would move Blocks away from its experience of not having to think about AWS. In my &lt;a href="https://dev.to/aws-builders/what-is-aws-blocks-how-it-differs-from-amplify-and-app-studio-and-what-each-one-is-aiming-for-2kn0"&gt;previous post&lt;/a&gt;, I described Blocks as letting you be aware of the infrastructure without requiring you to be. Testing is the same: AWS Emulator fits the Blocks philosophy best as a layer that people who want that awareness can step down into.&lt;/p&gt;

&lt;h2&gt;
  
  
  Closing thoughts
&lt;/h2&gt;

&lt;p&gt;When I learned about AWS Emulator, the first question that came to mind was whether the Blocks mocks were about to become unnecessary.&lt;/p&gt;

&lt;p&gt;Reading the source of both projects, though, the two replace AWS at different layers to begin with. The Blocks mocks reproduce the API that Blocks exposes to its users. AWS Emulator reproduces the AWS APIs underneath it.&lt;/p&gt;

&lt;p&gt;And between those two layers sits a gap that Blocks testing cannot yet cover: the DESIGN.md difference tables, the parity tests built on hand-written responses, and the fake endpoint a maintainer built by hand. That is where AWS Emulator fits most naturally.&lt;/p&gt;

&lt;p&gt;AWS Blocks is still in public preview, and AWS Emulator has only just been released. Both are open source, so where the two meet should become visible by following their repositories. I'm looking forward to seeing whether the first point of contact shows up in the Blocks project's own tests or on developers' machines.&lt;/p&gt;

</description>
      <category>aws</category>
      <category>testing</category>
      <category>typescript</category>
      <category>serverless</category>
    </item>
    <item>
      <title>How CloudWatch Omni Narrows the Gap with Third-Party Observability Platforms</title>
      <dc:creator>Kento IKEDA</dc:creator>
      <pubDate>Fri, 02 Oct 2026 04:15:24 +0000</pubDate>
      <link>https://dev.to/aws-builders/how-cloudwatch-omni-narrows-the-gap-with-third-party-observability-platforms-4777</link>
      <guid>https://dev.to/aws-builders/how-cloudwatch-omni-narrows-the-gap-with-third-party-observability-platforms-4777</guid>
      <description>&lt;p&gt;On September 23, 2026, Amazon CloudWatch Omni became generally available. AWS describes it as an evolution of CloudWatch that lets you observe and troubleshoot applications and AI agents in one place.&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;&lt;a href="https://aws.amazon.com/about-aws/whats-new/2026/09/amazon-cloudwatch-omni-ai/" rel="noopener noreferrer"&gt;Amazon CloudWatch Omni: AI-first observability for agents and applications (What's New)&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;The first impression may be "a new console with a lot of features." The home screen does list many of them. For a hands-on tour, a DevelopersIO post (in Japanese) builds an expense-reporting agent and tries almost everything, so I won't repeat that here.&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;&lt;a href="https://dev.classmethod.jp/articles/amazon-cloudwatch-omni-agent-observability/" rel="noopener noreferrer"&gt;Amazon CloudWatch Omni is now generally available (DevelopersIO, in Japanese)&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;If you read it only as another new screen, it is easy to miss what changed: who can investigate an incident there. Omni is reached through a dedicated URL for your organization, and people sign in with the accounts you already manage in Okta, Microsoft Entra ID, or a similar identity provider. With that setup, the people using Omni do not need access to the AWS Management Console (the console).&lt;/p&gt;

&lt;p&gt;When your team first chose a monitoring tool, there was probably more than one reason. If one of them was "we want people without console access to help investigate incidents," this change is directly relevant. I compared Omni with what CloudWatch already offered, and checked which reasons for choosing a third-party observability platform still hold now that Omni exists.&lt;/p&gt;

&lt;h2&gt;
  
  
  Three things that changed with Omni
&lt;/h2&gt;

&lt;p&gt;Omni has many features, but three of them matter for this article.&lt;/p&gt;

&lt;p&gt;The first is how people get in. Each organization gets its own Omni URL. Accounts managed in Okta, Microsoft Entra ID, and similar providers connect to Omni sign-in through AWS IAM Identity Center. Without an identity provider, members sign in with IAM users or IAM roles. The AWS News Blog says SREs, developers, database engineers, and managers share the same data and investigation context.&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;&lt;a href="https://aws.amazon.com/blogs/aws/introducing-amazon-cloudwatch-omni-collaborative-ai-powered-observability-for-your-applications/" rel="noopener noreferrer"&gt;Now on Amazon CloudWatch Omni: collaborative AI-powered observability for your applications (AWS News Blog)&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;The second is the recommended metrics format. The CloudWatch documentation now describes two metrics models: OpenTelemetry Metrics (recommended) and CloudWatch Metrics (Classic). This split did not start with Omni, though. It came with CloudWatch's native support for OpenTelemetry metrics in June 2026, and Omni is built on OpenTelemetry as well. I will come back to this later.&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;&lt;a href="https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/working_with_metrics.html" rel="noopener noreferrer"&gt;Metrics in Amazon CloudWatch (documentation)&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;The third is the scope of data Omni works with. Beyond data across AWS accounts and Regions, it also covers workloads on Azure. According to the AWS Cloud Operations Blog, application and agent telemetry from Azure environments can be ingested today, with deeper multicloud support coming.&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;&lt;a href="https://aws.amazon.com/blogs/mt/introducing-amazon-cloudwatch-omni-observability-for-the-ai-era/" rel="noopener noreferrer"&gt;Introducing Amazon CloudWatch Omni: Observability for the AI Era (AWS Cloud Operations Blog)&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Collecting data across accounts and Regions is not something Omni does on its own, however. According to the Omni documentation, centralization still happens through CloudWatch centralization rules, and the centralized data then appears in an Omni space.&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;&lt;a href="https://docs.aws.amazon.com/cloudwatch-omni/latest/APIReference/Welcome.html" rel="noopener noreferrer"&gt;Welcome - Amazon CloudWatch Omni (documentation)&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Your current setup does not change, either. The AWS News Blog describes Omni as extending CloudWatch: existing alarms, dashboards, APIs, and console workflows keep working as before. Existing users are not moved to Omni automatically; you opt in with the "Try CloudWatch Omni" button in the CloudWatch console.&lt;/p&gt;

&lt;h2&gt;
  
  
  Dashboard sharing has been around since 2020, with limits
&lt;/h2&gt;

&lt;p&gt;The first change, access without the console, sounds new at first. But CloudWatch has long had a way to show data to people without console access: dashboard sharing.&lt;/p&gt;

&lt;p&gt;Launched in September 2020, dashboard sharing lets you share dashboards with people who have no direct access to your AWS account. There are three options: share with specific email addresses, share publicly through a link, or share through a third-party single sign-on (SSO) provider.&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;&lt;a href="https://aws.amazon.com/about-aws/whats-new/2020/09/amazon-cloudwatch-dashboards-supports-sharing/" rel="noopener noreferrer"&gt;Amazon CloudWatch Dashboards now supports sharing (What's New, 2020)&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;So if all you needed was to show numbers to people outside the console, you never had to wait for Omni. Some organizations still chose a third-party observability platform over dashboard sharing. One likely reason is that the difference was not whether you could show data, but what people could do once they saw it.&lt;/p&gt;

&lt;p&gt;What dashboard sharing hands over is a way to view a prebuilt dashboard. Viewers can look at the prepared graphs, but rewriting queries to find a cause, following traces, or digging into logs is not what it is designed for. During an incident, the most they can usually do is say, "this graph looks wrong."&lt;/p&gt;

&lt;p&gt;Permissions are coarse, too. According to the documentation, the permissions needed for sharing include metric retrieval and EC2 tag lookups that cannot be scoped down, so anyone you share a dashboard with can query all metrics in the account and see the names and tags of all EC2 instances. The SSO option shares every dashboard in the account. Logs Insights widgets are not shown to shared users by default, and showing them requires adding permissions to the sharing IAM role.&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;&lt;a href="https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/cloudwatch-dashboard-sharing.html" rel="noopener noreferrer"&gt;Sharing CloudWatch dashboards (documentation)&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Good enough for people who only need to see numbers, but not quite enough for people you want to investigate incidents with. That is roughly where dashboard sharing stops.&lt;/p&gt;

&lt;h2&gt;
  
  
  What Omni moves outside the console: a place to investigate
&lt;/h2&gt;

&lt;p&gt;What Omni moves outside the console is the part dashboard sharing could not cover: investigating the cause of an incident. Side by side, the difference looks like this.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fizebzh5wd6dgwsmbkaj6.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fizebzh5wd6dgwsmbkaj6.png" alt=" " width="799" height="363"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;In Omni, you can turn natural-language questions into SQL or PromQL queries, follow traces, and work through root-cause investigations with AWS DevOps Agent. You can create alerts, too. All of this happens behind your organization's URL, without entering the AWS console. Where dashboard sharing was a way to view, Omni puts the place where investigation happens outside the console.&lt;/p&gt;

&lt;p&gt;The obvious concern is permission granularity, the weak point of dashboard sharing. Even if you no longer have to hand out console access, if everyone in Omni can see everything, the question of who should see what remains open.&lt;/p&gt;

&lt;p&gt;The Omni documentation shows this can be designed much more finely than with dashboard sharing. Members of a space are assigned a permission level: three tiers, Viewer, Editor, and Space Admin, plus Custom, which lists specific actions and resources.&lt;/p&gt;

&lt;p&gt;Even Viewer, the most limited of the three tiers, can run queries, read logs, traces, and metrics, and ask the Omni agent questions. What Viewer cannot do is create or change alerts and dashboards; that starts at Editor. Reading data to investigate is available at the lowest tier, and permissions diverge at creating things in the space.&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;&lt;a href="https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/omni-custom-grant-actions.html" rel="noopener noreferrer"&gt;Custom grant actions (documentation)&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;What a member can do also depends on more than their permission level. The IAM role the space uses to reach your AWS resources must allow the action as well. Making someone a Space Admin does not let them do anything that role does not allow.&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;&lt;a href="https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/omni-control-access-to-your-space.html" rel="noopener noreferrer"&gt;Control access to your space (documentation)&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;There is also a way to narrow what data members see. By default, every member can read all telemetry in the space, but a data scope filters log and trace rows at read time.&lt;/p&gt;

&lt;p&gt;The same access control documentation is explicit about the limits. Data scopes do not filter metrics. They also do not apply to dataset creation and export, AI-assisted summaries, or prompt playground runs, so a member scoped out of a field in queries can still reach that content by building a dataset over the underlying traces. The documentation asks you to scope those actions separately.&lt;/p&gt;

&lt;p&gt;Here is what a data scope does and does not cover.&lt;/p&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Target&lt;/th&gt;
&lt;th&gt;Can a data scope narrow it?&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;Log and trace rows&lt;/td&gt;
&lt;td&gt;Yes&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Metrics&lt;/td&gt;
&lt;td&gt;No&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Dataset creation and export&lt;/td&gt;
&lt;td&gt;No (restrict the action itself with permissions)&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;AI summaries and prompt playground&lt;/td&gt;
&lt;td&gt;No (restrict the action itself with permissions)&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;p&gt;For metrics, the same property as dashboard sharing remains: anyone in the space can see all of them. What Omni makes finer is which actions are allowed and which log and trace rows can be read. If you need to separate metric visibility by person, you will likely have to handle it through how you divide spaces.&lt;/p&gt;

&lt;p&gt;Note also that it is the people using Omni who no longer need the AWS console, not the people setting it up. Enabling Omni, creating a domain and a space, and registering the first Space Admins all happen in the CloudWatch console, and adding or removing Space Admins afterward is also done there. If people sign in through IAM Identity Center, its instance must be in the same Region as the domain.&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;&lt;a href="https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/omni-set-up-omni-for-a-single-account.html" rel="noopener noreferrer"&gt;Set up Omni for a single account (documentation)&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  Taking stock: reasons for choosing third-party platforms over CloudWatch
&lt;/h2&gt;

&lt;p&gt;With that in mind, I listed common reasons for choosing a third-party observability platform over CloudWatch, and checked whether each still holds at two points in time: with dashboard sharing, and with Omni. This is a structural look based on public information, not a product-by-product comparison.&lt;/p&gt;

&lt;p&gt;The table shows whether CloudWatch at each point could meet each reason. "Yes" means CloudWatch alone can meet it, "Partly" means it can under some conditions, and "No" means it cannot, so the reason still favors a third-party platform. Reasons such as usability, which cannot be judged from specifications, are discussed after the table.&lt;/p&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Reason for choosing a third-party platform&lt;/th&gt;
&lt;th&gt;Dashboard sharing (since 2020)&lt;/th&gt;
&lt;th&gt;CloudWatch Omni (since Sept 2026)&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;Show numbers to people outside the ops team&lt;/td&gt;
&lt;td&gt;Yes&lt;/td&gt;
&lt;td&gt;Yes&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Let people investigate incidents without console access&lt;/td&gt;
&lt;td&gt;No&lt;/td&gt;
&lt;td&gt;Yes&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Limit what each person can see&lt;/td&gt;
&lt;td&gt;No&lt;/td&gt;
&lt;td&gt;Partly&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;See non-AWS environments in the same place&lt;/td&gt;
&lt;td&gt;No&lt;/td&gt;
&lt;td&gt;Partly&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Build out notification and on-call workflows&lt;/td&gt;
&lt;td&gt;Partly&lt;/td&gt;
&lt;td&gt;Partly&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;h3&gt;
  
  
  Reasons CloudWatch can now meet
&lt;/h3&gt;

&lt;p&gt;The first row, showing numbers to people outside the ops team, was already met by dashboard sharing in 2020. What Omni newly meets is the second row: letting people take part in investigating incidents without console access. For organizations that chose a third-party platform for that reason, CloudWatch alone can now do the same.&lt;/p&gt;

&lt;p&gt;"Can meet" does not mean your current platform becomes unnecessary. There are probably still differences in how deep you can investigate and how easy the tools are to use. It means that the next time you review your tooling, this reason carries less weight as the deciding factor for a third-party platform.&lt;/p&gt;

&lt;h3&gt;
  
  
  Reasons CloudWatch can meet under some conditions
&lt;/h3&gt;

&lt;p&gt;Rows three through five depend on your situation and on the level you need.&lt;/p&gt;

&lt;p&gt;For limiting what each person can see, as covered above, log and trace rows can now be narrowed, but metrics cannot. Combining permission levels and data scopes allows a fairly fine-grained design, but you also have to watch for actions such as dataset creation that reach content through another path.&lt;/p&gt;

&lt;p&gt;For seeing non-AWS environments, Azure can be ingested today. However, what the Cloud Operations Blog mentions is application and agent telemetry, and deeper multicloud support is still only announced. If you run mainly on AWS and Azure and mostly need application telemetry, you can call it met; otherwise, it is fair to treat it as not yet met.&lt;/p&gt;

&lt;p&gt;Notification and on-call workflows are a row Omni does not change. Notifications themselves were already possible before Omni through CloudWatch alarms and Amazon SNS. According to the DevelopersIO post, Omni alerts can notify Slack and SNS. On-call rotation and escalation features do not seem to be available yet. There is a way to send notifications, but running on-call takes extra work, such as combining it with other tools, so both columns say "Partly."&lt;/p&gt;

&lt;h3&gt;
  
  
  Usability, which the table cannot measure
&lt;/h3&gt;

&lt;p&gt;Another common reason for choosing a third-party platform is a simple interface anyone can use without getting lost. It cannot be judged from specifications, so it is not in the table.&lt;/p&gt;

&lt;p&gt;Usability can flip depending on the person or team. For Omni, the DevelopersIO author wrote that the number of features made it hard to know where to start at first, while also saying it seemed convenient to do so much from one screen once you get used to it. Whether a feature-rich screen feels confusing or convenient depends on each person's role and experience.&lt;/p&gt;

&lt;p&gt;Comparing specifications will not answer this; you have to try it. The DevelopersIO author also suggests starting with a demo space or sample data.&lt;/p&gt;

&lt;p&gt;Switching tools does mean relearning an interface. But that cost applies whenever you move to any tool, so it is not a difference between CloudWatch and third-party platforms, and it is not in the table either.&lt;/p&gt;

&lt;h2&gt;
  
  
  How you send metrics changed before Omni
&lt;/h2&gt;

&lt;p&gt;Another change happened before Omni: the metrics format, the second of the three changes above. It affects how you send metrics from your applications.&lt;/p&gt;

&lt;p&gt;On June 16, 2026, CloudWatch added native support for OpenTelemetry metrics. You send metrics over the OpenTelemetry protocol, query them with PromQL, and pay per GB ingested.&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;&lt;a href="https://aws.amazon.com/about-aws/whats-new/2026/06/amazon-cloudwatch-otel-metrics/" rel="noopener noreferrer"&gt;Amazon CloudWatch introduces native OpenTelemetry metrics with PromQL querying and per-GB pricing (What's New)&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;With this, the documentation organizes metrics into two models. OpenTelemetry Metrics is recommended and described as best for new workloads and high-cardinality use cases such as containers, where label values combine in many ways. The traditional format is called CloudWatch Metrics (Classic) and is positioned for existing integrations and lower-cardinality AWS service metrics.&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;&lt;a href="https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/working_with_metrics.html" rel="noopener noreferrer"&gt;Metrics in Amazon CloudWatch (documentation)&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;The name "Classic" may suggest the old format is on its way out. However, the documentation states that both models are fully supported and that you choose based on your needs. Nothing here calls for rushing to migrate existing metrics.&lt;/p&gt;

&lt;p&gt;The decision matters when you build a new way to send metrics. The CloudWatch documentation itself says that if you send metrics with OpenTelemetry, you can switch destinations with a configuration change rather than a code change. I would expect this to apply beyond CloudWatch: with a third-party platform that supports OpenTelemetry, switching to it later should also be a configuration change.&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;&lt;a href="https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/metrics-otel-recommended.html" rel="noopener noreferrer"&gt;OpenTelemetry Metrics (Recommended) (documentation)&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;The reverse also holds, when moving from a third-party platform to CloudWatch. The metrics overview documentation says that OpenTelemetry SDKs and collectors that work with Prometheus, Grafana, and other backends can be used with CloudWatch as they are. Whether you stay with CloudWatch or send to a third-party platform, sending metrics with OpenTelemetry lowers the cost of revisiting the choice. With Omni also built on OpenTelemetry, standardizing how you send metrics on OpenTelemetry and deciding where to send them later has become a more realistic approach.&lt;/p&gt;

&lt;h2&gt;
  
  
  Region availability as a grace period
&lt;/h2&gt;

&lt;p&gt;As of October 1, 2026, Omni is available in three Regions: US East (N. Virginia), US West (Oregon), and Europe (Ireland). Workloads in other Regions, such as Tokyo, can still be covered by centralizing their telemetry into a supported Region, but organizations that must keep monitoring data in-country cannot take that route. For them, actually using Omni will have to wait until it is offered in their Region. That waiting period is a grace period for the decision.&lt;/p&gt;

&lt;p&gt;Still, this article is not about whether to replace tools right away; it is about whether your reasons for choosing a third-party platform still hold. Region coverage tends to expand over time, and if you have already taken stock when Omni arrives, the decision will be faster. The grace period is less a time to wait than a time to get organized.&lt;/p&gt;

&lt;p&gt;Even after Omni arrives in your Region, organizations whose current third-party platform works well do not need to hurry. The DevelopersIO post closes on the same note: if your existing tools already work without problems, there is no need to rush a switch.&lt;/p&gt;

&lt;p&gt;Organizations running mainly outside AWS and Azure may reasonably wait until support for other clouds becomes concrete.&lt;/p&gt;

&lt;p&gt;And for organizations that have no trouble handing out console access, such as small teams where everyone already has AWS access, the reason in the second row of the table never applied. For them, Omni's value is measured by the investigation experience and agent monitoring, not by access.&lt;/p&gt;

&lt;h2&gt;
  
  
  Things to check before adopting Omni
&lt;/h2&gt;

&lt;p&gt;The analysis so far is based on specifications, but more concrete questions come up when you actually consider adopting Omni.&lt;/p&gt;

&lt;h3&gt;
  
  
  When dashboard sharing is enough
&lt;/h3&gt;

&lt;p&gt;You may ask whether dashboard sharing is enough if you only need to show numbers. If the audience is executives or other departments who are not expected to investigate, then functionally, yes. The first row of the table was already met by dashboard sharing.&lt;/p&gt;

&lt;p&gt;Identity management changes the picture a little, though. Sharing with specific people issues an email address and password per person, which means managing identities separately from Okta or Microsoft Entra ID. The SSO option lets people use your corporate identities, but then every dashboard in the account is shared. You end up giving up either corporate identities or a narrow sharing scope.&lt;/p&gt;

&lt;p&gt;With Omni, people sign in with their existing corporate accounts. Even for an audience that only looks at numbers, not having to create extra identities is a point in Omni's favor.&lt;/p&gt;

&lt;h3&gt;
  
  
  Alerts split across two systems
&lt;/h3&gt;

&lt;p&gt;You might worry about managing alerts in two places. According to the DevelopersIO post, Omni alerts are separate from traditional CloudWatch alarms and did not appear in the console's alarm list. Existing alarms keep working, so nothing breaks, but without deciding what each system monitors, operations are likely to become harder to follow.&lt;/p&gt;

&lt;h3&gt;
  
  
  Feature breadth and learning cost
&lt;/h3&gt;

&lt;p&gt;Some may worry that Omni has too many features for people outside the ops team to use. This is the usability gap the table cannot measure, mentioned earlier. Not having to hand out console access and being able to investigate right away are separate problems. Omni solved the first; the second is left to how your organization designs access and trains people.&lt;/p&gt;

&lt;h2&gt;
  
  
  What the narrowed gap means
&lt;/h2&gt;

&lt;p&gt;Omni has narrowed some of the gaps with third-party platforms. That does not mean you should switch right away. Monitoring tool decisions are rarely revisited once made, and as contracts renew and teams get used to an interface, the original reasons for the choice can be forgotten.&lt;/p&gt;

&lt;p&gt;While waiting for Omni in your Region, or before your next contract renewal, try writing down why you originally chose your tool. You will see which reasons still hold and which are losing their weight as deciding factors. Whether the gap has narrowed can only be measured if you remember why you chose what you did.&lt;/p&gt;

</description>
      <category>aws</category>
      <category>observability</category>
      <category>opentelemetry</category>
      <category>sre</category>
    </item>
    <item>
      <title>Why Isn't the AWS Blocks Agent Built on AgentCore? What the Repository Reveals About What's Next</title>
      <dc:creator>Kento IKEDA</dc:creator>
      <pubDate>Wed, 12 Aug 2026 00:51:48 +0000</pubDate>
      <link>https://dev.to/aws-builders/why-isnt-the-aws-blocks-agent-built-on-agentcore-what-the-repository-reveals-about-whats-next-4512</link>
      <guid>https://dev.to/aws-builders/why-isnt-the-aws-blocks-agent-built-on-agentcore-what-the-repository-reveals-about-whats-next-4512</guid>
      <description>&lt;p&gt;Since AWS Blocks entered public preview in June 2026, I have been making small contributions to the open-source project.&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;&lt;a href="https://github.com/aws-devtools-labs/aws-blocks" rel="noopener noreferrer"&gt;AWS Blocks on GitHub&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;In my &lt;a href="https://dev.to/aws-builders/what-is-aws-blocks-how-it-differs-from-amplify-and-app-studio-and-what-each-one-is-aiming-for-2kn0"&gt;previous post on AWS Blocks, Amplify, and App Studio&lt;/a&gt;, I looked at how these tools differ and what each is trying to achieve. While revisiting the &lt;code&gt;Agent&lt;/code&gt; Block, one detail caught my attention:&lt;/p&gt;

&lt;blockquote&gt;
&lt;p&gt;&lt;strong&gt;The AWS Blocks Agent is not currently running on Amazon Bedrock AgentCore.&lt;/strong&gt;&lt;/p&gt;
&lt;/blockquote&gt;

&lt;p&gt;At a glance, it is easy to assume the relationship looks like this:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;AWS Blocks
  └─ Agent
       └─ Amazon Bedrock AgentCore
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;But that is not how the current implementation works—at least not on &lt;code&gt;main&lt;/code&gt; as of August 12, 2026.&lt;/p&gt;

&lt;p&gt;Then the story gets interesting.&lt;/p&gt;

&lt;p&gt;When I wondered whether an agent should simply use AgentCore directly, I found a fairly concrete set of pull requests that proposes moving the Agent Block's execution model to AgentCore Runtime.&lt;/p&gt;

&lt;p&gt;I contribute to AWS Blocks, but this is not an AWS statement or a roadmap. It is my reading of the public documentation and the open-source repository, from the perspective of both a user and a contributor.&lt;/p&gt;

&lt;h2&gt;
  
  
  TL;DR
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;The Agent Block on the current &lt;code&gt;main&lt;/code&gt; branch does &lt;strong&gt;not&lt;/strong&gt; run on AgentCore Runtime.&lt;/li&gt;
&lt;li&gt;It combines the Strands Agents SDK with &lt;code&gt;AsyncJob&lt;/code&gt;, &lt;code&gt;Realtime&lt;/code&gt;, &lt;code&gt;FileBucket&lt;/code&gt;, and &lt;code&gt;DistributedTable&lt;/code&gt;.&lt;/li&gt;
&lt;li&gt;A five-PR stack proposes migrating the Agent Block's execution model to AgentCore Runtime.&lt;/li&gt;
&lt;li&gt;As of August 12, 2026, all five migration PRs are still draft and unmerged. They are not an official roadmap.&lt;/li&gt;
&lt;li&gt;A separate open PR proposes Blocks for AgentCore Memory, Gateway, and Identity.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;So the most accurate conclusion today is this: &lt;strong&gt;AWS Blocks Agent is not AgentCore today, but the repository contains concrete proposals for bringing the two together.&lt;/strong&gt;&lt;/p&gt;

&lt;h2&gt;
  
  
  The Agent Block today is not AgentCore
&lt;/h2&gt;

&lt;p&gt;Let's start with the implementation on &lt;code&gt;main&lt;/code&gt;.&lt;/p&gt;

&lt;p&gt;The Agent Block uses the &lt;a href="https://github.com/aws-devtools-labs/aws-blocks/blob/main/packages/bb-agent/package.json" rel="noopener noreferrer"&gt;Strands Agents SDK&lt;/a&gt;. But it is not a standalone agent runtime; it composes several Blocks to handle execution, streaming, and persistence.&lt;/p&gt;

&lt;p&gt;At a high level, the structure looks like this:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;Agent
├─ Strands Agents SDK
├─ AsyncJob
├─ Realtime
├─ FileBucket
└─ DistributedTable
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;The &lt;a href="https://github.com/aws-devtools-labs/aws-blocks/blob/main/packages/bb-agent/src/index.cdk.ts" rel="noopener noreferrer"&gt;current CDK implementation&lt;/a&gt; creates these Blocks internally:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;code&gt;AsyncJob&lt;/code&gt; executes the agent work.&lt;/li&gt;
&lt;li&gt;
&lt;code&gt;Realtime&lt;/code&gt; streams output back to the browser.&lt;/li&gt;
&lt;li&gt;
&lt;code&gt;FileBucket&lt;/code&gt; stores session snapshots.&lt;/li&gt;
&lt;li&gt;
&lt;code&gt;DistributedTable&lt;/code&gt; persists conversations and messages.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;The &lt;a href="https://github.com/aws-devtools-labs/aws-blocks/blob/main/packages/bb-agent/src/agent.ts" rel="noopener noreferrer"&gt;AgentBase implementation&lt;/a&gt; follows the same pattern: an &lt;code&gt;AsyncJob&lt;/code&gt; handler runs a Strands agent and publishes generated chunks through &lt;code&gt;Realtime&lt;/code&gt;.&lt;/p&gt;

&lt;p&gt;When deployed to AWS, this maps primarily to Lambda, SQS, API Gateway WebSocket, S3, and DynamoDB.&lt;/p&gt;

&lt;p&gt;That is a very AWS Blocks-style design. You define one Agent, while the queue, WebSocket connection, storage, and tables needed behind the scenes are assembled for you.&lt;/p&gt;

&lt;h2&gt;
  
  
  Why isn't it AgentCore already?
&lt;/h2&gt;

&lt;p&gt;The public repository does not let us state with certainty why AgentCore was not the original execution layer, so I do not want to invent a reason.&lt;/p&gt;

&lt;p&gt;What we can see is that the current Agent Block is built by composing existing Blocks. That is consistent with the AWS Blocks model: a Block can compose other Blocks to provide a higher-level capability.&lt;/p&gt;

&lt;p&gt;At the same time, AgentCore Runtime is purpose-built for running agents in production. It provides isolated sessions, extended execution, and streaming. It also supports &lt;a href="https://docs.aws.amazon.com/bedrock-agentcore/latest/devguide/runtime-bidirectional-streaming.html" rel="noopener noreferrer"&gt;bidirectional streaming over WebSocket&lt;/a&gt;.&lt;/p&gt;

&lt;p&gt;AgentCore as a whole also offers services such as Memory, Gateway, Identity, Observability, Browser, and Code Interpreter.&lt;/p&gt;

&lt;p&gt;So it is natural for an AWS user to ask:&lt;/p&gt;

&lt;blockquote&gt;
&lt;p&gt;If I am building an agent, why not start with AgentCore?&lt;/p&gt;
&lt;/blockquote&gt;

&lt;p&gt;I had the same reaction.&lt;/p&gt;

&lt;h2&gt;
  
  
  The repository points to an AgentCore migration
&lt;/h2&gt;

&lt;p&gt;The most direct signal is &lt;a href="https://github.com/aws-devtools-labs/aws-blocks/pull/250" rel="noopener noreferrer"&gt;PR #250: &lt;code&gt;feat(bb-agent): migrate streaming execution to AgentCore Runtime (1/5)&lt;/code&gt;&lt;/a&gt;.&lt;/p&gt;

&lt;p&gt;The PR describes a limitation of the current Lambda + SQS + Realtime design: Lambda's execution limit constrains long-running, multi-step agents. It proposes AgentCore Runtime—whose sessions can run for up to eight hours and which has native streaming—as the execution layer instead.&lt;/p&gt;

&lt;p&gt;However, #250 is deliberately only the foundation. Its own description says that it does not complete the browser-to-AgentCore path. Direct browser streaming arrives in the next PR.&lt;/p&gt;

&lt;p&gt;The work is split into five stacked PRs:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;#250 Foundation: move agent execution toward AgentCore Runtime
  ↓
#251 Browser-direct WebSocket streaming and verified identity
  ↓
#252 README and API documentation updates
  ↓
#261 Server-resolved tool context from verified JWT claims
  ↓
#262 Grant other Blocks' permissions to the AgentCore Runtime role
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;ul&gt;
&lt;li&gt;&lt;a href="https://github.com/aws-devtools-labs/aws-blocks/pull/250" rel="noopener noreferrer"&gt;#250: AgentCore Runtime migration foundation&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="https://github.com/aws-devtools-labs/aws-blocks/pull/251" rel="noopener noreferrer"&gt;#251: browser-direct WebSocket streaming&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="https://github.com/aws-devtools-labs/aws-blocks/pull/252" rel="noopener noreferrer"&gt;#252: documentation for the AgentCore streaming API&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="https://github.com/aws-devtools-labs/aws-blocks/pull/261" rel="noopener noreferrer"&gt;#261: tool context from verified JWT claims&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="https://github.com/aws-devtools-labs/aws-blocks/pull/262" rel="noopener noreferrer"&gt;#262: propagate other Blocks' permissions to the runtime role&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;PR #251 is particularly revealing. Moving the execution layer in #250 is not enough by itself: the browser still has a Lambda-mediated path. #251 proposes connecting the browser directly to AgentCore Runtime over WebSocket, allowing agent output to stream without passing through Lambda.&lt;/p&gt;

&lt;p&gt;This is not merely a case of "using AgentCore." The PR stack works through streaming, authentication, tool context, and IAM permissions—in other words, the details of how AgentCore could sit behind the AWS Blocks developer experience.&lt;/p&gt;

&lt;p&gt;As of August 12, 2026, all five PRs are open drafts and have not been merged. That is evidence of a concrete implementation proposal, not confirmation that AWS Blocks will adopt it as-is.&lt;/p&gt;

&lt;h2&gt;
  
  
  There is also a separate AgentCore-Blocks proposal
&lt;/h2&gt;

&lt;p&gt;Another direction appears in &lt;a href="https://github.com/aws-devtools-labs/aws-blocks/pull/122" rel="noopener noreferrer"&gt;PR #122&lt;/a&gt;, which proposes three new Building Blocks:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;bb-agentcore-memory
bb-agentcore-gateway
bb-agentcore-identity
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;This is different from replacing the Agent Block's execution layer. Instead, it would expose individual AgentCore capabilities through the AWS Blocks development model.&lt;/p&gt;

&lt;p&gt;PR #122 is open and unmerged as of August 12, 2026, so it is not a roadmap either. Still, it is interesting to see both directions represented in working proposals:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Move the Agent Block's execution layer to AgentCore Runtime.&lt;/li&gt;
&lt;li&gt;Make individual AgentCore services available as Blocks.&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  The important idea: replace the inside of the Agent Block
&lt;/h2&gt;

&lt;p&gt;The question I am interested in is not whether users should choose &lt;em&gt;AWS Blocks Agent or AgentCore&lt;/em&gt;.&lt;/p&gt;

&lt;p&gt;Instead, the better outcome may be to preserve the experience and responsibility of the AWS Blocks &lt;code&gt;Agent&lt;/code&gt; while replacing its execution layer with AgentCore.&lt;/p&gt;

&lt;p&gt;Conceptually, that would look like this:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;Current main branch

new Agent(...)
  └─ Strands Agents SDK
       ├─ AsyncJob
       ├─ Realtime
       ├─ DynamoDB / S3
       └─ Bedrock model


Direction proposed by the PRs

new Agent(...)
  └─ Strands Agents SDK
       ├─ AgentCore Runtime
       ├─ DynamoDB / S3 conversation and history persistence
       └─ Bedrock model
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Developers would still start with &lt;code&gt;new Agent(...)&lt;/code&gt; and define an agent with tools, conversation history, and human-in-the-loop behavior. But the execution layer—especially long-running work and browser streaming—could move to AgentCore Runtime.&lt;/p&gt;

&lt;p&gt;That is how I read the relationship between #250 and #251: #250 introduces AgentCore Runtime as the execution foundation, while #251 adds the direct WebSocket path from the browser to the runtime.&lt;/p&gt;

&lt;p&gt;It would not be an invisible substitution. #250 includes changes that affect existing usage, including the introduction of &lt;code&gt;streamSSE()&lt;/code&gt; and the removal of the &lt;code&gt;Realtime&lt;/code&gt; API surface. But it could preserve the main value of Blocks: developers would not need to assemble Lambda, SQS, and API Gateway WebSocket themselves every time they create an agent.&lt;/p&gt;

&lt;h2&gt;
  
  
  Using an AgentCore-backed agent without having to think about AgentCore
&lt;/h2&gt;

&lt;p&gt;One way I think about AWS Blocks is:&lt;/p&gt;

&lt;blockquote&gt;
&lt;p&gt;You can understand the infrastructure when you need to, but you do not have to start there.&lt;/p&gt;
&lt;/blockquote&gt;

&lt;p&gt;The same could apply to AgentCore.&lt;/p&gt;

&lt;p&gt;You define an Agent. Under the hood, AWS Blocks could provision AgentCore Runtime, configure authentication and IAM roles, and provide the browser streaming path. If needed, you could still drop down into the CDK layer and tune the underlying resources.&lt;/p&gt;

&lt;p&gt;In that world, the developer is not choosing between AgentCore and Blocks. They keep using the AWS Blocks Agent abstraction while its implementation evolves to use AgentCore Runtime.&lt;/p&gt;

&lt;p&gt;That feels much closer to the AWS Blocks philosophy.&lt;/p&gt;

&lt;h2&gt;
  
  
  Why this migration would be very Blocks-like
&lt;/h2&gt;

&lt;p&gt;The current Agent Block composes several AWS services and Blocks to implement an agent. If a more suitable AWS service becomes available for part of that job, the implementation behind the Block can change.&lt;/p&gt;

&lt;p&gt;What developers want is not necessarily this collection of resources:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;SQS
Lambda
API Gateway WebSocket
DynamoDB
S3
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;They want an &lt;code&gt;Agent&lt;/code&gt;.&lt;/p&gt;

&lt;p&gt;The migration proposal is not completely transparent—existing applications may need code changes—but it is a good illustration of a Building Block separating the capability an application needs from the AWS services used to implement it at a given time.&lt;/p&gt;

&lt;h2&gt;
  
  
  A necessary caveat: this is not available today
&lt;/h2&gt;

&lt;p&gt;This point matters.&lt;/p&gt;

&lt;p&gt;As of August 12, 2026, the five PRs that propose the AgentCore Runtime migration are all drafts. The Agent Block on &lt;code&gt;main&lt;/code&gt; still uses the Strands Agents SDK together with &lt;code&gt;AsyncJob&lt;/code&gt;, &lt;code&gt;Realtime&lt;/code&gt;, and the other Blocks described above.&lt;/p&gt;

&lt;p&gt;So it would be inaccurate today to say that "AWS Blocks Agent runs on AgentCore."&lt;/p&gt;

&lt;p&gt;An open-source pull request is also not the same thing as an AWS product roadmap. The design may change substantially, or the PRs may never merge.&lt;/p&gt;

&lt;p&gt;Everything in this post about what comes next is an interpretation of public proposals, not a statement of future plans.&lt;/p&gt;

&lt;h2&gt;
  
  
  Open source lets us see a product in motion
&lt;/h2&gt;

&lt;p&gt;This is one of the most interesting things about AWS Blocks.&lt;/p&gt;

&lt;p&gt;With many managed AWS services, we only see a new architecture once it is announced. AWS Blocks is open source, so we can also see the current implementation, the problems being identified, and the proposed changes that are being discussed.&lt;/p&gt;

&lt;p&gt;Contributors can even participate in that process.&lt;/p&gt;

&lt;p&gt;For me, that is part of the appeal of AWS Blocks: it is not only a framework to use, but also a framework whose evolution you can follow.&lt;/p&gt;

&lt;h2&gt;
  
  
  Closing thoughts
&lt;/h2&gt;

&lt;p&gt;My initial reaction was simple: "Oh, the Agent Block is not AgentCore."&lt;/p&gt;

&lt;p&gt;Then I wondered whether the implementation inside AWS Blocks Agent could move closer to AgentCore instead.&lt;/p&gt;

&lt;p&gt;Following the repository revealed a stack of PRs proposing exactly that direction. It is too early to call it the future of AWS Blocks, but it does make the design question visible in a useful way.&lt;/p&gt;

&lt;p&gt;The most interesting part is that the initial discomfort—"Why isn't this AgentCore?"—has appeared in the repository as a concrete design problem with a concrete proposed solution.&lt;/p&gt;

&lt;p&gt;That is one of the pleasures of following an open-source project in public preview. I will be watching to see what happens to these AgentCore migration PRs next.&lt;/p&gt;

</description>
      <category>aws</category>
      <category>agents</category>
      <category>ai</category>
      <category>agentcore</category>
    </item>
    <item>
      <title>Unit Prices Are Falling, So Why Are the Bills Going Up? Tokenomics for AI Platform Owners</title>
      <dc:creator>Kento IKEDA</dc:creator>
      <pubDate>Thu, 25 Jun 2026 21:28:23 +0000</pubDate>
      <link>https://dev.to/aws-builders/unit-prices-are-falling-so-why-are-the-bills-going-up-tokenomics-for-ai-platform-owners-2cfl</link>
      <guid>https://dev.to/aws-builders/unit-prices-are-falling-so-why-are-the-bills-going-up-tokenomics-for-ai-platform-owners-2cfl</guid>
      <description>&lt;p&gt;"Model unit prices keep falling, yet our monthly AI bill keeps climbing." If you use AI personally, you can feel the creep of your subscription and metered charges. If you own AI usage inside a company, the gap is even more pronounced.&lt;/p&gt;

&lt;p&gt;Overseas, this feeling has started getting a name: &lt;strong&gt;Tokenomics&lt;/strong&gt;. On June 3, 2026, the Linux Foundation announced its intent to launch the &lt;strong&gt;Tokenomics Foundation&lt;/strong&gt;, dedicated to open standards for AI cost management. Google, Microsoft, Oracle, JPMorganChase, and others — both providers and large buyers — are on board.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://www.linuxfoundation.org/press/linux-foundation-announces-the-intent-to-launch-the-tokenomics-foundation-to-establish-open-standards-for-ai-cost-management" rel="noopener noreferrer"&gt;https://www.linuxfoundation.org/press/linux-foundation-announces-the-intent-to-launch-the-tokenomics-foundation-to-establish-open-standards-for-ai-cost-management&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;This post isn't an explainer of the word itself. It's an account of what changes for the people who own internal generative AI usage — the platform owners, the FinOps practitioners, the engineering leaders watching the bills — once you have this word in your vocabulary.&lt;/p&gt;

&lt;p&gt;What Tokenomics gives you isn't another saving technique. It changes &lt;strong&gt;the unit of measurement and the lens&lt;/strong&gt; through which you read AI cost.&lt;/p&gt;

&lt;h2&gt;
  
  
  Why Tokenomics, why now
&lt;/h2&gt;

&lt;p&gt;Tokenomics sits in the lineage of cloud FinOps. The FinOps Foundation now classifies Tokenomics as the &lt;strong&gt;"AI Value"&lt;/strong&gt; dimension within &lt;strong&gt;FinOps for AI&lt;/strong&gt;. Where cloud FinOps tracked the variable infrastructure costs (compute, storage, networking) against value, Tokenomics tracks the variable cost of intelligence itself. It's not a replacement; it adds a probabilistic, non-deterministic layer of variable cost on top.&lt;/p&gt;

&lt;p&gt;Tokens here means what you see on every API price sheet and usage dashboard — the smallest unit a language model reads and writes, the unit of compute. The word "tokenomics" also exists in the crypto world, but that one is about issuance, distribution, and incentives on a blockchain — tokens as units of ownership. Same word, different economies.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://www.finops.org/insights/token-economics-the-atomic-unit-of-ai-value/" rel="noopener noreferrer"&gt;https://www.finops.org/insights/token-economics-the-atomic-unit-of-ai-value/&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;The term gained traction from spring 2026 onward. Generative AI and agents moved from pilots to production, and tokens became the largest and fastest-growing line item in many technical budgets. Per-token prices fell, but usage volume rose even faster, and bills became harder to read. The Foundation launch is industry's response: a venue to align on a common yardstick for tokens, the way cloud costs were once aligned.&lt;/p&gt;

&lt;p&gt;As a follow-on, the annual FinOps X conference will be renamed &lt;strong&gt;Tokenomicon&lt;/strong&gt; starting 2027. The word is settling into its own institutional shape.&lt;/p&gt;

&lt;p&gt;From here, four shifts in how a platform owner sees AI cost.&lt;/p&gt;

&lt;h2&gt;
  
  
  Shift 1: Budget on the trajectory of consumption, not on the unit price
&lt;/h2&gt;

&lt;p&gt;The first thing to change is where you anchor your budget. Stop drawing comfort from "unit prices keep dropping" and start watching &lt;strong&gt;the trajectory of total consumption&lt;/strong&gt;.&lt;/p&gt;

&lt;p&gt;Per-million-token prices for general-purpose models fell sharply from 2023 to 2025. Recently they've plateaued, while the top-tier and reasoning models have actually gone up. Yet enterprise spending keeps growing. The reason is demand elasticity: when prices drop, organizations widen modalities (text → images → video), increase agent autonomy, and lengthen reasoning chains. The volume grows faster than the price falls.&lt;/p&gt;

&lt;p&gt;The scale shows in numbers companies publish openly. At Google I/O 2026, Google announced monthly processing of &lt;strong&gt;32 quadrillion tokens&lt;/strong&gt; across its AI products, roughly &lt;strong&gt;7x the 4.8 quadrillion&lt;/strong&gt; of the previous year. AT&amp;amp;T reported scaling its internal "Ask AT&amp;amp;T" GenAI platform from about &lt;strong&gt;8 billion tokens/day&lt;/strong&gt; to about &lt;strong&gt;27 billion tokens/day&lt;/strong&gt; after restructuring orchestration into a multi-agent setup — &lt;strong&gt;3x the volume at about 90% lower cost&lt;/strong&gt;. The IEA noted that AI-related data center electricity demand grew about &lt;strong&gt;50% in 2025 alone&lt;/strong&gt; (against overall electricity demand growth of about 3%), and attributed the gap to a surge in AI usage (roughly 3x monthly active users and 5x revenue at major model providers).&lt;/p&gt;

&lt;p&gt;What matters: &lt;strong&gt;consumption is not linear in user-visible activity&lt;/strong&gt;. A single query that triggers a RAG pipeline, hits a reasoning model, and makes several tool calls can consume tens to hundreds of times the tokens of a direct prompt to a small model. Agent-to-agent communication is itself a cost. The research community has started calling this overhead &lt;strong&gt;"communication tax"&lt;/strong&gt;.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://openreview.net/forum?id=0iLbiYYIpC" rel="noopener noreferrer"&gt;https://openreview.net/forum?id=0iLbiYYIpC&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Breaking down where consumption accumulates, one request typically stacks up across five elements:&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fbkzy9q8dpdqvm2o0x3ld.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fbkzy9q8dpdqvm2o0x3ld.png" alt=" " width="800" height="589"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;These multiply rather than add, which is why the total is unreadable from surface-level activity.&lt;/p&gt;

&lt;p&gt;For a platform owner, the action is clear: stop projecting budgets from last quarter's actuals and price trendlines. Assume that any expansion of use case will spike consumption, and put &lt;strong&gt;the trajectory itself&lt;/strong&gt; on the dashboard. Unit price is no longer the subject of the budget conversation. Total consumption is.&lt;/p&gt;

&lt;h2&gt;
  
  
  Shift 2: Treat tokens as an invisible cost category
&lt;/h2&gt;

&lt;p&gt;The next shift is to &lt;strong&gt;see tokens as a hidden cost category&lt;/strong&gt; and start watching it deliberately.&lt;/p&gt;

&lt;p&gt;Cloud instances can be resized. Storage can be audited. Tokens lack that tactile feedback. They flow quietly through every agent loop, every retrieval call, every reasoning step, and pile up as a cost no one budgeted. This is the property the Tokenomics discussion keeps pointing at.&lt;/p&gt;

&lt;p&gt;What amplifies the invisibility is &lt;strong&gt;metered billing hidden inside SaaS subscriptions&lt;/strong&gt;. What looks like a flat monthly subscription to a developer tool or business app is, in reality, a token meter waiting to spin up. Roll out AI tools, and you can get bills the seat count can't explain. The examples are not hypothetical:&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Cursor&lt;/strong&gt; moved to usage-based pricing in June 2025. With long-context agent usage, effective spend ballooned by orders of magnitude for some users. On July 4, the CEO had to issue a public apology and offer refunds.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://cursor.com/blog/june-2025-pricing" rel="noopener noreferrer"&gt;https://cursor.com/blog/june-2025-pricing&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Kiro&lt;/strong&gt; launched with a pricing model that charged spec and vibe requests at a 5:1 ratio, immediately drew criticism, and the company officially acknowledged a bug that caused requests to be over-consumed.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://kiro.dev/blog/important-pricing-updates/" rel="noopener noreferrer"&gt;https://kiro.dev/blog/important-pricing-updates/&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;The common pattern: &lt;strong&gt;subscription prices no longer signal your budget&lt;/strong&gt;. The seat fee is a floor. What you actually pay is determined by usage, not seat count.&lt;/p&gt;

&lt;p&gt;What a platform owner should do first is finish visibility &lt;strong&gt;before&lt;/strong&gt; reaching for optimization techniques. Build a state where you can break down — by model, by product, by team, by environment — who is consuming how much. Surface the tokens hiding inside SaaS, too. Without that foundation, the optimization conversation has nothing to stand on.&lt;/p&gt;

&lt;h2&gt;
  
  
  Shift 3: Solve reduction by design, not by discipline
&lt;/h2&gt;

&lt;p&gt;The third shift is in how you think about cost reduction. &lt;strong&gt;Reducing tokens isn't a matter of restraint; it's a design problem.&lt;/strong&gt; And the levers from the supply side have arrived.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;1. Model routing.&lt;/strong&gt; Instead of sending every query to the top-tier model, route to the cheapest model that can still answer. FrugalGPT, an academic approach, tries smaller models first and only escalates when needed — reporting up to &lt;strong&gt;98% cost reduction vs GPT-4&lt;/strong&gt;. RouteLLM (UC Berkeley) reports up to &lt;strong&gt;85% cost reduction while preserving conversational quality&lt;/strong&gt;. Amazon Bedrock offers this as a managed service (intelligent prompt routing) with &lt;strong&gt;up to 30% reduction&lt;/strong&gt; officially advertised. Routing is no longer research-only; it's a real option from both research and managed services.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://arxiv.org/abs/2305.05176" rel="noopener noreferrer"&gt;https://arxiv.org/abs/2305.05176&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;a href="https://arxiv.org/abs/2406.18665" rel="noopener noreferrer"&gt;https://arxiv.org/abs/2406.18665&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;a href="https://aws.amazon.com/bedrock/intelligent-prompt-routing/" rel="noopener noreferrer"&gt;https://aws.amazon.com/bedrock/intelligent-prompt-routing/&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;2. Tool calls as code.&lt;/strong&gt; Hand an agent a list of tool definitions and the definitions ride in the context every turn. Cloudflare's "Code Mode" has the agent write code that calls the tools instead. They report compressing the tool definitions of an MCP server exposing 2,500 APIs from about &lt;strong&gt;1.17M tokens to about 1,000 tokens — 99.9% compression&lt;/strong&gt;. Anthropic independently presented the same pattern as "Code Execution with MCP." This isn't a vendor-specific quirk anymore.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://blog.cloudflare.com/code-mode-mcp/" rel="noopener noreferrer"&gt;https://blog.cloudflare.com/code-mode-mcp/&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;a href="https://www.anthropic.com/engineering/code-execution-with-mcp" rel="noopener noreferrer"&gt;https://www.anthropic.com/engineering/code-execution-with-mcp&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;3. Context compression.&lt;/strong&gt; In a RAG pipeline, only a small fraction of the retrieved text contributes to the answer; the rest is noise that wastes tokens. If you prune it, you cut the tokens the LLM sees. Zilliz, a vector database vendor, reports &lt;strong&gt;70–80% token reduction&lt;/strong&gt; by sentence-level relevance filtering that drops weakly related sentences.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://milvus.io/blog/semantic-highlighting-model-for-rag-context-pruning-and-token-saving.md" rel="noopener noreferrer"&gt;https://milvus.io/blog/semantic-highlighting-model-for-rag-context-pruning-and-token-saving.md&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;4. Data format choice.&lt;/strong&gt; The serialization format you hand the LLM directly affects token volume. Microsoft's Data Science engineering blog shows that &lt;strong&gt;function-calling-based structured output is more token-efficient than free-form JSON&lt;/strong&gt; for the same result. For tabular data, CSV/TSV or newer LLM-oriented formats like TOON can use &lt;strong&gt;30–60% fewer tokens&lt;/strong&gt; than JSON. Data format is a functional decision and a cost decision at the same time.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://medium.com/data-science-at-microsoft/token-efficiency-with-structured-output-from-language-models-be2e51d3d9d5" rel="noopener noreferrer"&gt;https://medium.com/data-science-at-microsoft/token-efficiency-with-structured-output-from-language-models-be2e51d3d9d5&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Lining these up by reported savings and ease of adoption (difficulty is a rough indicator):&lt;/p&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Lever&lt;/th&gt;
&lt;th&gt;Reported reduction&lt;/th&gt;
&lt;th&gt;Adoption difficulty&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;Data format choice&lt;/td&gt;
&lt;td&gt;30–60% vs JSON&lt;/td&gt;
&lt;td&gt;Low&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Model routing&lt;/td&gt;
&lt;td&gt;up to 98% (FrugalGPT), 85% (RouteLLM)&lt;/td&gt;
&lt;td&gt;Medium&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Context compression&lt;/td&gt;
&lt;td&gt;70–80%&lt;/td&gt;
&lt;td&gt;Medium&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Tool calls as code (Code Mode)&lt;/td&gt;
&lt;td&gt;~99.9% on MCP definitions&lt;/td&gt;
&lt;td&gt;Medium–High&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;p&gt;For a platform owner, the takeaway is the recognition that &lt;strong&gt;savings opportunities live in design, not in operations&lt;/strong&gt;. Most of these can be set as organizational policy — pick a default output format, install routing, decide how tools are exposed. Not "try harder" at the team level, but "decide the standard" at the platform level. Of the four, choosing a default output format is probably the lowest-friction starting point.&lt;/p&gt;

&lt;h2&gt;
  
  
  Shift 4: Measure by outcome, not by volume
&lt;/h2&gt;

&lt;p&gt;The last shift is in what you measure. Move from raw consumption to &lt;strong&gt;cost per outcome&lt;/strong&gt;.&lt;/p&gt;

&lt;p&gt;Counting tokens as if they were uniform misses something real. Tokens spent on a retry due to insufficient quality versus tokens in a first-shot usable response carry the same cost but different value. Tokens an agent burns going in circles look like tokens but don't translate into outcome. LLM inference research has a name for this: &lt;strong&gt;goodput&lt;/strong&gt; — the throughput that meets your SLOs (latency, quality targets). Benchmarks like SemiAnalysis's InferenceX have adopted this view. What an enterprise actually buys isn't raw token volume but the usable-output portion of it.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://bentoml.com/llm/inference-optimization/llm-inference-metrics" rel="noopener noreferrer"&gt;https://bentoml.com/llm/inference-optimization/llm-inference-metrics&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;a href="https://inferencex.semianalysis.com/" rel="noopener noreferrer"&gt;https://inferencex.semianalysis.com/&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;When you only chase volume, cost judgment goes off. What you should be watching is &lt;strong&gt;the fraction of tokens that yielded usable results&lt;/strong&gt; (the yield after retries and quality misses) and &lt;strong&gt;cost per inference / per workflow / per outcome&lt;/strong&gt;.&lt;/p&gt;

&lt;p&gt;What matters most for a platform owner is keeping the balance between volume and value. Using 10x the tokens for 100x the value is economically right. Cutting tokens to a tenth and getting unusable output is not a saving. Conversely, &lt;strong&gt;token spend that doesn't translate into value is plain waste&lt;/strong&gt;: verbose system prompts, oversized contexts, overuse of expensive models, tool design that ships full documents when MCP could extract only what's needed. There's also an organizational failure mode — &lt;strong&gt;using token usage itself as a performance metric encourages meaningless AI use just to game the number&lt;/strong&gt;, as several reports have documented. Cost-per-outcome as the indicator prevents both directions of failure: the cost-cutting order that kills quality, and the value-disconnected consumption that gets ignored.&lt;/p&gt;

&lt;h2&gt;
  
  
  What the four shifts share
&lt;/h2&gt;

&lt;p&gt;The four shifts look distinct, but they collapse into two underlying moves.&lt;/p&gt;

&lt;p&gt;The first is &lt;strong&gt;changing what unit you look at&lt;/strong&gt;. From unit price to consumption trajectory (Shift 1). From token volume to cost per outcome (Shift 4). Both reset the meter.&lt;/p&gt;

&lt;p&gt;The second is &lt;strong&gt;making it visible, then putting your hands on it&lt;/strong&gt;. Token spend hides inside SaaS and variable cost, so visibility is the prerequisite (Shift 2). Once visible, design levers — not team effort — drive the reduction (Shift 3).&lt;/p&gt;

&lt;p&gt;Changing how you measure without acting changes nothing. Acting without changing how you measure tends to overshoot, killing quality in the name of savings. Each half alone falls short. When both arrive, AI cost shifts from something to watch by intuition to something to &lt;strong&gt;operate with grounding&lt;/strong&gt;.&lt;/p&gt;

&lt;h2&gt;
  
  
  Pushback worth pre-empting
&lt;/h2&gt;

&lt;p&gt;Four objections are worth addressing up front.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Isn't this just FinOps for AI?&lt;/strong&gt; Largely yes. The FinOps Foundation itself positions Tokenomics within FinOps for AI, specifically in the "AI Value" topic. Tokenomics is not a new methodology; it's a chunk of FinOps for AI with its own name. That said, getting a proper name and an institutional vessel does something on its own. It doesn't mean cross-team discussion and cross-vendor comparison suddenly work — internal vocabulary takes time to spread, and shared data formats need adoption. But laying the foundation for a shared language is itself worth tracking. Think of it less as a new technique and more as &lt;strong&gt;infrastructure for agreement starting to form&lt;/strong&gt;.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://www.finops.org/topic/ai-value/" rel="noopener noreferrer"&gt;https://www.finops.org/topic/ai-value/&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Doesn't Tokenomics narrow vision down to just tokens?&lt;/strong&gt; A real concern. Tokens are the most measurable layer of AI cost. Beneath that sit SaaS-embedded variable costs and operational/governance costs. If you self-host models, you also carry GPU/compute/storage, data transfer, and training costs underneath.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fdiddy2skr9bdynqcotmh.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fdiddy2skr9bdynqcotmh.png" alt=" " width="799" height="147"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Tokens get the spotlight because they're growing fastest, hiding hardest, and have the most-formed vocabulary. A reasonable starting point — not the whole story. Worth holding that distinction.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;We don't use that many tokens.&lt;/strong&gt; Possibly true. Possibly just invisible. The SaaS-embedded portion shows up as a flat monthly fee or a rolled-up invoice, not as itemized token usage. "Don't use" vs. "don't see" only separates when you visualize. Building visibility while scale is small beats chasing it after the bill explodes.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Unit prices keep falling — why not just wait?&lt;/strong&gt; Falling prices apply mostly to general-purpose models. Top-tier and reasoning models are a different story. Industry estimates consistently put agent-style workloads at &lt;strong&gt;5–30x the token consumption of the same task in chat form&lt;/strong&gt;. The lower-tier price drops get swallowed by the upper-tier consumption growth. Waiting works less well as your usage shifts toward the upper tiers.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://www.bigeye.com/blog/how-to-track-ai-agent-costs-and-token-usage" rel="noopener noreferrer"&gt;https://www.bigeye.com/blog/how-to-track-ai-agent-costs-and-token-usage&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;a href="https://arxiv.org/abs/2604.22750" rel="noopener noreferrer"&gt;https://arxiv.org/abs/2604.22750&lt;/a&gt;&lt;/p&gt;

&lt;h2&gt;
  
  
  Where to start
&lt;/h2&gt;

&lt;p&gt;No universal recipe. The first step varies with maturity and with which layer (self-hosted API, SaaS-embedded, self-hosting) your AI usage sits on. Still, a common order exists.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Start with visibility.&lt;/strong&gt; Before optimization techniques, build the state where you can break down — by user, model, product, environment — who's consuming how much. Without this, every later judgment is a guess. The tagging exercise itself raises questions worth surfacing: prod vs. staging splits, product and team boundaries, cost allocation logic that everyone can stomach. The setup work doubles as an on-ramp for FinOps awareness inside the organization.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Next, audit billing models.&lt;/strong&gt; For each AI-bearing SaaS and API in use, lay out the floor (the recurring portion) and the variable behavior. Once you suspend the "subscription = fixed cost" assumption, the location of budget risk looks different. Provider-side moves matter too — for example, Anthropic's April 2026 pricing structure change. Decisions about extending the recurring footprint and managing variable-cost blow-up become separate agenda items.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Then set design levers as policy.&lt;/strong&gt; The default output format, routing, how tools are exposed. Don't leave it to the field; pick the standard from the platform. As Shift 3 noted, the default output format is the lightest place to start exercising platform authority.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Finally, push the metric from volume toward outcome.&lt;/strong&gt; Watching cost per outcome and token yield keeps the cost-cutting order from killing quality. It also blocks the gaming pattern where token usage as a KPI breeds meaningless AI use, as Shift 4 noted. The metric step comes last, but how you align it determines how well the previous three actually deliver.&lt;/p&gt;

&lt;p&gt;Tokenomics isn't a new saving trick. It's an auxiliary line for reading AI cost &lt;strong&gt;as an economy&lt;/strong&gt; — as the relationship between volume and value. With the word settling into shared use overseas, holding the lens early, while owning AI inside your organization, is itself the first step.&lt;/p&gt;

&lt;p&gt;Not getting hooked on per-token price moves, but reading the relationship between volume and value — that's the kind of attention platform owners will be asked for going forward.&lt;/p&gt;

</description>
      <category>ai</category>
      <category>finops</category>
      <category>agents</category>
      <category>mcp</category>
    </item>
    <item>
      <title>AWS WAF Brought Back 402 Payment Required for the Agent Economy</title>
      <dc:creator>Kento IKEDA</dc:creator>
      <pubDate>Sat, 20 Jun 2026 21:15:57 +0000</pubDate>
      <link>https://dev.to/aws-builders/aws-waf-brought-back-402-payment-required-for-the-agent-economy-29a</link>
      <guid>https://dev.to/aws-builders/aws-waf-brought-back-402-payment-required-for-the-agent-economy-29a</guid>
      <description>&lt;p&gt;AWS WAF added a feature called AI traffic monetization. It lets you charge AI bots that hit your site or API for access to your content. Until now, dealing with AI crawlers meant a binary choice, allow or block. This adds a third path: take payment and let them through.&lt;/p&gt;

&lt;p&gt;I won't go deep into the feature itself here, how a content owner sets up monetization. The official announcement covers that.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://aws.amazon.com/blogs/aws/aws-waf-adds-ai-traffic-monetization-capability-to-help-content-owners-charge-ai-bots-for-content-access/" rel="noopener noreferrer"&gt;https://aws.amazon.com/blogs/aws/aws-waf-adds-ai-traffic-monetization-capability-to-help-content-owners-charge-ai-bots-for-content-access/&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;What I want to look at is the other side. The story of the side defending content is, at the same time, the story of the side reading it, the side running autonomous agents. HTTP status code 402, reserved for years and rarely used, becoming practical means the cost structure of an agent reading the web is starting to change. For the payment protocol itself, I'll read it from the x402 spec.&lt;/p&gt;

&lt;h2&gt;
  
  
  The "let them read, recoup later" business model that AI broke
&lt;/h2&gt;

&lt;p&gt;To set the stage: AI bot traffic is now too large to ignore. According to the AWS blog, for many content providers AI bots make up more than half of web traffic, and AI-specific crawlers have grown more than threefold year over year.&lt;/p&gt;

&lt;p&gt;Traditional search crawlers built an index and sent readers back from the search results. AI bots, by contrast, use the same content to generate summaries and answers, and return almost no readers to the original site. The provider pays the infrastructure cost of serving the traffic while getting neither page views nor ad impressions. This asymmetry is where the idea of charging starts.&lt;/p&gt;

&lt;p&gt;That is the view from the side defending content.&lt;/p&gt;

&lt;h2&gt;
  
  
  What Monetize returns with 402, and two constraints
&lt;/h2&gt;

&lt;p&gt;First, the mechanics, just the essentials.&lt;/p&gt;

&lt;p&gt;Monetization runs as part of AWS WAF's Bot Control. For a request judged to be a bot, you assign one of six actions (Monetize / Allow / Block / Count / CAPTCHA / Challenge); assign Monetize, and a request without payment receives an HTTP 402 Payment Required. Along with the 402 comes a manifest, written in a machine-parsable form, stating the price per request (in USDC), the accepted payment networks (Base and Solana), the destination address, and more. That format is x402, an open protocol Coinbase proposed for program-to-program payments.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://x402.org" rel="noopener noreferrer"&gt;https://x402.org&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Two constraints are worth noting. First, the Monetize action is only available on web ACLs associated with Amazon CloudFront. Second, payment verification and on-chain settlement happen synchronously, inside the request path. The official docs state this explicitly as "synchronously," and the content is returned only after settlement is confirmed. That latency falls only on requests that involve payment; requests without payment are unaffected.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://docs.aws.amazon.com/waf/latest/developerguide/waf-ai-traffic-monetization-how-it-works.html" rel="noopener noreferrer"&gt;https://docs.aws.amazon.com/waf/latest/developerguide/waf-ai-traffic-monetization-how-it-works.html&lt;/a&gt;&lt;/p&gt;

&lt;h2&gt;
  
  
  Reading x402's payment internals from the source
&lt;/h2&gt;

&lt;p&gt;x402 was proposed by Coinbase and is now developed as an open standard, with the repository moved to the x402 Foundation. Both the spec and the implementation are public on GitHub, so you can read directly what the AWS docs alone don't show. The official docs take you as far as the overall flow; beyond that, only the spec has it. So let's read the source and trace, in order, what goes into the 402, how it is signed, and where it is sent.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://github.com/x402-foundation/x402" rel="noopener noreferrer"&gt;https://github.com/x402-foundation/x402&lt;/a&gt;&lt;/p&gt;

&lt;h3&gt;
  
  
  The 402 body is a manifest of payment terms
&lt;/h3&gt;

&lt;p&gt;When a 402 Payment Required comes back, in x402 v2 the payment terms ride in the PAYMENT-REQUIRED header, Base64-encoded. Decode it and you get the object the spec calls PaymentRequired. It holds an array of payment methods the provider accepts (accepts), and each element declares which scheme, on which network, which currency, how much, and to which destination you pay to get through.&lt;/p&gt;

&lt;p&gt;Here is what one looks like. This is a single element of the accepts array, taken from the v2 spec's example.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight json"&gt;&lt;code&gt;&lt;span class="p"&gt;{&lt;/span&gt;&lt;span class="w"&gt;
  &lt;/span&gt;&lt;span class="nl"&gt;"scheme"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="s2"&gt;"exact"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;&lt;span class="w"&gt;
  &lt;/span&gt;&lt;span class="nl"&gt;"network"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="s2"&gt;"eip155:84532"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;&lt;span class="w"&gt;
  &lt;/span&gt;&lt;span class="nl"&gt;"amount"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="s2"&gt;"10000"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;&lt;span class="w"&gt;
  &lt;/span&gt;&lt;span class="nl"&gt;"asset"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="s2"&gt;"0x036CbD53842c5426634e7929541eC2318f3dCF7e"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;&lt;span class="w"&gt;
  &lt;/span&gt;&lt;span class="nl"&gt;"payTo"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="s2"&gt;"0x209693Bc6afc0C5328bA36FaF03C514EF312287C"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;&lt;span class="w"&gt;
  &lt;/span&gt;&lt;span class="nl"&gt;"maxTimeoutSeconds"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="mi"&gt;60&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;&lt;span class="w"&gt;
  &lt;/span&gt;&lt;span class="nl"&gt;"extra"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="p"&gt;{&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="nl"&gt;"name"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="s2"&gt;"USDC"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="nl"&gt;"version"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="s2"&gt;"2"&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="p"&gt;}&lt;/span&gt;&lt;span class="w"&gt;
&lt;/span&gt;&lt;span class="p"&gt;}&lt;/span&gt;&lt;span class="w"&gt;
&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;The fields mean:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;scheme (the payment method, e.g. exact)&lt;/li&gt;
&lt;li&gt;network (a chain ID such as eip155:84532)&lt;/li&gt;
&lt;li&gt;amount (the amount, as an integer in the smallest unit; the 10000 here is 0.01 USD in USDC)&lt;/li&gt;
&lt;li&gt;asset (the currency's contract address)&lt;/li&gt;
&lt;li&gt;payTo (the receiving address)&lt;/li&gt;
&lt;li&gt;maxTimeoutSeconds (the payment's expiry)&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;The paying side picks one set of terms it can pay from this array and builds the payment. Multiple networks or currencies may be listed, and which to choose is left to the payer.&lt;/p&gt;

&lt;h3&gt;
  
  
  The payment is a signed authorization, not the transfer itself
&lt;/h3&gt;

&lt;p&gt;What the payer creates is a PaymentPayload object, made of a signature and an authorization. The authorization holds: from whom (from), to whom (to), how much (value), the validity window (validAfter / validBefore), and a single-use value to prevent reuse (nonce).&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight json"&gt;&lt;code&gt;&lt;span class="p"&gt;{&lt;/span&gt;&lt;span class="w"&gt;
  &lt;/span&gt;&lt;span class="nl"&gt;"signature"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="s2"&gt;"0x2d6a7588...148b571c"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;&lt;span class="w"&gt;
  &lt;/span&gt;&lt;span class="nl"&gt;"authorization"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="p"&gt;{&lt;/span&gt;&lt;span class="w"&gt;
    &lt;/span&gt;&lt;span class="nl"&gt;"from"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="s2"&gt;"0x857b06519E91e3A54538791bDbb0E22373e36b66"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;&lt;span class="w"&gt;
    &lt;/span&gt;&lt;span class="nl"&gt;"to"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="s2"&gt;"0x209693Bc6afc0C5328bA36FaF03C514EF312287C"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;&lt;span class="w"&gt;
    &lt;/span&gt;&lt;span class="nl"&gt;"value"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="s2"&gt;"10000"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;&lt;span class="w"&gt;
    &lt;/span&gt;&lt;span class="nl"&gt;"validAfter"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="s2"&gt;"1740672089"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;&lt;span class="w"&gt;
    &lt;/span&gt;&lt;span class="nl"&gt;"validBefore"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="s2"&gt;"1740672154"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;&lt;span class="w"&gt;
    &lt;/span&gt;&lt;span class="nl"&gt;"nonce"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="s2"&gt;"0xf3746613...62f13480"&lt;/span&gt;&lt;span class="w"&gt;
  &lt;/span&gt;&lt;span class="p"&gt;}&lt;/span&gt;&lt;span class="w"&gt;
&lt;/span&gt;&lt;span class="p"&gt;}&lt;/span&gt;&lt;span class="w"&gt;
&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;The values are all from the v2 spec's example. In response to the earlier accepts (the payment request), the payer signs and returns this. It is not the execution of a transfer; it is a signed permission to pull this amount under these terms. It uses EIP-3009's transferWithAuthorization, and the fact that the amount, the expiry, and the single-use nonce are bound by the signature is what matters for the budgeting design later.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://eips.ethereum.org/EIPS/eip-3009" rel="noopener noreferrer"&gt;https://eips.ethereum.org/EIPS/eip-3009&lt;/a&gt;&lt;/p&gt;

&lt;h3&gt;
  
  
  The header names changed between v1 and v2
&lt;/h3&gt;

&lt;p&gt;x402 has a v1 and a v2, and how the payment-exchange headers work changed in v2. It is a difference worth knowing if you touch the implementation.&lt;/p&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Purpose&lt;/th&gt;
&lt;th&gt;v1&lt;/th&gt;
&lt;th&gt;v2&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;402 payment request&lt;/td&gt;
&lt;td&gt;response body&lt;/td&gt;
&lt;td&gt;PAYMENT-REQUIRED&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;client's payment&lt;/td&gt;
&lt;td&gt;X-PAYMENT&lt;/td&gt;
&lt;td&gt;PAYMENT-SIGNATURE&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;settlement result&lt;/td&gt;
&lt;td&gt;X-PAYMENT-RESPONSE&lt;/td&gt;
&lt;td&gt;PAYMENT-RESPONSE&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;p&gt;In v1, only the payment request came back in the response body, while the payment and the result were headers. v2 organizes all three into headers, and the spec states that x402 carries all of its protocol information in headers, leaving the response body to the server implementation. The reason AWS's docs mention a payment-signature header is that it follows v2.&lt;/p&gt;

&lt;h3&gt;
  
  
  The facilitator handles verification and settlement but holds no funds
&lt;/h3&gt;

&lt;p&gt;So that the provider does not have to implement on-chain verification and transfer itself, an intermediary service called a facilitator exists. It has two roles: verify (check that the signed payment meets the terms) and settle (send it to the blockchain and wait for confirmation). What the spec states explicitly is that the facilitator holds no funds, that is, it is not a custodian. It only receives the signed authorization and carries out verification and execution on the provider's behalf. Facilitators are already running in production on several networks including Solana, Polygon, and Base.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://www.x402.org/ecosystem" rel="noopener noreferrer"&gt;https://www.x402.org/ecosystem&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Tracing the flow briefly from the payer's side:&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;Send the request&lt;/li&gt;
&lt;li&gt;A 402 with PAYMENT-REQUIRED comes back&lt;/li&gt;
&lt;li&gt;Pick one set of terms from accepts&lt;/li&gt;
&lt;li&gt;Resend with the signed authorization in PAYMENT-SIGNATURE&lt;/li&gt;
&lt;li&gt;The provider verifies via the facilitator's verify, fetches the content, confirms with settle, and returns it with PAYMENT-RESPONSE&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;What AWS WAF handles is the provider side of this flow.&lt;/p&gt;

&lt;p&gt;For that settle, AWS WAF uses the x402 facilitator provided by Coinbase Developer Platform. Note that if the origin returns 4xx or 5xx, no settlement runs and the payer is not charged.&lt;/p&gt;

&lt;h2&gt;
  
  
  The agent runtime becomes a payment actor
&lt;/h2&gt;

&lt;p&gt;A 402 coming back presupposes an agent that receives it, pays, and goes back for the content.&lt;/p&gt;

&lt;p&gt;The flow just traced can be run almost autonomously by the paying side's agent runtime. The runtime handles receiving the 402 and resending with the signed authorization in PAYMENT-SIGNATURE, and the provider-side verification through settlement completes synchronously, inside the request path.&lt;/p&gt;

&lt;p&gt;This is a new design concern for whoever runs the agent. Until now, the cost of an autonomous agent fetching the web was mostly just its own token usage and bandwidth. From here on, if the fetched destination is monetized, the content itself may carry a cost. The agent's runtime becomes a payment actor at the same time as being an HTTP client. That is the structural change.&lt;/p&gt;

&lt;p&gt;If you run your own agent, this change brings in two new design decisions: whether to treat a 402 from a fetch destination as a failure or pay and get through, and if paying, with which wallet and up to how much automatically. The same kind of decision that choosing an auth path became now arises for the payment path.&lt;/p&gt;

&lt;p&gt;You might feel, "I am not crawling at scale, so this does not concern me." But this is a matter of premise, not scale. The moment even one destination returns a 402, the agent's design grows a branch for how to handle 402. As more providers monetize, a 402 mixing into the reasons a fetch fails becomes unavoidable. Better to hold the assumption ahead of time than to scramble later over whether to give up, pay, or route around.&lt;/p&gt;

&lt;h2&gt;
  
  
  Three things the payer's harness needs to decide
&lt;/h2&gt;

&lt;p&gt;Once you understand the spec, the payer's design points get concrete. There are roughly three.&lt;/p&gt;

&lt;p&gt;First, where to put the branch after receiving a 402. When the agent's HTTP client receives a 402, does it return it as a failure up the stack, or enter the payment path on the spot? If you pay automatically right inside the fetch, the agent does not have to be aware of the 402, but where and how much you paid becomes hard to see. Conversely, if you bring it up to the planning layer where the agent decides its next action, you can make the payment decision in the context of the task, but the branches scatter across the call paths. The same decision as which layer attaches the auth token now stands up for payments too.&lt;/p&gt;

&lt;p&gt;Second, how to cap the budget. This is where x402's signature design pays off. The authorization contains value (the amount), validBefore (the expiry), and nonce (single-use), fixed by the signature. So for each payment, you can decide the cap and the expiry at the moment of signing. Give the harness rules like "up to this much per request," "up to this cumulative amount per task," and "invalid past this time," then fold them into generating the authorization, and you prevent a runaway agent from paying without limit, by design. Being able to embed the cap in the signed authorization itself, rather than hard-coding it somewhere, is the strength of this design.&lt;/p&gt;

&lt;p&gt;Third, verification before going to production. You cannot run real currency through payment-involved code from the start. x402 has test networks (the eip155:84532 from the earlier example is a testnet called Base Sepolia), and you can run the whole flow, a 402 returning, an authorization being created, and verification happening, without moving real assets. Whether you run through this once, as a stage before putting the payment feature into your implementation, changes how calm the first production rollout feels.&lt;/p&gt;

&lt;p&gt;At the design stage, you consider these three: which layer receives the 402, whose wallet and how much to cap, and whether to run it through a testnet. No implementation yet. Just recognizing the premise has changed, and deciding where the judgment lives, means you will not scramble as more destinations to pay appear.&lt;/p&gt;

&lt;h2&gt;
  
  
  The gap robots.txt couldn't close
&lt;/h2&gt;

&lt;p&gt;One more thing worth seeing from the payer's side is the relationship to robots.txt. robots.txt is only a gentleman's agreement; it had no force to stop crawlers that do not comply. There was no middle ground between allow and block, and blocking shuts out even the welcome bots that bring readers in via AI search. A 402, a mechanism that does have force, is moving to fill this gap.&lt;/p&gt;

&lt;p&gt;Put from the payer's side: part of the web where "if you went to read it, you could read it" may turn into a web where "if you go to read it, you are asked for payment." According to the AWS blog, AWS WAF classifies over 650 types of AI bots and agents, splitting them into verified, confirmable by cryptographic signature or published IP range, and unverified. The provider can serve them differently, letting verified search crawlers through for free while setting a high unit price for unverified ones. In other words, if your own agent is classified as unverified, it may end up on the side asked for a relatively high price.&lt;/p&gt;

&lt;h2&gt;
  
  
  Where stablecoin settlement stands today
&lt;/h2&gt;

&lt;p&gt;Next, the payment method. It is a fact that payment today is centered on stablecoins like USDC. The receiving side specifies a wallet address on a network such as Base or Solana, and AWS neither intermediates the payment nor takes a fee. Converting the received stablecoins into fiat and moving them to a bank account is, officially, something you manage yourself or leave to your wallet provider. What AWS WAF handles is up to receiving the payment; the conversion and bookkeeping beyond that are on you. It is not yet at a stage where it drops straight into an existing accounting flow.&lt;/p&gt;

&lt;p&gt;Still, what matters for practice in the near term is a different point: before going to production, you can try the payment flow in test mode without running real currency. As a stage before putting a payment-involved feature into your implementation, this is a welcome design.&lt;/p&gt;

&lt;h2&gt;
  
  
  The industry's move toward monetization
&lt;/h2&gt;

&lt;p&gt;A similar mechanism, Cloudflare's Pay Per Crawl, came first. With AWS following, a view emerges that payment mechanisms are splitting per cloud, with each vendor using them for its own lock-in.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://developers.cloudflare.com/ai-crawl-control/features/pay-per-crawl/what-is-pay-per-crawl/" rel="noopener noreferrer"&gt;https://developers.cloudflare.com/ai-crawl-control/features/pay-per-crawl/what-is-pay-per-crawl/&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;But the fact that two companies moved in the same direction, toward program-to-program payment using 402, looks less like each vendor's individual play and more like a sign the industry is starting to lean toward web reading becoming monetizable. x402 as a protocol is not closed to any one cloud. If so, the question moves from "which cloud to use" to "which agent runtime supports this payment flow first." Seen as an AWS WAF feature it is one company's story, but stand on the side that has agents read the web and pay, and it looks like part of a wider industry shift.&lt;/p&gt;

&lt;p&gt;Reading the source further, you find x402's scope is wider than web reading. x402's transports are defined not only for HTTP but also for MCP (Model Context Protocol) and A2A (Agent-to-Agent Protocol). In the MCP transport, when an agent calls a paid tool, the result comes back as an error first, and resending with payment executes it. In the A2A transport, one agent pays for another agent's service. In the spec's words, agents monetize their own services through on-chain cryptocurrency payments.&lt;/p&gt;

&lt;p&gt;So AWS WAF's AI charging is just x402 implemented on one face: reading content over HTTP. Beneath it spreads the idea of a payment layer where, whether agents are calling tools or trading with each other, they pay with the same 402 and the same signature. The reason 402 was brought back is less to monetize the web and more to give agents a common payment endpoint for acting as economic actors, and reading it that way fits better.&lt;/p&gt;

&lt;h2&gt;
  
  
  Where to start
&lt;/h2&gt;

&lt;p&gt;If you hold content, the first step is not setting up charging but looking, in the AI traffic analytics dashboard, at the proportion of AI bots coming to your site. If you have a site served via CloudFront, make the current state visible first and gather the material to judge which of block, charge, or allow fits. You do not need to enable Monetize right away.&lt;/p&gt;

&lt;p&gt;If you run agents, you will want to check whether, among the destinations your agent currently fetches, there is content likely to start returning 402. Then leave even a single line in your harness's design notes on the policy: whether to pay automatically or not, and if paying, where to set the cap. No implementation yet. Just recognizing that the premise has changed will change your later decisions.&lt;/p&gt;

&lt;p&gt;402, a status code that lay dormant for a long time, has risen as the payment layer of the agent economy. You can read it as a story about defending content, but the same event is, for the side that has agents read the web, also a story of one more cost premise added. Which side you stand on changes the view, but being at the entrance where reading the web may no longer be free looks the same from either side.&lt;/p&gt;

</description>
      <category>agents</category>
      <category>ai</category>
      <category>aws</category>
      <category>security</category>
    </item>
    <item>
      <title>What is AWS Blocks? How it differs from Amplify and App Studio, and what each one is aiming for</title>
      <dc:creator>Kento IKEDA</dc:creator>
      <pubDate>Fri, 19 Jun 2026 22:12:14 +0000</pubDate>
      <link>https://dev.to/aws-builders/what-is-aws-blocks-how-it-differs-from-amplify-and-app-studio-and-what-each-one-is-aiming-for-2kn0</link>
      <guid>https://dev.to/aws-builders/what-is-aws-blocks-how-it-differs-from-amplify-and-app-studio-and-what-each-one-is-aiming-for-2kn0</guid>
      <description>&lt;p&gt;On June 16, 2026, AWS announced &lt;a href="https://aws.amazon.com/about-aws/whats-new/2026/06/aws-blocks-preview/" rel="noopener noreferrer"&gt;AWS Blocks&lt;/a&gt; as a public preview. It is an open-source framework where the TypeScript you write for your backend becomes the AWS infrastructure that runs it.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://github.com/aws-devtools-labs/aws-blocks" rel="noopener noreferrer"&gt;https://github.com/aws-devtools-labs/aws-blocks&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;The first thing many AWS users will think is "another full-stack tool." If you want a tool for frontend developers to build full-stack apps in TypeScript, Amplify Gen2 already exists. For people who don't write code, there is App Studio. I compared those three earlier in &lt;a href="https://zenn.dev/ikenyal/articles/c2c3ccf9fdd0cf" rel="noopener noreferrer"&gt;a write-up on App Studio, Amplify Gen1, and Amplify Gen2&lt;/a&gt;. Now Blocks joins them.&lt;/p&gt;

&lt;p&gt;This article organizes what AWS Blocks is from the official docs and the open-source code, lines it up against Amplify and App Studio, and finally sketches a map of what each one is aiming for. Rather than stopping at a feature-diff table, I want to get at why AWS is offering multiple entry points into full-stack development.&lt;/p&gt;

&lt;p&gt;A note: this is based on the official docs right after the preview announcement and on reading the open-source code. It is not based on long-term production use of Blocks. Read it with the understanding that implementation details may change.&lt;/p&gt;

&lt;h2&gt;
  
  
  What is AWS Blocks
&lt;/h2&gt;

&lt;p&gt;Here is how the official docs define it. &lt;a href="https://docs.aws.amazon.com/blocks/latest/devguide/what-is-blocks.html" rel="noopener noreferrer"&gt;AWS Blocks&lt;/a&gt; is a backend toolkit for full-stack applications, where each Block is a self-contained backend capability that bundles the application code, a local development setup, and the infrastructure to run it. Pick the Blocks you need and compose them, and the infrastructure following AWS best practices is defined automatically.&lt;/p&gt;

&lt;p&gt;Type safety doesn't stop inside the backend. Types flow from the backend all the way to the client, reaching web frameworks (Next.js, Nuxt, Astro, React, Vue, Svelte, Angular) and native targets (Swift, Kotlin, Dart/Flutter). From a single backend, you can generate typed client code for both web and mobile.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://github.com/aws-devtools-labs/aws-blocks" rel="noopener noreferrer"&gt;https://github.com/aws-devtools-labs/aws-blocks&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;That said, at the time of the preview announcement the frontends officially listed are SPAs (Vite + React) and SSR frameworks (Next.js, Nuxt, Astro), with support expected to widen over time. Blocks itself adds no extra charge; you pay only for the AWS services you use, and you can deploy to all commercial AWS Regions.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://aws.amazon.com/about-aws/whats-new/2026/06/aws-blocks-preview/" rel="noopener noreferrer"&gt;https://aws.amazon.com/about-aws/whats-new/2026/06/aws-blocks-preview/&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;From here, let's walk through the concepts you can't skip to understand Blocks.&lt;/p&gt;

&lt;h3&gt;
  
  
  Block = an npm package bundling infrastructure, runtime, and local implementation
&lt;/h3&gt;

&lt;p&gt;One Block is one npm package, holding the cloud resources, runtime code, and local implementation for a single capability. Instantiate one &lt;code&gt;KVStore&lt;/code&gt;, for example, and you get all at once: a DynamoDB table auto-provisioned at deploy time, runtime code that runs on Lambda, and an in-memory implementation for local development.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://docs.aws.amazon.com/blocks/latest/devguide/concepts.html" rel="noopener noreferrer"&gt;https://docs.aws.amazon.com/blocks/latest/devguide/concepts.html&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;The available Blocks cover most backend needs: data (&lt;code&gt;KVStore&lt;/code&gt;, &lt;code&gt;DistributedTable&lt;/code&gt;, &lt;code&gt;Database&lt;/code&gt;, &lt;code&gt;DistributedDatabase&lt;/code&gt;, &lt;code&gt;FileBucket&lt;/code&gt;), auth (&lt;code&gt;AuthBasic&lt;/code&gt;, &lt;code&gt;AuthCognito&lt;/code&gt;, &lt;code&gt;AuthOIDC&lt;/code&gt;), async work (&lt;code&gt;AsyncJob&lt;/code&gt;, &lt;code&gt;CronJob&lt;/code&gt;), AI (&lt;code&gt;Agent&lt;/code&gt;, &lt;code&gt;KnowledgeBase&lt;/code&gt;), communication (&lt;code&gt;Realtime&lt;/code&gt;, &lt;code&gt;EmailClient&lt;/code&gt;), configuration (&lt;code&gt;AppSetting&lt;/code&gt;), observability (&lt;code&gt;Logger&lt;/code&gt;, &lt;code&gt;Metrics&lt;/code&gt;, &lt;code&gt;Tracer&lt;/code&gt;, &lt;code&gt;Dashboard&lt;/code&gt;), and hosting (&lt;code&gt;Hosting&lt;/code&gt;).&lt;/p&gt;

&lt;p&gt;&lt;a href="https://docs.aws.amazon.com/blocks/latest/devguide/what-is-blocks.html" rel="noopener noreferrer"&gt;https://docs.aws.amazon.com/blocks/latest/devguide/what-is-blocks.html&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;What the official overview page doesn't give you, though, is a list of which AWS service each Block actually becomes inside. I was curious, so I read the open-source code (&lt;a href="https://github.com/aws-devtools-labs/aws-blocks" rel="noopener noreferrer"&gt;aws-devtools-labs/aws-blocks&lt;/a&gt;) to confirm the real services behind the main Blocks.&lt;/p&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Block&lt;/th&gt;
&lt;th&gt;AWS service inside&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;
&lt;code&gt;KVStore&lt;/code&gt; / &lt;code&gt;DistributedTable&lt;/code&gt;
&lt;/td&gt;
&lt;td&gt;DynamoDB&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;code&gt;Database&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;Aurora Serverless v2 (PostgreSQL 16.4)&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;code&gt;DistributedDatabase&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;Aurora DSQL&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;code&gt;FileBucket&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;S3&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;code&gt;AuthBasic&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;no dedicated infrastructure&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;
&lt;code&gt;AuthCognito&lt;/code&gt; / &lt;code&gt;AuthOIDC&lt;/code&gt;
&lt;/td&gt;
&lt;td&gt;Cognito&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;code&gt;AsyncJob&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;SQS + Lambda&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;code&gt;CronJob&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;EventBridge Scheduler&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;code&gt;Agent&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;Strands Agents SDK + Bedrock&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;code&gt;KnowledgeBase&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;Bedrock + S3 Vectors&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;code&gt;Realtime&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;API Gateway v2 (WebSocket)&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;code&gt;EmailClient&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;SES&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;code&gt;AppSetting&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;SSM Parameter Store&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;
&lt;code&gt;Logger&lt;/code&gt; / &lt;code&gt;Metrics&lt;/code&gt; / &lt;code&gt;Tracer&lt;/code&gt; / &lt;code&gt;Dashboard&lt;/code&gt;
&lt;/td&gt;
&lt;td&gt;CloudWatch&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;code&gt;Hosting&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;CloudFront + S3 + WAF + Route 53 + ACM&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;p&gt;A few findings the overview alone doesn't reveal:&lt;/p&gt;

&lt;p&gt;&lt;code&gt;DistributedDatabase&lt;/code&gt; is Aurora DSQL, so DSQL's own constraints surface directly in the development experience. You can't mix DDL and DML in the same transaction, and only one DDL statement is allowed per transaction. Blocks rejects these on the client side with validation.&lt;/p&gt;

&lt;p&gt;&lt;code&gt;KnowledgeBase&lt;/code&gt; uses S3 Vectors, which arrived in 2025, as the vector store for RAG.&lt;/p&gt;

&lt;p&gt;&lt;code&gt;Agent&lt;/code&gt; sits on top of Strands Agents SDK, AWS's open-source agent framework.&lt;/p&gt;

&lt;p&gt;&lt;code&gt;Hosting&lt;/code&gt; is less "CloudFront + S3" and more a heavier part that also bundles WAF, Route 53, and ACM.&lt;/p&gt;

&lt;h3&gt;
  
  
  IFC layer = the entry point where code becomes infrastructure
&lt;/h3&gt;

&lt;p&gt;The backend entry point of Blocks lives in a single file, &lt;code&gt;aws-blocks/index.ts&lt;/code&gt;. Instantiate Blocks and define your API there, and the infrastructure is derived directly from that code. No separate file for infrastructure definitions.&lt;/p&gt;

&lt;p&gt;This idea of deriving infrastructure from code is called Infrastructure from Code (IFC), and in the source this backend part was named the IFC subpackage.&lt;/p&gt;

&lt;p&gt;In other words, the code that describes infrastructure and the code that describes the app aren't separated. Infrastructure grows out of the app's code. This is the heart of Blocks' philosophy.&lt;/p&gt;

&lt;h3&gt;
  
  
  Conditional exports = the same import switches implementation by context
&lt;/h3&gt;

&lt;p&gt;The reason a single file can play three roles at once, namely local development, deploy, and production runtime, is Node.js conditional exports, which route the same import statement to a different implementation per context.&lt;/p&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Context&lt;/th&gt;
&lt;th&gt;Resolved implementation&lt;/th&gt;
&lt;th&gt;What happens&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;Local development&lt;/td&gt;
&lt;td&gt;in-memory / filesystem&lt;/td&gt;
&lt;td&gt;the app runs on localhost alone&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;CDK synthesis&lt;/td&gt;
&lt;td&gt;CDK constructs&lt;/td&gt;
&lt;td&gt;infrastructure is defined for CloudFormation&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Lambda runtime&lt;/td&gt;
&lt;td&gt;AWS SDK&lt;/td&gt;
&lt;td&gt;real services are called in production&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;TypeScript / IDE&lt;/td&gt;
&lt;td&gt;type definitions&lt;/td&gt;
&lt;td&gt;completion and type checking work&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;p&gt;The same line &lt;code&gt;new KVStore(scope, 'todos')&lt;/code&gt; becomes a local store in development, a DynamoDB table at deploy time, and an SDK call in production. You never change the code. Without writing any configuration by hand, module resolution picks the implementation per context. Reading the source package.json, they are switched by conditions like &lt;code&gt;cdk&lt;/code&gt;, &lt;code&gt;aws-runtime&lt;/code&gt;, &lt;code&gt;types&lt;/code&gt;, and &lt;code&gt;default&lt;/code&gt; (the local mock).&lt;/p&gt;

&lt;h3&gt;
  
  
  ApiNamespace = type-safe RPC with no code generation
&lt;/h3&gt;

&lt;p&gt;The part that calls the backend from the frontend is handled by ApiNamespace. The frontend imports and calls methods defined in the backend directly.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight typescript"&gt;&lt;code&gt;&lt;span class="c1"&gt;// Frontend: import the backend API directly&lt;/span&gt;
&lt;span class="k"&gt;import&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt; &lt;span class="nx"&gt;api&lt;/span&gt; &lt;span class="p"&gt;}&lt;/span&gt; &lt;span class="k"&gt;from&lt;/span&gt; &lt;span class="dl"&gt;'&lt;/span&gt;&lt;span class="s1"&gt;../aws-blocks/index.js&lt;/span&gt;&lt;span class="dl"&gt;'&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;

&lt;span class="kd"&gt;const&lt;/span&gt; &lt;span class="nx"&gt;result&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="k"&gt;await&lt;/span&gt; &lt;span class="nx"&gt;api&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;greet&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="dl"&gt;'&lt;/span&gt;&lt;span class="s1"&gt;World&lt;/span&gt;&lt;span class="dl"&gt;'&lt;/span&gt;&lt;span class="p"&gt;);&lt;/span&gt;
&lt;span class="c1"&gt;// TypeScript knows the return type too&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;No code generation step, no API client initialization, no URL configuration. Change a backend method signature and the frontend gets a compile error instantly. Locally it goes through an HTTP server; in production it reaches Lambda through API Gateway.&lt;/p&gt;

&lt;p&gt;The transport underneath is JSON-RPC 2.0. When you call a typed method, it is converted into a JSON-RPC request internally and delivered to the backend. The developer never assembles a payload by hand; the transport stays hidden behind the types.&lt;/p&gt;

&lt;h3&gt;
  
  
  Local-first = everything runs without an AWS account
&lt;/h3&gt;

&lt;p&gt;Run &lt;code&gt;npm run dev&lt;/code&gt; and the whole app starts locally. Blocks resolve to local implementations (an in-memory store, local auth, an embedded DB), running at &lt;code&gt;http://localhost:3000&lt;/code&gt; with hot reload. No AWS account, no internet connection, no cloud billing. Local data is persisted under &lt;code&gt;.bb-data/&lt;/code&gt; at the project root.&lt;/p&gt;

&lt;p&gt;The "embedded DB" here turns out to be PGlite (a WebAssembly build of PostgreSQL). Not only &lt;code&gt;Database&lt;/code&gt; but also &lt;code&gt;DistributedDatabase&lt;/code&gt;, which uses Aurora DSQL, falls back to PGlite locally. It works because DSQL is PostgreSQL-compatible, so a near-real Postgres comes up locally without an AWS account.&lt;/p&gt;

&lt;p&gt;When you want to check behavior against real cloud services, &lt;code&gt;npm run sandbox&lt;/code&gt; deploys to a fast, disposable environment using hot-swap to Lambda. The mocks are swapped for real AWS services (DynamoDB, Aurora, S3, Lambda, and so on), and once you are done you can tear it all down with &lt;code&gt;npm run sandbox:destroy&lt;/code&gt;. To ship to production, you run &lt;code&gt;npm run deploy&lt;/code&gt;. The same backend code runs in all three.&lt;/p&gt;

&lt;h3&gt;
  
  
  Direct CDK access = if Blocks isn't enough, write it yourself
&lt;/h3&gt;

&lt;p&gt;Every Blocks app is a CDK app. You can use arbitrary CDK constructs alongside Blocks, and you can embed Blocks into an existing CDK stack.&lt;/p&gt;

&lt;p&gt;When you want to add a resource Blocks doesn't provide (SNS, Step Functions, and the like) or set up a custom domain, you write &lt;code&gt;aws-blocks/index.cdk.ts&lt;/code&gt; and access CDK constructs directly. Normally the infrastructure is derived from the backend definition (&lt;code&gt;aws-blocks/index.ts&lt;/code&gt;), so you don't need to touch CDK directly. When you do need it, you just write CDK and can build as far as you like, beyond the edges of the framework. By design, it is structurally hard to get trapped and stuck inside the abstraction.&lt;/p&gt;

&lt;h3&gt;
  
  
  AGENTS.md bundled = agents write correct code from the start
&lt;/h3&gt;

&lt;p&gt;Blocks ships an agent-facing guide inside the npm package. Without adding a plugin, an AI coding agent is said to be steered toward writing correct code from the start.&lt;/p&gt;

&lt;p&gt;Its actual form turned out to be an &lt;code&gt;AGENTS.md&lt;/code&gt; placed in the project. Reading it, rather than carrying the full guide inline, it is a pointer to references. The detailed explanation, how to choose a Block, and how to use each Block live under &lt;code&gt;node_modules/@aws-blocks/blocks/&lt;/code&gt; in README.md, docs/index.md, and docs/.md, and it tells the agent to read those. Alongside, the Rules forbid anti-patterns: always use a Block for persistence (no local files, in-memory arrays, or local DBs), and don't assemble JSON-RPC payloads by hand.&lt;/p&gt;

&lt;p&gt;Rather than pouring everything into the agent's context, you have it read only the docs it needs when it needs them. This pointer approach is sound as a design for agent-facing docs, and it is worth noting that an official AWS framework ships with it.&lt;/p&gt;

&lt;h2&gt;
  
  
  How it differs from Amplify and App Studio
&lt;/h2&gt;

&lt;p&gt;Let me line up what we have covered against Amplify Gen2 and App Studio.&lt;/p&gt;

&lt;p&gt;Amplify Gen2 is a development platform where you describe data models, business logic, and authn/authz in TypeScript and the appropriate cloud resources are auto-provisioned. It is built on CDK internally and offers categories like Data, Auth, Storage, and Functions out of the box. Per-developer cloud sandboxes, shared environments mapped one-to-one to Git branches, and the Amplify Console that bundles hosting and CI/CD are its hallmarks.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://docs.amplify.aws/react/how-amplify-works/concepts/" rel="noopener noreferrer"&gt;https://docs.amplify.aws/react/how-amplify-works/concepts/&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;App Studio sits on the low-code side, letting non-developers and beginners with little coding experience design and build apps. Where Amplify Gen2 and Blocks target developers, App Studio aims at a fundamentally different audience. I have organized the product details in the write-up I mentioned at the top.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://zenn.dev/ikenyal/articles/c2c3ccf9fdd0cf" rel="noopener noreferrer"&gt;https://zenn.dev/ikenyal/articles/c2c3ccf9fdd0cf&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Lined up by aspect:&lt;/p&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Aspect&lt;/th&gt;
&lt;th&gt;App Studio&lt;/th&gt;
&lt;th&gt;Amplify Gen2&lt;/th&gt;
&lt;th&gt;AWS Blocks&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;Primary audience&lt;/td&gt;
&lt;td&gt;non-developers&lt;/td&gt;
&lt;td&gt;frontend developers&lt;/td&gt;
&lt;td&gt;developers who also write backends&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;How infrastructure is handled&lt;/td&gt;
&lt;td&gt;fully hidden&lt;/td&gt;
&lt;td&gt;abstracted by category&lt;/td&gt;
&lt;td&gt;derived from code (IFC)&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Local development&lt;/td&gt;
&lt;td&gt;cloud-first&lt;/td&gt;
&lt;td&gt;per-developer cloud environment&lt;/td&gt;
&lt;td&gt;fully local, no AWS account&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Hosting / CI-CD&lt;/td&gt;
&lt;td&gt;built in&lt;/td&gt;
&lt;td&gt;bundled in the Amplify Console&lt;/td&gt;
&lt;td&gt;Hosting is one Block, CI/CD is your own&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;How types flow&lt;/td&gt;
&lt;td&gt;types aren't a concern&lt;/td&gt;
&lt;td&gt;schema-driven Data types&lt;/td&gt;
&lt;td&gt;type-safe RPC, no generation&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Distance from CDK&lt;/td&gt;
&lt;td&gt;far&lt;/td&gt;
&lt;td&gt;used for extensions when needed&lt;/td&gt;
&lt;td&gt;a CDK app from the start, write CDK directly&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;AI coding agents&lt;/td&gt;
&lt;td&gt;out of scope&lt;/td&gt;
&lt;td&gt;little explicit support&lt;/td&gt;
&lt;td&gt;bundled AGENTS.md as a premise&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;p&gt;A shared obsession with iteration speed shows up too. Amplify Gen2 advertises up to 8x faster iteration than Gen1, speeding up cloud-side reflection via hot-swap to per-developer sandboxes. Blocks, on the other hand, completes locally, so in many cases there is no round trip to the cloud at all. The direction of "faster" differs, but the aim of shortening the write-then-check loop is shared.&lt;/p&gt;

&lt;h2&gt;
  
  
  What each one is aiming for
&lt;/h2&gt;

&lt;p&gt;Rather than feature diffs, let me put into words what the three are trying to achieve.&lt;/p&gt;

&lt;p&gt;What App Studio aims for is delivering apps to people who don't write code. Its abstraction is the highest, and it minimizes the developer's involvement the most.&lt;/p&gt;

&lt;p&gt;What Amplify aims for is freeing frontend developers from infrastructure. Even though Gen2 was rebuilt on CDK, what developers face day to day are categories like Data, Auth, and Storage, and that managed mass covers up the infrastructure underneath. It takes care of hosting and CI/CD together, freeing developers from stitching individual AWS services by hand. The key is to hide.&lt;/p&gt;

&lt;p&gt;What Blocks aims for looks a little different. The entry point of making infrastructure tools unnecessary to learn is similar to Amplify, but its means leans toward making things transparent with code and types rather than hiding them. Infrastructure grows from the app's code, the same code runs both locally and in the cloud, and you can write CDK directly when needed. Rather than ease through concealment, it aims for reassurance through transparency and the absence of a ceiling.&lt;/p&gt;

&lt;p&gt;In short, Amplify reaches the shared goal of making frontend developers' lives easier by keeping infrastructure out of mind, while Blocks does it by letting you stay aware of infrastructure without requiring you to. They take two routes to the same place. The former thickens the wall of abstraction; the latter makes it thin and transparent.&lt;/p&gt;

&lt;p&gt;And Blocks carries one more premise that is distinctive of 2026. It takes for granted that AI agents write code, and the framework itself carries the correct way to write from the start. This is a design that lowers not only the cost of humans learning but the cost of agents making mistakes, and its starting point looks different from Amplify's design philosophy.&lt;/p&gt;

&lt;h2&gt;
  
  
  Where is Amplify headed
&lt;/h2&gt;

&lt;p&gt;What follows is interpretation, not fact. I write it on the premise that none of it is certain.&lt;/p&gt;

&lt;p&gt;The official docs explicitly call the relationship between Blocks and Amplify complementary. Amplify provides hosting, CI/CD, and a managed backend experience; Blocks focuses on type-safe infrastructure-from-code and local-first development.&lt;/p&gt;

&lt;p&gt;Still, the overlap is not small. Amplify Gen2 also defines backends code-first in TypeScript, on top of CDK. Blocks' IFC layer and Amplify Gen2's backend definition are both a "write your backend in TypeScript" experience standing on CDK, so they sit close in philosophy.&lt;/p&gt;

&lt;p&gt;The closeness shows on the implementation side too. Blocks' project-creation CLI auto-detects an existing Amplify Gen2 project and integrates with it, and there is even a dedicated &lt;code&gt;amplify&lt;/code&gt; template. Adding Blocks to an Amplify Gen2 backend is an entry path assumed from the start. The complementary relationship is not just a line in the docs; it is implemented as tool behavior.&lt;/p&gt;

&lt;p&gt;One possibility I read from this: Amplify shifts its center of gravity toward the hosting and managed-experience layer, while Blocks takes the composable-backend-parts and local-development layer. In fact, Hosting in Blocks is treated as one part bundling CloudFront, S3, and even WAF, and the integrated hosting and CI/CD experience remains a strength on Amplify's side.&lt;/p&gt;

&lt;p&gt;What matters is that this doesn't necessarily mean Amplify is shrinking. It reads more naturally as AWS deliberately keeping multiple entry points into full-stack development. App Studio for non-developers, Amplify for those who want a managed experience, Blocks for those who want to command infrastructure with code and types. Rather than converging on a single right answer, it looks like a strategy of preparing a different door for each developer's stance.&lt;/p&gt;

&lt;h2&gt;
  
  
  Closing
&lt;/h2&gt;

&lt;p&gt;AWS Blocks turned out to be not a replacement for Amplify but one more entry point into full-stack development. Amplify, which makes things easy by hiding; Blocks, which makes things transparent and hands you the controls. Which you choose is also a statement of how you want to relate to infrastructure.&lt;/p&gt;

&lt;p&gt;AWS is not converging on a single answer. When the doors multiply, the question isn't which tool is better, but which kind of developer you want to be.&lt;/p&gt;

</description>
      <category>aws</category>
      <category>typescript</category>
      <category>amplify</category>
      <category>cdk</category>
    </item>
    <item>
      <title>S3 annotations and the question of where object metadata should live</title>
      <dc:creator>Kento IKEDA</dc:creator>
      <pubDate>Thu, 18 Jun 2026 23:59:16 +0000</pubDate>
      <link>https://dev.to/aws-builders/s3-annotations-and-the-question-of-where-object-metadata-should-live-44h3</link>
      <guid>https://dev.to/aws-builders/s3-annotations-and-the-question-of-where-object-metadata-should-live-44h3</guid>
      <description>&lt;p&gt;On June 17, 2026, AWS Summit New York ran a long line of announcements that filled in the infrastructure for running agents in production. The official blog has the full roundup.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://aws.amazon.com/blogs/aws/top-announcements-of-the-aws-summit-in-new-york-2026/" rel="noopener noreferrer"&gt;https://aws.amazon.com/blogs/aws/top-announcements-of-the-aws-summit-in-new-york-2026/&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;One of them reads as plain from the headline alone: S3 annotations. You can attach up to 1 GB of information directly to an object, so the first impression is "tags just got bigger."&lt;/p&gt;

&lt;p&gt;Reading it as a capacity story misses the point. This changes a decision: where the information attached to an S3 object should live. For a long time, the answer was usually "outside the object." You kept it in an external database or a sidecar file and reconciled the two with a sync process. S3 annotations add another option to that answer: don't move it out. If you have kept data in S3 while managing its metadata off to the side, you know the cost of keeping the two in sync.&lt;/p&gt;

&lt;p&gt;The official announcement is here:&lt;br&gt;
&lt;a href="https://aws.amazon.com/blogs/aws/amazon-s3-annotations-attach-rich-queryable-context-directly-to-your-objects/" rel="noopener noreferrer"&gt;https://aws.amazon.com/blogs/aws/amazon-s3-annotations-attach-rich-queryable-context-directly-to-your-objects/&lt;/a&gt;&lt;/p&gt;

&lt;h2&gt;
  
  
  The difference is character, not capacity
&lt;/h2&gt;

&lt;p&gt;Line up annotations against the existing ways to describe an object, and what matters is the difference in character, not the numbers.&lt;/p&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Mechanism&lt;/th&gt;
&lt;th&gt;How much&lt;/th&gt;
&lt;th&gt;Mutable&lt;/th&gt;
&lt;th&gt;Character&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;System-defined metadata&lt;/td&gt;
&lt;td&gt;Fixed fields&lt;/td&gt;
&lt;td&gt;No&lt;/td&gt;
&lt;td&gt;Intrinsic properties of the object&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;User-defined metadata&lt;/td&gt;
&lt;td&gt;2 KB total, set at upload&lt;/td&gt;
&lt;td&gt;Effectively no&lt;/td&gt;
&lt;td&gt;Small incidental notes&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Object tags&lt;/td&gt;
&lt;td&gt;Up to 10&lt;/td&gt;
&lt;td&gt;Yes&lt;/td&gt;
&lt;td&gt;Labels for access control and lifecycle&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;annotations&lt;/td&gt;
&lt;td&gt;Up to 1,000, 1 GB total&lt;/td&gt;
&lt;td&gt;Yes, without rewriting&lt;/td&gt;
&lt;td&gt;Structured knowledge that grows over time&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;p&gt;The counts and sizes come from the official blog. The clear gap is in the bottom two rows. Tags are key-and-value labels, meant for access control and cost allocation. annotations carry structure in JSON or YAML, and you can rewrite them as often as you like without rewriting the object. They travel with the object on copy and replication, and they are removed when the object is deleted.&lt;/p&gt;

&lt;p&gt;A different character means a different job. Tags describe how to handle an object. annotations hold what the object is and what is known about it, the kind of knowledge that accumulates after the fact: an AI-generated summary, an inference confidence score, processing history. That information does not fit in 2 KB, and you want to update it as the data changes. Until now, meeting that requirement meant moving the context outside the object.&lt;/p&gt;

&lt;h2&gt;
  
  
  What AWS says, and one step past it
&lt;/h2&gt;

&lt;p&gt;The official blog describes annotations as removing the need for a separate metadata system. It is true that the pattern of double-writing to DynamoDB for cross-object search, syncing with Lambda, and watching for drift can be retired for some use cases. The annotations you attach flow through S3 Metadata into Apache Iceberg tables and become queryable from Amazon Athena.&lt;/p&gt;

&lt;p&gt;But stopping at "you no longer need an external database" only repeats what AWS already said. The part worth pressing on is what else moves along with the location. When the context lived outside the object, who could touch it was decided directly by the access control on that external database. Once it sits on the object, you have to redesign who is allowed to change which context. Adding and reading annotations requires the IAM actions &lt;code&gt;s3:PutObjectAnnotation&lt;/code&gt; and &lt;code&gt;s3:GetObjectAnnotation&lt;/code&gt;. Coupling context tightly to data is the benefit. It also means tampering with the context turns directly into a misreading of the data.&lt;/p&gt;

&lt;p&gt;The other thing that moves is responsibility for structure. Key-and-value tags left almost no room for design, but being able to hold structure means you have to decide which key represents what and at what granularity to split things. If an agent is meant to read it, that decision drives search quality. Dump everything in, and you end up with annotations that are useless in a later cross-object query. The freedom of capacity arrives bundled with the responsibility of design.&lt;/p&gt;

&lt;h2&gt;
  
  
  How much of your sync layer can you actually retire
&lt;/h2&gt;

&lt;p&gt;"Then move everything to annotations" does not follow. There is a line on what you can move over.&lt;/p&gt;

&lt;p&gt;In a verification by Classmethod, the Annotation Table took about 25 minutes to become active even in a small environment. That is a third-party measurement, but it lines up with the spec: reflection into the table is asynchronous. What you attach is not reflected into cross-object search the instant you write it.&lt;br&gt;
&lt;a href="https://dev.classmethod.jp/articles/s3-annotations-crud-athena-search/" rel="noopener noreferrer"&gt;https://dev.classmethod.jp/articles/s3-annotations-crud-athena-search/&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;The plain conclusion is about fit with low-latency reads. Information you want to pull in milliseconds on every screen render, or that needs a secondary-index lookup, still fits the older DynamoDB design better. Context that gets updated later but does not need immediacy, such as compliance status, history, or summaries, leans toward annotations. What you retire is part of the sync layer, not all of it.&lt;/p&gt;

&lt;p&gt;Cost does not move in one direction either. You can let go of the sync layer that watches for drift, but storing and reading annotations is billed at the same rates as S3 Standard storage and requests, and the S3 Metadata and Annotation Tables behind cross-object search carry their own processing and storage charges. You weigh the cost you remove against the cost you add. The pricing page has the breakdown.&lt;br&gt;
&lt;a href="https://aws.amazon.com/s3/pricing/" rel="noopener noreferrer"&gt;https://aws.amazon.com/s3/pricing/&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Region coverage differs too. Per the official blog, attaching an annotation works in nearly all Regions, while the Annotation Table used for cross-object search is limited to Regions where S3 Metadata is available. S3 Metadata coverage has been expanding in waves.&lt;br&gt;
&lt;a href="https://aws.amazon.com/about-aws/whats-new/2025/11/amazon-s3-metadata-expands-22-regions/" rel="noopener noreferrer"&gt;https://aws.amazon.com/about-aws/whats-new/2025/11/amazon-s3-metadata-expands-22-regions/&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Coverage and per-feature availability change, so the documentation is the reliable place to check the current state.&lt;br&gt;
&lt;a href="https://docs.aws.amazon.com/AmazonS3/latest/userguide/annotations-overview.html" rel="noopener noreferrer"&gt;https://docs.aws.amazon.com/AmazonS3/latest/userguide/annotations-overview.html&lt;/a&gt;&lt;/p&gt;

&lt;h2&gt;
  
  
  Is an agent a precondition
&lt;/h2&gt;

&lt;p&gt;annotations are designed for agents, and the official explanation is written with that in mind. It is tempting to read "I don't run AI agents, so this isn't for me" and skip the rest, but hold off for a moment.&lt;/p&gt;

&lt;p&gt;Agents or not, if you operate sidecar files or an external metadata database today, the shift in location is where the benefit shows up. What annotations really are is an improvement to metadata management itself: structured context attached close to the object, queryable across objects. Natural-language search can be added later through the S3 Tables MCP server, so retiring the sync layer first is a fine way in. The agent is a possible first reader of the context you place, not a precondition.&lt;/p&gt;

&lt;h2&gt;
  
  
  From object-level to organization-level context
&lt;/h2&gt;

&lt;p&gt;Widen the view, and annotations look less like a standalone feature and more like part of a movement. At the same Summit, AWS previewed AWS Context, which maps the data relationships across an organization into a knowledge graph. Its availability is stated as forthcoming.&lt;br&gt;
&lt;a href="https://aws.amazon.com/blogs/machine-learning/context-intelligence-for-your-data-and-ai-agents-at-scale/" rel="noopener noreferrer"&gt;https://aws.amazon.com/blogs/machine-learning/context-intelligence-for-your-data-and-ai-agents-at-scale/&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;If S3 annotations are context at the object level, AWS Context is context at the organization level. Both are designed to surface in Apache Iceberg format in S3, so they read as continuous. The movement is from each team holding its own context for RAG toward a shared context layer with managed access for the whole organization. annotations cover the lowest layer of that, the part where context is attached close to the object.&lt;/p&gt;

&lt;h2&gt;
  
  
  Where to start
&lt;/h2&gt;

&lt;p&gt;The first step is an inventory of the context you currently hold in external databases or sidecars. Pull out the context described above, the kind that gets updated later but does not need immediacy, and make it a candidate for annotations. For schema, deciding a handful of keys you want an agent to read on a single bucket is enough to begin. As long as you hold the premise that responsibility for structure is now yours, you lower the odds of getting stuck in a later cross-object query.&lt;/p&gt;

&lt;p&gt;For a long time, keeping context outside the object was simply the premise. There is meaning in being able to question that premise at all. This is not a story about more capacity. It is a story about who is responsible for the context, and that answer has come back to the side of the object.&lt;/p&gt;

</description>
      <category>aws</category>
      <category>s3</category>
      <category>ai</category>
      <category>metadata</category>
    </item>
    <item>
      <title>Your Claude automation starts metering today (June 15). A quick checklist to avoid surprise charges</title>
      <dc:creator>Kento IKEDA</dc:creator>
      <pubDate>Sun, 14 Jun 2026 23:00:00 +0000</pubDate>
      <link>https://dev.to/aws-builders/your-claude-automation-starts-metering-today-june-15-a-quick-checklist-to-avoid-surprise-charges-3c3k</link>
      <guid>https://dev.to/aws-builders/your-claude-automation-starts-metering-today-june-15-a-quick-checklist-to-avoid-surprise-charges-3c3k</guid>
      <description>&lt;blockquote&gt;
&lt;p&gt;&lt;strong&gt;Update (June 16, 2026):&lt;/strong&gt; After this article was published, Anthropic emailed eligible users to say it is not making this change, which had been set for June 15. For now, Agent SDK and &lt;code&gt;claude -p&lt;/code&gt; usage continues to work with your subscription exactly as before, and there is no credit to claim. Subscription usage limits are unchanged. Anthropic says it will give advance notice before any future change takes effect.&lt;/p&gt;

&lt;p&gt;So the "conversation vs automation" split described below is postponed for now. Whether the direction itself is withdrawn, or will return on a revised plan and timeline, is not clear from the current notice. The body below remains as an explanation of what was originally announced. Note that the official help page had not been updated at the time of writing and still shows the June 15 date.&lt;/p&gt;
&lt;/blockquote&gt;

&lt;p&gt;A change to Claude's paid plans takes effect today, June 15, 2026. Your monthly fee is not going up. What changes is that usage which used to come out of a single pool splits into two: the part where a person is in a conversation, and the part where a program runs on its own. The details are in Anthropic's help center, and every number and scope in this post comes from that page.&lt;/p&gt;

&lt;blockquote&gt;
&lt;p&gt;Starting June 15, 2026, Claude Agent SDK and &lt;code&gt;claude -p&lt;/code&gt; usage no longer counts toward your Claude plan's usage limits. Your subscription usage limits stay the same and stay reserved for interactive use of Claude Code, Claude Cowork, and Claude.&lt;/p&gt;
&lt;/blockquote&gt;

&lt;p&gt;&lt;a href="https://support.claude.com/en/articles/15036540-use-the-claude-agent-sdk-with-your-claude-plan" rel="noopener noreferrer"&gt;https://support.claude.com/en/articles/15036540-use-the-claude-agent-sdk-with-your-claude-plan&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;The side that gets affected is the second one. If you have been running automation inside your subscription plan, part of that usage leaves the flat-rate pool today and starts metering. To be precise, what you spend beyond a newly granted monthly credit either bills at standard API rates or stops. If you only chat through the app or the terminal, nothing changes for you.&lt;/p&gt;

&lt;p&gt;The first thing to get right is which of your own usage is in scope. Get this wrong and you risk either stopping automation you wanted to keep running, or triggering charges you did not expect. This post gives you a checklist to avoid surprise charges as a same-day fix, then connects it to the larger question of how to design your automation from here.&lt;/p&gt;

&lt;h2&gt;
  
  
  What is changing
&lt;/h2&gt;

&lt;p&gt;There is one line to draw: is a person typing and waiting for a response, or is a program calling Claude on their behalf? The former keeps using your subscription usage limits exactly as before. The latter is what the new monthly credit covers.&lt;/p&gt;

&lt;p&gt;Here is the official breakdown.&lt;/p&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;How you use it&lt;/th&gt;
&lt;th&gt;What happens from June 15&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;Claude conversations on web, desktop, or mobile apps&lt;/td&gt;
&lt;td&gt;Stays on subscription. No change&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Interactive Claude Code in the terminal or IDE&lt;/td&gt;
&lt;td&gt;Stays on subscription. No change&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Claude Cowork&lt;/td&gt;
&lt;td&gt;Stays on subscription. No change&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;
&lt;code&gt;claude -p&lt;/code&gt; (non-interactive mode)&lt;/td&gt;
&lt;td&gt;Moves to the monthly credit&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Claude Agent SDK (Python or TypeScript)&lt;/td&gt;
&lt;td&gt;Moves to the monthly credit&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Claude Code GitHub Actions integration&lt;/td&gt;
&lt;td&gt;Moves to the monthly credit&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Third-party apps that authenticate through the Agent SDK&lt;/td&gt;
&lt;td&gt;Moves to the monthly credit&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;p&gt;If you open the app and chat, or type into Claude Code in the terminal and wait for replies, June 15 looks the same as before. Those keep drawing from your subscription usage limits and never touch the new credit. If that is you, there is nothing to do today.&lt;/p&gt;

&lt;p&gt;The dividing line is whether you operate Claude by hand or have code operate it for you. Running &lt;code&gt;claude -p&lt;/code&gt; from a shell script or cron, having a homegrown app built on the Agent SDK, wiring Claude Code into a GitHub Actions CI step. If any of these sound familiar, the checklist below is for you.&lt;/p&gt;

&lt;h2&gt;
  
  
  Why it split into two
&lt;/h2&gt;

&lt;p&gt;Before the checklist, the background helps you make the call. Note that Anthropic has not stated the reason outright; what follows is my reading of what the announcement implies.&lt;/p&gt;

&lt;p&gt;The flat-rate subscription pool let programmatic use, which should run on metered API pricing, run far more cheaply than it otherwise would. Unlike a conversation, automation is not bound by human typing speed. A script or an agent fires requests back to back without pausing, so token consumption climbs even within the same monthly fee. The flat pool absorbed that non-stop consumption. Run the same work through metered API pricing instead, and the gap widens the longer it runs.&lt;/p&gt;

&lt;p&gt;In other words, the flat-rate plan was effectively subsidizing the cost of automation. Conversation has a natural ceiling because the human pauses; automation has no such brake. Keep both in the same pool, and the heaviest automation users get the biggest discount, while the gap between cost and price keeps growing.&lt;/p&gt;

&lt;p&gt;Read the split as ending that subsidy and it makes sense. The conversational part stays inside the flat rate; the part where code runs on its own moves toward metering that tracks real cost. Conversation and automation went into separate wallets because their cost structures were different to begin with. It is less a price hike than a separation of things that had been mixed together.&lt;/p&gt;

&lt;p&gt;This reading carries into the decisions later in the post. Automation is no longer an extra bundled into a flat rate; it has become something you design with cost in mind.&lt;/p&gt;

&lt;h2&gt;
  
  
  A checklist to avoid surprise charges
&lt;/h2&gt;

&lt;p&gt;To sort out whether you are in scope and to avoid surprise charges or unexpected stops, here is what to check today. Go through it in order and you will know which side you are on and what to set.&lt;/p&gt;

&lt;p&gt;First, check whether your day-to-day use is interactive or non-interactive. Chatting on the app or web, typing into Claude Code in the terminal or IDE and waiting for a reply, Claude Cowork. If that is all, you are out of scope and the rest is unnecessary. Most people stop here.&lt;/p&gt;

&lt;p&gt;Second, find every place that runs on its own. Are you calling &lt;code&gt;claude -p&lt;/code&gt; from cron or a shell script? Is there a homegrown script or app (Python or TypeScript) built on the Agent SDK? Is Claude Code wired into CI, GitHub Actions in particular? All of these are in scope. The ones running quietly in the background are the easiest to miss, so it is worth opening your job definitions, crontab, and repository workflows once to check.&lt;/p&gt;

&lt;p&gt;Third, check the authentication path of any third-party tools. If an editor extension or an external agent tool is linked to your Claude account and authenticates through the Agent SDK on your subscription, it is in scope. Even if you never wrote &lt;code&gt;claude -p&lt;/code&gt; yourself, a tool making non-interactive calls behind the scenes counts.&lt;/p&gt;

&lt;p&gt;Fourth, check whether those authenticate via subscription or an API key. Automation that already authenticates with a Claude Platform API key is out of scope for this change. Pay-as-you-go billing continues, unaffected by the monthly credit. This is the final fork for whether you are in scope.&lt;/p&gt;

&lt;p&gt;If you only use it interactively, there is nothing to do today. Only if you fall into automation, third-party tools, or the Agent SDK, and you are running on subscription authentication, do you move on to the next step.&lt;/p&gt;

&lt;h2&gt;
  
  
  If you are affected, what to do
&lt;/h2&gt;

&lt;p&gt;What you do divides into two stages on a time axis: the same-day fix you finish today, and the deeper rework you take your time over. The first keeps automation from stopping, but it is a stopgap; the real solution is in the second.&lt;/p&gt;

&lt;h3&gt;
  
  
  Quick fix: claim the credit and decide how it stops
&lt;/h3&gt;

&lt;p&gt;Eligible plans get a monthly credit. Officially it is called the "Agent SDK credit," but it is not limited to people writing the SDK directly. The &lt;code&gt;claude -p&lt;/code&gt; calls in cron or CI, the GitHub Actions integration, and the third-party tools you checked above all draw from this same credit. Even if you never touch the SDK, if something runs Claude non-interactively, you are in scope. The credit equals your plan's monthly fee.&lt;/p&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Plan&lt;/th&gt;
&lt;th&gt;Monthly credit&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;Pro&lt;/td&gt;
&lt;td&gt;$20&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Max 5x&lt;/td&gt;
&lt;td&gt;$100&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Max 20x&lt;/td&gt;
&lt;td&gt;$200&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Team (Standard)&lt;/td&gt;
&lt;td&gt;$20&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Team (Premium)&lt;/td&gt;
&lt;td&gt;$100&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Enterprise (usage-based)&lt;/td&gt;
&lt;td&gt;$20&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Enterprise (seat-based Premium)&lt;/td&gt;
&lt;td&gt;$200&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Enterprise (seat-based Standard)&lt;/td&gt;
&lt;td&gt;$0&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;p&gt;On seat-based Enterprise plans, Premium seats are eligible but Standard seats are not. You claim the credit once through your account (a one-time opt-in), and it refreshes automatically each billing cycle after that. From June 15, eligible users are said to receive an email with claim instructions.&lt;/p&gt;

&lt;p&gt;Here the path forks. If you plan to keep using automation, the first move is to not miss that email and claim the credit. If instead you would rather avoid being charged for automation, or you are fine letting it stop, there is no rush to claim. It starts with deciding whether you will keep running automation at all.&lt;/p&gt;

&lt;p&gt;Next, decide what happens once the credit runs out. Agent SDK usage draws from this credit first, and what happens beyond it depends on a setting. With "Extra Usage" enabled, the overage bills at standard API rates and automation keeps running. Without it, requests stop the moment the credit is exhausted and stay stopped until it refreshes.&lt;/p&gt;

&lt;p&gt;For a production workflow you cannot afford to stop, enabling extra usage to keep it running is the safer choice, though it leaves room for an unexpectedly large bill. For experimental automation that can stop without hurting, you might deliberately leave it off and let the credit act as a spending ceiling that is never crossed. You weigh "how bad is it if it stops" against "how scared am I of surprise charges."&lt;/p&gt;

&lt;p&gt;While you are at it, note the credit's constraints. It is granted per user and cannot be pooled or shared across a team. It resets monthly and unused credit does not roll over. If your team runs automation, the idea of "everyone drawing from one person's credit" does not work, and that is worth keeping in mind.&lt;/p&gt;

&lt;h3&gt;
  
  
  Deeper rework: choose the authentication path as a design decision
&lt;/h3&gt;

&lt;p&gt;The quick fix was about getting by within the credit you are given. The deeper rework is reconsidering, from the ground up, which authentication path your automation rides on.&lt;/p&gt;

&lt;p&gt;Anthropic positions the monthly credit as "sized for individual experimentation and automation." Read the other way, shared production automation is not expected to fit within the credit. In fact, Anthropic points teams running production automation to a Claude Platform API key. API-key usage is out of scope for this change: pay-as-you-go continues and no monthly credit is granted.&lt;/p&gt;

&lt;p&gt;This is where the earlier "automation is no longer an extra" reading pays off. When you build automation, which path you put it on, subscription auth or API-key auth, has become a design decision that shapes both cost structure and behavior at the limit.&lt;/p&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Auth path&lt;/th&gt;
&lt;th&gt;How cost reads&lt;/th&gt;
&lt;th&gt;When you hit the limit&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;Subscription auth (Agent SDK credit)&lt;/td&gt;
&lt;td&gt;Monthly credit equal to your plan fee, resets monthly&lt;/td&gt;
&lt;td&gt;Stops if extra usage is off, continues at standard API rates if on&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;API-key auth (Claude Platform)&lt;/td&gt;
&lt;td&gt;Consumed pay-as-you-go from prepaid credit balance&lt;/td&gt;
&lt;td&gt;Stops when the balance runs out, can continue via auto-reload&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;p&gt;For light experiments or personal helper automation, the subscription credit covers it. The way it stops when the credit runs out works as a spending ceiling you never cross. For production automation that hurts when it stops, or workflows shared across a team, API-key auth is easier to handle: consumption shows up directly as billing so it reads cleanly, and you can manage the balance with auto-reload and usage alerts. Both stop when the balance runs out, but subscription auth is a flat pool tied to your plan fee, while the API key is a balance you fund yourself. To run something steadily in production, the API key, whose ceiling is not pinned to your plan fee, gives more operational freedom.&lt;/p&gt;

&lt;h2&gt;
  
  
  Objections worth raising
&lt;/h2&gt;

&lt;p&gt;A few objections come to mind against the picture above. Let me raise them and answer each.&lt;/p&gt;

&lt;h3&gt;
  
  
  Objection 1: Just put everything on an API key
&lt;/h3&gt;

&lt;blockquote&gt;
&lt;p&gt;So why not put everything on an API key and stop worrying about two wallets?&lt;/p&gt;
&lt;/blockquote&gt;

&lt;p&gt;There is something to this. Unify on an API key and conversation and automation both run on the same pay-as-you-go billing, with no need to watch a subscription credit and an API balance separately. But for conversation, moving to an API key tends to cost more. The subscription is designed so that, within your usage limits, conversation runs flat-rate and effectively unlimited. Move that to metered API pricing and every single conversational turn that used to be covered by your monthly fee turns into per-token billing. Keep conversation on the subscription's flat rate and split only the heavy automation onto an API key. That is the realistic landing point.&lt;/p&gt;

&lt;h3&gt;
  
  
  Objection 2: My automation is light, so it fits
&lt;/h3&gt;

&lt;blockquote&gt;
&lt;p&gt;My automation is light, so it fits within the credit I am granted, right?&lt;/p&gt;
&lt;/blockquote&gt;

&lt;p&gt;In many cases, yes. If you only run a script now and then, the granted credit is enough. The problem is estimating "it probably fits" without knowing your own consumption. If you keep an agent running constantly or call it often in CI, you can use up the credit faster than expected. Even when the judgment that it fits turns out right, it is safer to confirm the basis once. Take the run frequency you found in the checklist and reconcile it against actual consumption on the billing screen after the change takes effect.&lt;/p&gt;

&lt;h3&gt;
  
  
  Objection 3: It is a price hike in the end
&lt;/h3&gt;

&lt;blockquote&gt;
&lt;p&gt;Whatever you call it, is this not a price hike in the end?&lt;/p&gt;
&lt;/blockquote&gt;

&lt;p&gt;For users who ran heavy automation on the flat-rate pool, it is indeed a real increase in burden, because the part that was cheap moves closer to real cost. But this is closer to correcting a distortion than an unreasonable hike. Until now the flat-rate subscription subsidized the cost of automation, and the heavier the user, the larger the benefit. The split moves things toward how they arguably should be: conversation flat, automation at real cost. Conversation-centric users see no change in usage limits or feel; the ones affected are limited to the layer that had been benefiting most. It is not an across-the-board hike but the removal of a subsidy that had been riding along.&lt;/p&gt;

&lt;h2&gt;
  
  
  A good moment to revisit your automation design
&lt;/h2&gt;

&lt;p&gt;Once the checking and the fix are done, what remains is a design question. This change is a good moment to revisit how you design your automation.&lt;/p&gt;

&lt;p&gt;Even before this, there was a split in practice: API keys for automation built into production systems, subscription-authenticated Claude Code for scripts at hand. But as long as you ran on subscription auth, that choice never showed up in cost, because the flat pool absorbed it. From June 15, the choice of path feeds straight into cost and availability.&lt;/p&gt;

&lt;p&gt;The more you build and run your own agents, the bigger the impact. There are three axes to judge by.&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Does it hurt if it stops&lt;/li&gt;
&lt;li&gt;Do you need consumption to be readable&lt;/li&gt;
&lt;li&gt;Is it shared across a team&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Against these three, you sort which workflows stay on the subscription credit and which move to an API key. Light experiments that can stop use the credit as a spending ceiling; production or shared workflows you cannot stop go on an API key where consumption reads cleanly. The change is a good occasion to inventory your automation once.&lt;/p&gt;

&lt;p&gt;Put plainly, the era of treating automation as something that "just runs, loosely, inside a flat rate" ends here. Until now, running an agent left its cost dissolved into the flat rate, out of sight. From here, cost follows automation everywhere. Since it costs more the more it runs, you will weigh, from the design stage, whether a given automation earns its cost.&lt;/p&gt;

&lt;p&gt;The same-day fix is simple. Check whether you are affected, and if so, claim the credit and decide how it stops. That is all. What remains beyond it is the homework of how to watch the cost and value of your automation. The cost of automation, which had been hidden inside the flat rate, has come into the open. That, I think, is the real substance of this change.&lt;/p&gt;

</description>
      <category>claude</category>
      <category>ai</category>
      <category>devops</category>
      <category>anthropic</category>
    </item>
    <item>
      <title>Datadog and AWS Shipped Ops Agents on the Same Day. What Are They Fighting Over?</title>
      <dc:creator>Kento IKEDA</dc:creator>
      <pubDate>Fri, 12 Jun 2026 00:34:47 +0000</pubDate>
      <link>https://dev.to/aws-builders/datadog-and-aws-shipped-ops-agents-on-the-same-day-what-are-they-fighting-over-29p6</link>
      <guid>https://dev.to/aws-builders/datadog-and-aws-shipped-ops-agents-on-the-same-day-what-are-they-fighting-over-29p6</guid>
      <description>&lt;p&gt;On June 9, 2026 (US time), two big announcements landed on the same day.&lt;/p&gt;

&lt;p&gt;At the keynote of Datadog's annual event DASH 2026 in New York, the Bits AI family expanded significantly: Detection, Investigation, Remediation, Infrastructure, Code, Release, Testing, Data Analysis, Chat, Memories, and Evals. Counting by agent, that is more than ten, with over 100 new features announced together. The full picture is laid out in the keynote roundup.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://www.datadoghq.com/blog/dash-2026-new-feature-roundup-keynote/" rel="noopener noreferrer"&gt;https://www.datadoghq.com/blog/dash-2026-new-feature-roundup-keynote/&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;The same day, AWS announced FinOps Agent as a public preview. It bundles four data sources, Cost Explorer, Cost Anomaly Detection, Cost Optimization Hub, and Compute Optimizer, and delivers automated cost-anomaly investigation, natural-language cost questions, periodic cost reports, and aggregated optimization opportunities straight into Slack and Jira. The details are in the AWS blog.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://aws.amazon.com/blogs/aws-cloud-financial-management/aws-finops-agent-is-now-public-preview/" rel="noopener noreferrer"&gt;https://aws.amazon.com/blogs/aws-cloud-financial-management/aws-finops-agent-is-now-public-preview/&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;AWS DevOps Agent had already gone GA in March, handling incident response. With FinOps Agent now added, AWS-built standard agents line up across the main operational domains. That said, DevOps Agent also covers multicloud and on-premises environments, so its scope differs from FinOps Agent, which targets AWS cost data.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://aws.amazon.com/blogs/mt/announcing-general-availability-of-aws-devops-agent/" rel="noopener noreferrer"&gt;https://aws.amazon.com/blogs/mt/announcing-general-availability-of-aws-devops-agent/&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;On the surface, this looks like two separate stories: Datadog the monitoring platform, AWS the cloud provider. But read the two announcements side by side, and you see both reaching for the same territory, Ops, through different entrances. Line up their features and most of them overlap, so a surface spec comparison won't show the difference. This article sorts out the same-day releases by the two companies' positioning, asks what these very similar agent lineups are actually fighting over, and goes as far as the axes for telling them apart and the predictions that follow.&lt;/p&gt;

&lt;p&gt;This is written for people working in SRE, FinOps, and Platform Engineering.&lt;/p&gt;

&lt;h2&gt;
  
  
  Why the "Ops Agent" Category Is Taking Shape Now
&lt;/h2&gt;

&lt;p&gt;FinOps, DevOps, and SRE go by different names, but they share the same structural problem: the round-trip cost between the operator who notices an anomaly and the developer who actually fixes it.&lt;/p&gt;

&lt;p&gt;Concretely, this kind of flow happens every day. Take cost management. Cost Anomaly Detection raises an alert about a cost anomaly. Someone opens a dashboard and looks at the per-service breakdown. They isolate whether the spike came from EC2 or RDS, open CloudTrail, and cross-check who deployed what. They confirm with stakeholders on Slack, then open the repository to find the relevant IaC code. By this point you have moved back and forth across many screens and tools. Writing the fix and opening a PR comes after all that.&lt;/p&gt;

&lt;p&gt;Incident response follows the same flow. An alert fires, you open a dashboard, read logs, follow APM traces, pull stakeholders into Slack, and apply a fix. It is a chain of context switches, and it wears you down even more when the response runs into the middle of the night.&lt;/p&gt;

&lt;p&gt;What changed over the past year or so is that LLM accuracy reached a level where it can take on this interpretation-and-round-trip work. Reading monitoring data, interpreting the cause, and proposing a fix can now be run on your behalf. The desire to make monitoring and action seamless has been around for a while; the shift is simply that it can finally be shipped in the form of an autonomous agent. In fact, AWS started lining up its operational agents around re:Invent 2025 late last year, when it previewed DevOps Agent and Security Agent.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://aws.amazon.com/about-aws/whats-new/2025/12/devops-agent-preview-frontier-agent-operational-excellence/" rel="noopener noreferrer"&gt;https://aws.amazon.com/about-aws/whats-new/2025/12/devops-agent-preview-frontier-agent-operational-excellence/&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;That DASH 2026 and AWS FinOps Agent landed on the same day is probably not a coincidence. Two companies from different territories are evolving in the same direction at the same time. It was a day that showed exactly that.&lt;/p&gt;

&lt;h2&gt;
  
  
  How Datadog and AWS Differ in Strategy
&lt;/h2&gt;

&lt;p&gt;Let's compare the two strategies along three axes: data source, coverage, and how each positions its agents.&lt;/p&gt;

&lt;h3&gt;
  
  
  Data Source
&lt;/h3&gt;

&lt;p&gt;AWS owns cost data and CloudTrail as first-party data. This is data that only AWS holds completely.&lt;/p&gt;

&lt;p&gt;AWS FinOps Agent's anomaly investigation is designed to leverage this directly. It starts from a Cost Anomaly Detection event and correlates the CloudTrail events around it. Because CloudTrail records who called which API and when, it can automate all the way to identifying the operation that drove the cost change and the IAM user or role behind it, the owner who bears responsibility. The output is not interpretation that reaches into business factors, but a Jira ticket or Slack notification delivered straight to the responsible engineer.&lt;/p&gt;

&lt;p&gt;This is a flow you cannot build unless you hold both the place where cost is generated and the place where resources are operated. Third-party FinOps SaaS can ingest the CUR (Cost and Usage Report), but matching it against CloudTrail at the same precision is not as easy as it is for AWS itself, given data lag and permissions. AWS can capture its own API calls in near real time, and there lies a structural advantage.&lt;/p&gt;

&lt;p&gt;Datadog owns the telemetry of APM, logs, traces, RUM, and profilers as first-party data. Bits Detection looks at real-time metrics and logs plus historical baselines, service topology, ownership information, and source-code context, and continuously judges whether the current state is healthy. Bits Investigation traces the root cause, and Bits Code takes on the fix, producing a production-ready PR on GitHub.&lt;/p&gt;

&lt;p&gt;Because the kind of data at the source differs, the anomalies each is good at differ too. AWS is strong at "money anomalies," Datadog at "performance and behavior anomalies." Both call themselves general-purpose Ops agents, but as long as the underlying data source differs, the center of gravity of what they are good at naturally differs.&lt;/p&gt;

&lt;h3&gt;
  
  
  Coverage
&lt;/h3&gt;

&lt;p&gt;AWS stays within its own cloud. It does not cover multicloud or SaaS.&lt;/p&gt;

&lt;p&gt;This is a weakness and a strength at once. For an organization that runs entirely on AWS, everything from cost to execution logs sits inside the same cloud. Conversely, for an organization where Snowflake, Databricks, Google Cloud, Vercel, and others are mixed in, AWS FinOps Agent alone cannot see the organization-wide cloud cost anomalies.&lt;/p&gt;

&lt;p&gt;Datadog spans multicloud and SaaS, and on top of that pulls in log infrastructure placed on your own infrastructure. In addition to BYOC Logs, which lets you search logs while keeping them in your own cloud environment, DASH 2026 introduced Federated Logs, which lets you search across external data stores like Databricks and ClickHouse from Log Explorer using the same syntax. It is expanding in the direction of searching from Datadog no matter where logs are scattered.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://www.datadoghq.com/blog/introducing-datadog-byoc-logs/" rel="noopener noreferrer"&gt;https://www.datadoghq.com/blog/introducing-datadog-byoc-logs/&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Which side you choose depends on how far your operation spans. For an organization that is 100% AWS, the former is enough; for one with multiple clouds or SaaS mixed in, you need the latter's reach. Even an organization using both can land on a split: AWS FinOps Agent for cost optimization, Datadog Bits for performance and availability.&lt;/p&gt;

&lt;h3&gt;
  
  
  How Each Positions Its Agents
&lt;/h3&gt;

&lt;p&gt;This difference is what I most want to convey in this article.&lt;/p&gt;

&lt;p&gt;AWS is trying to treat AI agents as building blocks that run on its own platform. Bedrock AgentCore is that foundation, with components coming together: Memory, Identity, Observability, Gateway, Runtime, and built-in tools like Browser Tool and Code Interpreter. DevOps Agent and FinOps Agent are positioned as AWS-built standard agents that ride on top of this layer.&lt;/p&gt;

&lt;p&gt;In other words, AWS holds the execution environment for agents itself and rolls out concrete agents on top of it over time. AgentCore also supports third-party frameworks like LangGraph and CrewAI, so third-party agents are expected to ride the same foundation.&lt;/p&gt;

&lt;p&gt;Datadog is trying to look at AI agents from the outside, as objects to monitor. The Datadog Agent Console announced the same day is a mechanism that gives a cross-cutting view of the coding agents used across an organization (Claude Code, Cursor, GitHub Copilot, and so on) alongside Datadog's own Bits AI. It answers, in a single UI, questions like who is using which agent and how much, whether it is paying off compared to not using AI, and where cost is being wasted and what can be fixed.&lt;/p&gt;

&lt;p&gt;What matters here is that Datadog's own Bits AI is also among the monitored targets. Your own agents and competitors' agents can be compared side by side in the same UI. The stance is not "use our agent," but "we'll give you visibility into your organization's agent operations themselves."&lt;/p&gt;

&lt;p&gt;AI Guard sits in the same line of thinking. It protects AI agents from attacks like prompt injection, tool misuse, and data exfiltration, but the protection is not limited to Datadog-made agents. It discovers unprotected agents in the environment and includes externally built agents as targets. Datadog is positioning itself to monitor, protect, and govern agents.&lt;/p&gt;

&lt;p&gt;AWS, which tries to own agents, and Datadog, which tries to monitor them. This difference is the core of the two strategies.&lt;/p&gt;

&lt;h2&gt;
  
  
  A Mapping of the Territory Agents Cover
&lt;/h2&gt;

&lt;p&gt;Here is how each company realizes the territory that AI agents cover, from operations through development. This is not a comparison of the clouds as a whole. The top half is the day-to-day work of operations and development (from detection, investigation, and remediation through code change, release, and testing); the bottom half is the foundation that supports it (memory, evaluation, monitoring, protection, and execution environment). In this table, a slash means multiple products are candidates, and a plus means several are combined.&lt;/p&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Role&lt;/th&gt;
&lt;th&gt;Datadog&lt;/th&gt;
&lt;th&gt;AWS&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;Anomaly detection&lt;/td&gt;
&lt;td&gt;Bits Detection&lt;/td&gt;
&lt;td&gt;Cost Anomaly Detection / DevOps Agent&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Anomaly investigation&lt;/td&gt;
&lt;td&gt;Bits Investigation&lt;/td&gt;
&lt;td&gt;FinOps Agent + CloudTrail / DevOps Agent&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Auto-remediation&lt;/td&gt;
&lt;td&gt;Bits Infrastructure (infra ops &amp;amp; remediation)&lt;/td&gt;
&lt;td&gt;DevOps Agent&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Code change&lt;/td&gt;
&lt;td&gt;Bits Code&lt;/td&gt;
&lt;td&gt;Kiro (spec-driven dev environment)&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Release validation&lt;/td&gt;
&lt;td&gt;Bits Release&lt;/td&gt;
&lt;td&gt;CodePipeline / CodeBuild&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Test automation&lt;/td&gt;
&lt;td&gt;Bits Testing&lt;/td&gt;
&lt;td&gt;Kiro&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Natural-language questions&lt;/td&gt;
&lt;td&gt;Bits Chat / Bits Data Analysis&lt;/td&gt;
&lt;td&gt;FinOps Agent (cost only)&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Knowledge / memory&lt;/td&gt;
&lt;td&gt;Bits Memories&lt;/td&gt;
&lt;td&gt;AgentCore Memory&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Agent evaluation&lt;/td&gt;
&lt;td&gt;Agent Evals&lt;/td&gt;
&lt;td&gt;Bedrock's evaluation features&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Agent monitoring&lt;/td&gt;
&lt;td&gt;Datadog Agent Console (includes external)&lt;/td&gt;
&lt;td&gt;AgentCore Observability (internal)&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Agent protection&lt;/td&gt;
&lt;td&gt;AI Guard&lt;/td&gt;
&lt;td&gt;AgentCore Identity / Bedrock Guardrails&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Agent execution base&lt;/td&gt;
&lt;td&gt;The Datadog platform itself&lt;/td&gt;
&lt;td&gt;AgentCore Runtime&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;p&gt;Most of the roles overlap. The strengths show up in the areas that don't overlap, or where the strength clearly differs.&lt;/p&gt;

&lt;p&gt;Datadog has the reach to bring even external agents under its monitoring, plus a design, via Bits Code and Bits Release, that closes the loop from detection through fix and validation inside Datadog.&lt;/p&gt;

&lt;p&gt;AWS has root-cause identification for cost anomalies, sourced from data it owns in CloudTrail, plus AgentCore Runtime as a foundation for pulling third-party agents onto its own platform. The latter is a device for inviting third-party developers to "run your agents on AWS."&lt;/p&gt;

&lt;h2&gt;
  
  
  The Tipping Point Is "Who Changes the Code"
&lt;/h2&gt;

&lt;p&gt;Look at the mapping and one point of contention surfaces: how much of the flow from detection through investigation, code change, and release validation each company completes inside its own UI. That is where the turf war between the two lies.&lt;/p&gt;

&lt;p&gt;Datadog's Bits Code is the emblematic product on this front. According to the official description, Bits Code takes signals from Error Tracking, APM Recommendations, Continuous Profiler, Test Optimization, Code Security, and Bits Investigation, and takes over the chain of work an engineer usually does by hand: triaging the problem, locating the relevant code, writing the fix, running tests, and opening the PR. It handles all of it in one stroke.&lt;/p&gt;

&lt;p&gt;In other words, it is trying to pull into Datadog the division of labor that used to be "monitoring tools alert you, fixes are the job of the IDE and GitHub." The repository itself lives on GitHub or GitLab, but the entity generating the PR is Datadog.&lt;/p&gt;

&lt;p&gt;AWS DevOps Agent also goes from root-cause identification through fix proposal. But when the fix reaches into application code, the main stage for that code is not necessarily on AWS's own services, so the degree of closure here is weaker. AWS's main horse for coding is Kiro, which is good at spec-driven development, or third-party agents via Bedrock, and DevOps Agent ends up on the side that coordinates with them. AWS's strategy is a different path: hold AgentCore as the agent execution environment, and put everything, including third parties, onto its own platform.&lt;/p&gt;

&lt;p&gt;This is where the Datadog Agent Console comes in. By bringing the Claude Code, Cursor, and GitHub Copilot that an organization uses under monitoring, even the activity of coding agents running outside Datadog comes into view. Because Bits Code itself is also a monitored target, in-house and third-party can be compared side by side in the same UI.&lt;/p&gt;

&lt;p&gt;So Datadog is taking a position where, even without owning the coding agent itself, it can hold the initiative by taking the stance of monitoring it. AWS, on the other hand, takes the stance that if everything is completed on top of AgentCore, monitoring is handled in-house too.&lt;/p&gt;

&lt;p&gt;Which strategy works depends on where engineers spend their time. A team that stays long in the AWS console leans AWS; a team whose main stage is the Datadog UI and Slack leans Datadog. For organizations with many resources that can only be touched directly via the AWS console (IAM, VPC, Cost Management), AWS's advantage tends to hold. For organizations whose operations revolve around Slack notifications and PR reviews, the range Datadog can cover keeps extending.&lt;/p&gt;

&lt;h2&gt;
  
  
  Predictions from the Facts
&lt;/h2&gt;

&lt;p&gt;From the facts laid out so far, here are a few predictions.&lt;/p&gt;

&lt;h3&gt;
  
  
  Prediction 1: AgentCore Repeats Bedrock's Strategy for Agents
&lt;/h3&gt;

&lt;p&gt;AWS's strategy looks like a replay of its Bedrock strategy. Bedrock grew into a foundation that hosts models from Anthropic, OpenAI, Meta, and others on AWS, places them on the same footing as AWS's own Nova models, and puts everything on the AWS bill. Rather than betting on which model wins, it secures a share of the AI market by holding the execution environment and billing where models run.&lt;/p&gt;

&lt;p&gt;AgentCore Runtime is trying to reproduce this same structure in the agent market. Rather than building a large number of agents in-house, it is a device for steering third-party agent developers to "run it on AWS." DevOps Agent and FinOps Agent are positioned as reference implementations that run on top of that foundation. Components like AgentCore Memory, Identity, Observability, and Gateway look like a setup where AWS takes on the common parts that agent developers find tedious to build themselves.&lt;/p&gt;

&lt;p&gt;Whether this strategy works hinges on whether agent developers accept AgentCore's constraints. Just as Bedrock succeeded in pulling in model providers, if AgentCore succeeds in pulling in agent providers, AWS can keep monitoring, execution, and billing all inside its own house.&lt;/p&gt;

&lt;h3&gt;
  
  
  Prediction 2: Bits Code and Bits Release Together Signal Datadog's Closure Strategy
&lt;/h3&gt;

&lt;p&gt;At DASH 2026, Datadog lined up Bits Code, which handles code change, and Bits Release, which handles release validation, in the same family. Bits Release is an agent that analyzes the intended impact of a code change, builds a validation plan, runs checks in staging, and watches the rollout. The two lining up together is itself a sign of strategic intent.&lt;/p&gt;

&lt;p&gt;To complete the loop from detection through investigation, code change, and release validation inside your own walls, holding the code change (the fix PR) is the starting point. Once you hold the code change, release validation becomes a natural extension: "Datadog watches over the PR Datadog produced at release time." Conversely, if the code change is taken by another company's IDE-side agent or GitHub Copilot, holding release validation alone in-house does not make a closed loop.&lt;/p&gt;

&lt;p&gt;Hold the loop's entry point with Bits Code, and pull its exit into your own walls with Bits Release. With these two lined up, a path to completing detection through fix and release inside Datadog's UI has come into view. Some of these features are still in preview, but the odds are high that Datadog finishes building the whole thing end to end.&lt;/p&gt;

&lt;h3&gt;
  
  
  Prediction 3: Integration into Chat and Tickets Is Part of a Big Shift to "Push UX"
&lt;/h3&gt;

&lt;p&gt;Both companies emphasize chat and ticket-management tools as the output destination for their agents. AWS FinOps Agent lets you specify Slack or Jira as the output destination, and Datadog Bits also delivers investigation results and notifications to tools of the same kind.&lt;/p&gt;

&lt;p&gt;This shows a big shift from a "go look at the dashboard" UX to a "delivered where the engineer already is" UX. Until now, both monitoring tools and FinOps tools were built on the premise that the user goes to look at the dashboard. The alert arrives by email, and you check the details on the dashboard.&lt;/p&gt;

&lt;p&gt;In the age of agents, this flips. When a problem occurs, the interpretation and recommended action arrive directly in chat. You open the dashboard only when you want to dig deeper, or when you can't accept the agent's judgment. The dashboard drops to the position of a reference that quietly backs up the agent's judgment.&lt;/p&gt;

&lt;p&gt;This change is reaching the billing model too. On top of the conventional per-view or per-seat billing, Datadog has already adopted AI credits tied to the agent's workload, and consumption-based billing per investigation. Not how much you look at the dashboard, but how much you put the agent to work. The axis of monitoring billing is starting to move that way.&lt;/p&gt;

&lt;h3&gt;
  
  
  Prediction 4: Coding-Agent Operations Move from "Individual Tool" to "Organizational Tool"
&lt;/h3&gt;

&lt;p&gt;The very fact that the Datadog Agent Console launched shows that coding-agent operations are taking shape as a genre. When Claude Code, Cursor, and GitHub Copilot are adopted ad hoc, it is easy to end up in a state where no one can see who is using how much.&lt;/p&gt;

&lt;p&gt;Each tool, too, is moving to bundle organizational usage, like GitHub Copilot's enterprise management features or Cursor's team features. But an individual tool's management screen is basically closed within that product. The Datadog Agent Console is trying to put a cross-cutting management layer on top of that. It is a different direction from, but close in aim to, GitHub Copilot starting to pull other companies' coding agents onto its own platform.&lt;/p&gt;

&lt;p&gt;The category of an "organizational coding-agent operations dashboard" is already taking shape. What isn't visible yet is the next step: industry-standard tags for cost allocation, and per-agent productivity metrics (PR acceptance rate, error rate, cost per accepted PR, and so on).&lt;/p&gt;

&lt;h3&gt;
  
  
  Prediction 5: The Initiative War Develops into a Three-Way Contest
&lt;/h3&gt;

&lt;p&gt;So far I've written in terms of the two parties, Datadog and AWS, but the real initiative war looks like a three-way contest. GitHub and GitLab, which hold the home of source code; AWS, Google Cloud, and Azure, which hold the execution platform; Datadog, Grafana Labs, and New Relic, which hold the monitoring platform. Each is after the initiative in the age of agents.&lt;/p&gt;

&lt;p&gt;GitHub is moving in the direction of completing the loop from code change through release to monitoring inside GitHub, with the combination of Copilot and Actions. GitHub Advanced Security includes Copilot Autofix, which is already built out to the point of opening a PR with a proposed fix for a vulnerability detected by CodeQL.&lt;/p&gt;

&lt;p&gt;The repository side, the execution-base side, and the monitoring side are each reaching, from the territory they own, for the loop of detection, fix, and release. Rather than any one of the three winning outright, the using organization picks the lead based on its own scale, industry, and existing stack. The winner splits by organization, that kind of outcome looks likely.&lt;/p&gt;

&lt;h3&gt;
  
  
  Prediction 6: An Organizational Shift in FinOps
&lt;/h3&gt;

&lt;p&gt;What AWS FinOps Agent changes most may be not the technology but the shape of the organization.&lt;/p&gt;

&lt;p&gt;FinOps has so far mostly run on a central FinOps team. A group of specialists builds cost reports and talks with the development teams in a monthly review. In recent years, the central team has been moving toward setting standards and guardrails while delegating responsibility to each team, but the carriers of that work were still people. AWS FinOps Agent is designed so individual engineers can ask about cost in natural language, and so that when an anomaly occurs, a Jira ticket arrives directly to the engineer.&lt;/p&gt;

&lt;p&gt;For an organization that wants to lean toward self-service, this is a device that advances that shift a step, because an agent can take on the decentralization that people used to carry. If you take this path, the FinOps team's job moves from teaching everyone toward mapping accounts to owners, setting tag conventions, and designing the context handed to the agent. The FinOps specialist doesn't disappear; the substance of the work changes toward shaping the foundation. The view is that such an option has become realistic.&lt;/p&gt;

&lt;p&gt;A similar structure shows up in other areas. In SRE, there is the choice between watching monitoring directly and shaping the monitoring system. In Platform Engineering, between each team handling its own infrastructure and a team laying down a standard path with guardrails so they can. In security, between a specialist team reviewing one item at a time and embedding policy into the platform's templates. In each, there is a choice: does the specialist team handle the field directly, or move to the side that shapes a system the field can run on its own.&lt;/p&gt;

&lt;p&gt;Neither is the right answer. There are organizations where full centralization fits, and organizations that delegate heavily to the field. Many settle in the middle, where a center provides standards and guardrails and the field moves on its own within that range. AI agents have arrived as an option that can realize the "field moves on its own" side at a lower cost than human effort. The self-service shift in FinOps is one example. Adopting AI agents widens not only the how of monitoring and operation, but the very set of options for where an organization places the center of gravity of its roles.&lt;/p&gt;

&lt;h2&gt;
  
  
  Anticipated Objections
&lt;/h2&gt;

&lt;p&gt;A few objections come to mind against the picture so far. Let me raise them and answer each.&lt;/p&gt;

&lt;h3&gt;
  
  
  Objection 1: Datadog's Multicloud Advantage
&lt;/h3&gt;

&lt;blockquote&gt;
&lt;p&gt;Datadog can see multicloud and SaaS too, so won't it win on coverage in the end?&lt;/p&gt;
&lt;/blockquote&gt;

&lt;p&gt;The breadth of multicloud coverage is indeed Datadog's strength. But AWS has an area, cost data and CloudTrail, where only AWS holds the first-party data. The advantage that AWS itself can trace the basis for a cost change at the highest precision remains. Even a multicloud organization can land on a split where it leans only its AWS cost governance onto AWS FinOps Agent. Unifying monitoring versus precision of the data source: these two hard-to-reconcile axes are what's at stake here.&lt;/p&gt;

&lt;h3&gt;
  
  
  Objection 2: The Disadvantage of Staying Inside Its Own Cloud
&lt;/h3&gt;

&lt;blockquote&gt;
&lt;p&gt;AWS closes itself inside its own cloud. Doesn't the narrow coverage put it at a disadvantage?&lt;/p&gt;
&lt;/blockquote&gt;

&lt;p&gt;Narrow coverage is indeed a disadvantage. But developers who use AWS as their main platform already spend long hours in the AWS console. Being able to slip into the screen engineers already touch is a strong weapon for lowering the cost of behavior change. Not having to move people to a new UI works strongly in the field of tool adoption.&lt;/p&gt;

&lt;h3&gt;
  
  
  Objection 3: The Both-at-Once Option
&lt;/h3&gt;

&lt;blockquote&gt;
&lt;p&gt;Rather than picking one, why not just adopt both?&lt;/p&gt;
&lt;/blockquote&gt;

&lt;p&gt;In fact, this is a realistic option. In coding, the practice of using multiple agents in parallel has already spread: refining the design with Claude Code, handing implementation to Codex, and having one review the other's output. Use agents with different strengths, and have one verify the other's results. For Ops agents too, the same worldview holds up well.&lt;/p&gt;

&lt;p&gt;But it holds up because humans have the judgment axis of "which to use for what, and which output to trust." Ops agents overlap heavily in function; anomaly investigation, auto-remediation, and natural-language questions can all be done by both. Put both in without a judgment axis, and all that's left is the cost of carrying the same experience in two places, with engineers wondering which one to ask. It is the same structure as the monitoring-tool sprawl of the past. Whether you make the most of using both comes down to the design of how you divide them.&lt;/p&gt;

&lt;h3&gt;
  
  
  Objection 4: The Possibility That Datadog Sees Everything Anyway
&lt;/h3&gt;

&lt;blockquote&gt;
&lt;p&gt;If agents on AgentCore are visible from Datadog too, won't Datadog hold it all in the end?&lt;/p&gt;
&lt;/blockquote&gt;

&lt;p&gt;This is a future well worth considering. AgentCore Observability is OpenTelemetry-compatible and can already send telemetry to external monitoring tools, including Datadog. Even if AWS holds the execution base and billing, a split where the main stage of monitoring stays on the Datadog side is possible. Holding execution but opening monitoring to the outside: that gradient looks like the long-term fault line for initiative.&lt;/p&gt;

&lt;h3&gt;
  
  
  Objection 5: GitHub Entering the Field
&lt;/h3&gt;

&lt;blockquote&gt;
&lt;p&gt;Won't GitHub, which holds the repository, build the same loop first?&lt;/p&gt;
&lt;/blockquote&gt;

&lt;p&gt;This connects directly to the three-way contest from Prediction 5. GitHub is actually moving in this direction, building a code-origin loop with the combination of Copilot Autofix and Actions. Datadog's Bits Code starts from monitoring, GitHub Copilot Autofix from code, AWS DevOps Agent from the execution base. The same loop, with each reaching from a different entrance, is how it can be organized.&lt;/p&gt;

&lt;h2&gt;
  
  
  Where to Start
&lt;/h2&gt;

&lt;p&gt;The axes for telling them apart are now in place: data source, coverage, and how each positions its agents. With those three, you can read each agent's character. So let's move to what to actually do first. I'll organize this assuming a common setup: AWS as the execution base, Datadog for monitoring, GitHub for code management.&lt;/p&gt;

&lt;h3&gt;
  
  
  Step 1: Put into Words What Your Operation Runs "From"
&lt;/h3&gt;

&lt;p&gt;The first thing to do is not tool selection or a proof of concept, but putting the current state into words. When an incident or cost anomaly occurs, where do you look first, where do you identify the cause, and where do you apply the fix? Write out this round-trip path once, and you start to see which vendor your organization is most compatible with.&lt;/p&gt;

&lt;p&gt;The judgment axis can be organized like this.&lt;/p&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Central issue&lt;/th&gt;
&lt;th&gt;Lead agent&lt;/th&gt;
&lt;th&gt;Basis for the call&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;Cost optimization / cost-anomaly investigation&lt;/td&gt;
&lt;td&gt;AWS FinOps Agent&lt;/td&gt;
&lt;td&gt;Matching cost data against CloudTrail at this precision is hard for third parties to produce&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Infrastructure failures / resource anomalies inside AWS&lt;/td&gt;
&lt;td&gt;AWS DevOps Agent&lt;/td&gt;
&lt;td&gt;If it stays inside AWS, even execution logs are reachable via its own APIs&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Multicloud or cross-SaaS performance and availability&lt;/td&gt;
&lt;td&gt;Datadog Bits&lt;/td&gt;
&lt;td&gt;The amount of telemetry owned and the breadth of coverage pay off&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Visibility into coding-agent operations&lt;/td&gt;
&lt;td&gt;Datadog Agent Console&lt;/td&gt;
&lt;td&gt;Seeing external agents across one view is currently nearly unique&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Code-origin security fixes&lt;/td&gt;
&lt;td&gt;GitHub Copilot Autofix&lt;/td&gt;
&lt;td&gt;A fix flow tightly coupled to the repository is easy to run&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;p&gt;In many organizations, several of these apply at once. If you use AWS as the execution base, Datadog for monitoring, and GitHub for code management, you probably match most rows of the table. That's exactly why, rather than putting everything in at once, you need to prioritize by which path has the highest round-trip cost right now.&lt;/p&gt;

&lt;h3&gt;
  
  
  Step 2: Agentify Just the One Highest-Round-Trip Path First
&lt;/h3&gt;

&lt;p&gt;Try to agentify everything at once and you end up just trying a bunch of agents at once with no settled evaluation axis. The realistic move is to narrow to the one path from Step 1 where the human round-trip happens most.&lt;/p&gt;

&lt;p&gt;For example, an organization spending serious hours each month on cost-anomaly investigation could start by trying AWS FinOps Agent's public preview, configured with Slack notifications and a threshold filter (only investigate anomalies above a certain amount). If the initial investigation for incident response has become a late-night burden, pick either AWS DevOps Agent or Datadog Bits Investigation, choosing based on whether your incidents stay inside AWS or reach external SaaS. Narrow to one path, and you can concretely evaluate what got faster compared to doing it by hand, and what you can't yet trust.&lt;/p&gt;

&lt;h3&gt;
  
  
  Step 3: Sort Out Context and Tag Conventions During the Trial
&lt;/h3&gt;

&lt;p&gt;An agent's accuracy changes greatly with the context you hand it. AWS FinOps Agent is designed to take context files like account-to-owner mappings, team definitions, tag conventions, and review cycles. Whether it can resolve "what is this team's cost" to the right set of accounts hinges on this context work.&lt;/p&gt;

&lt;p&gt;What matters here is that sorting out context and tag conventions is an investment that won't go to waste no matter which vendor you choose. The account-to-owner table, tag conventions for cost allocation, and service-to-team mappings are included. These work as the prerequisite information handed to the agent, whether for AWS FinOps Agent or for Datadog. Sort it out while you're still in the trial phase, and it carries over as is, whether you move to full adoption or switch to a different vendor. Sorting out the metadata at your feet before the agent itself is a shortcut that looks like a detour.&lt;/p&gt;

&lt;h3&gt;
  
  
  Step 4: Start Visibility into Coding-Agent Operations Early, as a Separate Track
&lt;/h3&gt;

&lt;p&gt;This is a slightly different topic from Ops or FinOps, but for running an organization's AI use in a healthy way, it's worth moving on in parallel.&lt;/p&gt;

&lt;p&gt;If you use Claude Code, Cursor, and GitHub Copilot across the organization: who uses how much, how much it costs, and how many PRs get accepted. Aren't there many organizations struggling to get these numbers? Use that started as an individual trial eventually spreads to teams and the whole organization. So as not to scramble at that stage, you want to anticipate team and enterprise use from the start. Now that a visibility layer for agent operations like the Datadog Agent Console has appeared, even if adoption is deferred, it's safe to at least start the discussion early on how to make your organization's coding-agent use visible.&lt;/p&gt;

&lt;p&gt;The metrics worth tracking are around the number of users and frequency of use, spend per agent, PR acceptance rate, and rework rate of fixes. With those visible, you can judge by the numbers which agent to weight investment toward, and where waste is occurring.&lt;/p&gt;

&lt;h3&gt;
  
  
  Because It's a Transitional Period, Build Switchability into the Design
&lt;/h3&gt;

&lt;p&gt;What's common across these steps is the stance of not going all-in yet. Most Ops agents are still in preview, and their features and billing models will change.&lt;/p&gt;

&lt;p&gt;That's exactly why you should avoid building deeply dependent on a specific vendor's conventions, and instead thicken assets that work no matter where you land, like the context and tag conventions from Step 3. Put the data source and round-trip path into words, sort out the metadata, and validate one path at a time. Proceed in that order, and whether you move from trial to full adoption, or the initiative landscape shifts, you can move without panic.&lt;/p&gt;

&lt;h2&gt;
  
  
  What's Happening Now
&lt;/h2&gt;

&lt;p&gt;That the two companies' announcements landed on the same day is a signal that the Ops-agent category has entered a phase where multiple vendors reach for the same territory at the same time. Datadog, strong in monitoring, and AWS, with the cloud base, are each reaching for the initiative from the source of their own strength. The structure where the one who holds the most data also holds the action that follows is a movement that applies to AI agents generally.&lt;/p&gt;

&lt;p&gt;AWS's strategy is platform-type: hold the lower layer of the agent execution environment, line up the agents that ride on it with its own products over time, and invite outside developers onto the same foundation. Datadog's strategy is meta-platform-type: hold the outer layer of the monitored target, and make both its own and others' products visible in the same UI. And as the third party in the three-way contest, GitHub and GitLab, which hold the home of source code, are entering the same territory.&lt;/p&gt;

&lt;p&gt;Which strategy comes out ahead changes with what an organization runs its operations from, so there is no single answer. But the structure of this competition itself is a microcosm of the initiative war in the age of agents. Each reaches, from its own territory, for what lies beyond. The one who owns the infrastructure reaches for the execution environment of the software that runs on it. The one who monitors reaches for the action beyond the expanding monitored target. The one who keeps the code reaches for the loop of code generation and release.&lt;/p&gt;

&lt;p&gt;What's being fought over is the initiative of where, in which UI, to complete the loop from detection through fix to release. The same-day release of June 9, 2026 was the day that fight came clearly into the open.&lt;/p&gt;

</description>
      <category>aws</category>
      <category>datadog</category>
      <category>ai</category>
      <category>devops</category>
    </item>
  </channel>
</rss>
