AWS distinguished engineer Marc Brooker discusses the emerging science of agent safety, the engineering challenges of building trustworthy AI and why he believes we're approaching a golden age of software quality.
The more capable AI agents become, the more interesting the engineering challenges surrounding them get. How do we give agents the freedom to creatively solve complex problems while ensuring they operate within the boundaries we intend? And how do we translate our very human understanding of what's acceptable into something a machine can reliably follow?
Marc Brooker, a distinguished engineer at Amazon Web Services, is working on these problems from the front lines of agent safety. His work brings together decades of computer science research, mathematical reasoning and modern AI techniques to address challenges that are helping give rise to an entirely new engineering discipline.
I sat down with Brooker at AWS re:Invent to discuss the science of agent safety, what we've learned from the past year, the challenges that remain, and why he's optimistic that the technologies emerging today could usher in a golden age of software quality.
The following conversation has been edited for length and clarity.
Understanding the agent problem
Corey Noles: It's been a wild year for agent safety. Some of the incidents we've seen have given us something to research and study, to see how these behaviors happen. Has any of that impacted what you've been working on this year?
Marc Brooker: It's certainly something we really did dive deep into — that incident and some others — and really understand them and make sure that the things we were planning, the things that we were building, were the right shape.
If we think about agent safety, there are actually two interesting, related problems. There's a problem where I can say, what if the models are bad and are intentionally trying to do bad things? But I actually think that's a much less interesting and important problem.
The much more important one is agents are just these persistent, creative problem solvers. You give them a problem to solve and they are going to try to solve it diligently. And a lot of the problem is sometimes too diligently.
A huge amount of helping people understand agent safety is helping them understand that this is a trade-off. You do want agents to have this problem-solving power. You want them to be flexible. You want them to do this kind of diligent work.
And that's a very desirable outcome. You want them to be able to adapt to different kinds of problems. But that all has to happen in the context of what good looks like for those agents. What are the boundaries that we're going to set around how they can solve a particular problem?
Where should the rules live?
Noles: Is that an architecture problem? A user intent and instruction problem? Are we talking about guardrails at the architecture level, at the pre- and post-training level, or at the user level?
Brooker: I think it's all of those things.
At the bottom of the stack, we need to have a way to write down policy very crisply, very exactly and very deterministically.
The next layer up, you need a way to contain an agent and make sure everything that it's doing is going through the policy layer. When they do those tool calls, you need to unpack the protocol, unpack the right fields, apply the policy to it, etc.
And then the next layer up is this really interesting question of where that policy comes from. Whose policy? Where does it come from?
Noles: The manufacturer, the company that runs the system, the customer, the user?
Brooker: Ultimately, it is a mix of all of those things. Even within a single company, I'm going to have some policy that comes from my security team, some policy that comes from my compliance team, some policy that comes from maybe my legal team, and then some policy that comes from the individual team that's building the agent.
I need to make sure they're consistent. I need to check them, make sure they're not contradictory. And then make sure that when I bring all of this policy together, it meets the kind of common-sense outcome that's in my head for what a policy should be.
The fundamental problem of policy creation is getting this human idea of what good is out of someone's head and into a formal definition.
Getting humans on the same page
Noles: It's not just one engineer sitting there. It's a whole business thing. Do you see governance as an issue that needs to involve all of the core stakeholders in the business?
Brooker: Yeah, for sure. They all have their own set of requirements, their own set of outcomes that they're looking for.
Part of the challenge of building products in this space is they all also have different mental models and use different words. Bringing all of those ideas down into a formal, grounded language allows us to do that translation and composition in a principled way.
Noles: What do you think is the biggest challenge?
Brooker: When I look at an organization, and I think about this question of what should this agent be able to do, there are some parts of that that we've already written down. We've written down policy, written down internal documents.
There are some parts of it that are just organizational tacit knowledge that we sort of share peer to peer, and that is currently mostly inaccessible to tools.
There's a challenge of how do we help organizations write that down, get that into words, and then, once you have done that, formalize the policy.
You also need to be able to go back to those stakeholders, and they're going to have common-sense questions like, can this agent access the internet? And you can't answer that with, here's a ream of code to read. You have to answer that with a crisp yes or a crisp no.
Defining what good looks like
Noles: The communication end might be one of the biggest struggles on both the engineering side of this and the business end. You can't just go to legal and say, what guardrails do you want in our AI? They need to understand how it works, what the limitations are and the consequences of those restrictions.
Brooker: It is a real hurdle, but again, it's one that by meeting those people where they are, communicating to them in their words, and then using a mix of model techniques and formal techniques to turn those words into a formal representation, you can address.
And then there are some things that are human mental model shifts.
For example, we've known for decades in computer security that denialisting is not particularly effective. I'm going to write down every bad thing possible in the world, and I'll be there forever.
Getting people around to a perspective of what you need to do is describe good — that's much more effective as a thinking strategy.
Noles: I've learned that the bigger the list of no's you give an AI, it can start to trip over them, or it'll focus so much on that it does a terrible job at what you want it to do.
Brooker: That's a great point. We've been talking about policy and these deterministic layers around agents. We really like that from a threat model perspective, we like it from a conceptual perspective, but there's also just a practical perspective.
From an engineering perspective, it's really nice to be able to separate these concerns, spend my context window tokens on the problem at hand, and have the infrastructure around an agent enforce the boundaries and enforce the policy.
Noles: There's a real parallel there between enabling humans on your staff, ensuring they have what they need to do their job while still protecting your business from mistakes. You can over-constrain a human as well and get similar results.
Brooker: That's for sure. A lot of this is quite similar to the human problems. Not really new from that perspective.
One difference is the human side of things tends to be enforced with a set of incentives. If you break the policy, you lose your job. That doesn't work with agents. You need to enforce those directly on the agent.
When AI meets mathematical proofs
One approach AWS is pursuing is neurosymbolic AI, which combines the flexibility of neural networks with formal logic and mathematical reasoning. It's central to AWS Greenlight and the company's approach to enforceable agent policies.
Noles: I've heard a lot of excitement around Greenlight. What have you guys done that represents a new approach?
Brooker: For Greenlight, I think the thing we're most proud of as an innovation is basing that in neurosymbolic design.
We can use provers and things like Lean to formally reason about our policy properties, along with models to help build those policies, to help us understand those.
We've been talking this week at the keynotes about the models build and the provers check. Bringing that model to policy is super powerful. We're very proud of that as a piece of technology, and it's something that we are helping customers do.
Is agent safety ever solved?
Noles: Do you think agent safety is something that can be entirely solved, or do you believe this is something like cybersecurity, where we're always going to be discovering new things that need to happen? It's a perpetual thing.
Brooker: It's an operational lifestyle. I think that is the reality.
Certainly, as model capabilities continue to evolve, it's going to keep changing the landscape. As we get a better and better understanding of the shape of the problem, that's going to keep changing the landscape.
Just like with cybersecurity, there's a set of adversaries that are going to keep things interesting for everyone.
Which means that, unfortunately, there's not a magic solution. I think the fortunate side of it is we can also use agentic AI to help automate a ton of that operational lifestyle.
The same tool that is causing the problem is helping us solve the problem, which is an exciting place to be.
Noles: I feel like with agent safety, the starting line is that agents are going to help us. It feels like we can learn from some of the mistakes made along the way in cybersecurity.
Brooker: Certainly that. Building from the beginning to realize that managing and making change is a core capability of a system, of a service.
You just fundamentally can't say, well, it's done now. And that's always been true in cybersecurity. It's always been true in software. But I think there have certainly been historical times when some people have pretended it's done now.
Inventing a new engineering discipline
Noles: Do the people who are working on these kinds of things see themselves as almost creating a new field?
Brooker: Yeah, I think so. We've been working on the underlying technology, especially in the automated reasoning space, for a long time.
There is a basis in things we've been working on, but it is really pushing, both from a scientific perspective and from an engineering perspective, the frontiers.
I think a lot of folks who have been thinking very deeply about things like software quality and proof for often decades of their careers are very excited about that being a very current thing that everyone is thinking about.
In some ways, we're inventing a new field, and in some ways, bringing some great ideas from decades of computer science to bear on a hard problem.
It's just a fun thing to be working on and an important thing to be working on.
Noles: Do you see engineers who have maybe felt displaced or at risk because of AI leaning into some of these newer areas and finding something they're excited about?
Brooker: I think so. I believe that software is such a useful thing, such a powerful thing. There is so much demand in the world for solving problems with software, in some ways that we know and can predict, in some ways that are going to be beyond our imagination right now.
As we automate some other parts of software development, now there's new, exciting stuff to work on over here.
That's true of agent safety. It's true of agent quality.
A front-row seat to technological change
Noles: Think about going from a world where software was something installed on one computer at your desk to something where suddenly the world was connected globally. Is this another shift of that magnitude in terms of what engineering looks like?
Brooker: I think so. Certainly a shift of the scale of the internet. And maybe just a continuation of a theme.
We started the software industry with punch cards and toggle switches and invented new and better abstractions and new and more powerful tools.
If you go back to the punch card era, the software we have today would almost be unimaginable.
It's not new. I think it has been a field that has seen an incredible amount of change over one lifetime. For me, this is a continuation of a theme rather than something new.
Noles: I think there's something almost romantic about having the opportunity to shape what your industry is going to look like in the future. You're at a unique point in time where people who are doing your job and working on your team are going to shape what comes next.
Brooker: I feel extremely privileged to be part of that.
I started my career out of university at AWS and saw the cloud building, and feel super privileged to have been part of building up the cloud and building out AWS. And now there's another one.
To have two such opportunities in a career is extremely exciting.
A golden age of software quality?
Noles: What's the next frontier for you, to the extent you can talk about this?
Brooker: We're going to continue to invest in agent safety.
I think the other one that is super exciting to me is bringing the same neurosymbolic techniques to bear on bug finding. And then the next step of that is how can we help people broadly prove code correct over a very large surface area?
We've been working on that at AWS for a long time. We have some core pieces of our infrastructure that we've proven correct.
The difficulty of doing that has gone down incredibly over the last two years. And we want to enable the world to bring neurosymbolic techniques, proof techniques, etc., to bear on fundamentally raising the quality bar on software.
That's a huge focus of mine.
I think this is going to be a golden age of software quality. A lot of people look at the world and are like, oh, it's going to slop and all of this stuff.
I actually think the countervailing force of being able to build tools that automatically drive software quality is going to raise the bar on the whole field.
Noles: One of these days, we're going to find out we're really bad at a number of things we felt we were really good at for a lot of years.
Brooker: Yeah. And that's true.
As we've developed C2, it's actually been quite humbling to run that on code that we built very carefully, we spent a lot of time thinking about, we were proud of and celebrated.
I think we're going to have to change the way we think about software quality. And then that comes into your questions about security, too.
We're going to prove a lot more code correct. We're going to be able to reason about end-to-end system properties a lot more crisply.