← All talks

AI Engineer NYC 2026 Main stage · 19 min

Balancing Acceleration and Safety for AI Agents

John FeminellaTwo Sigma

John Feminella uses a catastrophic payment mistake to explain five controls that make agents visible, constrain their access, and reserve human attention for decisions that need it.

When everyone approves the wrong thing

51:36 ↗

The payment was supposed to move interest. Instead, it moved the principal too.

John Feminella opens with his account of the 2020 Citibank–Revlon payment error. An internal workflow used a full-loan-payment operation to calculate the interest owed. The principal was supposed to be directed into an internal wash account, where it would be booked without leaving the bank. Missing settings changed the result. About $900 million went out instead of the roughly $8 million interest payment described in the talk.

Feminella’s reconstruction shows how the settings changed where the principal went. Only the principal field pointed to the wash account; two other required fields did not.

Payment-routing diagram with missing wash-account settings in FRONT and FUND, and PRINCIPAL directed to the wash account.

The diagram at 54:30 traces the misdirected funds through the fields the operators needed to configure.

The disturbing part is that an approval process existed. The software warned that money would leave the bank. That was also what the operators expected: the interest really was meant to leave. Three approvers could accept the warning while misunderstanding the transaction it covered.

Feminella is speaking in his personal capacity. His concern is what happens as agents gain access to systems that can make mistakes on this scale. The approval dialog did appear. The people reading it still did not understand what they were approving. Watch the example at 51:52.

Make agents visible and review their actual risk

56:15 ↗

An agent’s behavior cannot be known completely in advance. Neither can a human’s. Organizations still give people access and autonomy, together with controls that let them work effectively.

Feminella rejects three inadequate defaults: isolate agents until they cannot do anything useful, let them act without meaningful restrictions, or put policies in prompts and assume they will enforce themselves. He proposes five controls that can work together without making every agent wait for the same review.

The first is an agent registry. When agents appear as notebooks, chatbots, web tools, and assembled tool servers, the organization needs basic answers: who owns this, what is it for, which tools does it use, and which endpoints does it reach? Those answers support reuse as well as governance. A team cannot reuse a useful agent it does not know exists.

Registration should happen automatically through approved building frameworks, with a manual path where necessary. Requiring every small experiment to pass through an onerous registration gate can drive work into less visible channels.

The second control is risk-based review. A ticket summarizer and a production-deployment agent do not deserve the same queue. Most enterprise agents have a specific purpose, unlike an open-ended coding assistant that does not know what the next user request will be. Declared purpose, tools, endpoints, and applied controls provide information for deciding where human review is most valuable. Spending reviewer time on low-risk requests also leaves less attention for consequential ones.

Turn declarations into runtime restrictions

1:02:32 ↗

The third control makes the declared purpose enforceable. An agent may need several capabilities, but it rarely needs every tool available in the organization. Its author is well placed to specify the few tools needed for its job.

A research summarizer might need web access. A release-deployment agent may have no reason to browse. A blanket allowlist applied to both either blocks useful work or grants unnecessary access. Their different purposes should produce different permissions.

In the managed environment Feminella describes, initialization looks up the agent in the registry. Its policy becomes concrete restrictions on endpoints, hosts, and other resources. The team can operate within its declared risk profile without opening an IT ticket for every routine access decision.

The fourth control is shared evaluation infrastructure. Different agents need different tests, but they also need many of the same capabilities for running and comparing evaluations. A firm-wide foundation lets teams supply the assertions specific to their agent instead of building the surrounding machinery repeatedly.

A model is a dependency that affects the running application. Replacing it can change the agent’s behavior even when the application’s own code barely moves. Evaluations provide a way to detect that change. A central committee approving every prompt edit would slow iteration; shared evaluation tooling gives teams a repeatable way to assess it. Watch the runtime and evaluation controls at 1:04:47.

Protect the human attention budget

1:07:09 ↗

The fifth control addresses approval fatigue. A person supervising many agents can receive requests faster than they can inspect them. Repeated confirmation trains the person to click yes, eventually including a request they should have examined.

