tl;dr: S3 treats automated reasoning as a way to ship faster, not only as a safety net. At every layer they do the same thing: choose exactly what to check, and claim exactly what that check guarantees.
At S3’s scale, “edge case” stops meaning much. The service averages about 200 million requests per second, so a one-in-a-billion request comes up about a dozen times a minute1. And S3 keeps launching features, now with coding agents helping to write them, like everybody else.
In INV504, two engineers from the S3 team explained how they keep that system correct while it changes. They worked down the stack, from the public API to the concurrent async Rust inside S3 Express One Zone. They use “automated reasoning” broadly, for any technique built on a mathematical formalism, so it covers everything from generated tests to machine-checked proofs. That’s broader than AWS’s own explainer, which defines automated reasoning by proof and sets it against testing, which “only covers the cases someone thought to run.” The S3 team folds the testing back in, and most of the session is about making sure their tests cover the cases nobody thought to run.
None of this is new for S3. AWS engineers described using TLA+ on S3 and DynamoDB in 2015, and the S3 team published how it validated the ShardStore storage node in 2021. What’s new is how far down the stack it now reaches, and the claim that it makes them faster.
The session went in order from the top of the stack down, and so do these notes. Skip to the takeaways if you’re in a hurry.
English specs are ambiguous, and code needs one that isn’t
People resolve the ambiguity in English specifications from shared context. Code that’s tested or verified can’t do that. The speakers’ analogy was a bridge: civil engineers model the forces and use physics to show the structure won’t collapse. S3’s version is to state properties like no data loss, read-after-write consistency, and functional correctness in a formal language (TLA+, Lean, or Verus), then use that language’s tools to show the model has them.
But the spec is a model, and what runs is code, in Rust and Java. A single request can pass through more than 100 Rust crates (packages), so checking every behavior of the implementation against the spec is rarely possible. That leaves two trades: check a subset of behaviors completely (testing, fuzzing, simulation), or prove one property for all behaviors (model checking, proof).

Two ways to check code against a spec: some behaviors completely, or one property for all of them.
The banner at the bottom of the slide is the line I’d put on a poster: “We chose what we validate and the guarantees for what we checked.” Most test suites blur the second half of that2.
The S3 API: a toy reference model and a lot of arithmetic
Testing every string and integer for every GetObject parameter would never finish. So the spec describes what the parameters mean instead: a bucket contains keys, a key has versions, a version is identified by an ETag (an identifier for the object’s contents), and a part or a range is a subset of the object’s bytes. The response depends on state too. The same request can return 200 or an error depending on whether the bucket and key exist.

The spec reasons about relationships, not every possible string.
The executable reference model is a simple key-value store in Java, with none of S3’s sharding, caching, or distribution. It keeps only what a customer can observe, such as which buckets exist and which keys they hold. Conformance testing generates a request, runs it on both the model and S3, and compares the responses.
The requests come from predicate abstraction: each input is reduced to the features that change the response. Some are request features (“the bucket name is valid”), and some are state features (“the bucket exists in this account”). Bucket names fall into three equivalence classes (existing, nonexistent but valid, and invalid), and keys fall into similar ones.
Even so, GetObject alone has 21 request features, 16 state features, and 135 equivalence classes. That comes to 6.74 × 1025 requests. Sent at S3’s entire average request rate, they would take about 10.7 billion years to get through1.

The exclamation point is theirs.
Locality brings that down. Unrelated buckets and keys don’t interact, so the features split into groups (ranges, conditional requests, encryption, and so on), and each group gets its own test campaign with the bucket, key, and version held fixed. With no errors in the request, all the features together still come to 2.23 × 1012 requests, or about three hours of S3’s whole traffic. The ranges campaign is 27,000 requests, encryption is 84,6003, and conditionals is 640. The slide also counts requests with one or two errors in them, under the heading of error precedence.

