Latest / Ship It Weekly - DevOps, SRE, Platform and Cloud Engineering News / Ship It Conversations: Ang Chen on Project Vera, AI Cloud Emulation, and Safer Infrastructure Testing
Transcript
- 0:00Everybody wants AI to help run infrastructure.
- 0:02A lot fewer people are asking where that AI is
- 0:05allowed to fail. Because the hard part is not
- 0:07getting an agent to suggest a change. The hard
- 0:10part is making sure that change can be tested,
- 0:13challenged, and debugged before anything touches
- 0:16real cloud infrastructure. And that is what made
- 0:19this conversation interesting to me. Not just
- 0:21the AI angle. The idea that before we trust agents
- 0:24with real systems, they may need a real training
- 0:27ground first. Thank you. Hey, I'm Brian Teller.
- 0:46I work in DevOps and SRE, and I run Teller's
- 0:49Tech. Ship It Weekly is where I filter the noise
- 0:52and focus on what actually matters when you are
- 0:55the one running infrastructure and owning reliability.
- 0:58Most weeks, it's a quick news recap. In between
- 1:01those, I do interview episodes with people building
- 1:03tools, systems, and ideas that could actually
- 1:06change how this work gets done. Today is one
- 1:10of those conversations. I'm joined by Ang Chen.
- 1:13associate professor at the University of Michigan.
- 1:16He's working on Project Vera, which is now being
- 1:19positioned as a high -fidelity multi -cloud emulator
- 1:22you can run locally on your laptop with support
- 1:25for AWS EC2 and GCP compute. At a practical level,
- 1:30the pitch is pretty straightforward. Test cloud
- 1:33infrastructure locally, use standard tooling,
- 1:35avoid real accounts, real spend, and real blast
- 1:39radius while you are iterating. But the bigger
- 1:42idea behind Vera is what really got my attention.
- 1:45Ang frames this as part of a longer -term vision
- 1:48for giving AI agents a safe learning environment.
- 1:51or what he calls a kind of world model for digital
- 1:55systems, where they can build operational intelligence
- 1:58before ever touching real infrastructure. So
- 2:01in this conversation, we get into what high fidelity
- 2:04really means, how Vera works at the API layer,
- 2:07how it can sit under workflows that already use
- 2:10CLI tools, SDKs, or Terraform, and why that matters
- 2:15if you want faster feedback without pointing
- 2:18tests at the real cloud. We also get into the
- 2:21skeptical operator questions. How close does
- 2:24something like this actually need to be before
- 2:26you trust it? Where is it strong today and where
- 2:29is it still early? And if AI is going to play
- 2:32a bigger role in infrastructure, what kind of
- 2:34safety layers should exist first? That's the
- 2:37real conversation here. Not whether AI can generate
- 2:40infra work. Whether it can be forced to prove
- 2:42itself somewhere safe before it earns access
- 2:45to the real thing. If you like these kinds of
- 2:48conversations, follow the show wherever you listen.
- 2:51Subscribe on YouTube and check out ShipItWeekly
- 2:54.fm or TellersTech .com for more episodes, show
- 2:58notes, and everything else that I'm building.
- 3:01All right, let's jump in. Today, I'm joined by
- 3:07Ang Chen, an associate professor at the University
- 3:10of Michigan. He's working on Project Vera, which
- 3:13is basically trying to build a high -fidelity
- 3:15cloud emulator using AI agents, starting with
- 3:19EC2. Ang, thank you for joining me. Thank you,
- 3:21Brian. I'm excited to be here. So tell me about
- 3:24Project Vera. What is it? It's an effort that
- 3:27automatically generates a digital twin of your
- 3:30cloud deployment. DevOps can be very tricky to
- 3:34get right. And we don't want any downtime or
- 3:38security issues when we actually push the program
- 3:41to the cloud. So you can think of it as a sandbox.
- 3:44That's a digital copy of your actual infrastructure.
- 3:48Within this sandbox, the DevOps programs can
- 3:52be tested. They can be debugged. You can even
- 3:54deploy an AI agent to play with the sandbox and
- 3:57get to know more about your deployment without
- 3:59actually reaching into the actual deployment
- 4:02itself. And what's interesting about the sandbox
- 4:05is that it's actually generated by AI agent itself.
- 4:08Have an AI agent that reads. the cloud documentation,
- 4:12and it could also observe traces and logs about
- 4:15the deployment. And it uses a very specialized
- 4:19program synthesis pipeline to generate an emulator
- 4:23framework. The emulator framework will mimic
- 4:25the behavior of EC2, for instance, in terms of
- 4:28how to respond to a certain call, what should
- 4:31be the responses and formats in a very high fidelity
- 4:34manner. And the same idea generalizes to other
- 4:37services in AWS and it generalizes to other clouds
- 4:40as well. Actually, we're building it for Azure
- 4:43and GCP and other clouds as well. So it's an
- 4:46agent building a simulator of the cloud. And
- 4:50on that cloud, on that simulator, the DevOps
- 4:53engineers can do a lot of their works much easier.
- 4:57What's the target audience for a tool like this?
- 4:59Right. It would be primarily for DevOps engineers
- 5:03who... want to test their programs in the sandbox.
- 5:08The DevOps engineer can deploy their programs
- 5:11in the sandbox and observe the behavior and debug
- 5:16their programs before they push it to the actual
- 5:19cloud. And that sandbox can also be used to support
- 5:24DevOps like AI assistance. AI is getting very
- 5:29powerful every day, but we often don't want the
- 5:32AI to directly work on the infrastructure. because
- 5:34it could hallucinate. So having an AI agent testing
- 5:38its proposed actions in the sandbox before putting
- 5:42it to the cloud would be another use case of
- 5:45the sandbox. Is it interfacing with like IAC,
- 5:49like a Terraform or CloudFormation? Or how does
- 5:52that integrate? Right. The simulator emulates
- 5:56the cloud at the API level. Basically, every
- 5:59API that creates virtual machines and subnets
- 6:02is captured here. So basically, it can support
- 6:05SDK scripts, but it can also support CloudFormation
- 6:09and Terraform because eventually they all call
- 6:12into the APIs. And in the release that we have,
- 6:15we have like CRI test cases that mimic Amazon,
- 6:18but also Terraform programs that can be booted
- 6:21on this emulator. When you say high fidelity,
- 6:23what does that mean in practice? Right. It means
- 6:26that there are two key properties of this emulator
- 6:29because this is generated by an AI co -developer.
- 6:33so to speak that reads the cloud documentation
- 6:35and test against the cloud we want to make sure
- 6:39that this is not vulnerable to hallucination
- 6:42ais are getting very good but they still have
- 6:45hallucination and we have two ways to prevent
- 6:48this from happening and the first is the ai agent
- 6:52that we have built that's behind vera is using
- 6:55formal abstractions is using formal methods and
- 6:58verification to make sure that the code eliminates
- 7:02classes of hallucination problems. So it's built
- 7:05to be correct by construction without suffering
- 7:08from arbitrary errors that an AI model would
- 7:11otherwise introduce. And the second is that the
- 7:14AI agent also takes this simulator and strategically
- 7:19tests this against Amazon. Because this emulator
- 7:23is generated by the agent, the agent understands
- 7:26the inner workings of the emulator and it can
- 7:28understand what might be some edge cases and
- 7:32what might be some places where strategic testing
- 7:36would be helpful. So the agent also takes this
- 7:39emulator and produce traces and send it to the
- 7:41cloud, observe whether the behaviors are the
- 7:44same or not. And if they're same, that's what
- 7:47we mean by high fidelity. And if there are discrepancies,
- 7:50the AI agent will then consume these two traces
- 7:52and automatically patch the emulator so that
- 7:55in the next test case, they will be aligned with
- 7:57each other. Interesting. I guess I'm curious,
- 8:00how does it get around the non -deterministic
- 8:02behavior of an AI or an LLM specifically? Right.
- 8:07And that's a very good question. That's where
- 8:10the formal abstractions come in. Instead of having
- 8:13the AI write code in a freeform style, We actually
- 8:18have a lot of scaffolding. That's the key part.
- 8:22The structure of the emulator is a deterministic
- 8:25framework. And what we ask the AI to do is essentially
- 8:29fill in the blanks that we have left out instead
- 8:32of being creative about writing everything about
- 8:35the emulator. So it's a combination of neural
- 8:38and symbolic methods where the neural framework
- 8:41constrains the behavior. and it's fully deterministic.
- 8:45And there are strategic parts where the AI needs
- 8:48to read the documentation and understand what
- 8:50it's supposed to do. And it's only filling in
- 8:52these blanks in a way that's constrained by the
- 8:55scaffolding. So it's like a spec then that you're
- 8:58built around, okay. Exactly. Or in Cursor or
- 9:01Kiro, it's like a plan file that it's reading.
- 9:05Is it like a pre -prompt or is it more specific
- 9:08than that? It's more specific than that. So we
- 9:11use a special kind of phone methods that builds
- 9:15classes and abstractions, almost like a template.
- 9:18And the template has a very well -defined structure.
- 9:23And we know that the structure cannot go wrong
- 9:25because it's deterministic. But the structure
- 9:28also has certain stops. And the stops are where
- 9:30the AI agents will generate code and insert them
- 9:35into. So it's more specific than a pre -prompt,
- 9:38almost like... a class that can be inherited
- 9:41and can be turned into a compute instance, can
- 9:45be turned into a subnet, a firewall, and so forth.
- 9:48So can you walk me through the shape of the system?
- 9:50Like if I'm calling an EC2 API, what's happening
- 9:54behind the scenes? Right. So if it's calling
- 9:56into the EC2 API, so that API will be captured
- 10:00by the emulator framework and it will create
- 10:03a class, so to speak. that captures the behaviors
- 10:07as specified in the EC2 virtual machine documentation.
- 10:12For instance, there is a run instance which creates
- 10:14the virtual machine. And you could destroy it,
- 10:16you could attach disks to it, and so forth. And
- 10:19that will trigger some state modification, almost
- 10:22like IAC, where Terraform contains the state.
- 10:26So here, the emulator mimics that workflow, and
- 10:29it also contains state. But now we have a virtual
- 10:32machine. And the virtual machine could have a
- 10:34specific name. And if there's another API that
- 10:36attaches a disk to the virtual machine, the emulator
- 10:39will also capture that by modifying the internal
- 10:42state. So it is a hierarchy of these services
- 10:46where you could instantiate a virtual machine
- 10:49and the virtual machine could be contained in
- 10:51a VPC. So when you're updating the virtual machine,
- 10:54for instance, the emulator knows that it also
- 10:57must. updates the VPC. So talking about state,
- 11:00how do you deal with weird edge cases like eventual
- 11:03consistency, retries, throttling, quota errors,
- 11:06that sort of thing? Right. So the emulator framework
- 11:09itself is generated by an AI agent that reads
- 11:13the cloud documentation. So the cloud documentation
- 11:16describes the key behaviors of the cloud, but
- 11:20it doesn't describe everything. So the question
- 11:22that you ask is a very important class of problems.
- 11:25which are not fully documented in the documentation.
- 11:28As an example, eventual consistency and consistent
- 11:31guarantees are often not described in detail.
- 11:34But the API behaviors, how it should perform,
- 11:37is documented very extensively. So what we are
- 11:41doing here is that we are taking the emulator
- 11:43and bootstrap it to a fully functional emulator,
- 11:47but doesn't capture some of the nuances regarding
- 11:49throttling, rate limiting, consistency. But we
- 11:53have another simulator. in the backend that can
- 11:55supply some of these semantics. So this functional
- 11:58emulation can be, if there's a call into an API,
- 12:01that API, we can also emulate latency for that
- 12:04API throughout behaviors and quotas. So there
- 12:08are an orthogonal subsystem that supplies that
- 12:12kind of intricate detail to the emulator. That's
- 12:15a great question. What's the success bar? Is
- 12:17it like same response, same timing, same failure
- 12:20mode? Yeah. So there are two milestones. The
- 12:23first milestone is that it should enable the
- 12:26same inputs and outputs for the APIs so that
- 12:29DevOps engineers doesn't have to actually go
- 12:32to the cloud to understand whether their program
- 12:35is working. So then we just tested it and...
- 12:38observe the actions in this emulator. And the
- 12:41second milestone is that actually this emulator
- 12:44can help with DevOps perform better debugging
- 12:47than the cloud can. And the reason is that when
- 12:50the cloud has an error, it gives you some trace,
- 12:53but that trace is often verbose. It doesn't really
- 12:56help with pinpointing which line of code is problematic
- 12:59in your Terraform file or in your SDK file. Because
- 13:03there's an AI agent living in the sandbox. The
- 13:06agent can analyze the traces and produce better
- 13:09debugging information and even pinpoint the problems
- 13:12in Terraform. So the second milestone is actually
- 13:15to do better debugging than what the cloud can
- 13:18do. Interesting. So how do you prove that it's
- 13:20not lying to me? That is a heart of the question.
- 13:25How do we make sure that this emulator is actually
- 13:29producing the same responses in the first release?
- 13:33in the github we have more than 200 test cases
- 13:36and these are cri command lines that you would
- 13:39type into aws and we run a test between vera
- 13:44and an existing emulator so what we've shown
- 13:47is that vera is already doing much better than
- 13:51existing emulators but the same set of test cases
- 13:55I've also shown that Vera sometimes fails to
- 13:58produce the same behavior because this is a agent
- 14:01that continuously improves itself. And the first
- 14:05release gets a 70 % based on our measurement.
- 14:09And by this agent, we have another version that's
- 14:12continuous running and improving itself until
- 14:15it hits all the test cases. So one way that people
- 14:18test it is to use a leading emulator called local
- 14:21stack. Local stack is this really nice tool.
- 14:24that emulates AWS APIs. It's not one -to -one.
- 14:28I've found it's good in some ways, but yeah,
- 14:30it's... It's not one -to -one. It's close enough
- 14:34to enable classes of DevOps testing. In the open
- 14:37source release, actually, we did a comparison
- 14:40between Vera and local stack. So what we found
- 14:43is that Vera covers more than 70 % of the cases,
- 14:47whereas local stack covers 40%. So the first
- 14:51version of Vera is already performing. quite
- 14:54well in that regard. And we also have another
- 14:57version that's continuously improving itself.
- 15:00And the goal is to simulate the behavior of the
- 15:03cloud to Terraform and DevOps programs, almost
- 15:06like the Turing test. The ultimate goal is when
- 15:10we run a DevOps program against the simulator
- 15:13versus against the cloud, the DevOps program
- 15:17doesn't feel any difference. It doesn't necessarily
- 15:19mean that has to be line by line. character by
- 15:22character the same regarding the logs and the
- 15:25outputs, but we want it to be high fidelity enough
- 15:28that DevOps engineers can test it thoroughly
- 15:31in this simulator. So if I'm a platform team,
- 15:34where would I actually plug this in? Local dev
- 15:36versus CI versus prepod, validation, like what
- 15:39would be a good first step? Right. One way of
- 15:42using this is to integrate it to the CI -CD pipeline.
- 15:46When there are code changes, there's a new Terraform
- 15:48file. The agent can take the changes and validate
- 15:52it in the sandbox first and suggest changes to
- 15:55the program if there are errors and fix these
- 15:58errors and generate corrections for the DevOps
- 16:01engineers so that this would be integrated to
- 16:04the CICD before it's actually pushed to the cloud.
- 16:07Is there any use cases where maybe it's not well
- 16:10suited for yet? Maybe it doesn't have enough
- 16:13testing around it or validation. So there are
- 16:15two things that we know about the limitations
- 16:18of Vera. The first limitation is that it doesn't
- 16:21yet cover all resources in AWS. It does cover
- 16:25EC2, which is a key service. There's also a lot
- 16:29more beyond EC2. That's the first limitation
- 16:31that we know. And the second limitation is that
- 16:34the current version, the current version doesn't
- 16:39do some of the things that we... are thinking
- 16:42about. For instance, I've talked about AI -based
- 16:45debugging suggestions to DevOps engineers. So
- 16:47that tooling is not fully ready yet. So currently,
- 16:52if there's a bug, error doesn't automatically
- 16:54diagnose the bug for you, which is part of our
- 16:58ongoing plan. For the first limitation, which
- 17:01is that it doesn't support all APIs and it doesn't
- 17:04support customization. For instance, it doesn't
- 17:07automatically understand how a specific deployment
- 17:10is like. That deployment for an enterprise may
- 17:14not all use all the APIs. They may use the APIs
- 17:16in a very specialized way. So these kind of customizations
- 17:19are also not there yet, but they are on our agenda.
- 17:23So it sounds like EC2 is its area where you've
- 17:27had a lot of focus and it seems like you have
- 17:29trusted output there. What's the nastiest EC2
- 17:33edge case that you've had to emulate? There's
- 17:36a very interesting edge case that we have found
- 17:39in this exercise, which is that sometimes our
- 17:42AI co -developer that writes the emulator uses
- 17:46one types of string formats, like a camel cases,
- 17:50where it's easy to make format the same string
- 17:52differently. And that's very interesting because
- 17:55a Terraform program expects a certain type of
- 17:58format. And if it's formatted slightly differently,
- 18:01then Terraform program won't run. So there we
- 18:03had to create specialized directions for the
- 18:06agent so that you would only produce camel cases
- 18:09when it's supposed to be camel cases. In other
- 18:13cases, produce snake cases and so forth. I thought
- 18:15that was a very interesting and unexpected edge
- 18:19case where the initial version of Vera didn't
- 18:22produce the exact response and we had to do extra
- 18:25engineering to make that align. Interesting.
- 18:29Do you think clouds will ever make official emulators
- 18:31good enough or is learned emulation the path?
- 18:35Right. One thing that's very special about cloud
- 18:39emulation compared to other types of emulators
- 18:42is that the cloud is a moving target. There are
- 18:45new services every week and there are API changes.
- 18:48Many of these changes will introduce different
- 18:50behaviors. So it's building an emulator for the
- 18:54cloud. Our experience is that there are two key
- 18:56challenges. One is that the size of the cloud
- 18:59is so big and there are so many different clouds
- 19:01with different behaviors. Beyond AWS, we've also
- 19:05investigated Azure and GCP, which is on our agenda
- 19:08as well. They all have different APIs. They have
- 19:11different behaviors. The emulation for one cloud
- 19:14doesn't really generalize to the other. The second
- 19:17is that the APIs go through constant evolution.
- 19:21Because the clouds need, they want to stay competitive.
- 19:23They're introducing new services, new ways of
- 19:26using these services. We really believe that
- 19:28learned and AI agent built emulator is the path.
- 19:32Because the AI agent doesn't have to spend a
- 19:35lot more extra effort once the emulator framework
- 19:38is there. It still has to align the emulator
- 19:41periodically. Whenever there's an API change,
- 19:44the agent has to understand what has changed.
- 19:47It has to generate strategic test cases. to realign
- 19:51that API, but it doesn't have to do everything
- 19:53from scratch. So this agent can keep up with
- 19:56the changes that happen in the cloud and it can
- 19:59gradually expand to different clouds. So this
- 20:01is an ever -expanding emulator that can catch
- 20:04up with the speed of the cloud. And that's something
- 20:07that we are very excited about regarding this
- 20:10learned emulation. Have you done much as far
- 20:12as GCP training yet? I'm just curious because...
- 20:16The IAM approach in GCP is completely different
- 20:20than the IAM approach in AWS. Right. Or even
- 20:24like Cloud Run versus Lambda is also completely
- 20:27different. Fundamentally different services,
- 20:29although the same general idea or same general
- 20:33focus. Yeah. And that is a very good question.
- 20:36The clouds call the same service differently.
- 20:39So they're almost aliases. So here is where AI
- 20:43will shine. Because as long as we can... make
- 20:46the AI understand. There are certain concepts
- 20:49across clouds that are similar. Instances are
- 20:52called virtual machines in a different cloud.
- 20:54Then there are certain knowledge base in the
- 20:56AI that can transfer from one cloud to another.
- 20:59So there's a core of the learned knowledge that
- 21:02can transfer, but not everything. The APIs are
- 21:05still different and the services do not always
- 21:09have a counterpart across clouds. What I'm excited
- 21:12about this approach is that some core knowledge
- 21:15of the cloud can be transferred so that when
- 21:17we're building the second emulator for GCP, it
- 21:20will be much faster than the first one for AWS,
- 21:23where it has to learn everything, all the concepts
- 21:26from scratch. Where can people find more information
- 21:29about Vera? We have an open source release called
- 21:32Project Vera. And it's project -vera .github
- 21:36.io, where we have an open source release, as
- 21:39well as the publication that we had over the
- 21:41years that eventually led to this paper, to this
- 21:43simulator. And that could be a good source of
- 21:47information that not only is about the release.
- 21:51but also the rationale behind the release and
- 21:54the specific approach that we take in designing
- 21:56Vera and other tools that we have built in the
- 21:59past couple of years surrounding AIOps and DevOps.
- 22:03And we are looking for contributors to help us
- 22:06improve Vera. And if you're interested in contributing
- 22:10to the open source release or contributing new
- 22:13ideas, or if you have a service that you would
- 22:15like to see emulated, this is something that
- 22:17we are very excited to help you with. What's
- 22:20the license model for Vera? currently? It's under
- 22:23MIT license in open source. That's good to hear.
- 22:26Too many new open source projects like to limit
- 22:29their open source initiatives, which is a little
- 22:32frustrating. Right. It's fully open source under
- 22:36MIT license. Thanks. Well, thank you, Ang, for
- 22:38coming on. Really appreciate it. Thank you very
- 22:40much, Brian. It's great to be here. All right.
- 22:43That's my conversation with Ang Chen. My biggest
- 22:46takeaway for this one is that AI for infrastructure
- 22:49gets a lot more believable when it has to survive
- 22:52a sandbox first. That's what makes Vera interesting
- 22:55to me. Not just that it emulates cloud behavior,
- 22:58but that it is trying to create a local, high
- 23:01-fidelity environment where cloud workflows can
- 23:04be tested without real credentials, real billing,
- 23:07or real production risk. And since we recorded
- 23:10this, the project has clearly kept moving. It's
- 23:13now being presented publicly as a multi -cloud
- 23:16emulator, not just an EC2 -focused idea, with
- 23:20AWS and GCP support and a stronger public story
- 23:24around local testing and safer iteration. I also
- 23:27liked that the bigger vision was not just AI
- 23:30does ops. It was more grounded than that. Give
- 23:33agents a training ground. Let them learn inside
- 23:36something rule -based. See how they behave, see
- 23:39where they fail, then decide what, if anything,
- 24:04Thanks for listening, and I'll see you later
- 24:07this week.