Route a request according to the decision it needs:

  • An explicit rule covers it: apply the rule directly, so routine permitted calls can proceed and prohibited calls can be denied.
  • The request needs interpretation: use an independent, conservative classifier to assess it.
  • The ambiguity or consequence needs human judgment: ask a person who has time to inspect it.

This reserves attention for the requests where an approval can actually change the outcome.

The classifier is part of runtime governance, separate from the agent’s own desire to finish its task. This makes the decision enforceable at the point of action rather than dependent on what remains in the agent’s context.

The registry, risk review, resource limits, evaluations, and runtime checks work together to keep that attention available. Feminella’s closing analogy is a car’s brakes: being able to stop safely is what lets the driver go fast. The engineering goal is to give agents useful autonomy with the same confidence that their actions can be constrained.

Full transcript

Timestamps follow the original livestream. Select a time to watch that moment. Transcripts are machine-generated with reviewed name and terminology corrections; occasional recognition errors may remain.

50:59

Hey,

51:01

All right, I precariously balanced my water over there.

51:04

My name's John Feminella.

51:06

I work on AI architecture and engineering at Two Sigma,

51:09

which is a hedge fund here in New York.

51:11

Before I get too far into things,

51:13

I have a legal disclaimer slide that I have to show you

51:16

that says two things.

51:18

One, I promise not to sell or market or offer you any securities

51:21

at any point in this talk.

51:23

and two, everything in this is my own opinion

51:25

and not the opinion of Two Sigma.

51:27

Thanks for indulging me.

51:28

If I don't say those magic words,

51:30

the 5G microchips implanted in me will explode.

51:35

So that slide is a good example, actually,

51:37

of how our industry is regulated.

51:40

And as a regulated company with lots of controls,

51:43

I think one thing that's always interesting

51:45

is to explore what happens when controls fail

51:47

because that gives you a good idea

51:49

about why the controls were there in the first place.

51:51

And so I'd like to tell you a story about that by showing you another legal slide.

51:56

After August 2020, a very interesting contract clause suddenly started showing up in a bunch

52:02

of commercial loan agreements.

52:03

And this clause essentially tries to prevent a certain scenario from happening.

52:07

And it's complicated, but I'll explain it like this.

52:10

Let's say that you're a lemonade stand business, and you borrow money from a lender to capitalize

52:15

your lemonade stand.

52:16

and the bank that's overseeing that transaction,

52:19

that's in the middle between the borrower and the lender,

52:23

sends the lender all of the money that you owe in a catastrophic mistake.

52:29

You'd probably be mad and want the money back,

52:31

but the lender might also say,

52:33

no thanks, you paid us back and we're all good,

52:35

so we'd rather keep the money.

52:37

Something like this happened in August 2020.

52:40

Revlon, the cosmetics company, had borrowed money under a big 2016 term loan.

52:45

And that loan was split up into a bunch of pieces across 300-plus lenders, hedge funds, credit funds, CLOs, other banks.

52:53

And in the middle is Citibank, the administrative agent.

52:56

Being the agent in this kind of transaction means that you're performing the plumbing that connects the borrowers with the lenders and managing the lifecycle of the loan.

53:05

So in this transaction, Revlon pays Citi, and then Citi pays the lenders.

53:09

And Citi's not lending its own money.

53:10

It's just in the middle, moving people's money around.

53:13

So here's the plan for August 11th, 2020.

53:17

Revlon would pay about $8 million of accrued interest to both groups,

53:21

and the lender's principal would roll into this new facility.

53:24

That's an exchange of paper, not cash.

53:27

So the remaining lender's principal would stay put,

53:29

and the idea here is that only interest should be going out.

53:33

Principals should not be moving at all.

53:35

And the bank had a piece of internal processing software called FlexCube.

53:40

Isn't that a fun enterprise software name?

53:42

in FlexCube, the easiest way to do this kind of transaction

53:46

is to pretend to record it like Revlon were paying off the entire loan.

53:51

And that triggers the correct interest payment calculations to everyone.

53:55

You can probably guess what's about to happen next.

53:57

