Trendveris
Live Coverage
AI & ML

AWS Hydro Uses Compiler Checks to Catch AI Coding Agent Errors

Hydro adds compile-time checks for distributed systems, aiming to catch agent-written bugs that ordinary code review and tests can miss.

Oct 29, 2026 | 3 min read
Sign in to save
Shadaj Laddad, research lead for the Hydro team at AWS, believes the solution lies in automated correctness checks that operate outside an AI agent’s control.

When distributed changes collide

AI coding agents can deliver ambitious changes quickly. For distributed software, though, speed raises a harder question: how can teams verify that interacting pieces still behave correctly after a failure? A change that looks sound in isolation can alter how components coordinate when messages are delayed, repeated or lost. AWS’s Hydro team is pushing some of that responsibility into the compiler, where checks can flag certain errors before code runs.

Hydro is an open-source Rust framework for distributed systems, which run across multiple machines. Earlier this month, its team built a way to check that a system remains correct when it resends messages after a failure. Research lead Shadaj Laddad called the resulting change “like a 5000 line PR.” Its parts depended on one another, making the work difficult to divide into smaller reviews. That difficulty points to a practical limit of simply asking an agent to write more code: the larger and more interdependent the change, the harder it can be for reviewers to understand the consequences of each piece.

Laddad discussed the challenge at AGNTCon + MCPCon in San Jose last week, ahead of a keynote on the limits of code review as agents produce code at greater speed and scale. “You can have the feature work well in isolation, then you mix it with something else, and suddenly the guarantees break down,” he said. That’s a familiar shape of failure in distributed software: correctness depends not only on what a component does, but also on how it behaves alongside other components under imperfect conditions.

Checks beyond the agent’s reach

One weakness in common agent workflows is that the agent often writes both the implementation and its unit tests. Those tests may pass without proving the system meets the team’s requirements. If the same tool makes an assumption in both places, its tests can confirm that assumption rather than challenge it. “Agents are great, but they’re unpredictable,” Laddad said. Their capacity to produce unexpected solutions is useful, but it also makes it harder to rely on their tests as an independent check.

Hydro’s approach is to enforce shared correctness rules outside an agent’s “zone of trust.” Rust’s borrow checker offers a familiar example: it catches certain race conditions before execution. Hydro applies comparable compile-time checks to distributed systems, giving an agent quick feedback when its changes violate supported guarantees. The aim is to make some classes of mistake visible while the code is being built, when a developer can still connect the warning to the change that caused it.

That boundary matters. An agent can respond to a compiler error, but the check itself has to come from rules the team has chosen and encoded. If a guarantee isn’t represented in those rules, the compiler can’t verify it. This is more significant than it looks: automated code review is only as independent as the mechanism doing the checking.

The team is also looking for recurring engineering concerns that could become reusable guardrails. It studies established projects and patterns that repeatedly surface in design reviews. Idempotency—the property that makes retrying a request safe without performing the operation twice—is one candidate. In distributed systems, retries are a routine response to failures, so making them safe can help prevent a temporary problem from turning into duplicated work or inconsistent state.

Laddad frames these checks as another step in a longer shift toward higher-level programming tools: C reduced the need to manage assembly details, and Java handled memory allocation. Agent-generated code, in his view, makes the next layer of automated safeguards more pressing. The comparison is useful, though it doesn’t settle what that layer should cover. Compiler checks can enforce specific properties; deciding which properties matter still requires engineering judgment.

Compiler checks can only cover what engineers have encoded in them. As The New Stack reported in August, AI-generated Rust can compile perfectly and still be wrong. Hydro’s checks can narrow the review burden, but they don’t remove the need to assess whether the system’s intended behavior is correct. A program can satisfy its formal rules and still implement the wrong feature. That distinction is easy to lose when a successful build is treated as a broad endorsement of the code.

Runtime efficiency and early adoption

The Hydro team has also built Infinity, an open-source runtime AWS announced on October 23. It suspends an agent while it waits for a tool call or CI job, avoiding the cost of keeping the agent active during idle time. The design addresses a different part of agent operations: managing the resources consumed while work is waiting on other systems rather than actively progressing.

Laddad pointed to a benchmark indicating that 75,000 agents could run concurrently on one Raspberry Pi. AWS says that figure was extrapolated from a server test where each idle agent consumed about 100 KB. That qualification matters: the number describes an extrapolation based on idle-agent memory use, not a demonstration that a Raspberry Pi can run that many agents actively performing substantial work. Still, it illustrates the runtime’s focus on keeping waiting agents inexpensive.

Hydro remains an early release aimed at teams operating high-throughput, low-latency services, where distributed systems failures are a persistent concern. Laddad cautioned that users should expect rough edges and a learning curve. For teams in that setting, the question is whether the framework’s guarantees fit their systems closely enough to justify adopting another set of tools and concepts.

What this means for you depends on where the risk sits in your development process. If you’re working in this space, compile-time checks may help catch certain violations earlier, while Infinity targets the idle cost of running agents at scale. Neither claim answers whether an application behaves as its users need it to. The potential payoff is greater confidence in making changes without discovering months later that one component quietly undermined another. The hard part: confidence still has to be earned through checks that reflect the system’s actual requirements.

What the approach could change

Hydro’s direction suggests a useful division of labor: agents can propose and modify code, while rules maintained by engineers check selected properties independently. That could make large changes easier to review by shifting some questions from “Does this look right?” to “Does it satisfy the guarantee?” But it won’t make review disappear. Teams still have to decide which guarantees to encode, understand what they leave out and examine whether the resulting behavior matches the intended design.

For now, the evidence described here is an early framework, a set of compile-time checks and a runtime benchmark with a stated basis. The approach is promising, but its value will depend on how well those checks map to the failures teams actually face. A compiler can catch a violation quickly. Whether that makes agent-written distributed software dependable is a larger question, and one that adoption will have to answer in practice.

Hydro and Infinity are open source at hydro.run, built jointly by AWS and UC Berkeley.

Source: Matthew Burns · thenewstack.io
Sign in to join the discussion.