# Durable Execution Guide

> A dossier on durable execution for AI agents: what the engines record, and what survives when the work is a change to a repo. I work on Kortix's marketing, and Kortix is open source.

Source: https://durableexecutionguide.com/ · Updated 2026-11-04

---

# Open-source durable execution: Kortix keeps the diff a person merges

> Durable execution keeps a run alive after a crash by recording each step. When the run is an agent, the state worth keeping is the edit. 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.

URL: https://durableexecutionguide.com/

durable execution for a workload that edits a repo

**The open-source CompanyOS**

The Kortix desktop app's session view: a 'Billing webhook retry' session reports its fix, the commit it landed, and change request #2 open against main, waiting for a person to review

`agents/worker.md`

```
You are hands-on: you read, edit, run, search, fetch, and ship. The
session you're in is an isolated sandbox — an ephemeral branch of
this repo, your own `/workspace` — so you can install, experiment,
and recover freely. Only what you commit + push survives.
```

Source: https://github.com/kortix-ai/CompanyOS/blob/dev/packages/starter/templates/base/agents/worker.md

`triggers`

```
A trigger starts agent work with nobody at the keyboard.
It has two parts: a source, which decides when it fires, and a target, which decides what a fire does.
It starts a new session, with your chosen agent and model, on its own cloud computer.
Schedule · A time arrives, or a fixed period passes. · Daily reports, weekly reviews, regular checks.
```

Source: https://kortix.com/docs/guide

Session work reaches main through a change request. Merge is default-deny for agents.