So you're supposed to send the principal portion

54:00

to an internal WASH account that you own as the bank

54:03

so that it's booked and recorded correctly,

54:06

but it never leaves the bank's perimeter.

54:08

So keep your eye on that WASH account.

54:10

What was supposed to happen is that the boxes labeled front and fund and principal should

54:16

all include the WASH account number and should all have a check box checked next to them.

54:21

So unfortunately it turned out that was what needed to happen, but for various arcane reasons

54:27

the boxes were not checked.

54:28

And although FlexCube pops up a warning notification that says, uh-oh, money is about to leave the

54:33

bank, are you sure you want to do this?

54:35

That was correct.

54:36

Money was supposed to leave the bank because they were making the interest payments.

54:39

So the three approvers who were supposed to approve that looked at it and said, yep, that's

54:44

the right thing that's supposed to happen.

54:45

And although that warning notification popped up, the human operators carrying out the transaction

54:50

overwrote that.

54:52

Remember, Revlon was making that interest payment.

54:54

So the principal never went to the wash account.

54:56

And instead, Flexcube sent the entire outstanding principal of the loan to all of the 300 lenders,

55:02

about $900 million instead of $8 million.

55:06

So every lender got the amount that they would have been owed

55:09

if Revlon had paid the loan in full,

55:11

but Revlon didn't want to pay off the loan.

55:13

It wanted to hold on to its money.

55:14

That was a great deal for the lenders,

55:15

because remember, Revlon was in trouble at the time,

55:17

so its loans weren't trading at face value,

55:19

and getting all your money back on a deal

55:21

that you thought was only worth 60 cents on the dollar

55:24

is a great deal for you.

55:26

So they didn't want to give the money back,

55:28

even after Citi called them and said,

55:30

please, that was a mistake, give us the money back,

55:32

and their argument was,

55:32

we shouldn't have to give the money back

55:34

because you paid us in full, and that's how loans work.

55:37

You eventually pay them back,

55:38

and just because you paid it back at a different time

55:40

than you were supposed to doesn't mean

55:41

that we should have to give it back now.

55:43

And so to prevent that from happening,

55:46

commercial loan agreements everywhere started

55:47

including a clause like that one.

55:49

So what does a payment error at a bank

55:51

have to do with AI agents?

55:53

Well, the bank had this procedure, it had these controls,

55:56

and everybody did what they thought the right thing to do was.

55:59

That's the problem I want to talk about for the rest of this talk.

56:01

Every day we're giving real agents real autonomy over systems like FlexCube.

56:06

And how do we prevent accidents like that one from either from happening without locking everything down or just hoping we'll get lucky that they won't happen?

56:14

So here's the crux of the issue.

56:16

You can't really know in advance what an agent will do, right?

56:19

There are these non-deterministic systems.

56:21

And that sounds scary until you remember that humans are also non-deterministic systems and they're going to make mistakes too.

56:27

And so most firms don't choose to say, well, in order to reduce the risk of humans making a mistake,

56:32

we're going to lock them in rooms and prevent them from talking to each other,

56:34

and they're all going to double-check everybody else's work.

56:36

We allow them a certain amount of autonomy along with a certain amount of controls.

56:41

So we give them boundaries, visibility, and we equip them with systems and controls

56:46

that let them do their jobs effectively.

56:48

So in this sort of model, safety and innovation are not opposite ends of a spectrum

56:52

that you must trade off on.

56:53

They're things that you can have at the same time.

56:56

So I think you can have your cake and eat it too.

56:58

And when we were thinking about what controls we wanted to apply to agents,

57:01

we also looked at some approaches that didn't work for us.

57:04

We don't want to sandbox or lock down everything,

57:06

because a sandbox with no real access to systems is safe,

57:10

but it's not very interesting or useful.

57:12

If you let agents go wild and do whatever they want,

57:14

that's maybe powerful and freeing from a cognitive perspective,

57:18

but the isolation is very weak there,

57:21

and that approach is generally not suitable for highly regulated enterprises.

57:25

And then if you just have policy documents that agents look at or that are part of your

57:31

