A leafcutter ant follows a repaired trail, illustrating durable workflow engines for AI agents

I looked at five durable workflow engines for AI agents with one question in mind. If your agent creates a review ticket and its worker disappears before recording the result, will the next attempt find that ticket or create another one?

That’s a more revealing buying test than how quickly an engine generates its first demo. The answer depends on what the engine saved, what the ticket system can confirm, and who can tell the workflow to continue.

I’d shortlist Temporal for cross-service workflows, Inngest when the work already belongs in your app, Trigger.dev Cloud for hosted TypeScript jobs, Restate for durable service handlers, and AWS Step Functions Standard for a process that already lives on AWS. Here’s how I’d test those choices on the same job.

Durable workflow engines for AI agents at a glance

A durable workflow engine stores enough progress to recover a multi-step job across failures and waits. For a buying decision, look at the unit of recovery. Depending on the engine, that can be a recorded Activity, a named step, a task attempt, a journal entry, or a state transition.

Start with the row that fits where your code already runs. The tool sections below link to the implementation docs and explain where your app still owns recovery.

EngineBest fitWhat recovery is based onWhere the work runs
TemporalCross-service jobs with a worker deployment strategyWorkflow Event History and recorded Activity resultsApplication Workers
InngestEvent-driven jobs alongside an existing appSaved results by step IDYour application or connected workers
Trigger.dev CloudHosted TypeScript jobs with long pausesSnapshots at supported waits, task retries on failureManaged task machines
RestateDurable HTTP services and keyed workflowsInvocation journal and recorded context operationsRegistered application endpoints
AWS Step Functions StandardExplicit business processes built on AWS servicesState history, configured retries and eligible redriveManaged state machine with integrated services

The document review job I’d run on all five

Imagine a fictional document review service that takes a client PDF and drafts a checklist for a human reviewer. After a reviewer signs off, the service files the approved checklist in the client’s record.

  1. Accept the request. Create a stable job ID linked to the tenant, the immutable input document version and the requester.
  2. Draft the checklist. Call the model and save the result with a draft revision and the source version it used.
  3. Open the review ticket. Put the review request in a separate system and capture its ticket ID. Interrupt the worker after that system writes the ticket.
  4. Wait for a decision. A reviewer opens the saved draft, then approves or rejects that specific revision. Set an expiry and define what staff see while they wait.
  5. File the decision. On approval, file the approved version exactly once in the test record. For rejection or expiry, retain the decision and close the request without filing it.

This job has two distinct questions. Can the workflow recover the draft and ticket reference? And can the application prove what the separate ticket system did when the outcome is ambiguous?

Keep the draft and PDF in storage designed for documents. StackAI’s account of its ingestion migration describes keeping files outside workflow history and passing references into Temporal Activities. I’d use an object identifier and obtain a fresh authorized read at execution time so an expired URL doesn’t strand a waiting job.

What durable workflow engines for AI agents actually save

Run the ticket failure twice. In the first attempt, crash after the engine records success. In the second, crash after the ticket system commits but before the engine receives success. The timing changes the recovery problem.

In the first case, a saved result can carry the original ticket ID forward. In the second, rerunning the code may issue another request. Temporal’s Activity docs describe this ambiguity explicitly, and the same boundary matters wherever a workflow step calls an independent service.

Give the ticket operation its own stable key, such as tenant / job / review-request / revision. Preserve it across retries and restarts. If the destination accepts an idempotency key, use it and verify its retention covers your retry and manual recovery windows.

If the destination supports a unique external reference, use it to look for an existing ticket before retrying an ambiguous write. If it offers neither option, send unknown outcomes to reconciliation. A local write log shows intent and known results, but it can still have a gap after the remote commit.

Use a separate key for filing the approved checklist. The same job can create a ticket and file a document, and deduplicating one of those operations must still allow the other. An editor’s new draft opens a separate decision only when the application explicitly creates a new revision.

1. Temporal for cross-service workflows

I’d start with Temporal when an important workflow crosses several services and the team already owns worker deployments. The Workflow docs explain how Event History lets a Worker replay deterministic Workflow code and recover state.

