Does your software always finish what it starts?

A customer pays once and gets charged twice. Could that happen if the confirmation goes missing and the system retries? Formal verification starts with a question this specific. What we can prove depends on how the system works and what we assume when we model it.

Tell us about your process

CustomerBotGatewaypay(42)charge(42)charged=1oktimeoutcharge(42)charged=2okpaid
The gateway's reply is lost, the bot retries, and the customer is charged twice. TLC finds this run in Retry.tla.

When a step repeats or work stalls

Here are some of the rules we can check.

Bots and follow-ups

Can your bot write to the same customer forever?

For a support bot, we can study how many reminders it sends or when it hands a case to a person. The model covers the rules of the conversation. The content an AI generates falls outside its scope.

messages(customer) ≤ limit

no customer gets more messages than the limit

Payments and retries

Can a retry charge a customer twice?

We model transfers and retries to see whether the same order can be charged twice, even when requests arrive out of order.

charges(order) ≤ 1

at most one charge per order

Orders and business processes

What happens if a customer pays for an order that never ships?

We trace how your team handles quotes, invoices and deliveries to see where a task can be left unfinished or done twice.

paid(order) ~> shipped(order) ∨ refunded(order)

every paid order eventually ships or is refunded

Notes

Each note describes a concrete problem, the rules of the model and the results of checking them.

SUMA: from proposal to expense

Someone dictates two expenses, corrects one and confirms the proposal. If they press confirm again, will both expenses be recorded twice?

A retry that charges twice

A gateway charges an order and the confirmation goes missing. What happens when the bot asks it to charge the order again? We compare two models of how the gateway handles the retry.

A bot that repeats its menu forever

The menu asks the customer to choose 1 or 2. If they type “2, please.”, the bot shows the same menu again. We examine the loop in Lean and TLA+.

Start with three questions

Start by describing the process. If something has already gone wrong, tell us how you noticed.

  1. Briefly describe a process in your business, such as handling an order, sending a reminder or answering a support request. Where does work stall or get repeated?
  2. What mistake could cost you money or a customer?
  3. If something has already gone wrong, what happened and how did you find out?

Write to us →