One session, end to end — Everruns
architecture node:
User input:
Representation at this boundary
Source modules
Loop map
One turn — a message is stored and the actor marked runnable in one transaction → a worker leases the session (fence raised, 10s TTL, renewed while running) → the lease folds the log tail from the latest
turn.started → reason and act run on that one lease, every step appended to the log before anything acts on it → the turn ends with exactly one terminal event and the lease is released.The log decides what resumes — recorded results stand and are never re-run; an unfinished call reruns only when its tool declares
Pure or Idempotent, or when the log shows it never started. Any other cut-off call settles as interrupted, and the model is told its outcome is unknown.Three ways a turn stops — it completes, it fails, or it is sealed by the poison guard after its workers keep dying (
turn.sealed). A cancel ends only the turn it targets, and a turn waiting on a person holds no worker at all: the answer is journaled and the next lease picks the turn up.