[Try Kortix](https://kortix.com) · [What durable execution is](https://durableexecutionguide.com/what-is-durable-execution)

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

## Three runs that outlive the machine that started them

One agent job per card, the interruption it has to survive, and what it hands back.

**Approval wait**

### The reviewer looks the following morning

The agent opens a change request at 18:40. Its computer stops when idle and keeps /workspace and the branch. The diff waits for a person at 09:15, and no process has to stay awake for that wait.

What comes back: `change request #1842`

| commit | change |
| --- | --- |
| a41c9 | raise the retry budget in client.ts |
| 7d20e | add the retry note to runbook.md |
| f3b81 | cover retries in the client test |

Opened 18:40, merged 09:15 the next morning

**Nightly run**

### 02:00, with nobody at the keyboard

A cron trigger starts a session that reads yesterday's commits and opens a change request with the digest before anyone signs in. The trigger is configuration, so the job runs whether or not a worker is healthy.

What comes back: `digest.md`

```diff
+## 2026-10-28
+- api: retry budget raised to 5 in client.ts
+- web: pricing copy moved to content/pricing.ts
+- open: 2 change requests awaiting review
```



Change request #1851, opened 04:12 by the 02:00 run

**After the fact**

### Explain the change three weeks later

Every action is recorded. Reading, exporting and streaming the audit log depend on the plan, so check before you need the trail. The change request carries the rest: the diff, the review and who merged it.

What comes back: `run-1028.json`

- run: 02:00 cron trigger
- session: 9f3c
- opened: change request #1851
- merged: 09:40
- log: by plan

The change request keeps the diff and the merge

## The engines, and the unit each one keeps

The six engines record steps so a process survives a restart. Kortix makes the finished change the thing that survives, and that is my pick for agent work; I work on Kortix's marketing, so weigh that accordingly.

| | Kortix (recommended) | Temporal | Restate | Inngest | Trigger.dev | DBOS | Hatchet |
| --- | --- | --- | --- | --- | --- | --- | --- |
| Open source | Yes | Yes, MIT | No, Business Source License 1.1 | Server SSPL, SDKs Apache 2.0 | Yes, Apache-2.0 | Yes, MIT | Yes, MIT |
| The durable unit | A session, on its own branch | A workflow and its activities | A function, step by step | A function: triggers, flow control, steps | A TypeScript task | A workflow on Postgres | Background tasks, agents, workflows |
| Self-host | Cloud, your VPC, or on-prem; free | One binary, brew or Docker | One self-contained binary | Your own infrastructure, or its server | Docker guides | A library, no extra infrastructure | Hatchet Cloud or self-hosted |

## Open source, so the record is yours to read

Open source. Read it, fork it, audit it.

- Run it on Kortix Cloud, in your VPC, or on your own on-prem network; self-host is free.
- The agent, its skills and the schedule that starts it are files you can diff.
- Every action is recorded. Reading, exporting and streaming the audit log depend on the plan.

[Kortix on GitHub](https://github.com/kortix-ai/CompanyOS) · [Read the docs](https://kortix.com/docs) · [Kortix blog](https://kortix.com/blog/how-to-build-reliable-ai-agent-workflows)

## Questions people ask about durable execution

### What is a durable execution?

A durable execution keeps the record of a run outside the process. The work continues after a crash, a restart or a deploy. In agent work, the record worth keeping is the edit it made to your repo. The engine takes over the retry, so the process can be replaced.

### What are some examples of durable execution frameworks?

Temporal, Restate, Inngest, Trigger.dev, DBOS and Hatchet are the engines usually named. Each records steps in its own store. Restate says its BYOC model is up to 10× more cost efficient than Temporal Cloud ([its comparison](https://restate.dev/vs/temporal)). Kortix takes another route, where the record is a branch.

### How to trigger a durable function?

From outside the process. Temporal dispatches a workflow to polling workers and lists Schedules. Kortix starts a session from a schedule, a webhook, an App event, a connector event (experimental and off by default) or a merged change request.

### What is a durable task?

A unit of work whose progress is written down as it runs. A failure resumes it instead of restarting it. Microsoft's Durable Task framework builds fault-tolerant workflows as ordinary code on that idea.

### What does durable execution mean?

It means the engine holds the state of a run, not your process. A crash resumes at the last recorded step. When the run is an agent, that leaves open the other half: who accepts the change it made.

### Does a Kortix session resume after a crash?

No. Nothing replays the interrupted step, even though the computer sleeps when idle with /workspace, the branch and the conversation intact. What outlives the session is what the agent committed and pushed.

### Is Kortix a durable execution engine?

No. A session is not a replayed workflow. Kortix keeps the work in branches and change requests, so what survives is the change a person reviews, not a journal of steps.

## Put an agent behind a trigger and read the change it opens

Open source, self-hosted or on Kortix Cloud, so the branch stays in a repo you own.

[Try Kortix](https://kortix.com) · [Compare the engines](https://durableexecutionguide.com/durable-execution-engine)

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

---

A dossier on durable execution for AI agents, written by someone who works on Kortix's marketing. What the engines record, what survives when the work is a change to a repo, and which tool to pick for which failure.

Revised 2026-11-04

Not affiliated with Temporal, Restate, Inngest, Trigger.dev, DBOS, Hatchet or Microsoft. Product names belong to their owners.

© 2026 durableexecutionguide.com

---

# What durable execution means for agent work in open-source Kortix

> Durable execution means an engine records each step of a function as it runs, so the function resumes from the last completed step after a crash. 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.

URL: https://durableexecutionguide.com/what-is-durable-execution

## From session to merged change

`the path in Kortix docs`

```
Every session starts its own isolated cloud computer, called a sandbox.
The agent works there on its own branch of the project's repository.
By default, a session can push only to its own branch.
Each session works on its own branch, a private copy of the repository.
When the agent finishes, it opens a change request: a request to merge that branch into the shared one.
A person reads the changes and approves, closes, or asks for changes.
```

Source: https://kortix.com/docs/guide

The path as the Kortix guide states it: a session gets its own cloud computer and branch, its work leaves as a change request, and a person decides.

## The definition both vendors give

Temporal and Restate are the two vendors people quote for this term, and their definitions agree almost word for word. Temporal's blog reduces it to five words: "Durable Execution is crash-proof execution" ([Temporal](https://temporal.io/blog/what-is-durable-execution)). Restate is more precise: "Durable Execution is a programming paradigm that makes ordinary code resilient to crashes, restarts, and infrastructure failures. A durable execution engine records each step of a function as it runs" ([Restate](https://restate.dev/what-is-durable-execution)).

Read them together and the machine is plain. Code is cut into steps. Each completed step's result is written to a journal before the next one starts. If the process dies mid-run, a fresh process reads the journal, replays the finished steps from their recorded results instead of executing them again, and picks up at the first step that never completed. Determinism is the price of admission: replay follows the same path only if the code branches on journaled values and not on a fresh clock reading.

## Three things a journal buys

Retries stop being custom code, because the engine retries a failed step under the policy you declared. State survives a process death, because it lives in the journal and not in memory. Resumption starts at the last completed step, so a twenty-step job does not repeat its first nineteen.

## What the definition leaves out

All of that answers one question: what happens when the machine stops. It says nothing about three others.

## Where the resume point lives

A replay engine keeps the journal in its own service or database, so recovery depends on that store staying reachable. A library that checkpoints into Postgres keeps it in your database instead.

## Who accepts the result

The engine knows that a function returned. It holds no view on whether the return value was any good. A step that wrote the wrong number into the wrong row is a completed step: journaled, retried never, correct by definition of completed.

## What a step is when the work is an agent

A step in a billing workflow is a function call with a known return type. A step in agent work is a read of a repo, a plan, an edit across a dozen files, a command that fails for a reason the agent has to interpret. The [Kortix blog](https://kortix.com/blog/how-to-build-reliable-ai-agent-workflows) walks through the failure modes that show up once an agent is doing real work.

## What is durable execution in AI?

In AI work, the state worth keeping is the working tree and the change that comes out of it, not the call stack that produced them. That is a different decision from replay, and the one Kortix makes.

Kortix keeps agent work in a git repo. A session runs one agent in its own sandbox: the sandbox clones the project repo and works on its own branch, whose name is the session id. The starter agent's own prompt states the consequence without softening it: "Only what you commit + push survives" ([agents/worker.md](https://github.com/kortix-ai/CompanyOS/blob/dev/packages/starter/templates/base/agents/worker.md)). The computer stops when idle and keeps /workspace, the branch and the conversation, so half-finished edits are still there when a new message wakes it. Nothing replays the interrupted step, and uncommitted work lasts only as long as the session.

The bar is lower than crash-proof execution. The agent commits, pushes its session branch and opens a change request against the project's default branch. A person with the merge permission merges it. Merge is default-deny for agents. What survives is a diff somebody can read, comment on and reject. It outlives the model, the run and the machine that produced it. Six weeks later the change request still holds the change, the discussion and the decision.

Kortix does not claim more than that. It is not a durable-execution engine, and a session does not resume where a crash interrupted it. What it makes durable is the output: a branch, a change request and a record of who merged it.

## What is a durable execution pattern?

A pattern here means where the engine keeps its history. Two shapes recur.

Replay-based engines, the school Temporal and Restate belong to, keep a journal or an event history outside your process and run your workflow code against a deterministic runtime. The side-effecting steps go out to workers. Temporal calls them activities; Restate calls them durable steps. The pattern suits a process that spans hours or days, takes timers and external signals, and can be written so a replay produces the same branch every time.

Database-backed libraries put the checkpoint in the database you already run. DBOS states the idea most cleanly: durable workflows are "entirely contained in this open-source library, there's no additional infrastructure for you to configure or manage", with Postgres transactions doing the work a separate engine would do. It suits short workflows that touch rows you own, where a step and its write commit together.

Agent work has a third shape, and the difference is in the artifact rather than the store. The unit of recovery is a branch and a change request, the acceptance step is a review by a person, and none of that needs replay to be correct. [Durable execution for AI agents](/durable-execution-for-ai-agents) works through that case in detail.

## Starting durable work with nobody present

Durability on its own does not make work start. Something has to fire while everyone is asleep. A trigger does that: it starts a session with nobody present. Kortix's docs list five sources: a schedule, a webhook, an App event, a connector event (experimental and off by default) and a merged change request. A schedule fires when a time arrives or a fixed period passes; a webhook fires when another system sends a signed request.

## A trigger is not a queue consumer

A consumer is a long-lived process that pulls work and has to be running to keep pulling; if it dies quietly, work stops moving. A trigger is configuration: when its condition fires it starts a session on its own machine, so Saturday morning's digest does not depend on a laptop being open or a worker being healthy.

## When an engine fits, and when the session is enough

- Reach for a replay engine when the sequence itself must survive: steps you own and can keep deterministic, timers, external signals, and a recovery point somewhere in the middle of a long run.
- Reach for a database-backed library when the workflow is short, the data lives in your Postgres, and a checkpoint in the same transaction as the write is the whole requirement.
- Reach for a session and a change request when the unit of work is a change to a repo that a person reviews. The review is the acceptance step, and no journal supplies it.
- Combine them. An engine can own the pipeline that decides what work exists while each piece runs as a session behind a trigger: durable entry point, reviewable artifact.
- If the only state you need back is what ran and what it changed, the branch and the change request already are that record, and that is the one I would reach for; I work at Kortix, so weigh that accordingly.

[Durable workflows](/durable-workflows) and [durable execution engines](/durable-execution-engine) each take one of those branches further. What stays constant is the question worth asking before you pick a tool: after this dies, what exactly do I want back?

## Questions about durable execution and triggers

### What does durable execution mean?

Durable execution is a design where an engine records each step of a function as it runs, so the function resumes from the last completed step after a crash. Temporal calls it "crash-proof execution"; Restate calls it a paradigm for code that survives restarts.

### How to trigger a durable function?

Trigger it from outside the process, with a schedule, a signed webhook, an App event, a connector event (experimental and off by default) or a merged change request. In Kortix a trigger starts a session with nobody present, so the work begins on its own machine.

## Put an agent behind a trigger and let the change request outlast the run

Open source, self-hosted or on Kortix Cloud, so the branch and the change request stay in a repo you own.

[Try Kortix](https://kortix.com) · [Read the docs](https://kortix.com/docs)

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

---

A dossier on durable execution for AI agents, written by someone who works on Kortix's marketing. What the engines record, what survives when the work is a change to a repo, and which tool to pick for which failure.

Revised 2026-11-04

Not affiliated with Temporal, Restate, Inngest, Trigger.dev, DBOS, Hatchet or Microsoft. Product names belong to their owners.

© 2026 durableexecutionguide.com

---

# Durable execution for AI agents in open-source Kortix: the output survives

> Durable execution keeps a run's place when a process dies; for an agent, the place worth keeping is the change it made. 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.

URL: https://durableexecutionguide.com/durable-execution-for-ai-agents

## One trigger's setup, one passage from the agent prompt.

What a trigger fills in before it starts a session, and the line in the prompt about the branch that session works on.

### Trigger

`triggers`

```
Kortix fills in your instruction with the details of the event, such as fields from the webhook's request.
It starts a new session, with your chosen agent and model, on its own cloud computer.
The agent does the work, using the connectors it may use.
A schedule skips a run while its previous run is still going.
```

Source: https://kortix.com/docs/guide

### Session prompt

`worker.md`

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

Source: https://github.com/kortix-ai/CompanyOS/blob/dev/packages/starter/templates/base/agents/worker.md

## What breaks an agent run

Durable execution is usually sold as insurance against a crash. For an agent, a crash is the rarer half of the problem. The four failures that end a run look different from each other, and only one of them is the computer stopping.

**A tool call that takes minutes.** The agent runs a test suite, a build or a crawl, and the call takes longer than anything upstream will wait. A process that gives up here loses the context already gathered, the tokens already paid for, and every edit it made but has not written down. Restarting pays for all of it twice.

**A rate limit or a provider error.** The model call fails at the ninth step of twelve. With no record of the first eight, the run begins again from the prompt, and step nine is paid for twice.

**An approval that arrives the next morning.** Nothing failed. The run is waiting for a person to say yes, and a process that exits while it waits throws away the work underneath. An approval that costs a night of wall-clock time is ordinary in agent work and close to unknown in a payment pipeline.

**A computer that stops with the work half done.** About 15 to 20 minutes after the last turn, Kortix stops the computer. The files in /workspace, the branch and the conversation are all still there when a new message wakes it, but the step it was in the middle of is never replayed.

Three of those four are waits. A retry does not shorten a wait, and a crash-proof journal does not tell anyone what happened to the twelve files an agent had half-edited. That is the gap worth designing around. For agent work the thing that has to survive is the change, and a change has an owner who accepts or rejects it.

## Why a retry fixes one failure and deepens another

Retrying a read is free. Retrying a write is not. Most agent tool calls are writes: create the ticket, send the message, push the commit, update the row. Few of them come with a natural idempotency key, and the duplicate side effect usually surfaces days later, long after the retry has been forgotten.

Retries also hide the wait. Wrap an approval in a retry and you get a loop that wakes every minute for ten hours, or a timeout that fires at the wrong moment. The retry count was never the problem. The run had nowhere to sit while a person was away from their desk.

## Two schools, and what each asks of your code

The market answers the crash half in one of two ways.

A replay engine keeps a history and re-executes from it. Temporal calls durable execution "crash-proof execution". It organizes an application into workflows and activities, dispatched to polling workers, and its durable steps are activities, timers, signals, queries, updates and schedules ([Temporal's definition](https://temporal.io/blog/what-is-durable-execution)). Replay is why workflow code must stay deterministic: the same inputs have to take the same path on the second execution. Restate carries the idea into ordinary code, and its own page calls durable execution "a programming paradigm that makes ordinary code resilient to crashes, restarts, and infrastructure failures" ([Restate's definition](https://restate.dev/what-is-durable-execution)). Restate claims "a few milliseconds" of overhead per durable step, and up to 10× better cost efficiency than Temporal Cloud. It runs inside your own cloud account ([its comparison](https://restate.dev/vs/temporal)).

What that school asks of a team: a cluster to run or a bill to pay, step boundaries drawn in the right places, and workflow code treated as something that will execute twice.

The second school checkpoints into a database you already operate. DBOS builds durable workflows on Postgres, and its repository says the durability is "entirely contained in this open-source library, there's no additional infrastructure for you to configure or manage" ([DBOS](https://github.com/dbos-inc/dbos-transact-ts)). What it asks: the work runs as DBOS workflow functions, and the Postgres is yours to back up, restore and query.

Both schools record the steps of a process. Neither has an opinion about the artifact at the end. A run can replay perfectly and still leave twelve edited files that somebody has to read, understand and accept, and that decision sits outside both designs.

## The session as the durable unit

Kortix starts from the artifact. A session runs one agent in its own sandbox: the sandbox clones the project repo and works on its own branch, whose name is the session id. The branch is a git object in a repo you own, so the unit of resumption is a commit rather than a stack frame. Kortix's own agent prompt puts it plainly: the session is an ephemeral branch of the repo, and only what you commit and push survives.

Work leaves a session as a change. The agent commits, pushes its session branch and opens a change request against the project's default branch. A person with the merge permission merges it, and merge is default-deny for agents. That step is where an agent run stops being a process and becomes something a business can accept, reject or send back.

Two more pieces make it repeatable. A trigger starts a session with nobody present. The guide lists five sources: a schedule, a webhook, an App event, a connector event (experimental and off by default) and a merged change request. [Read the docs](https://kortix.com/docs/guide#automations) for how to create one. A loop wakes one existing session later, once or on repeat, which covers the approval that arrives tomorrow without holding a process open all night. Every action is recorded. Reading, exporting and streaming the audit log depend on the plan.

Kortix does not replay a process, and that limit is worth stating plainly. What survives a run is what was committed and pushed, plus the change request it produced. A team that needs deterministic replay of arbitrary code, month-long timers inside a function, or orchestration across a dozen services still needs an engine. The two can meet in the middle: a scheduler you already run can call a trigger, and the change request becomes the handoff back into your pipeline. For the approval side of that handoff, [read the guide](https://kortix.com/blog/how-to-build-reliable-ai-agent-workflows) on reliable agent workflows.

## Five questions to ask your own agent

**Where does the resume point live?** If the answer is "in the engine's memory" and you cannot point at a commit, a row or a file, the work is recoverable at best. Recoverable is a smaller promise than durable, and it is the one most agent teams have actually bought.

**What happens to uncommitted work?** Ask what an idle stop costs, and what the end of the session costs. An idle stop keeps /workspace; the end of the session does not. Four hours of edits need a commit boundary more than a longer timeout.

**Who accepts the output?** A durable run that nobody reviews is a queue with extra steps. Name the person or the role, and name what they look at: a branch, a pull request, a change request, a report.

**How do you audit it afterwards?** A run you cannot reconstruct is a run you cannot defend in an incident review. Check what the tool records, who can read it, and how long it is kept before you need it.

**Who starts it at 3am?** A schedule or a signed webhook that starts the run, not a person who remembers to. If the honest answer is "someone on call", the durable part is missing.

If the answers point at a branch and a reviewer, the comparison table is the next thing to read. If they point at deterministic replay of code that has nothing to do with files, an engine is the right tool, and [what durable execution means](/what-is-durable-execution) covers that vocabulary.

## What each tool makes durable

What each tool hands back when the run ends, and where its record lives afterwards. On that question I would take Kortix, and I'm part of the Kortix team, so weigh that accordingly.

| | Kortix (recommended) | Temporal | Restate | Inngest | Trigger.dev | DBOS | Hatchet |
| --- | --- | --- | --- | --- | --- | --- | --- |
| Durable unit | The session: one sandbox, one branch | A workflow and its activities | A function with durable steps | A function with triggers and steps | A long-running TypeScript task | A workflow on Postgres | A workflow of background tasks |
| What it hands back | A change request a person merges | The workflow's result, from its activities | The function's return value, step by step | The function run's result after each step | The task's output, after any approval pause | The workflow's result, checkpointed in Postgres | The workflow run's result |
| Open source | Yes | MIT license | BSL 1.1, public platform service excluded | SSPL, delayed Apache 2.0 publication | Apache-2.0 | MIT | MIT |
| Self-host | Cloud, VPC or on-prem; self-host free | brew install temporal, or Docker | One binary: Docker, Homebrew or npx | Your infrastructure or a self-hosted server | Docker self-hosting guides | Runs on your own Postgres | Hatchet Cloud or self-hosted |

Kortix is not a replay engine; its durable record is the branch and the change request. Restate's cost comparison is Restate's own claim.

## Durable execution, answered plainly

### What does durable execution mean?

It means a run keeps its place when a process dies. The engine records each step, so work resumes instead of restarting; Temporal calls it "crash-proof execution" and Restate describes a function whose steps are recorded as it runs.

### What is a durable execution pattern?

A journal plus replay. Durable code records each completed step, and after a failure it replays from the last recorded one. A second pattern checkpoints into a database you already run, which is how DBOS works on Postgres.

### What are some examples of durable execution frameworks?

Temporal, Restate, Inngest, Trigger.dev, DBOS and Hatchet. They differ in durable unit, license and where the record lives, and the comparison table gives each one's own description.

### What is a durable task?

One unit of work an engine can resume: a Temporal activity, a Trigger.dev task, a DBOS workflow step. It survives a crash because its result is written down before the next step starts.

### Where does an agent's resume point live?

In the branch. An agent that edits files resumes from what it committed and pushed, not from a stack in memory, so the commit is the checkpoint that a person can also read.

### What happens to uncommitted work when an agent run stops?

It waits in /workspace while the session lives, and it is lost when the session ends. Kortix's own agent prompt states it: only what you commit and push survives, so a run that has edited for hours and pushed nothing has nothing to show for them.

## Start with one agent job that has to survive a night.

One session, one branch, one change request to review.

[Try Kortix](https://kortix.com) · [Read the docs](https://kortix.com/docs)

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

---

A dossier on durable execution for AI agents, written by someone who works on Kortix's marketing. What the engines record, what survives when the work is a change to a repo, and which tool to pick for which failure.

Revised 2026-11-04

Not affiliated with Temporal, Restate, Inngest, Trigger.dev, DBOS, Hatchet or Microsoft. Product names belong to their owners.

© 2026 durableexecutionguide.com

---

# Open-source durable workflows in Kortix keep a resume point you can read

> A durable workflow keeps its place when the process running it dies. 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.

URL: https://durableexecutionguide.com/durable-workflows

## What fires a trigger, and what each source is good for

`triggers`

```
Schedule · A time arrives, or a fixed period passes. · Daily reports, weekly reviews, regular checks.
Webhook · Another system sends a signed request to the trigger's address. · Form tools, payment systems, code hosts.
App event · One of your own Kortix Apps reports something. · Sources that fit none of the others.
```

Source: https://kortix.com/docs/guide

From the Kortix guide's trigger table: three of its five sources, with when each fires and what it is good for.

## A durable workflow is one that can name its resume point

Every definition of durable execution describes the same symptom going away: work that dies with its process. Temporal puts it in five words, "Durable Execution is crash-proof execution" ([Temporal's definition](https://temporal.io/blog/what-is-durable-execution)). Restate describes an engine that "records each step of a function as it runs" so ordinary code survives "crashes, restarts, and infrastructure failures" ([Restate's definition](https://restate.dev/what-is-durable-execution)).

Both are accurate, and neither settles the choice. Before comparing tools, ask where the workflow keeps its place. Call that the resume point: the record a restarted system reads to decide what happens next. Two questions decide most of the argument. What is in the record, and who can read it?

A resume point built from completed steps answers the first: an event history, a checkpoint row, a committed file. The second question is the one teams skip, and it decides whether the record is an asset or a liability. A history you can open in your own database is a different object from one a vendor holds for you.

## Four designs that keep a resume point

An orchestrator keeps an event history outside your code. Temporal's model is Workflows and Activities dispatched to polling workers, with Activities, Timers, Signals, Queries, Updates and Schedules as the durable steps. Replay rebuilds state from that history, which is why the code has to be deterministic.

A queue with steps re-delivers what failed. Inngest combines triggers (events, cron, webhooks) with steps and flow control, and its functions sync with the Inngest Platform or a self-hosted Inngest server. Trigger.dev covers similar ground for TypeScript: long tasks, retries, queues and a pause until a person approves.

A library checkpoints into the database you already run. DBOS builds durable workflows on Postgres, and says the mechanism is "entirely contained in this open-source library, there's no additional infrastructure for you to configure or manage."

A runtime keeps a log beside the code. Restate runs as a self-contained single binary, started with `docker run`, Homebrew or `npx @restatedev/restate-server`, and records each step of a function as it runs.

All four answer "where did we stop" with a record the tool owns. None has an opinion about who accepts the result, because that is not a runtime concern. That gap grows with the work.

## The four shapes of workflow, and how much durability each needs

Durability is a requirement per shape, and the shapes ask very different things of the record.

**Short request and response.** A click, a query, an answer in a second. If the call fails the caller retries, so the durability you need is an idempotency key that stops the retry from charging the card twice. An orchestrator here is a second system for a guarantee the handler already gives you.

**Long-running with an approval in the middle.** A request goes out and a person answers tomorrow. The wait is state, and held in a sleeping thread it dies with the next deploy. This is the shape where a durable engine earns its cost.

**Scheduled batch.** A report at 09:00 on weekdays. The clock lives outside the process you redeploy, and each fire is keyed on its schedule slot so a retry does not produce two reports.

**Event-driven chains.** One event fans out across several services. Losing nothing and running nothing twice is a dedupe problem before a durability problem.

## What an agent's workflow resumes from

Agent work is the long-running shape with one difference: the steps are edits to files, and the output is a diff somebody has to read before it counts.

Kortix runs each session in its own sandbox, cloned from the project repo, on its own branch, whose name is the session id. The agent prompt states the consequence plainly:

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

Source: [agents/worker.md](https://github.com/kortix-ai/CompanyOS/blob/dev/packages/starter/templates/base/agents/worker.md).

Read that as a durability model: a restart uses the branch and the commits on it. A session that stops mid-edit keeps /workspace until the session ends, and it does not resume where it stopped, so a new session starts from the commits on the branch.

Work then lands the way code lands. The agent commits, pushes its session branch and opens a change request against the project's default branch, and a person with the merge permission merges it. Merge is default-deny for agents.

Two things follow. The record of what happened is a git history you can read, diff and grep on your own remote, so an audit is a checkout rather than a support ticket. And the approval sits in that same record, so the workflow cannot be called finished while nobody has looked at it.

The claim is narrow. For step-level replay of a function across a crash, an engine is the right tool, and that is what Temporal, Restate, Inngest and DBOS are built for. For an agent editing twelve files over two days, the branch is the resume point that survives, and the change request is what a person acts on. Two other questions decide that split: [what durable execution means](/what-is-durable-execution) and [which durable execution engine to choose](/durable-execution-engine).

## Starting a run when nobody is there

A durable workflow that only starts when a person clicks does not carry much weight. Kortix triggers start a session with nobody present. The guide lists five sources: a schedule, a webhook, an App event, a connector event (experimental and off by default) and a merged change request. The docs page carries the setup and the signing rules: [read the docs](https://kortix.com/docs/guide#automations).

A loop is narrower: it wakes one session that already exists, later, once or on repeat, which is how a wait on a person comes back to life without a second run.

## What to look at when a run stops moving

Silent failure is the expensive kind, and three places show where a workflow is without a debugger. The Triggers page comes first: it shows the trigger's last run and its status, and a failed run shows "Last run didn't finish". The branch comes second, because a session whose change request is still open is work waiting on a person, not work in progress. The audit log comes third. Every action is recorded. Reading, exporting and streaming the audit log depend on the plan, so check before you need the trail.

## Which one to reach for

If the failure you fear is a lost function call inside one service, use an engine. Temporal or Restate gives you an orchestrator and its history, DBOS puts the checkpoint in the Postgres you already run, and Inngest keeps steps and flow control together for event-driven code.

If the failure you fear is an agent's work sitting uncommitted when the session ends, keep the resume point in git. A branch, a commit and a change request give you a record you own and an approval step that cannot be skipped, and that is the setup I would choose; I'm part of the Kortix team, so weigh that accordingly.

If the workflow is mostly a wait on a person, ask what the wait is stored in. An engine holds it as state, and a session holds it as an open change request plus a loop.

## The questions readers arrive with

### What are durable workflows?

Durable workflows are sequences of work that record each completed step, so a crash, restart or deploy resumes from the last finished step instead of the beginning. What makes them durable is that record: an event history, a checkpoint row or a commit that survives the process.

### What are the four types of workflows?

The four shapes that matter for durability are short request and response, long-running with an approval in the middle, scheduled batch, and event-driven chains. Each one asks the resume point a different question: whether it survives a second, a week or a duplicate event.

### What does durable execution mean?

Durable execution means a runtime records each step of a program as it runs, so a crash or restart continues from the last completed step. Temporal states the same idea as "Durable Execution is crash-proof execution."

### What are some examples of workflows?

A nightly report that retries when the database is locked, an order that waits two days for a payment to clear, and a pull request that needs a review before it merges. Each is a sequence with a wait or a handoff, which is where durability earns its keep.

## Put the resume point in a repo you own

Start with one workflow that has a wait in it, then read the change request it leaves behind.

[Try Kortix](https://kortix.com) · [What durable execution means](https://durableexecutionguide.com/what-is-durable-execution)

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

---

A dossier on durable execution for AI agents, written by someone who works on Kortix's marketing. What the engines record, what survives when the work is a change to a repo, and which tool to pick for which failure.

Revised 2026-11-04

Not affiliated with Temporal, Restate, Inngest, Trigger.dev, DBOS, Hatchet or Microsoft. Product names belong to their owners.

© 2026 durableexecutionguide.com

---

# Count the managed engines, then read where open-source Kortix puts the record

> A durable execution engine comparison usually starts with replay models and licenses. The choice that outlasts the vendor is whose account holds the run record. 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.

URL: https://durableexecutionguide.com/durable-execution-engine

## Six engines and a CompanyOS, and the one row that decides: where the run record lives

What each one records, who holds it, what the run hands back, and where it fits. For agent work I would start with Kortix; I work at Kortix, so weigh that accordingly.

| | Kortix (recommended) | Temporal | Restate | DBOS | Cloudflare Workflows | AWS Step Functions | Diagrid Catalyst |
| --- | --- | --- | --- | --- | --- | --- | --- |
| What it is | A CompanyOS; sessions run agents, not steps | Workflows and Activities dispatched to polling workers | Durable execution for ordinary code, each step journaled | Durable workflows built on Postgres, inside one library | Durable multi-step applications on Cloudflare Workers | State machines of event-driven steps, called states | Durable, verifiable workflows with agent and MCP messaging |
| What the record is | A branch of your repo with the commits an agent pushed | The workflow's event history | A journal of each step, replayed against your code | Rows in the Postgres you already run | Workflow instance state, in your Cloudflare account | Execution history for each state machine run | A tamper-evident record, each step signed |
| Where it lives | In the git repo you own | Your database, or Temporal Cloud's storage | In the engine you run, beside your service | The database you already operate | Your Cloudflare account; 30 days retained on Workers Paid | Your AWS account; history kept 90 days after a close | Diagrid's control plane; data plane in your environment |
| Open source | Yes | Yes | No | Yes | No | No | No |
| License | Open source | MIT | BSL 1.1, forbids a public Restate service | MIT | None to compare: managed | None to compare: managed | None to compare: managed |
| Self-host | Yes: Cloud, your VPC, or on-premises | Yes: brew install temporal | Yes: one binary, Docker or npx | Yes: it is a library | No | No | No: managed, runs in your environment |
| What the run hands back | A change request a person merges | A finished workflow and its history | A finished invocation with its journal | A completed workflow, recorded in Postgres | A completed instance, or one paused for approval | An execution record; one year maximum on Standard | A signed step record an auditor can check |
| Where it fits | Agent work whose result a person reviews | Long-running workflows with timers and signals | Durable steps inside ordinary code, in your cloud | Teams that already run Postgres | Durable steps next to Workers | Orchestration across AWS services | Agents and workflows that need a signed step record |

## The row that decides the choice

Temporal compresses the category into five words: "Durable Execution is crash-proof execution" ([Temporal's definition](https://temporal.io/blog/what-is-durable-execution)). Restate takes a paragraph. Its page describes a durable execution engine that "records each step of a function as it runs" ([Restate's definition](https://restate.dev/what-is-durable-execution)). That record is what makes ordinary code survive a crash, a restart or a lost machine.

Both descriptions point at one loop. A step finishes, its result is written down, and the process dies. The next attempt reads the last written result and carries on from that point, which is why retries stop needing a hand-built state machine, why a timer outlives a deploy, and why a run can move to another machine mid-flight, and why a crash stops being a restart.

Neither definition says where the writing happens. That is the row to read first, because it settles three later questions at once: who can read the record, what it costs to keep, and what you carry out when you change tools. A record in a database you operate moves with a dump. It joins your other tables in a query, and it outlives the tool that wrote it. A record held by a managed service moves when that service offers a way out. Until then you read it through their API, for as long as you keep the subscription.

Both arrangements work, and they fail differently. The replay model is the visible difference between engines. The disk the record lands on decides what a team can do next year.

## The managed half, which has no repository to link

A comparison assembled from GitHub projects misses Cloudflare Workflows, AWS Step Functions, Diagrid Catalyst and Azure's managed scheduler, because a managed service has no self-host edition to install. They are also the shortest path for a team already on that cloud. Nothing to size, nothing to patch, no database to keep awake.

Cloudflare Workflows runs durable multi-step applications on Workers, retries failed tasks, persists state "for minutes, hours, or even weeks" and can "pause for external events or approvals" ([Cloudflare's docs](https://developers.cloudflare.com/workflows/)). AWS Step Functions models a workflow as "a series of event-driven steps", one state per step. "Standard workflows have exactly-once workflow execution and can run for up to one year." Express workflows stop at five minutes ([AWS's docs](https://docs.aws.amazon.com/step-functions/latest/dg/welcome.html)).

Azure Durable Task is "a framework for building fault-tolerant workflows and orchestrations as ordinary code". It ships SDKs for self-hosted applications, plus a managed scheduler that holds orchestration state, so a team can choose per workload where that backend lives ([Microsoft's docs](https://learn.microsoft.com/en-us/azure/durable-task/common/what-is-durable-task)).

Diagrid Catalyst sells "durable, verifiable workflows, secure agent and MCP communication". It runs on "any cloud, Kubernetes, or on-premises". Every step is signed into a "tamper-evident record" ([Diagrid](https://www.diagrid.io/catalyst)). Vercel Workflows lets code pause "for minutes or months" and resume "from the exact point", with Vercel keeping the state and the event logs in its managed persistence ([Vercel's docs](https://vercel.com/docs/workflows)).

The trade is the same in each case. None of them is a store you can dump and move on your own schedule. The run length is a limit the vendor publishes, and the export path is the thing to test before the first workflow ships.

## The open-source engines, and where each one writes

Temporal and Restate both keep a log. In Temporal, applications are Workflows and Activities dispatched to polling workers, with Activities, Timers, Signals, Queries, Updates and Schedules as the durable primitives ([Temporal's pricing](https://temporal.io/pricing)). Self-hosted, the event history sits in the database beside the server. On Temporal Cloud it sits in Temporal's storage. Restate ships as a single binary that journals each step as the function runs ([Restate's repository](https://github.com/restatedev/restate)).

Inngest, Trigger.dev and Hatchet cover the event-driven end. Inngest's durable functions are built from triggers, flow control and steps. They sync with the Inngest Platform or with a server a team runs. Trigger.dev calls itself "the open-source platform for building AI workflows in TypeScript". It runs long tasks with no timeout, retries, queues, idempotency, and a pause until a person approves. Hatchet is "a platform for orchestrating background tasks, AI agents, and durable workflows at scale". It runs as Hatchet Cloud or self-hosted ([Trigger.dev](https://github.com/triggerdotdev/trigger.dev), [Hatchet](https://github.com/hatchet-dev/hatchet)).

DBOS takes the shortest path. Its durable workflows run on Postgres. The library is "entirely contained in this open-source library, there's no additional infrastructure for you to configure or manage" ([DBOS Transact](https://github.com/dbos-inc/dbos-transact-ts)). Prefect turns Python functions into pipelines and tracks their state, self-hosted or on Prefect Cloud ([Prefect's docs](https://www.prefect.io/docs/v3/get-started)). Golem is the outlier. It is "a secure, reliable runtime for agents, tools, and artifacts, powered by lightweight durable WASM VMs, with permissions agents can't bypass", with agents written in Rust, TypeScript, Scala or MoonBit ([Golem](https://github.com/golemcloud/golem)).

## What each license allows a team to do

Most of these licenses sit where a team expects. Temporal, DBOS and Hatchet are MIT. Trigger.dev and Prefect are Apache-2.0. Both allow the internal deployment almost everyone starts with. Either allows a fork if the project stalls.

Restate and Golem use the Business Source License 1.1, which is not an OSI open-source license. Restate's additional grant forbids offering a public Restate platform service, a clause to read before hosting the engine for anyone outside your own company ([Restate's license](https://raw.githubusercontent.com/restatedev/restate/main/LICENSE)). Inngest's server and CLI sit under the Server Side Public License, which publishes the code under Apache 2.0 after a delay, and its SDKs are Apache 2.0 today ([Inngest's repository](https://github.com/inngest/inngest)).

For an internal deployment the license changes little about the architecture. It decides what a platform team may sell later. It also decides whether a fork exists the year the project changes direction.

## Two meters, and the one that charges per step

Temporal Cloud is pay as you go. The first 90 days are free with $150 in credits. There is no base fee. After that it charges $0.042 per GB-hour of active storage and $0.00105 per GB-hour retained, with Business from $500 a month for 2.5 million actions and 100 GB of retained storage ([Temporal's pricing](https://temporal.io/pricing)). A per-action meter prices the record itself. A durable call inside a loop becomes a line item.

Restate answers with a deployment model instead. Its comparison says BYOC runs the binary inside your cloud account. It also claims "up to 10× more cost efficient" than Temporal Cloud, with "a few milliseconds" of overhead per durable step ([Restate's comparison, its own claim](https://restate.dev/vs/temporal)). DBOS has no per-step meter, because the step is a row in a Postgres instance the team already pays for. AWS prices Standard workflows by state transition, so the bill becomes a count of steps.

## Where Kortix sits, and what it does not do

Kortix is not a durable execution engine. It keeps no step journal, and it does not replay an interrupted step. What it keeps is a branch.

"Every session starts its own isolated cloud computer, called a sandbox." The branch takes the session's name, and it is "a private copy of the repository". The prompt the agent reads states the consequence ([agents/worker.md](https://github.com/kortix-ai/CompanyOS/blob/dev/packages/starter/templates/base/agents/worker.md)):

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

The docs describe the rest. "When the agent finishes, it opens a change request: a request to merge that branch into the shared one." Merge is default-deny for agents. A person with the permission accepts the work, and the record a reviewer reads is the diff ([Read the docs](https://kortix.com/docs)).

For agent work, that is the useful half of durability. A model call that edits twelve files does not want to be replayed, because a replay repeats the bill and rewrites files a person may already have reviewed. The failure worth guarding against is a bad diff. The acceptance step is someone reading the branch.

An engine still wins where the work is orchestration: several services in different languages, timers measured in months, deterministic logic replayed against recorded inputs. If that is the shape of the job, choose from the table. If the output is a change a person reviews, start with Kortix and keep an engine for the orchestration around it. The record's owner deserves as much attention as the replay model.

Read [what durable execution means](/what-is-durable-execution), [durable workflows](/durable-workflows) and [how it compares with running agents](/durable-execution-vs-agent-platforms) for the rest of the picture.

## Four questions the table cannot answer

### What is a durable execution engine?

A service that writes down each step of a running program as it finishes, so a crash, a redeploy or a lost machine resumes from the last recorded step instead of starting again. Temporal calls the result crash-proof execution; Restate describes the engine as recording each step of a function as it runs.

### What is an execution engine?

The part of a system that runs work: it takes a task, performs it, and records what happened. A durable execution engine adds persistence and replay, so the same work continues after a failure rather than repeating from the start.

### What is the best open source workflow engine?

There is no single answer, because the choice follows where the run record should live. Temporal, DBOS, Hatchet and Prefect are open source and self-hostable, while Cloudflare Workflows and AWS Step Functions are managed only. For agent work a person reviews, Kortix keeps the record in a branch of your repo.

### What is a durable workflow?

A workflow whose progress is written down as it runs, so an interruption resumes it at the last completed step. The steps, their inputs and their results form the record, and the engine replays from it. Temporal, Restate and the managed services all keep that record somewhere, and where they keep it is the part that differs.

## Start with one branch and one change request.

Self-host free on your own network, or run sessions on Kortix Cloud.

[Try Kortix](https://kortix.com) · [Read the docs](https://kortix.com/docs)

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

---

A dossier on durable execution for AI agents, written by someone who works on Kortix's marketing. What the engines record, what survives when the work is a change to a repo, and which tool to pick for which failure.

Revised 2026-11-04

Not affiliated with Temporal, Restate, Inngest, Trigger.dev, DBOS, Hatchet or Microsoft. Product names belong to their owners.

© 2026 durableexecutionguide.com

---

# 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.

URL: https://durableexecutionguide.com/durable-execution-vs-agent-platforms

## 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.

| | Kortix (recommended) | Temporal | Restate | An option you build yourself |
| --- | --- | --- | --- | --- |
| What it protects | A branch, a commit, a change request, a reviewer | Workflow state, retries, timers and signals | Each step journaled as the function runs | Whatever you built into it, usually the happy path |
| What survives a crash | What the agent committed and pushed to its session branch | The workflow, replayed from its event history | Each durable step already recorded in the journal | Only what you wrote to durable storage |
| What the reviewer sees | The diff, the branch and the checks | The workflow's history and its activity results | The journal of steps, in logs or its UI | A dashboard, if you built one |
| Who starts the work | A person, or a trigger such as a schedule or a webhook | Your client code, a schedule, or an outside caller | Your caller, an HTTP request, a scheduled invocation | Whatever you wired up, often a person |
| What you operate | One project repo and the change requests it opens | The cluster, its database, and the workers that poll it | One self-hosted binary, run with Docker or Homebrew | The runtime, the state store, and the review UI |
| Open source | Yes | Yes, MIT license | Business Source License 1.1; forbids a public Restate service | Depends on what you build |
| 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. | Pay as you go, no base fee; Business from $500 a month | Restate claims up to 10× cheaper than Temporal Cloud, in your account | 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](https://temporal.io/blog/what-is-durable-execution) and [Restate](https://restate.dev/what-is-durable-execution) 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](https://restate.dev/vs/temporal)).

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](https://temporal.io/pricing)). Restate self-hosts as a single binary, run with Docker, Homebrew or npx ([Restate on GitHub](https://github.com/restatedev/restate)). The source is under the Business Source License 1.1 ([its license](https://raw.githubusercontent.com/restatedev/restate/main/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](https://github.com/kortix-ai/CompanyOS/blob/dev/packages/starter/templates/base/agents/worker.md)):

> "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](https://kortix.com/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](https://kortix.com/docs/guide#automations)).

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.

```yaml
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](/durable-execution-engine) and [durable execution for AI agents](/durable-execution-for-ai-agents). The pattern appears in [Kortix's blog](https://kortix.com/blog/how-to-build-reliable-ai-agent-workflows).

## Three situations, three tools

| Your situation | Reach for |
| --- | --- |
| A long timer, or a payment flow across four services, with no agent involved | Temporal or Restate |
| An agent that edits a repo, and a person who approves the edit | Kortix |
| A pipeline that must hand work to an agent and get a reviewable change back | Your 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](https://temporal.io/resources/on-demand/the-path-to-temporal-ga-at-netflix)).

### 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.

[Try Kortix](https://kortix.com) · [Read the docs](https://kortix.com/docs)

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

---

A dossier on durable execution for AI agents, written by someone who works on Kortix's marketing. What the engines record, what survives when the work is a change to a repo, and which tool to pick for which failure.

Revised 2026-11-04

Not affiliated with Temporal, Restate, Inngest, Trigger.dev, DBOS, Hatchet or Microsoft. Product names belong to their owners.

© 2026 durableexecutionguide.com
