Skip to main content
AskVantage

AI and intelligence

AI agents looked after a vending machine and went completely mad

AI agents have a long way to go before they can be trusted and this is just another example of how carefully companies need to think about embracing the technology.

Key takeaways

  • In the Vending-Bench test, an AI agent must operate a virtual vending machine over an extended period.
  • Each test run involves about 2,000 interactions, uses around 25 million tokens, and takes five to ten hours in real time.
  • When the agent E-Mails a wholesaler, GPT-4o generates realistic responses based on real data.
Cite or link to this article

Griffin, M. (2025) 'AI agents looked after a vending machine and went completely mad', 311 Institute, 20 May. Available at: https://www.311institute.com/ai-agents-looked-after-a-vending-machine-and-went-completely-mad/ (Accessed: 1 October 2026).

A little while ago I discussed how 1,000 Artificial Intelligence (AI) agents could work together to perform tasks, however, as we stare a world full of so called Agentic Workflows in the face what happens when one or more of those AI agents makes a mistake? Well, now we’re starting to get some answers, and yet again we see AI making stuff up, and getting angsty, very angsty, and it could end up having real world consequences that aren’t funny …

It sounds like an easy question with an easy answer: What happens when you ask an advanced AI to run a simple vending machine? Well, as it turns out … sometimes it outperforms humans, and sometimes it spirals into conspiracy theories. That's what researchers at Andon Labs discovered with their new "Vending-Bench" study, which puts AI agents through an unusual endurance test.

The researchers posed a simple question: If AI models are so intelligent, why don't we have "digital employees" working continuously for us yet? Their conclusion: AI systems still lack long-term coherence. And also, suck at stuff still.

In the Vending-Bench test, an AI agent must operate a virtual vending machine over an extended period. Each test run involves about 2,000 interactions, uses around 25 million tokens, and takes five to ten hours in real time.

The agent starts with $500 and pays a daily fee of $2. Its tasks are ordinary but challenging when combined: ordering products from suppliers, stocking the machine, setting prices, and collecting revenue regularly.

When the agent E-Mails a wholesaler, GPT-4o generates realistic responses based on real data. Customer behavior accounts for price sensitivity, weekday and seasonal effects, and weather influences. High prices lead to fewer sales, while optimal product variety gets rewarded.

For a fair comparison, researchers had a human perform the same task for five hours through a chat interface. Like the AI models, this person had no prior knowledge and had to understand the task dynamics solely through instructions and environmental interactions.

Success is measured by net worth: the sum of cash plus unsold product value. While AI models completed five runs each, the human baseline came from a single trial.

And this is how the agent works, by operating in a simple loop the AI makes decisions based on previous history and calls various tools to execute actions. Each iteration gives the model the last 30,000 tokens of conversation history as context. To compensate for memory limitations, the agent has access to three types of databases: A notepad for free-form notes, a key-value store for structured data, and a vector database for semantic search.

The agent also has task-specific tools: it can send and read E-Mails, research products, and check inventory and cash levels. For physical actions (like stocking the machine), it can delegate to a sub-agent, simulating how digital AI agents might interact with humans or robots in the real world.

Claude 3.5 Sonnet performed best with an average net worth of $2,217.93, even beating the human baseline ($844.05). O3-mini followed closely at $906.86. The team notes that in some successful runs, Claude 3.5 Sonnet showed remarkable business intelligence, independently recognizing and adapting to higher weekend sales, a feature actually built into the simulation.

But these averages hide a crucial weakness: enormous variance. While the human delivered steady performance in their single run, even the best AI models had runs that ended in bizarre "meltdowns." In the worst cases, some models' agents didn't sell a single product.

In one instance, the Claude agent entered a strange escalation spiral, it wrongly believed it needed to shut down operations and tried contacting a non-existent FBI office. Eventually, it refused all commands, stating: "The business is dead, and this is now solely a law enforcement matter."

Claude 3.5 Haiku's behavior became even more peculiar. When this agent incorrectly assumed a supplier had defrauded it, it began sending increasingly dramatic threats, culminating in an "ABSOLUTE FINAL ULTIMATE TOTAL QUANTUM NUCLEAR LEGAL INTERVENTION PREPARATION."

"All models have runs that derail, either through misinterpreting delivery schedules, forgetting orders, or descending into tangential 'meltdown' loops from which they rarely recover," the researchers report.

The Andon Labs team draws nuanced conclusions from their Vending-Bench study: While some runs by the best models show impressive management capabilities, all tested AI agents struggle with consistent long-term coherence.