Temporal’s official open graph artwork for its workflow platform

How the review recovers. Make the model call and ticket write separate Activities. A Workflow replay can reuse the completed draft Activity result. If the ticket Activity is retried because its completion was never recorded, send the same application operation key and recover the existing ticket ID.

How the wait works. The reviewer’s server can send a Signal to the appropriate Workflow after writing the approval record. The Workflow can wait for the matching revision or follow a timeout branch. Decide how your app reports that the decision was accepted when the Worker processes it later.

What you own. The Temporal Service coordinates the job while application Workers run Workflow and Activity code. Temporal documents pinned Worker versions for compatible rollouts and publishes the MIT-licensed server for teams that want to operate it themselves.

Where I’d hesitate. A single draft update with ordinary retry is a small reason to introduce workflow determinism and a worker lifecycle. The case gets stronger when independently failing services, unbounded handoffs and frequent releases are already part of the job.

2. Inngest for event-driven jobs in your app

I’d try Inngest if document intake already arrives as an application event and the team wants to put workflow code beside the rest of its app. The durable workflows guide shows retries and saved step.run results while your infrastructure executes the function.

Inngest’s official banner for durable execution

How the review recovers. Put the draft and ticket write into different named steps. If the ticket step fails, the prior draft result is available on retry. If the ticket API wrote before the result was saved, use the same operation key even if a fresh step attempt starts.

How the wait works. step.waitForEvent waits for a matching event without keeping your function process running. Match the job and revision. The documented wait sees events after it starts, so test an immediate reviewer response and retain a durable decision record that your application can reconcile.

What you own. Inngest’s versioning guide explains that a resumed run uses current code and reuses results for matching step IDs. Keep IDs and output readers stable while old runs are paused. The self-hosted engine’s current server license is SSPL 1.0 with a specified future Apache 2.0 change.

Where I’d hesitate. Putting a step in an existing serverless app leaves it subject to that app’s execution environment. Keep heavyweight PDF parsing in compute sized for the work. Validate how your app rolls out a new schema when it still has old runs waiting.

3. Trigger.dev Cloud for hosted TypeScript jobs

I’d try Trigger.dev Cloud if the backend team wants compute included with its job runner. Its execution guide explains managed task machines and process snapshots at supported waits.

Trigger.dev’s official artwork for its durable task platform

How the review recovers. Trigger.dev distinguishes resuming a snapshot from retrying a failed task. A failed parent can retry from the beginning. Put expensive or side-effecting steps in separate subtasks and use appropriate idempotency keys to reuse completed subtask results. The ticket operation keeps its own key at the destination.

How the wait works. A waitpoint token gives your backend a way to approve or reject a specific waiting run. Retain the token relationship across attempts and set its timeout and key retention deliberately. Let your authenticated approval endpoint complete the wait after it validates the reviewer.

What you own. You ship task code to managed workers and still own the dependency credentials, document storage and approval records. According to the deployment documentation, runs that have already started keep the version they started with.

Where I’d hesitate. Make the Cloud versus self-hosted decision before you design around process snapshots. Trigger.dev's deployment comparison lists checkpoints for Cloud and excludes them from self-hosting. Schedule a failure drill on the exact deployment you plan to buy or operate.

4. Restate for durable service handlers

I’d look at Restate if the backend already thinks in HTTP endpoints and keyed services. Restate’s architecture docs describe a runtime that journals operations and reuses completed results when it retries an invocation.

Restate’s official durable execution platform banner

How the review recovers. In this design the review job is a keyed workflow and each model or ticket request runs inside a journaled ctx.run operation. Restate can replay a saved draft result. If it has yet to journal a committed ticket write, the destination’s key still protects the retry. See the context actions reference.

How the wait works. The application can associate a durable promise with a review job and resolve it from a workflow handler after checking the stored decision. The same context actions reference explains promises and how they differ from awakeables, which provide an identifier for an external completion.