Request counts by feature group and by the number of errors in a request.
That’s the whole method in miniature: get from “never finishes” to tens of thousands of requests by being explicit about what doesn’t interact. The details are in “High Fidelity Models for Large Scale Stateful Services,” by Nouraldin Jaber and six AWS colleagues, from OSDI 2026 (PDF). A few things in it that aren’t in my notes:
- It runs in CI. Each campaign gets a three-hour budget in the approval step, which works out to about 432,000 requests. That’s enough to cover the success cases for about 15 GetObject features at once. Long-running background jobs rotate through the rest.
- It has caught real bugs. The paper counts the issues it has prevented so far: 109 in S3 (24 of them high severity), 171 in S3 Express One Zone (12), and 92 in an S3 refactor (10).
- It’s much cheaper than random testing. In one comparison, 28,457 property-based testing requests covered only 9,040 distinct scenarios. To hit eight specific scenarios, the random generator needed about 3,200 requests on average. Enumerating the scenarios took eight.
- The two-error campaigns check the order of the checks. S3 stops at the first error it finds, so a request with two errors shows which check runs first. That’s how they confirm, for example, that authentication and authorization happen before checks on state, such as whether the key exists.
The Express One Zone number is the one I’d underline. A rewrite from scratch is exactly when you need something that says what “the same API” means, and the paper says the model was instrumental in designing and building Express One Zone.
S3 Tables: immutability lets them validate every commit
S3 Tables stores tables in the Apache Iceberg format. Briefly: Parquet data files hold the rows and columns, Avro manifests group files by partition, manifest lists group manifests into snapshots, and a metadata JSON file holds the schema and the full snapshot history. A catalog points at the current metadata file. Customers read and write the tables, and S3 Tables runs compaction and other maintenance in the background.
Most of the S3 Tables API (CreateTable, GetTableBucket) yields to the same reference-model approach. UpdateTableMetadataLocation doesn’t. It takes one string, but swapping the metadata pointer can change the entire table. Iceberg files are immutable, so a writer stages new data and metadata files and then commits by swapping the pointer. A broken staged metadata file can lose snapshots or data files.

Stage the new files, then swap the pointer. The swap is the dangerous part.
Immutability is also what makes a strong guarantee possible. Before a commit becomes visible to customers, a formal validator reads every staged file and checks it against the Iceberg spec. A candidate that fails is garbage-collected.
They still test, for two reasons. Full validation can be too slow for the commit path. And an implementation that never passes validation is perfectly safe and perfectly useless4.
Compaction: a bug in 100,000 rows also shows up in two
Compaction merges many small data and delete files into fewer large ones. The physical files change completely, but the table’s contents must not: View(T) = View(Compact(T)) for every table T.

Same content, different physical representation.
“For every table” is a promise testing can’t keep directly. But a bug that loses a row in a 100,000-row table also shows up in a table with two rows: the lost row and one that survives. The same goes for a delete that compaction fails to apply, which brings a deleted row back.

Carol was deleted. Compaction brought her back. Two rows are enough to catch it.
Formally, the property sits in a fragment of first-order logic with the small model property: if any table violates it, some table of bounded size violates it too. For unpartitioned tables, the bound they quoted was six rows5. They enumerated every way to arrange tables of that size into data files, delete files, manifests, and snapshots, and got 60,000 table layouts.

A few of the 60,000 layouts.
A table generator works through those layouts exhaustively while randomizing the data and schema types, the file sizes (real compaction inputs run to hundreds of megabytes), and how the table evolved. Each generated table is compacted, and then a validator built on a Lean spec checks that the contents were preserved and that the result is valid Iceberg, including sequence numbers, snapshots, and timestamps.

Not just the same rows: the full Iceberg spec.
The generator is open source, and the speaker said it has found discrepancies between query engines. If you run Iceberg tables through more than one engine, it’s worth a look.
S3 Express One Zone: from the black box to the code inside
The second speaker stopped treating S3 as a black box and went into the code. In a typical PUT, the front-end fleet authenticates the request, erasure-codes the object across the storage fleet, and records the key with its metadata and locators in the index. Only then does S3 return 200 OK.
S3 Express One Zone launched at re:Invent 2023 with single-digit-millisecond latency, up to 2 million reads and 200,000 writes per second, and strong read-after-write consistency. It was rebuilt largely in async Rust. Its directory buckets store keys as a tree of maps, and each map is partitioned across many hosts in the index fleet. A PUT under a new prefix creates a new map and adds an entry to its parent, so one operation changes several maps on several hosts.

One PUT, two maps, two hosts. The cat photo is theirs.
The index has two layers, and each gets a different technique:
- The transaction library provides atomic, serializable transactions over sets of maps. Its problems are serializability in the presence of failures, and low-level concurrency in async Rust.
- The namespace layer implements PUT, DELETE, LIST, multipart upload, and the other operations on top of those transactions. Its problems are covering the S3 API’s semantics and keeping strong consistency across multiple transactions.
Owning the code turns an NP-complete check into a cheap one
Serializability means every concurrent execution has some equivalent sequential execution, one in which every operation returns the same result and the final state is identical. Proving that for production async Rust is beyond current tools, so they check executions dynamically with Shuttle, AWS’s open-source library for testing concurrent Rust. It explores thread interleavings to find the bugs normal testing misses, it runs on the code that ships, and it makes every failure replayable.
The check runs an arbitrary set of transactions concurrently under Shuttle, finds an equivalent sequential order, runs that order on a simple sequential reference model, and compares the results.
Finding the order is the hard part. Papadimitriou showed in 1979 that checking serializability is NP-complete. But that result treats the system as a black box, and the S3 team owns the code. So they instrument it to leave breadcrumbs, build a serialization graph with edges between conflicting transactions, and use the breadcrumbs to order the edges. Any topological sort of that graph is then a valid sequential order, and that’s cheap to compute.

