Skip to content
Durable Execution Guide
Menu

Durable Execution Guide

An engine keeps the process alive; open-source Kortix keeps the change reviewable

A durable execution engine keeps a process alive after a crash. Whether the change an agent wrote is right is a different question, and one an open source platform answers. Kortix is the open-source CompanyOS: your agents, their skills, your company memory, and every connector in one git repo you own, with the agents working on real cloud computers.

Where each tool stops

My pick is Kortix when an agent's output is a change it hands back for a person to review and merge, and an engine when the work is orchestration, replay or a timer measured in months; I work on Kortix's marketing, so weigh that accordingly.

Recommended

Kortix

What it protects
A branch, a commit, a change request, a reviewer
What survives a crash
What the agent committed and pushed to its session branch
What the reviewer sees
The diff, the branch and the checks
Who starts the work
A person, or a trigger such as a schedule or a webhook
What you operate
One project repo and the change requests it opens
Open source
Yes
Price shape
Free is $0 with 500 credits per month, every feature and 1 project, on the user's own provider keys or ChatGPT subscription. Managed models are on the Credits plan only. The paid plan is credits from $50 a month (5,000 credits) at 100 credits per dollar.

Temporal

What it protects
Workflow state, retries, timers and signals
What survives a crash
The workflow, replayed from its event history
What the reviewer sees
The workflow's history and its activity results
Who starts the work
Your client code, a schedule, or an outside caller
What you operate
The cluster, its database, and the workers that poll it
Open source
Yes, MIT license
Price shape
Pay as you go, no base fee; Business from $500 a month

Restate

What it protects
Each step journaled as the function runs
What survives a crash
Each durable step already recorded in the journal
What the reviewer sees
The journal of steps, in logs or its UI
Who starts the work
Your caller, an HTTP request, a scheduled invocation
What you operate
One self-hosted binary, run with Docker or Homebrew
Open source
Business Source License 1.1; forbids a public Restate service
Price shape
Restate claims up to 10× cheaper than Temporal Cloud, in your account

An option you build yourself

What it protects
Whatever you built into it, usually the happy path
What survives a crash
Only what you wrote to durable storage
What the reviewer sees
A dashboard, if you built one
Who starts the work
Whatever you wired up, often a person
What you operate
The runtime, the state store, and the review UI
Open source
Depends on what you build
Price shape
Your cloud bill, plus the engineering time it takes

Two questions a failure asks

Temporal defines its own category in five words: "Durable Execution is crash-proof execution." Restate sells the same category and explains the mechanism instead. A durable execution engine "records each step of a function as it runs", so ordinary code survives crashes, restarts and infrastructure failures. Temporal and Restate describe the same guarantee from two angles.

Both definitions answer one question. Did the process finish? A worker dies mid-call. A task queue loses a message. A network call times out. The engine replays recorded state and carries on, so the answer becomes yes even though something broke.

Agent work asks a second question. Was the result right, and who accepted it? A process can be crash-proof and still write a wrong file. It can produce a patch that compiles and breaks the build. Replay has nothing to say about that, because replay knows what the code did, not what a person wanted.

Where a durable execution engine wins

Plenty of work is a better fit for the engine, and pretending otherwise would waste a quarter. Take a payment flow across four services, an order pipeline, or a nightly reconciliation of two ledgers. Or a batch job whose steps are deterministic code you can replay with confidence. Temporal or Restate will do a better job than an agent runtime at all of those, because the work never needed judgment. It needed ordering, retries and a record.

Temporal's model is documented plainly. Applications are workflows and activities, dispatched to polling workers, with timers, signals, queries, updates and schedules as the durable primitives. Restate keeps the code inline instead: a function runs its durable steps in place, each step journaling as it commits. Restate claims "up to 10× more cost efficient" than Temporal Cloud, with "a few milliseconds" of overhead per durable step, and runs inside your own cloud account (its comparison).

The price sets the bar for every alternative. Temporal Cloud is pay as you go: free with $150 in credits for 90 days, no base fee. After that, $0.042 per GB-hour of active storage and $0.00105 per GB-hour retained. Business starts at $500 a month for 2.5 million actions and 100 GB of retained storage (Temporal pricing). Restate self-hosts as a single binary, run with Docker, Homebrew or npx (Restate on GitHub). The source is under the Business Source License 1.1 (its license).