What you own. Register immutable endpoints so retries of started invocations reach the intended version. The versioning guide explains why long waits can require keeping old endpoints around. The server’s BSL 1.1 terms include a production-use grant with a restriction on offering a Public Restate Platform Service.

Where I’d hesitate. Make someone responsible for the versioned endpoint and its compatibility with shared storage. Even if the old code remains callable, an incompatible database migration can leave that old code unable to finish the work.

5. AWS Step Functions Standard for AWS-native processes

I’d start with Standard Workflows when documents, compute and infrastructure permissions already live on AWS. AWS’s workflow type guide gives Standard an execution limit of up to one year and documents different semantics for Express.

Official AWS Step Functions introductory video poster

How the review recovers. Separate drafting, ticket creation and filing into Task states. Use targeted retries for transient errors. For an eligible failed Standard execution, redrive can resume from an unsuccessful state while retaining successful results, subject to eligibility rules and state-specific behavior.

How the wait works. In the task-token callback pattern, a Task waits for an authorized same-account AWS principal to return the token. A service can check the human’s decision and call AWS on their behalf. Keep task tokens on the server and link them to a narrowly scoped review request.

What you own. AWS operates the state machine. Your team owns the integrated functions and permissions. A published state machine version is immutable, so check that it also calls the intended version of the backing code and reads a compatible schema.

Where I’d hesitate. Each meaningful business milestone maps cleanly to a state. A model loop with variable branching may be easier to maintain within one integrated task, provided that task has its own explicit retry and recovery policy.

Compare the bill for a completed review

I’d write down engine charges, execution compute, model calls, storage and operator time before asking for quotes. Meter one busy month with a representative mix of approvals, rejections, timeouts and retries.

ProductPublished meter checked November 23, 2026What to add to the estimate
Temporal CloudUSD pay-as-you-go starts at $50 per million actions with no base monthly fee. Temporal pricingActive and retained storage, support or availability options, Workers and model calls.
Inngest CloudPro starts at USD $99/month with 1 million executions included, then $50 per additional million. A run and each step execution count. Inngest pricingApplication compute, add-ons and model calls.
Trigger.dev CloudUSD $0.25 per 10,000 started managed invocations plus executing machine time. Small 1x lists $0.0000338 per second. Trigger.dev pricingPlan fees and credits, task attempts, active time by machine size, and model calls.
Restate CloudDurable actions include invocations, completions, steps and other operations. Payload-bearing operations are metered in started 64 KiB increments. Restate pricingGet the plan quote, count journaled data, and add application compute and model calls.
AWS Step Functions StandardUSD $0.000025 per state transition in US East (N. Virginia). AWS’s example includes 4,000 free monthly transitions. AWS pricingRetry and redrive transitions, Lambda or other compute, storage and model calls.

For a hypothetical month of 10,000 reviews, assume an AWS Standard state machine counts eight transitions per review before credits. That’s 80,000 transitions, or USD $2.00 at the listed N. Virginia transition rate before credits, excluding the services that do the work. If every review retries a state once, count those 10,000 additional transitions in the estimate.

For the buying decision, divide the total across attempts by the number of accepted, correctly filed reviews. Track repeated model calls and human reconciliation separately so an inexpensive engine bill doesn’t conceal expensive retries. The agent token economics guide has more on capturing the model side of that calculation.

Run the same job across a release

Start a version-one review, deploy version two during approval, then approve the old draft. Capture the version of code that reads the callback and verify it still understands the original document, policy and approval record.

Temporal can pin the Workflow to a Worker version, Trigger.dev keeps started runs on their original version, and Restate sends retry attempts to the registered versioned endpoint. Inngest’s documented approach reuses step IDs against current code. In Step Functions, check both the definition version and the task targets you reference.

A workflow version and an approval revision solve different problems. When a new version creates a materially different checklist, preserve the old review history and ask for a fresh decision on the new draft. A compatible runtime rollout alone gives your application no basis to transfer approval.

Make the release drill include cancellation. Request cancellation before approval, record the time, and let a late approval arrive. Check your application’s state before filing. If a write was already accepted, show that fact to the operator and use a deliberate correction workflow where one exists.

