Skip to Main Content

Exactly Once: nothing counts without a receipt. AI agents that take real actions crash. LangGraph with MongoDB's checkpointer resumes after a crash by re-running the interrupted step, side effects included, so customers get refunded twice, trades execute twice, and agents report "done" when the action never happened. Exactly Once is a layer between any agent and the real world. Every action gets a receipt in MongoDB Atlas before it happens: intent, then sent, then proven by the real system. The AI's decision is frozen on the receipt. After a crash, the agent reads the receipt and checks the real system before acting again. An action counts as done only with evidence. We raced three builds of the same agent (naive LangGraph, LangGraph's recommended one-step-per-action pattern, and Exactly Once) across four businesses: refunds, portfolio rebalancing, employee offboarding and recall alerts, crashing them at random. Measured on Atlas: - 100-order crash test: 116 double refunds for the naive agent, 0 for Exactly Once (crashed 144 times). - Live four-business runs: both LangGraph builds paid or traded twice and claimed access was removed when it wasn't. Exactly Once was zero in every row of every run, with every action proven. Refund decisions by Meta Muse via LangChain, traced in LangSmith. 15 automated tests on Atlas. Spec written before the event; all code written today.

Team

More from Agents in Context Toronto: a MongoDB Hackathon

We simulate real world agent to agent systems built on MongoDB, Langchain (harnesses) ready for use in production to defend all systems. A swarm of real AI…

Legacy Siege project preview

suture is an incident-recovery agent that finishes the job even when its worker crashes mid-run. Cleaning up a leaked key takes a chain of writes across…

suture project preview

Venues play one playlist for everyone, and the apps that let guests shape the music keep their likes on view with no easy way to take them back. Musory: your…

Musory project preview

Robots are starting to learn from people, and fleets can share what one robot learns with every other robot. Nobody can yet answer three questions: who taught…

One Lesson project preview

Phylax Tower is a safety net for airport control towers. In March 2026 at LaGuardia, a jet was cleared to land, and two minutes later a fire truck was cleared…

Phylax Tower project preview

New hires hit the ground at light speed. New devs lose their first days juggling broken setup guides, each solving the same problems alone. Day One finishes…

Day One project preview