Breadcrumbs from production code turn the ordering problem into a topological sort.
It’s the difference between putting a shoebox of loose photos in order and doing it with the dates printed on the back. A paper on this is coming.
This is the part that sent me back to my 2018 note on automated fault injection, where I said nobody can automate Kyle Kingsbury. Jepsen has to treat a database as a black box. A team that owns the code doesn’t, and that changes the math.
Stale reads, handled by rules small enough to prove
Doing each S3 operation in a single transaction would hold locks too long for 200,000 writes per second. The performance rules are to hold locks briefly if at all, stay read-only when possible, and acquire locks in a consistent order.
So a PUT splits in two. A read-only transaction with shared locks resolves the path down to the lowest directory that exists. Then a read-write transaction with exclusive locks creates the new subtree and links it in. Another request can land between the two, which is the classic time-of-check to time-of-use problem.
The answer is a small set of rules for what the read-write transaction does when the tree has changed since the read. For a PUT where the read found /a1/a2/a3 but not a4:
- If
a3exists anda4still doesn’t, add the subtree starting ata4as planned. - If
a4now exists, continue path resolution froma4and find the new subtree to create. - If
a3no longer exists, retry the transaction from the root.

ROTxn and RWTxn are the read-only and read-write transactions.
Each rule reduces to simple Boolean checks over a transaction’s reads and writes, written in a small functional subset of Rust that current verifiers can handle. They prove the rules sufficient with Verus, and with Aeneas, which translates Rust to Lean.

Each rule is a Boolean check that Verus and Aeneas can prove.
That matters because the operations keep coming. Append and rename both arrived after launch, and each one brings new rules. Rerunning a proof is a lot cheaper than redoing the concurrency argument in a design review every time.
Takeaways
The speakers closed with four, paraphrased here:
- Pick the properties you care about most, such as API correctness or serializability. Stronger properties make verification easier. Serializability is hard to implement, but because a sequential reference model can describe it, it’s much easier to specify and check than eventual consistency.
- Mix techniques. Use predicate abstraction to generate tests, dynamic checkers like Shuttle for concurrent async code, and provers like Verus or Lean for mostly functional code.
- Use tools that make bugs easy to replay and diagnose, through traces and counterexamples. Coding agents depend on this: an agent can debug a failure it can replay, and it gets stuck on one it can’t.
- Start early, ideally while the design is still being argued over. The namespace team used the transaction library’s reference model as a mock, so they could start before the library was finished.

The takeaways slide.
Two of those deserve more attention than they’ll probably get.
The point about stronger properties runs against intuition. Teams choose eventual consistency because it’s easier to build, and then find it’s much harder to say what “correct” means6. S3 went the other way, and the payoff is a spec simple enough to check against.
The point about replay is the one I expect to age best. Everybody is adding coding agents to the loop. Fewer teams are asking whether their failures are reproducible enough for an agent to do anything useful with them. A replayable Shuttle failure or a prover’s counterexample is feedback an agent can act on. A flaky integration test isn’t.
The speakers’ last word was that automated reasoning has become a way for the S3 team to move faster, not only a safety measure: with stronger guardrails, developers try bolder optimizations with more confidence. I’ve posted skeptical takes on rollback buttons as safety valves that invite carelessness. This is different. A rollback cleans up after a mistake has shipped. A proof or a validator stops the mistake before customers see it, and it says exactly what it covers.
In short: decide what you’re checking, say exactly what that check guarantees, and make every failure replayable.
-
My arithmetic, not the speakers’. 200 million requests per second ÷ 1 billion = 0.2 per second, or 12 a minute. 6.74 × 1025 requests ÷ 2 × 108 per second ≈ 3.4 × 1017 seconds, which is about 10.7 billion years, a bit less than the age of the universe. And 2.23 × 1012 ÷ 2 × 108 ≈ 11,000 seconds, a little over three hours. Real test campaigns don’t get S3’s whole fleet to themselves, of course. The paper budgets about 432,000 requests per three-hour campaign, or 40 a second, and at that rate the 2.23 × 1012 would take about 1,800 years. ↩︎ ↩︎
-
“We have good coverage” isn’t a guarantee about anything in particular. ↩︎
-
That’s the number on the slide. The paper’s table says 86,400. Somebody swapped two digits, and I can’t tell who. ↩︎
-
In the jargon, that’s safety versus liveness. The validator guarantees nothing bad becomes visible, but only testing shows that something good eventually does. ↩︎
-
The bound for partitioned tables isn’t in my notes. ↩︎
-
Anybody who has tried to write down what an eventually consistent store is allowed to return in the middle of a partition knows the feeling. ↩︎