specification for the prompt, that's also not very enforceable at runtime.

57:35

You can't guarantee that that will be part of the enforcement controls.

57:38

So what did work for us was thinking about what mix of controls would get us both safety

57:43

and innovation at the same time.

57:45

So how do we provide boundaries and stop problems but don't hinder folks from operating correctly?

57:51

So we have a number of these controls, but today I'll talk about five of them.

57:55

When I say controls here, what I mean are the guardrails and shared capabilities that let teams move in ways that don't hinder what they're trying to do.

58:04

And we don't want to reach some chasm that we need to cross to let people get their work done and then make everyone wait while we build a bridge to get there.

58:15

So these controls are composable.

58:17

Each one does one job.

58:19

And then together, they let us run agents with real autonomy at an appropriate level of safety.

58:26

So the first problem is that agents were showing up everywhere.

58:29

We have big teams with lots of agents running.

58:32

We have small teams with a few.

58:33

We have individual people running stuff in an uncontrolled way.

58:37

And these come in every shape.

58:38

Could be random chatbots.

58:39

It could be MCP servers glued together in this Frankenstein hot

58:43

podge.

58:44

It could be cool notebook experiments.

58:46

It could be really useful web tools for folks.

58:48

But it's hard to answer when you look at that a few simple

58:52

questions, like who owns this?

58:54

what tools does it have access to, what should it be doing, what should it not be doing.

58:58

And if you can't answer those kinds of questions, if you can't govern them,

59:01

then you can't really also reuse that.

59:03

So you're tempted to build multiple solutions to the same problem

59:08

if you don't know about what exists already.

59:10

And then the firm can't also govern those in any kind of legible way.

59:14

So one thing the firms sometimes do here is add some kind of gate.

59:18

Like don't let anything run until everything is registered and approved

59:21

and has gone through this very onerous process.

59:24

And that sounds safe, but if you look at what it does to the work,

59:27

every idea, even some simple no-pick experiment,

59:30

is going to wait in line behind something that's really risky.

59:34

And we don't want to subject everybody who's given the diversity of agents

59:39

to exactly the same process.

59:41

So most people are going to give up,

59:42

or they'll just get pushed to some shadow IT,

59:44

less governed path that is less visible,

59:48

and then we don't get to see anything at all.

59:50

So that's what motivated the first control is an agent registry.

59:53

You can't govern it, you can't see, so the agent registry makes agents legible, and it

59:57

registers, retrieves, and discovers the key

1:00:00

facts about agents that we want to know for any agent.

1:00:04

So those are things like which tools it declares, what endpoints it's going to talk to, which product does it belong to, who owns it.

1:00:10

And humans, other programs, other agents can then use the agent registry to decide what's available at the firm, whether that's useful for them, and to go use that as a source of truth for other questions.

1:00:23

So this doesn't require extra effort on your part.

1:00:25

It just happens when you use one of the firm's approved agent building frameworks.

1:00:29

It's automatically registered.

1:00:30

All that information is recorded there for you.

1:00:32

And if you want to do a manual registration, you can certainly do that.

1:00:37

So the second problem we have is that now that we've got all these agents doing all

1:00:42

these things, we quickly notice that what they're doing is really different.

1:00:45

And that means our agents carry really different risks, right?

1:00:49

So a thing that summarizes Jira or linear tickets is really different than a production

1:00:55

deployment agent that can touch a running system.

1:00:57

And if we try to use the same review process to cover all of these agents, then every agent

1:01:03

is waiting in the same queue for weeks for human review.

1:01:06

And if people are going to route around slow processes, then we wind up in the same situation

1:01:11

that we had before.

1:01:12

So again, you might be tempted to say the answer is something like really detailed,

1:01:16

heavy manual review by all of these different constituencies. Again, that feels safe, but now

1:01:21

we've got a trivial summarizer waiting two months for the same sign-offs as an agent that is touching

1:01:27

production systems. And most of the good agent ideas, most of the ones that have value right away,

1:01:33

start out as small experiments, and you don't want those people to wait in the same line as the stuff

1:01:38