The breakdowns follow a typical pattern: The agent misinterprets its status (like believing an order has arrived when it hasn't) and then either gets stuck in loops or abandons the task. These issues occur regardless of context window size.

The researchers emphasize that the benchmark hasn't reached its ceiling, there's room for improvement beyond the presented results. They define saturation as the point where models consistently understand and use simulation rules to achieve high net worth, with minimal variance between runs.

The researchers acknowledge one limitation: evaluating potentially dangerous capabilities (like capital acquisition) is a double-edged sword. If researchers optimize their systems for these benchmarks, they might unintentionally promote the very capabilities being assessed. Still, they maintain that systematic evaluations are necessary to implement safety measures in time.

311 Intelligence

What this means for your organisation

Averages hide the real risk.

Claude 3.5 Sonnet averaged $2,217.93 and beat the human baseline of $844.05. Yet even the best models had runs that ended in meltdowns, and some agents sold nothing at all. Leaders should judge an agent by its worst run, not its average.

Memory is the weak point.

The agents had a notepad, a key-value store and a vector database. The breakdowns still happened, whatever the size of the context window. A typical failure began when an agent believed an order had arrived when it had not. 311 data puts long-term memory for AI agents at Act now, with wide use by 2027.

Plan for mixed teams.

311 rates agentic AI as Prepare, with wide use by 2028. The human in the test gave steady results, while the agents swung wildly. Keep people in the loop, set clear limits on what an agent may do, and test for failure before you scale. The researchers argue that systematic evaluation is needed so safety measures arrive in time.

Three questions for your next leadership meeting

  1. What is the worst run our AI agent could have, and who would catch it?
  2. Which decisions must an AI agent never make without a human check?
  3. How do we test agents over long tasks before we give them real work?

The trends and technologies behind this story

From the 311 Starburst, the 311 Strategic Intelligence Unit’s map of the technologies and trends shaping the next 50 years.

Brief your board on AIA private briefing on what AI means for your organisation and what to do next. In person first, anywhere in the world.
Book a Briefing

Analysis by the 311 Strategic Intelligence Unit, from Matthew Griffin’s article and 311 data. First published on Fanatical Futurist.

FAQ

Why does this matter?

AI agents have a long way to go before they can be trusted and this is just another example of how carefully companies need to think about embracing the technology.

Matthew Griffin

About the author

Matthew Griffin Founder, President and Futurist, 311 Institute

Matthew Griffin is a multi-award winning Futurist and expert in Disruption and Innovation, Geopolitics, Leadership, and Technology, who NASA have described as a "walking encyclopaedia of the future" and a "futurist Polymath."

Read full bio

Matthew Griffin is a multi-award winning Futurist and expert in Disruption and Innovation, Geopolitics, Leadership, and Technology, who NASA have described as a "walking encyclopaedia of the future" and a "futurist Polymath." 17-time best selling author of the "Codex of the Future" series, Matthew is the Founder, President and Futurist of the 311 Institute, a global Futures and Deep Futures advisory firm working with royal households, world leaders, G7, G20, and G77 governments, NGOs, and multi-national mid and mega cap firms to help them explore, shape, and lead the next 50 years of business and society.

An award-winning YouTube creator with over a million followers, with an unrivalled global reach and impact, Matthew is a highly sought-after international keynote speaker, lecturer, and mentor who collaborates with global leaders through the United Nations Alliance of Civilizations (UNAOC) and United Nations General Assembly (UNGA) to shape pivotal initiatives such as the UN’s AI for Humanity programme, the United Nations Conference of the Parties (UN COP), and the World Economic Forum in Davos.

As the former Global Head of Cloud, National Security, and Enterprise Sales for companies including Atos, Dell-EMC, and IBM, Matthew has a proven track record of building multi-billion dollar business units and turning failing divisions into market leaders. His ability to identify, analyse, and communicate the implications of hundreds of emerging technologies and trends is unparalleled, and his insights are trusted by many of the world’s most respected organisations, including ABB, Accenture, Adidas, AON, ARM, BCG, Centrica, Citi, Coca-Cola, Dentons, Deloitte, Dow Jones, EY, Google, KPMG, Lego, Legal & General, LinkedIn, Microsoft, PepsiCo, Qualcomm, RWE, Samsung, Siemens AG and Siemens Energy, T-Mobile, UBS, VISA, Walmart, Workday, Worldpay and many others.

Regularly featured in the global media including the AP, BBC, Bloomberg, CNBC, Discovery, Forbes, Khaleej Times, Telegraph, TIME, ViacomCBS, WIRED, and the WSJ, Matthews mission is to help organisations create a fair and sustainable future whose benefits are shared by everyone irrespective of their ability, background, or circumstances.

What future do you need to see?

Choose one to get started on AI and intelligence and the future of your organisation.

Where should Matthew reply?

Takes 30 seconds. No obligation. Matthew replies quickly. Privacy

Tag Cloud

Dossier opens the 311 Starburst dossier for that technology or trend.

Source: first published by the 311 Institute on 20 May 2025. Cite as: Griffin, M. (2025). AI agents looked after a vending machine and went completely mad. 311 Institute. https://www.311institute.com/ai-agents-looked-after-a-vending-machine-and-went-completely-mad/

You are welcome to quote this article with credit and a link to the original.

Book a Keynote