Malotru
Back to notes

The Gate Before the Lines

November 12, 2026

AWS says thousands of autonomous agents wrote every line of AWS Emulator and that the team did not review the code. Humans designed the spec, the fidelity tests checked on real AWS, and the merge gate. Unsupported operations return HTTP 501, state is in memory, one process does not separate Regions, and the guide says not to use it as a security test.

The Gate Before the Lines

On 11 November 2026 AWS released AWS Emulator, a local stand-in for AWS APIs, and said that autonomous agents wrote it. Matthew Goldberg, the senior principal engineer who started the project, puts the claim in one sentence: the emulator was written entirely by autonomous agents, and the team has not written or reviewed any of the code. Thousands of agents write tests, find divergences, and fix them. The source is on GitHub under CC0. The sentence that decides what this is, though, is the one about the guardrails. The agents were given a spec, a reference implementation, and a merge gate. The humans designed that machine [Source 1][Source 3].

The spec is the public AWS API models, written in Smithy: operations, inputs, outputs, and errors. The reference implementation is AWS itself, the same cloud a customer calls. Goldberg's first prompt to Kiro had three steps and no further ambition. Write tests from the AWS CLI. Iterate until those tests pass against real AWS. Build an in-memory implementation that the same tests pass against. Kiro returned a passable Amazon SQS in about fifteen minutes. Over the weekend a refined prompt produced a rough rest of AWS, gaps included, and the team was testing its own software against that build on Monday. The occasion was Anthropic's earlier demonstration that agents could build a C compiler from a spec and a reference. Goldberg's point is that the weekend result was not yet something to put in a customer's hands. That took the guardrails [Source 1][Source 3].

Three teams, one issue each

The running system is three agent teams, split because bounded jobs succeed more often. The first team owns a fidelity suite. A test is a customer scenario. Goldberg's SQS example creates a queue, sends a message, receives it, acknowledges it, and deletes the queue. Swaminathan Sivasubramanian's example checks that a received message stays hidden until its visibility timeout expires. Agents devise the tests from the public models and correct each test until it passes on real AWS, so the test records AWS rather than the agent's guess. Goldberg says the suite now holds tens of thousands of tests and keeps growing [Source 1][Source 3].

The second team replays those tests against the emulator and files the failures. At the start, the repository was an empty web server that could accept requests for 438 API models and did nothing with them. The first issues were of the form "build a first version of Amazon SQS." After a service exists, the agents group failures that may share a cause. The third team receives one issue per agent. That agent checks out the code, finds the cause, and edits until the issue is addressed. The change then meets a gate. The gate refuses a change that does not compile. It also runs agents that review coding standards, review security, and check that fidelity did not regress. A failed check goes back to the agent. A change that passes is merged to the mainline. Goldberg reports thousands of issues fixed a day, with hundreds of agents working at once. Sivasubramanian adds what the gate contains on the security side: several agents, each looking for a different way to attack the change, plus deterministic checks that stop an agent from editing code it is not supposed to touch [Source 1][Source 3].

Merged commits are retested, then a binary is cut, and only then does the code reach GitHub. The repository does not take pull requests. Fixed gaps live under `issues/things-that-now-work`. The backlog is `issues/things-that-do-not-work`. In an earlier run the agents wrote their own Python interpreter to host Lambda, until they were told to reuse a library. That episode is why the history is public, and part of why the license is CC0 [Source 1][Source 7].

"No human review of the code" describes the lines. Humans still chose the spec, the rule that a test must pass on real AWS before it counts, the three-way split, and the gate. Sivasubramanian's version of the lesson is a rebuild of the replication engine inside Alf, the Paxos lock service he and Al Vermeulen built in about four months, and which still powers systems such as S3 and DynamoDB. He spent four nights supervising Kiro on a run that had no way to check itself. Given a spec and a test environment, the rebuild took about two hours. His launch sentence is the job: when agents write the code and check their own work, the engineer builds the specs, the tests, and the gates. An internal emulator came together over a weekend and was being adopted within a month. The one they would ship took the gate [Source 1][Source 3].

Two official counts should stay separate. Goldberg's 438 is the number of API models the empty server could already route, before any behavior existed. Sivasubramanian's launch description is more than 400 API models covering more than 200 services. The README adds a license boundary the launch posts compress. The emulator is CC0 1.0, except the `vendor/` crates, which are Apache 2.0, marked not to be edited, and replaced when the framework updates. "Every line" and "public domain" both stop at that directory [Source 1][Source 2][Source 3][Source 7].

What the stand-in will and will not do

The what's-new post is the contract a caller can test. SDK and CLI calls pointed at the emulator return in milliseconds, with no deployment and no AWS account. The process mints its own credentials. An implemented operation returns the same result as AWS for a valid call and the same error for an invalid one. An operation not yet implemented returns HTTP 501, error code `NotImplemented`, and a fidelity test that hits it fails immediately. State lives in memory until the process stops. Each process has its own port, keys, and state. There is no added service fee. Fidelity is closest on the control plane: create, describe, update, delete, and list. Data-plane behavior, and tools such as CloudFormation, Terraform, and the CDK, vary by service. A published score is tests passed over tests written for that service. Passing tests may not regress. The failing count can still rise when a new test names a difference that was already there. Both numbers belong to one version of the suite [Source 2][Source 4][Source 6].

The user guide is where a local AWS stops. The emulator accepts any Region and any account id and does not keep resources apart by either. The instruction is one Region and one account per process; a second Region means a second process on another port. Checks ran against us-west-2, and against us-east-1 for global services. Which features exist in which Region is not reflected. The emulator has not been tested for long-running use or for load testing. GeekWire, quoting IDC analyst Devin Pratt, reports that throttling and outages are not simulated. Function code the emulator runs is not isolated: it has the user's permissions and can read and change files [Source 4][Source 5][Source 8].

Security tests are out of scope. The emulator does not evaluate IAM, resource policies, or KMS key policies as AWS does, and it never denies a request signed with the key it minted for that run. A denial on AWS can be a success here, and the reverse. Permissions belong on real AWS before production. Real credentials and customer data stay out. Requests, responses, and resource data are not uploaded. Telemetry is on by default. The README describes it as minimized so that records are not attributed to a user, account, or organization, and as excluding request and response contents, code, credentials, and personal data. It can be switched off [Source 4][Source 5][Source 7].

A coding agent already loops write, execute, read, edit. For a program that calls AWS, execute checks the program only when the services behave like AWS. A hand-built stand-in was reasonable when AWS was a handful of services. It does not scale past 200. Pricing the model call does not supply the cloud that call runs against. The emulator is that step on the machine, failures published beside the code. A pass here is not a pass in another Region, and it is not an IAM result. The gate made the lines mergeable, and it marks which of them describe a service this process does not implement [Source 2][Source 3][Source 6].

Sources