that's touching production right away. So the reviewers are drowning in these low-risk requests,

1:01:43

and the high-risk ones have to share that attention pool.

1:01:46

So we don't want to trade away that speed if we can help it.

1:01:49

So again, because not every agent needs the same review,

1:01:52

and because most agents are purpose-built rather than open-ended,

1:01:56

and when I say open-ended here,

1:01:57

you can imagine coding agents like Pi or Claude Code.

1:02:00

When you open them and you start typing,

1:02:03

Claude Code or Pi doesn't know what you're about to ask.

1:02:06

It doesn't circumscribe its purpose in any particular way.

1:02:09

But most of the agents that are deployed in enterprises

1:02:12

do have very specific purposes. When you're engaging with that agent, it's to do something

1:02:17

specific that's well known and well understood. So they have a very specific reason for existing

1:02:21

and a very circumscribed purpose. And you can tell these agents apart from each other by looking at

1:02:26

what they declare up front, their tools, the endpoints they access, the controls that are

1:02:31

applied to them, etc. So the third problem is that if you know about your agents and what they're

1:02:39

doing, you'll quickly notice that many agents don't talk to each other.

1:02:43

Sorry, they don't talk to just one thing or in just one capacity.

1:02:46

The more open-ended the agent is, the more it looks like a Claude Code or Pi, the more

1:02:51

it can do a variety and a diversity of different things.

1:02:55

Call an internal API, run a tool like a web search, that sort of thing.

1:02:59

And each one of those is a different opening, a different door to a different kind of risk.

1:03:03

And if you give an agent an entitlement for a role account, then it can do a lot more

1:03:08

damaged than something that's just going to read a public web page, for example.

1:03:12

So the question is not, can this agent do X, but what's the granularity that we need

1:03:17

to solve for for the agent to act successfully?

1:03:21

And again, one tempting answer is to kind of be heavy-handed here, or to give every

1:03:25

agent the same short allow list of stuff that's safe to do, and then block everything else.

1:03:31

That's safe, but it's also useless.

1:03:33

An agent that can't search, or can't call an API, or can't do any of those things without

1:03:38

asking somebody first can't really do the work that it was intended for. And then

1:03:42

teams either give up on those agents or they find a way around the wall and

1:03:46

both outcomes are costly. So a wide kind of blanket block on everything trades

1:03:51

away the innovation that we want to preserve and avoids making a real

1:03:55

decision about risk. And as author John Shedd wrote, a ship and harbor is safe,

1:04:00

but that is not what ships are for. So the fix here is to let agents declare

1:04:06

their purpose upfront and say what tools they're going to use or what tools they

1:04:11

need access to. So in the second column here we might say that a research

1:04:17

summarizer is going to be allowed to use a web tool to access research, but for a

1:04:24

release deployer agent we're not going to allow them to do that because they

1:04:28

have no reason to use that tool. And so if they try to ask for it they won't get

1:04:32

it by default. So we don't need to make this kind of decision for every tool.

1:04:35

the agents just have to say which tools they want.

1:04:38

And you're, as the agent author, you're in the best position to say,

1:04:42

I need these four things out of the 500 that are available.

1:04:47

So the way we need to enforce that is that when agents run in our managed environments,

1:04:52

they look at the registry that we talked about before

1:04:55

to look up what policies apply to it at initialization time.

1:04:59

And that policy gets translated into enforceable statements,

1:05:02

like which endpoints are you allowed to access, which hosts are you allowed to access,

1:05:07

what other types of resources are available or not available to you.

1:05:10

And in this way, nobody's writing a ticket every time they need to change the access.

1:05:15

Nobody's going to talk to IT or some other group outside of your team.

1:05:20

As long as you conform to the risk score that we talked about before

1:05:24

and you're in the agent registry, you're governed, you're approved.

1:05:27

So this is how we keep the cost to teams really low for deploying, building, running agents.

1:05:34

And the same control architecture works in a variety of settings.

1:05:37

The next thing we noticed was that teams were building a ton of different ways to evaluate agents,

1:05:42

and every stack looks different, and some teams don't build anything at all.

