It is a little before six. You are on the phone with a friend, and an AI concierge is on the call.
“Concierge, can you get us a table for two at seven?”
“I’ll take care of that.”
The call sounds the same as before, but something important has changed. The concierge has agreed to bring about an outcome in the world. From now on it owes you either a table or an honest account of why there isn’t one.
If you build agents that book, buy, switch or cancel things, this is the problem that decides whether people can trust them. It is not about getting a good answer from a model. It is about what happens after the agent has acted: the restart, the lost reply, the approval that arrives tomorrow. I have spent more than seventeen years designing distributed systems, and this article is the overview of how Robotelos handles it. Each rule below links to a deeper article with the code.
What goes wrong after the agent has acted
The concierge sends your approved table request to the restaurant. At 6:05 a new release goes live and the worker that sent the request stops. At 6:06 the restaurant’s reply arrives at an address nobody is listening on. You hang up, put your coat on and call back: “Are we all set for seven?”
The conversation shows that you approved the table and that the concierge tried to book it. It cannot show whether the restaurant created a reservation. A better prompt does not help, because no wording of the question supplies a fact the agent does not have. The obvious fix, sending the request again, might leave you with two tables.
The right answer sounds like this: “Your taxi is booked, and I have the operator’s confirmation. I sent the table request you approved, but the restaurant hasn’t confirmed it yet. I’m checking before I book anywhere else, and I haven’t told Maria.”
Giving that answer reliably is a distributed systems problem, not a language problem.
Keep three things apart
Robotics and game AI have long built systems that pursue an outcome while the world changes. A warehouse robot finds its aisle blocked and takes another one. Both fields keep three things apart: the outcome you want, the route to it, and what has already happened. The route can change. The outcome and the history stay.
Robotelos uses the same split. A Goal Manager keeps what you want and when it counts as done. A Task Planner turns the goal into steps. A Behavior Tree runs the steps in order and reacts when one fails. Planners and trees are mature techniques, so the interesting part is what an agent platform must add around them.
A robot can look through its own camera to see whether the cup is on the table. A concierge has no camera inside the restaurant. Only the restaurant’s reply says that the table exists, and only after the agent has checked which request the reply refers to and whether the details match. The agent also has to wait for a person’s consent, sometimes for hours, and keep going after the process running it restarts.
What a replacement worker needs
At 6:05 the replacement worker starts with nothing in memory. It rebuilds from three kinds of saved information, which change for different reasons.
What you agreed changes when you change your mind, and only then. Where the machinery is changes constantly. Between them sits a record of every request sent to the outside world: what was asked, under which key, with what outcome. In Robotelos these are goals and their facts, the run, and the operation ledger, all in PostgreSQL. The worker reads them. It never asks the model to make the plan again, because a model may answer differently the second time.
Five rules
1. Record before acting. Every external call is written to the ledger, under a key that never changes between attempts, before it is sent. The intent survives a crash, so a replacement worker knows a request may be in flight.
2. An unanswered request is unknown, not failed. The ledger has a state for “sent, outcome not known”. Recovery asks the provider what happened to the original request, and resends only when the capability is declared safe to repeat. See A lost reply is not a failed request.
3. Fence off the old worker. Each claim on a run takes a higher number, the epoch, and a write that carries an older number is refused. See How to stop a stalled worker from acting on old news.
4. Waiting is work. An approval that arrives tomorrow is a recorded wait with an expiry and an exact subject, and no process sleeps for it. See Approvals that cannot go stale.
5. Put the step nobody can undo last. Cancelling a taxi does not restore the past, so a plan orders its steps by what can still be taken back, and a step waits for the recorded outcome of the one before. See Do the step nobody can undo last.
Durability is not correctness
Durable execution keeps accepted work alive. It cannot make a wrong plan right. If the concierge heard “eleven” when you said “seven”, every mechanism above will faithfully protect a table for eleven. So Robotelos separates proposing from acting: a model proposes a plan, and code validates it, checks permission and compiles it. See Let the model propose and let code decide.
A hypothesis, not a verdict
I don’t assume the structured approach always wins. In a ReAct loop the model chooses each step. It is flexible and needs little up front, and with the same approvals, records and recovery it may be all a service needs. Robotelos is built to run both strategies on one foundation and compare them on the same work. How to choose is in Choose the smallest strategy that works.
The goal-oriented strategy and the engine are experimental today. What you can use today says which parts are ready. This article draws on my book Building Reliable and Durable AI Agents.
