# Never Twice

- **Event:** [Agents in Context Toronto: a MongoDB Hackathon](https://cerebralvalley.ai/e/mongodb-toronto-hackathon)
- **When:** Sat, Nov 14 at 9:00 AM – 9:00 PM (EST)
- **Where:** Toronto, Canada
- **Team:** [Mir Asim Ali](https://cerebralvalley.ai/u/mirasimali)
- **GitHub:** https://github.com/mirasimali5005/Never-Twice
- **Demo video:** https://www.youtube.com/watch?v=lTTCO3pDY4k
- **Gallery:** https://cerebralvalley.ai/e/mongodb-toronto-hackathon/hackathon/gallery
- **Page:** https://cerebralvalley.ai/e/mongodb-toronto-hackathon/hackathon/gallery/54

AI agents are great at starting work. They're bad at knowing whether it actually happened.

Picture an agent paying out airline compensation. It sends a $700 payment, then crashes before it hears back. When it restarts, did the money go out or not? A typical agent guesses and pays the passenger twice.

Never Twice is a claims desk that refuses to guess. Agents read messy passenger claims and the law fixes the amount. Before any money moves, we write the payment intent to MongoDB Atlas in one transaction. If the process dies mid-payment, it comes back, reads its own state from Atlas, and picks up exactly where it left off, without replaying the whole job.

For any payment left in doubt, an AI investigator decides which provider records to check, and plain deterministic code makes the call: confirm it if the evidence matches, resend the exact same request only when that's provably safe, or hand it to a person. The AI investigates; it never authorizes money.

To prove it, we crash two agents in the middle of the same payment. The ordinary one pays twice. Never Twice recovers cleanly. An independent auditor, with read-only access and no access to our database, checks every dollar and agrees.

We didn't stop at one demo: 63 different crash points (0 failures), 250 concurrent runs (0 overspends), and 5 deliberately broken versions, all caught by the auditor.

Payouts run on a simulator so we can trigger failures on cue; the ticket refund is a real Stripe test-mode refund. All data is synthetic. Built today with Claude Code.

## More from Agents in Context Toronto: a MongoDB Hackathon

- [All Clear](https://cerebralvalley.ai/e/mongodb-toronto-hackathon/hackathon/gallery/51)
- [Legacy Siege](https://cerebralvalley.ai/e/mongodb-toronto-hackathon/hackathon/gallery/52)
- [Silicon-Valley](https://cerebralvalley.ai/e/mongodb-toronto-hackathon/hackathon/gallery/53)
- [Warrant AI](https://cerebralvalley.ai/e/mongodb-toronto-hackathon/hackathon/gallery/55)
- [Team Finishline](https://cerebralvalley.ai/e/mongodb-toronto-hackathon/hackathon/gallery/56)
- [RoadWatch](https://cerebralvalley.ai/e/mongodb-toronto-hackathon/hackathon/gallery/57)

---

Markdown version of https://cerebralvalley.ai/e/mongodb-toronto-hackathon/hackathon/gallery/54. Site index for agents: https://cerebralvalley.ai/llms.txt · full text: https://cerebralvalley.ai/llms-full.txt