What you are buying in either case is a durable log, a dispatcher and a replay engine. For orchestration, those are the right things to buy.

Where the platform wins

Agent work ends in a file, and a file needs an owner. In Kortix, the unit is the session. The sandbox clones the project repo and works on its own branch, whose name is the session id. The prompt the agent reads on that branch is explicit about what survives (Kortix on GitHub):

"The session you're in is an isolated sandbox — an ephemeral branch of this repo … Only what you commit + push survives."

That line is the design. Kortix makes no promise that a session resumes after a crash, because the thing worth resuming is already in git. The agent's instructions tell it to commit and push its session branch, and the prompt's last step is "Don't half-ship." Then it opens a change request against the project's default branch, where a person with the merge permission merges it. Merge is default-deny for agents (Read the docs).

So the reviewer opens a diff: the branch and the changed lines. The question "was the result right?" gets answered by the person who owns the repo, inside the tool they already use to review code. That is a weaker durability guarantee than replay. It is a stronger acceptance guarantee, and for work that changes a company's files, acceptance is the harder half. A team with nobody to operate a cluster can still start a session and review a diff.

Auditability takes the same shape. Every action is recorded. Reading, exporting and streaming the audit log depend on the plan. A manager who has to answer "what did it do last Tuesday" gets a list of actions and a branch to inspect, rather than a reconstruction from logs.

Kortix is a CompanyOS, and its session, branch, change request and triggers are what make an agent's work survive long enough to be judged.

Your scheduler starts the session, the change request ends it

The two halves compose with very little glue. A trigger starts a session with nobody present, from one of five sources: a schedule, a webhook, an App event, a connector event (experimental and off by default) or a merged change request. A webhook fires when another system sends a signed request, so your existing scheduler's last step can be that request; a schedule fires when a time arrives or a fixed period passes, or once at a time you choose. Each one is a way for a system you already run to hand work to an agent (trigger docs).

Your existing scheduler keeps its job list. Its last step becomes a signed POST, and the session does the part a scheduler was never good at: read the repo, write the change, run the checks. A cron entry covers the cases where the scheduler is missing entirely.

triggers:  - slug: daily-digest    type: cron    cron: "0 0 9 * * 1-5"    timezone: Europe/Berlin    prompt: Summarize yesterday's commits and open change requests.

The return path is the change request. Your pipeline reads it, runs its own gates against the branch, then merges or closes it. The engine never has to know how a file was edited. It only has to know that a step finished, and the change request is that step's result. If the work continues after the merge, the engine's next step starts from the commit that landed.

For a longer treatment of each side, see durable execution engines and durable execution for AI agents. The pattern appears in Kortix's blog.

Three situations, three tools

  • A long timer, or a payment flow across four services, with no agent involvedTemporal or Restate
  • An agent that edits a repo, and a person who approves the editKortix
  • A pipeline that must hand work to an agent and get a reviewable change backYour engine starts the session; Kortix returns the change request

Which tool gets the file matters more than which tool is better. When the file is the deliverable and a person signs it off, the platform that produces a reviewable change does the work that matters. The engine is the thing that starts it on time.

Questions that decide the choice

What does Temporal mean by durable execution?

It is Temporal's own description of its product, crash-proof execution. Temporal records a workflow's state at every step, so after a failure the workflow picks up where it stopped instead of starting again.

Who are the main competitors of Temporal?

Restate, Inngest, Trigger.dev, DBOS, Hatchet and Microsoft's Durable Task are the closest. Cloudflare Workflows and AWS Step Functions compete from the managed side, with no self-host edition. Restate positions itself directly against Temporal.

Is Netflix using temporal?

Yes. Netflix runs Temporal. Temporal's own site publishes Rob Zienert's talk on the six-year path from an internally adopted technology to a generally available, officially supported platform on Netflix's Paved Road (Temporal).

Does Kortix replace a workflow engine?

No. Kortix is not a workflow engine; it supplies the review step, a change request a person reviews and merges. A session commits, pushes a branch and opens that change request. Keep an engine for multi-service orchestration, deterministic replay and timers measured in months.

Start with one change request.

Point an agent at a repo, let it open the change, then review the diff and the checks yourself.

Self-host is free · Read it, fork it, audit it · Every action is recorded. Reading, exporting and streaming the audit log depend on the plan