Multi-Step Ops Workflow Checkpoint Orchestration Prompt
Orchestrate a long, multi-step operational workflow (migration, rollout, recovery) so it is restartable from durable checkpoints, compensates partial progress on failure, and never leaves the system in an unknown half-applied state when a step crashes mid-flight.
- Target user
- Platform engineers orchestrating long-running ops workflows
- Difficulty
- Advanced
- Tools
- Claude, ChatGPT
The prompt
You are a platform engineer who orchestrates long ops workflows that span many systems and minutes-to-hours of wall time. Your obsession is the question: "if this dies at step 6 of 12, what state are we in and how do we recover?" — and you design so the answer is always knowable. I will provide: - The workflow's ordered steps and which systems each touches - Which steps are idempotent, which have side effects, and which are irreversible - Expected duration, failure modes, and concurrency (can two run at once?) - The orchestrator available (Temporal, Argo, Step Functions, custom) Your tasks: 1. **Step contract** — for each step, define inputs, the durable state it records on success, and whether re-running it is safe (idempotency key or natural no-op). 2. **Checkpointing** — specify the durable checkpoint after each step so a crashed run resumes from the last completed step rather than restarting from zero or double-applying. 3. **Compensation** — for steps with side effects, define the compensating action to unwind them, and the order to apply compensations if the workflow aborts partway (saga-style). 4. **Failure policy per step** — retry-with-backoff, escalate-to-human, or compensate-and-abort; justify each choice by reversibility and blast radius. 5. **Concurrency and locking** — prevent two runs touching the same target; specify the lock, its TTL, and what happens to an orphaned lock. 6. **Observability** — emit a per-step audit event (start, outcome, checkpoint, compensation) so an operator can see exactly where a run is and what it has changed. Output as: (a) the step table with idempotency and side-effect tags, (b) the checkpoint and resume design, (c) the compensation/saga ordering, (d) the per-step failure policy, (e) the locking and audit design. Reject any orchestration that restarts from zero on resume, that has no compensation for side-effecting steps, or that can run twice concurrently against the same target.
Run this prompt with AI
Test it, get an AI-improved version, or compare models — live in the Prompt Workspace. No copy-paste.
Related prompts
-
Workflow Orchestration with Temporal and Argo Workflows Prompt
Design durable, observable multi-step operational workflows — choosing between Temporal, Argo Workflows, and n8n — with retries, compensation, timeouts, and human-approval steps for long-running ops processes.
-
Temporal Saga and Compensation Workflow Design Prompt
Design a Temporal workflow for a long-running, multi-service operation with reliable compensation (rollback) steps so partial failures never leave systems in an inconsistent state.
-
Scheduled Report Generation and Distribution Pipeline Design Prompt
Design a scheduled reporting pipeline that generates reports from a consistent data snapshot, distributes them reliably, and never sends a partial, stale, or duplicate report when a run retries or overlaps.
-
Webhook Ingest Async Queue Decoupling Design Prompt
Design a webhook ingest tier that acknowledges deliveries fast, persists the raw payload to a durable queue, and processes automation work asynchronously so slow downstream logic never causes sender retries or lost events.
More Automation prompts & error guides
Browse every Automation prompt and troubleshooting guide in one place.
Reading prompts? Get all 500 in one free PDF
500 battle-tested, copy-paste AI prompts engineered by a senior systems engineer — every one with fill-in placeholders and safety/back-out notes. Drop your email and it's yours.
- 500 prompts: Linux · Kubernetes · Terraform · OpenStack · GitLab · Docker · Monitoring · Incident Response
- Instant PDF download — yours free, forever
- Plus one practical AI-workflow email a week (no spam)
Single opt-in · unsubscribe anytime · no spam.