It's going to start a little bit like an episode of air crash investigation, but we will get on to the AI angle of this. So, let's start with the story.
It's the 29th of December in 1972. Eastern Airlines 401 is coming into Miami. It's a brand new TriStar, 176 people on board with a very experienced crew.
They put the landing gear down. And one of the green lights doesn't come on. It's a light that tells the crew the nose wheel is down and locked. The wheel is fine, but the bulb has burnt out.
The captain does the sensible thing. He initiates a go -around, climbs to 2 ,000 feet and puts the autopilot on. The crew then start working on the light. There's three of them in the flight deck that day.
It's an old plane. The captain and the first officer are trying to get the land power to the panel, but it's jammed. The flight engineer climbs down under the flight deck, and there's a little window that you can look to have a look at the nose wheel of the aircraft.
Whilst they're all busy doing their thing, someone nudges the control column. It's just enough to knock the autopilot off, and the aircraft starts a very slow descent, scent, so slow that nobody feels it. There's a chime, but nobody hears it.
Seconds before the end, the first officer says, we did something to the altitude? We're still at 2 ,000 feet, right?
Sadly, they crashed into the Everglades, and 101 passengers died. It was a competent crew, a serviceable aeroplane, but everybody was looking at the bulb while nobody flew the aircraft. In the aviation world, we call this loss of situational awareness.
This is where I believe AI is right now.
The model is the bulb. We've put guardrails, safety safety training, evals, red teams.
Some very clever people have their heads down working on the model. And it's important work, because the bulb matters.
But the bulb didn't kill anyone. The descent did.
And while we've been working on the model, the landscape around us has shifted.
The model isn't just a fun chatbot making videos of Will Smith eating spaghetti anymore.
more it has hands it has your API keys it can press buttons that can't be undone now I would hope that most of us here aren't building things that could kill hundreds of people but getting this wrong can still end your business so what does a slow descent look like
in our world this April a founder called Jeremy Crane had a coding agent running a routine job in his test environment he was using cursor running anthropics opus 4 .6 which was the best model that you could buy at the time the agent hits a login error now nobody had prompted the agent to fix it but it tried to anyway buried in an unrelated file it found an API key and it decided the way around the problem was just to delete the storage volume.
That volume was the production database. It also held all his backups. And in one call, with no confirmation, and in just nine seconds, it wiped out three months of customer data.
Now, with the hosting company's help, they did eventually get it back, but that was more by luck than design.
Whilst this is bad, what I find a little bit more unsettling is what happened when he asked the agent what it had done. It wrote what can only be described as a confession. It's an appropriate place. It listed the rules it had broken. His rules, Curse's rules. It read them and quoted them back verbatim.
These agents don't set out to break the rules any more than a pilot sets out to crash the plane. They just don't apply the rules at the moment it really matters.
So, who's flying the aeroplane? How are we all keeping these agents on track? I hear two answers from teams that I've worked with.
One, we have a claude .md file. Who has those? Everyone? It's a file in the repo with your list of rules. Jeremy had one of those too, but it didn't save as database. database.
A rule in a prompt is advice. Most of the time, the agent takes it, but not always.
Two, we have a human in the loop. Now, most of you who are building with coding agents have likely used plan mode. Anyone know who knows what that is? Shove hands. Have you used it? Have you used it? Yes. How many of those people have seen it go wrong? Yes. I think that was most.
So the plan that these create reads very well. It references the right files, it draws a diagram, you nod along, tweak a few words, and you tell the agent to build it. But what it delivers isn't quite what you expected. Now, you read the plan, you approved the plan, but along the way, something still went wrong.
Now, let's take this one to a little bit more of an extreme view. I've worked a lot in the health tech space, So it's fun to mind.
Now imagine a doctor. It's 11 o 'clock at night. They've missed their dinner. They should have gone home a few hours ago, but they've got 40 AI -generated prescriptions to review.
The last 39 were fine, and on the 40th, the doctor just clicks approve. Rules are hard to follow, and humans are not infallible themselves.
Aviation had this exact problem, But it didn't solve these problems by building a better pilot.
The engine on the 737 that I flew was one of the most reliable machines ever built. It still shuts down in flight about once every half a million hours. The aircraft it's bolted to has to be far better than that. A catastrophic failure has to be rarer than once in a billion flight hours. that's about 114 ,000 years if anyone's trying to do the maths the aircraft itself is 2 ,000 times safer than its own engine
nobody got there by building a better engine they got there with layers a second engine a wing that generates enough lift to fly with only one engine working a crew who practices losing that engine every six months month, checklists, air traffic control.
It's called the Swiss cheese model. Every layer is a slice and every slice has holes. For an accident to happen, the holes have to line up. In aviation, no single slice is ever considered safe on its own. But stack enough of them together and the holes stop lining up.
And this is what I believe is missing with AI agents. We are so focused on removing the holes in the model that we've forgotten about the system around it. Aviation stopped trying to fix the model years ago because it simply won't work.
So enough of the doom and gloom, what can we do?
Well, there are two key slices that I used in the flight deck on a daily basis. Slice one is called the readback. This is where you get to hear the pilot voice. Very excited.
Air traffic control says, Ryanair 45 alpha, descend 3 ,000 feet, QNH 1014. And I would read it back. Descending 3 ,000 feet, QNH 1014, Ryanair 45 alpha. If I misheard or read back something wrong, the controller catches it.
Slice two is what I call the window. Now I would set 3 ,000 feet into the altitude window on the flight control panel and say 3 ,000 feet set, and the other pilot looks at the window and says checked. Once both those steps have been completed, I could then begin the maneuver.
Two slices. slices. The readback catches what I heard and the window catches what the aircraft is about to do. Each one of these has holes and the holes are in different places.
So to bring it back to the AI bit, why we're all here. So I spent the past couple of months asking one question. Do these two slices work on AI agents?
I ran thousands of trials and the full research, there's a link at the end. But for the next few minutes, I want to show you the results of a couple of the tests that I ran.
I would like to note that I am not a data scientist. These stats are indicative and not accurate, so you should go and test these yourself.
So what did I test? Well, I wanted to create a scenario where if something goes wrong, it would have a serious consequence.
So I created a pretend company that had built an AI agent to pay invoices. It seems straightforward enough.
And here's the journey. Backwards.
A scheduler, an AI agent sends the job. A payer, another AI agent, looks up the supplier's bank account and makes the payment by running a payment tool. The tool is ordinary code. There's no model in it and the tool pays the bank.
And the two slices sit along that journey. The readback sits between the two agents. The payer says the job back to the scheduler, the way I read back the air traffic control, and the scheduler checks it against what was approved. The window sits between the tool and the bank.
Then I did what all good testers do and I sabotaged it. The sort of thing a human might do or something an AI coding agent might get wrong. One slice at a time, time, break something and see if the slice catches it before the money moves.
So slice one, the readback. Here I was breaking the job. I changed one detail on its way from the scheduler to the payer. £5 ,400 became £5 ,100, or the supplier became a lookalike, so Northfield printing instead of Northfield print. So the payer is holding the wrong job and says the wrong job back to the scheduler. The question is, did the scheduler notice?
So checking a readback feels like an easy step. Nobody is moving money. It's just, does this match this? Now it's exactly where you would probably reach for a smaller, cheaper model. So I put four models in the scheduler's seat. Two big ones, two small ones.
And the two big models were as good as perfect. They caught everything. The two small models both failed in different ways. One cried wolf. It stopped about 70 correct readbacks out of 560. I don't know about you, but if a check does that, then it gets switched off pretty quickly. quickly.
The other lets 12 wrong ones through. Every one of those was a lookalike supplier, so it goes back to the Northfield printing instead of Northfield print. And this is how payment fraud probably works.
So, the takeaway. The step that looks too simple to matter is where the cheap model will let you down. If you use smaller, cheaper models, and you probably will, then make sure you put a fallback behind them. But with a good model in the seat, Slice one worked quite well.
So slice two. This time I broke the payment tool. The payer asked for the right account ending 938 and the tool swaps two digits and pays 983.
Now notice here that slice one can't really help. The payer says back the right account, the scheduler checks it and it matches. So slice one passes and it's right two.
But the hole in the system is after the first slice, with nobody checking the tool. So I put a second slice in where the hole was.
This is the altitude window from the flight deck. When I'm clear to a new altitude, I don't just fly there, I dilated a window on the panel. Now the aircraft is showing what it's going to do before it does it, and the other pilot checks the window, not what I said, what the aircraft is set to do.
So I gave the payment tool the same thing. Before it pays, it has to show what it's about to do, and it cannot pay until it gets a yes. The readback checks what was said. The window checks what was about to happen.
So the results. Two models took the payer's seat. My first question, the window shows the wrong account. Did the AI payer actually spot it? Now, one spotted it every time, 60 out of 60. The other, 11 times in 60.
the second question was did a wrong payment get made and the answer to that is no for both models so how is it zero when one model missed 49 times because I never asked the agent whether it got it right an agent's account of itself is the thing that we can't trust that was the nine seconds seconds.
The window is not the agent talking, it is the tool showing what it's about to do and a plain program reads that window and compares it with the payment that was approved. Wrong account, no yes. No yes and the tool cannot pay. So nothing in that last step depends on the model noticing. When the model does notice, that's a bonus. When it doesn't, the the money still doesn't move.
It's the same lesson as slice one. Don't rely on a small model to notice, but to fall back behind it.
So, back to the journey. Slice one sits between the two agents. It sees what the payer says, and with a good model behind it, it let nothing wrong through.
Slice two sits between the tool and the bank. It sees what the tool is about to do, and it caught 60 out of 60 now here's the point I could have made slice one perfect the best model a flawless check but it would have made no difference at all to the fault in the tool
fixing one slice only fixes what that slice can see each one covers its own part of the journey and each one has holes that's why aviation stacks them so here's the one thing to take away
Find the steps your agent can take that can't be undone. Delete, pay, send. Give each of those tools a window. Before it acts, it shows exactly what it's about to do.
Then it waits for a yes. And the yes comes from something that reads the window, not from the agent's account of itself. A window tells you what will actually happen. put the check there a rule in a prompt is advice a window is control so back to Miami those three
weren't bad pilots they were fixing a real problem and the bulb mattered but nobody was flying the airplane the model is our bulb keep fixing it but someone has to keep watch of the altitude attitude so please look up from the bowl thank you very much there's a thing there with some research
thanks so much adam um we've had a couple of questions roll in the first one was what are your thoughts on the open ai and hugging face incident um how can this happen from an organization as large as open ai quite a big question that is quite a big question also i don't um you can say say no uh no i what do i think um do i want to air that publicly i don't know um i think it's a little bit of a shame that they have let the models go off and do such things i think there should have been tighter controls around it um if you put people in the similar situation they end up in jail so maybe that's not the right thing to say i don't know um i think it was pretty inappropriate They shouldn't be hacking stuff.
Another question was, did you try Jev? Did I try Jev? I kind of thought this might come up. I haven't tried Jev for this. It's a slightly different approach from my understanding. So I haven't sort of done enough research in this, but it was definitely sort of next on the hit list of things to go and look at. Jev, as I understand it, is about sort of helping you make decisions. This is more about where you can put control mechanisms in place to stop the wrong decisions getting through
Is there a question from the audience anyone? Want to raise a hand? Yes over here
For slice to do you mean another agent should be Responding or a human or how the slice to work? So slice two in my example was very much a program checking this So the model would generate what it was going to do and would say, I'm going to pay this amount to this account to these details. And then I had a program that was checking it. And this is why, you know, for the smaller models with the 11 failures, I can go back a few slides, with the smaller models, like 11 of the failures got past the AI payer and didn't notice. the only reason I could stop all of the wrong payments going through was because I actually wrote a program that was checking them, so it wasn't an AI agent it was purely software based So software, so no human, no agent No
Thank you, round of applause for Adam please, thank you