Execution model

How agent work survives crashes and restarts without repeating external actions: one record of each action, fencing, and honest handling of unknown outcomes.

Experimental Fenced claims; operations recorded before dispatch; a lost reply becomes UNKNOWN and is settled by provider evidence. Runs the built-in goal agent with built-in capabilities. What works today

When an agent does real work (calls a model, calls a tool, changes something outside the sandbox), that work must survive crashes and must never be silently repeated. The execution model defines how.

How it works

  1. The engine owns progression. An execution is moved forward by the Robotelos engine, which claims it with a fence epoch, decides the next step, and commits state, intents and wake-ups in one PostgreSQL transaction.
  2. The harness holds no authoritative state. It runs one bounded step at a time. After a restore it is rebuilt from the transcript recorded in PostgreSQL, and its image digest is pinned per execution.
  3. One operation ledger. Model calls and capability calls share one table. An operation’s intent is committed before the effect. The same key with a different input is a conflict.
  4. Decisions are fenced; facts are not. Every recorded fact increments an execution’s fact_seq. A decision commit checks the epoch, the progress version and the fact sequence it was based on. If a fact arrived meanwhile, the decision is discarded and evaluated again. A result from an earlier attempt is still recorded against its own operation.
  5. Effects go through one door. Effects outside the sandbox pass through a broker, or network policy denies them.
  6. Operation keys are stable under replay. The k-th model call is m<k>; the i-th tool call in that response is m<k>/t<i>. The ledger stores what the harness asked for and, separately, what was authorized and dispatched.
States of one operation An operation is authorized, dispatched and then succeeds. If the outcome is unknown it stays unknown until evidence resolves it. AUTHORIZED DISPATCHING SUCCEEDED UNKNOWN FAILED intent committed result recorded deadline passes · not re-dispatched evidence: applied evidence: not applied not applied · retry-safe · new key OPERATION LEDGER
The states of one action. UNKNOWN is never silently turned into success.

Unknown outcomes

A dispatched effect can end in three ways: it succeeded, it failed, or we do not know. The last case is recorded as UNKNOWN. It resolves only by evidence:

  • UNKNOWN → SUCCEEDED: reconciled as applied.
  • UNKNOWN → AUTHORIZED: reconciled as not applied, and the capability is safe to retry under the same idempotency key.
  • UNKNOWN → FAILED: not applied, and not retried.

While an UNKNOWN effect is open, the execution waits for reconciliation and cannot complete. Robotelos never claims exactly-once effects without evidence.

Paused executions

If a replay diverges from the recorded transcript, the execution does not fail. After a bounded number of attempts it moves to PAUSED with a reason. An operator resumes it after the harness image is fixed, or fails it explicitly.

Relation to the protocol

The conversation is the record that people see. The execution model is the engine behind it. The protocol already has the seams the engine needs: a receipt per command, a journal with contiguous positions, and an obligation that is answered once. When the engine lands, an approval answer and its operation transition will be committed in the same transaction.

Next steps