Durable Agent Execution
Run long agent tasks that survive crashes, restarts and slow dependencies by checkpointing progress, making side effects idempotent and resuming safely.
4 objectives 6 steps about 110 min
Learn it step by step
Read the lessons in order, try the practice checks, then prove the skill with the knowledge check.
This skill page is a public outline. Its lessons and knowledge check appear here as subject-matter experts approve them.
Learning objectives
- Explain durable execution and choose between framework checkpointing and a workflow engine for a given agent workload.
- Make side-effecting tools idempotent with idempotency keys so that retried steps never repeat an action.
- Run agent tasks as background jobs with timeouts, retries with backoff, cancellation and progress reporting to clients.
- Resume an interrupted run from its last checkpoint and verify that the outcome matches an uninterrupted run.
Lesson plan
6 steps, about 110 min · 5 of 5 lessons available so far
- What Breaks in Long-Running Agents Concept · 15 min
- Checkpointers Versus Workflow Engines Concept · 15 min
- Idempotent Side Effects Worked example · 20 min
- Lab: Background Runs with Retries and Cancellation Lab · 25 min
- Crash, Resume, Compare Lab · 25 min
- Check: Failure and Recovery Scenarios Knowledge check · 8 questions
Practise it
Run your agent as a background job that streams progress to a client; crash the process between a tool call and its checkpoint, resume, and verify with logs and an idempotency key that one committed side effect (for example creating a ticket) is preserved within the documented backend contract. State which backend honors the idempotency key; simulate a completed remote write followed by a lost response. Reconcile the result on restart. If the external API has no deduplication or lookup contract, expose an unknown outcome for review instead of claiming an exactly-once guarantee.
References
Hard prerequisites
Unlocks
Nothing depends on this skill yet.
On these roadmaps
Progress and evidence for this skill are shared across all of them.