ACAgentic Craft

IntermediateHazelJS

Durable execution

An execution model where waits, retries, and recoveries are driven by persisted history or checkpoints.

Authors
editorial-team
Published
Last reviewed

Direct answer

An execution model where waits, retries, and recoveries are driven by persisted history or checkpoints.

Plain language

If the server dies mid-job, the work continues correctly later instead of getting confused or duplicating actions.

Technical explanation

In HazelJS: durable AgentRun store + durableSuspend HITL + worker leases; pairs with idempotent @Tool effects and reconciliation. Optional FlowEngine peer for WAITING mirrors.

Example

An agent pauses two hours for approval (SUSPENDED), then approveAndResume on another worker without re-charging a customer.

Related

← All glossary terms