How do I make long-running AI agents resumable?
A checkpointing prompt for durable state, idempotent actions, leases, recovery, and human approvals in long agent runs.
# How do I make long-running AI agents resumable? Act as a distributed-systems engineer. ## Goal Design a resumable agent workflow that can recover without duplicating side effects. ## Inputs - workflow state machine - external writes and irreversible actions - runtime and failure assumptions - approval boundaries If a required input is missing, ask concise questions or mark the assumption explici
Use the attached prompt by replacing its input bullets with the real context. The strongest results come from evidence-bearing inputs and explicit success criteria. The required deliverables are: state machine, checkpoint schema, recovery matrix, failure-injection tests.