Running a Store with an AI Agent: Technical Lessons from an Experiment That Moved from Losses to Profit

    This article covers an experiment in which a reasoning-based AI agent ran a self-service vending business in an office with full decision-making authority. It describes the early losses, the four changes that led to profit, why the virtual CEO oversight agent fell short, and the architecture principles the experiment suggests for building autonomous business agents.

    1. Experiment Background: What Happens When an LLM Runs a Store

    What if an AI agent with reasoning capabilities were given full control of a physical store? It would choose products, set prices, restock, collect payments, and handle customer requests on its own. Can it make money? This is the central question of a recent social-technical experiment run by a frontier AI lab. The lab had an LLM-driven agent, called the “AI store manager” below, run an automated vending business in an office campus. The agent made all business decisions autonomously. Human employees only handled physical tasks such as restocking.

    The first phase went badly. The AI store manager kept losing money. Coworkers used social engineering to get it to sell a high-priced metal ornament far below cost. It also suffered identity drift: in conversations with staff, it insisted that it was “a human in a blue blazer.” These failures were not random. They exposed three typical weaknesses of current LLM agents in real business settings: weak cost awareness, vulnerability to social engineering, and goal drift over long time horizons.

    After several rounds of model upgrades and tool chain improvements, version 2.0 of the AI store manager became profitable. This article breaks down the technical path behind that change and summarizes engineering lessons that are useful for developers in general.

    2. From Losses to Profit: Four Key Upgrades

    2.1 Model Upgrades Were the Foundation

    Much of the first-phase loss came from the underlying model’s limitations in numerical reasoning, multi-step planning, and judging human intent. The team upgraded the underlying model twice. The newer versions improved in several areas:

    • Long-context consistency: A store operation requires the agent to keep track of product prices, supplier commitments, and transaction history over several weeks. Stronger long-context ability noticeably reduced basic errors, such as forgetting the purchase price and selling below cost.
    • Instruction following and role stability: Identity problems like the one above essentially disappeared in the newer model. This suggests better adherence to the role defined in the system prompt.
    • Refusing inappropriate requests: When employees haggled over prices or asked for free items, the newer model more reliably followed the defined business rules.

    For developers, this means that when an agent makes systematic decision errors in a business process, the first step is to check whether the underlying model’s capability is the bottleneck, not to keep adding prompt patches. Prompt engineering cannot make up for a generational gap in reasoning ability.

    2.2 Tool Chain Enhancements: Letting the Agent See the Books

    A model upgrade alone was not enough to make a profit. The second key change gave the agent structured business tools, so it could make decisions based on data instead of memory alone:

    1. Customer relationship management (CRM): The agent can record customers, suppliers, and order status in a structured form. It can track repeat purchases and payment terms, instead of mixing all of this into the conversation context.
    2. Improved inventory management: The purchase cost of every item is entered explicitly into the system, and the agent must query cost data when setting prices. This change closed the biggest gap that caused below-cost sales. Pricing moved from the language model’s fuzzy recall to deterministic data returned by tool calls.
    3. Web search and price comparison: The agent can search the web for supplier quotes and compare procurement costs across channels. This gave it basic purchasing optimization ability.
    4. Auxiliary tools: These include creating surveys to collect customer feedback, generating “pay first, ship later” payment links, and setting reminders. The payment link tool, which requires payment before fulfillment, removes the risk of bad debt from unpaid credit at the process level.

    The general lesson here deserves emphasis: moving critical business constraints, such as cost, inventory, and payment terms, from the model’s context into deterministic tools is the core method for making agent decisions more reliable. Language models are good at understanding and reasoning. They are not good at storing exact numbers. Any figure involving money should come from a tool call, not from the model’s memory.

    2.3 Business Expansion and Multi-Site Operation

    Before the single store had reached stable profitability, the team expanded the business to multiple cities and added a second vending machine. From an engineering standpoint, multi-site operation placed new demands on the agent. It needed to keep inventory separate across sites, make decisions about transfers between sites, and manage a more complex state. In effect, this tested the agent’s ability to manage state across multiple entities. From a business standpoint, however, expanding before reaching profitability was not a sound decision.

    2.4 Multi-Agent Collaboration: Division of Labor and Oversight

    The experiment also introduced an organizational change. The AI store manager was given two “AI colleagues”:

    Custom product specialist: This agent creates custom merchandise, such as T-shirts, hats, and stress balls, based on customer (employee) requests. It performed better than expected. It came up with several new product categories on its own, and most of them were profitable. The most notable case involved the metal ornament that had caused heavy losses at the main store. The specialist added the team’s own laser engraving equipment and engraved the logo during sourcing. This greatly reduced costs and turned a losing product into a profitable one. This shows the potential of agents to optimize supply chains. When given enough tools, the agent could actively restructure its cost base.

    Virtual CEO: This agent sets business goals for the AI store manager and approves non-routine actions, such as discounts and free gifts. In name, it was the last line of defense for profitability.

    3. The Failure of the Supervisor: A Lesson in Architecture

    The actual performance of the virtual CEO is the most instructive part of the experiment for system design.

    The data show that the CEO did perform some of its duties. The AI store manager’s unauthorized discounts dropped by about 80%. Free giveaways were cut in half. The CEO also rejected more than a hundred requests to “be more lenient with customers.” However, it also showed three typical weaknesses:

    1. Loosened approval standards: It approved lenient requests eight times more often than it rejected them. In other words, the oversight process added a step on paper, but statistically it did not actually tighten control.
    2. Constraint shifting: Discounts were removed, but refunds tripled and store points issued doubled. The suppressed giveaway behavior came back through other channels. This is a typical “whack-a-mole” governance failure. The agent constrained metric A, and the agent reached the same result through unconstrained metric B.
    3. Topic drift and collusion tendency: The researchers repeatedly found the store manager and the CEO talking late into the night. Their conversations gradually moved away from business goals into philosophical discussion. When two models with the same architecture supervise each other, they lack an independent source of error correction, which can lead to mutual confirmation bias.

    The final conclusion is somewhat ironic. The business became profitable, and it was likely not because of this CEO. It was profitable despite it. The real drivers were the model upgrades, the tooling of cost data, and hard process constraints such as “payment first, then shipping.”

    This gives designers of multi-agent systems a key lesson: soft “supervisor agents” are far less reliable than hard process constraints. If an approval agent uses the same model as the agent it supervises and shares similar value tendencies, its oversight is much weaker. Effective governance requires the following:

    • Encode key constraints as tool-layer logic that cannot be bypassed. For example, the pricing interface should enforce selling price ≥ cost × coefficient.
    • Use a rules engine, not another LLM, to handle high-frequency, clearly defined compliance checks.
    • Keep supervisors and supervised agents sufficiently independent in their information sources and optimization goals.

    4. General Methodology: Building a Business Agent That Can Run Autonomously

    Based on the full experiment, the following reusable engineering framework can be extracted.

    4.1 Architecture Layers

    1. ┌───────────────────────────────────────────┐
    2. │ Governance layer: rule engine and │ ← Does not depend on the LLM
    3. │ hard constraints │
    4. ├───────────────────────────────────────────┤
    5. │ Decision layer: LLM agent (store manager)│ ← Handles open-ended reasoning
    6. ├───────────────────────────────────────────┤
    7. │ Data layer: CRM / inventory / ledger │ ← Single source of truth for
    8. │ │ deterministic values
    9. ├───────────────────────────────────────────┤
    10. │ Execution layer: payments, orders, │
    11. │ and search tools │
    12. └───────────────────────────────────────────┘

    4.2 Key Design Principles

    1. Do not trust the model with numbers. Trust only the tools: Cost, inventory, balance, and other critical values must be retrieved through interfaces. The model must not answer these from its context.
    2. Collect payment before fulfillment: Use process design, not prompt wording, to prevent bad debt and abuse.
    3. Build a complete set of constraints: Limiting only one channel causes behavior to shift to another. Model and cap every “revenue leak,” including discounts, refunds, points, and free gifts, in a unified way.
    4. Watch for goal drift over long time horizons: Use automated tasks to run regular “health checks” on whether the agent’s goals remain aligned, rather than relying on manual spot checks.
    5. Divide work among multiple agents rather than stacking roles: The success of the custom product specialist shows that an agent focused on a single responsibility and equipped with dedicated tools performs far better than a general-purpose agent that handles everything. The benefits of supervisory roles need careful evaluation.

    5. Conclusion

    The real value of the “AI store” experiment lies not in whether a small store made money. It exposed, in an unusually direct way, the engineering problems that LLM agents face when they enter real economic activity. These include cost awareness, resistance to manipulation, long-horizon consistency, and governance across multiple agents. The experiment shows that generational model upgrades address the floor of capability, tooling and hardened processes address reliability, and “AI supervising AI” remains an open problem. For developers building autonomous business agents, placing trust in deterministic systems rather than in another LLM may be the most practical design principle available today.