When a queue or a short Action is sufficient

I’d use one short request for a bounded lookup or draft that can fail visibly and be repeated without an external write. Pickaxe Actions are a way to call external tools or APIs. Start there if the useful answer is ready during the interaction.

For a single background conversion or a one-step import, a queue and an idempotent handler may be enough. For example, AWS documents that SQS Standard can deliver a message more than once. Plan for repeated delivery even with a simple design.

Use a durable engine when the job needs to preserve several independent results, wait on a decision, and resume after a failure or a release.

Build the review with a Pickaxe Personal Agent

In Agent Builder, choose Personal Agent and deploy it in a client portal. Connect two Actions to your backend, one to submit a review and one to look up its status.

Tell the agent to submit only when the client asks for a review, and to use the status Action when they ask for an update. You can save those instructions as a reusable Personal Agent skill.

When a client submits a PDF, the first Action sends a document reference. Your backend checks access, starts the durable workflow, and returns a job ID so the agent can acknowledge receipt without waiting for the review.

When the client comes back, the status Action checks their access to that job and reads its latest state. The workflow engine saves progress, retries failed work, and waits for the reviewer’s decision while the chat is closed.

Keep the side-effecting job outside the interaction and expose an honest status such as awaiting review or needs reconciliation. See the long-running agent supervision guide for ownership and budgets, and the agent architecture patterns guide for deciding where model-driven branching belongs.

Put the failure drill in your pilot

Use a synthetic PDF, a test ticket destination and a test filing destination. Record the destination’s evidence separately from the engine dashboard. A successful run status alone can miss a duplicate ticket or an unapproved external write.

Inject this eventRequire this outcomeCapture this evidence
Crash after draft checkpointReview uses the saved draft.Draft ID, input version and model request count.
Crash after remote ticket writeExisting ticket recovered or sent to reconciliation.Operation key, external ticket ID and count of matching tickets.
Deliver early, duplicate or wrong-revision approvalOnly an authorized decision for the active revision can file once.Decision ID, reviewer, draft revision and filing record.
Deploy while review waitsOld review still follows its intended contract.Code version, stored payload and completed decision trace.
Timeout or cancellation, then late callbackWorkflow surfaces the terminal decision and files nothing new.State change timestamps and destination record count.

Require an operator to identify the job and explain the next action with access to the review record and logs. Retain the destination receipt and sanitized identifiers. Avoid routing document text or approval credentials into traces just to make debugging easier.

Repeat each drill after a significant change to a model, callback contract or step boundary. The agent evaluation guide can help turn that acceptance table into a repeatable test set.

Give clients a place to start a review

Build the agent in Pickaxe and connect it to your review service with an Action.

Get started →

Frequently asked questions

Does durable execution make an AI agent’s writes exactly once?

It can preserve a completed result and prevent some repeat work. For a remote write, verify idempotency or a reliable lookup at the destination. If your system has no way to tell whether the write happened, route the ambiguity to a human before issuing another one.

Do I need a separate approval screen?

I’d use any interface your reviewers already trust, paired with a server that checks who they are, which draft they saw and whether the request is still active. An engine token or event is a way to resume work. The human approval guide covers designing the person’s decision.

Can I switch workflow engines later?

It’s easier to move future jobs when the app owns the source versions, approval records, external operation keys and user-visible statuses. For in-flight jobs, rehearse letting the old engine finish or migrating from a recorded boundary. A vendor run ID alone is too little information to reconstruct the work.

My shortlist for the first pilot

I’d take two engines into the same drill. Pick the one closest to the team’s existing deployment and one with a different recovery model. Have a second person recover a broken job using only the records an on-call operator would have.

If both produce one traceable ticket and a single filing on the right decision, choose the platform you can afford to operate through a release. If neither can establish what the ticket system did, fix that boundary before buying more orchestration.

When the workflow is ready, a small agent can collect the document and show the status for your first test users. Start there in Pickaxe and add more cases as the recovery evidence earns it.