Execution model
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
- 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.
- 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.
- 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.
- 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. - Effects go through one door. Effects outside the sandbox pass through a broker, or network policy denies them.
- Operation keys are stable under replay. The k-th model call is
m<k>; the i-th tool call in that response ism<k>/t<i>. The ledger stores what the harness asked for and, separately, what was authorized and dispatched.
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
Feedback
Was this page helpful?
Glad to hear it! Please tell us how we can improve.
Sorry to hear that. Please tell us how we can improve.