1:05:45

Sometimes you build this really detailed stack for how your models work.

1:05:49

Sometimes there's nothing.

1:05:52

And I think in general we'd be upset if teams were not writing unit tests, right?

1:05:58

And we consider evals to be kind of the same thing.

1:06:00

If models are changing, that's like a runtime dependency that your application has.

1:06:04

And if your agent is going to change models, it doesn't know without the evals what's going to happen to its outputs and to the quality of those outputs.

1:06:14

So, again, one tempting answer here is let's have some kind of central evaluation methodology

1:06:20

that waits for a full eval suite and a committee sign-off.

1:06:24

But now every prompt tweak, every one-line change is going to sit in that same queue.

1:06:29

So we don't want to put more decisions on more reviewers for things like that.

1:06:34

We don't want to trade away that iteration.

1:06:36

So again, you wouldn't ship software without unit tests, so agents need evaluations for

1:06:40

the same reason, and we want to provide the stuff at the level of the firm that's going

1:06:46

to be the same for everybody.

1:06:47

So Team A writing evals, Team B writing evals.

1:06:50

They're both going to have many of the same features.

1:06:52

So we want to have one shared approach to how we do evals, and have the shared approach

1:06:57

be something that's run by the firm and available to everybody for doing their evals.

1:07:01

So that covers all the common parts of evals, and all you've got to do is just write what's

1:07:06

true about your agent.

1:07:09

And finally, maybe you've had the experience of being asked to approve lots and lots of

1:07:13

individual agent actions when there's a human in the loop.

1:07:16

So that's fine on a small scale, but once you're operating agents in parallel or in

1:07:20

production, this becomes completely onerous and review requests come in faster than anybody

1:07:26

can be expected to approve them.

1:07:28

After the first few times this is happening, you succumb to review fatigue where you just

1:07:32

see yes, yes, yes, yes, yes.

1:07:33

and eventually you click yes on something that's activating a nuclear bomb.

1:07:38

So you don't want to click yes by reflex, but that's going to happen inevitably.

1:07:43

One recent example of this is earlier this year, a director at an AI research lab

1:07:47

told her open claw agent to suggest emails to delete from her inbox and wait for her approval.

1:07:52

But her inbox was so large that eventually the agent compacted its context

1:07:56

and lost the part that said, wait for my approval.

1:07:59

And then it deleted hundreds of emails and didn't stop when she told it to stop on her phone.

1:08:04

So again, you might be tempted here to make a human approve every action, but that's not

1:08:07

the right way to do it.

1:08:09

A better approach is to let these independent, conservative classifiers make decisions about

1:08:15

routine calls, and then send a person only the requests that are most important, the

1:08:20

ones that are most likely to make a difference.

1:08:22

If you're saying yes, 99.99999% of the time, then that's probably just a rule that the

1:08:28

agent should follow, not a request you need to ask the human for permission for.

1:08:31

and the stuff that's unclear or ambiguous or potentially dangerous, yes, surface that to a human,

1:08:36

or if it's definitely just dangerous, deny it outright. So this is a way to not have to do all

1:08:43

the review work all the time. So we want to take the same approach for both explicit,

1:08:48

when explicit rules apply, we want deterministic fast paths. When explicit rules don't apply and

1:08:54

there's some ambiguity, we want a classifier to do that work instead. So putting those five pieces

1:08:59

back together. You create a registry so that every agent is visible from the day it's created.

1:09:04

You score each agent so human review goes in the right spot. You run agents on guardrails so that

1:09:09

they only touch what they need. You share evals and metrics so everybody is reaching the same bar

1:09:14

without having to reinvent the wheel. And then finally you govern your runtime to make sure that

1:09:18

classification happens there and not somewhere else. So each of these controls works together.

1:09:24

So I'll leave you with one question.

1:09:26

Why do cars have brakes?

1:09:28

It's not just so that you can stop, it's so that you can go fast and stop safely.

1:09:33

So controls for our agents work the same way.

1:09:35

Thank you very much.

1:09:37

I'm John Feminella, and I hope you had a good time.