Deploy Pipeline Runbook
This is a trust-sensitive runbook for multi-system deployments. Every write or promotion action requires explicit human approval.
When to Use
- A release spans multiple systems or vendors (billing, database, app, notifications).
- Order of operations matters and rollback must be planned before execution starts.
- A failed step in one system could corrupt state in a downstream system.
Core Rules
- Inspect current state before each external step.
- Dry-run whenever the target system supports it.
- Show side effects before asking for approval — never surprise.
- Require explicit approval before every write, promotion, or announcement.
- Define the rollback path before the first irreversible step.
Runbook Structure
1. Preparation
- List every system touched.
- State the exact intended change per system (e.g., "bump subscription plan from X to Y in billing API").
- Confirm credentials, access paths, and required permissions.
- Identify which steps are reversible and which are not.
2. Sequence the rollout
- Config or billing prerequisites.
- Schema migrations or data backfills.
- Application deploy or feature promotion.
- Smoke checks and health validation.
- Stakeholder notifications.
3. Approval checkpoint (required before every write)
Use this exact format:
NEXT ACTION: [exact command or API call]
SYSTEM: [target system / environment]
SIDE EFFECTS: [what changes, what is created, what is sent]
IRREVERSIBLE: yes/no — [why]
ROLLBACK: [exact steps to undo this if it fails]
Approve? (yes to proceed)
4. Execute one step at a time
- Run the approved action.
- Verify the outcome before moving to the next step.
- Stop immediately on any unexpected state or error.
5. Closeout
COMPLETED: [timestamp]
CHANGES MADE: [summary of what changed per system]
FOLLOW-UP CHECKS: [monitoring, alerts, or manual verifications needed]
ROLLBACK STATUS: available / partially available / consumed
Rollback Plan Template
Define this before step 1 of execution:
IF [step N] fails:
1. [immediate containment action]
2. [system-specific undo command or API call]
3. [verification that rollback succeeded]
4. [notification to stakeholders]
Safety Constraints
- Do not proceed past an approval checkpoint without an explicit affirmative response from the user.
- Do not infer approval from silence, partial answers, or "looks good" statements — require a clear "yes".
- Do not skip the dry-run step for systems that support it.
- Do not perform rollback steps that were not defined in the pre-execution rollback plan.
- Do not make assumptions about current system state — inspect it before each step.
Validation / Done Criteria
- Rollback plan was defined and documented before the first irreversible step.
- Every approval checkpoint was acknowledged with an explicit user affirmative.
- Closeout block was produced: timestamp, per-system changes, follow-up checks, rollback status.
- No step was executed without a prior outcome verification of the previous step.
Typical Systems
- Billing platforms (plan changes, entitlements)
- Databases (migrations, backfills)
- Application deploy targets (containers, serverless, CDN)
- Messaging or incident channels (Slack, PagerDuty, email)
The specific vendor does not change the safety model.
1---2name: deploy-pipeline-runbook3description: Use when a release spans multiple systems or vendors, order of operations matters with rollback planned up front, or a failed step in one system could corrupt state in a downstream system.4---56# Deploy Pipeline Runbook78This is a trust-sensitive runbook for multi-system deployments. Every write or promotion action requires explicit human approval.910## When to Use11- A release spans multiple systems or vendors (billing, database, app, notifications).12- Order of operations matters and rollback must be planned before execution starts.13- A failed step in one system could corrupt state in a downstream system.1415## Core Rules16- Inspect current state before each external step.17- Dry-run whenever the target system supports it.18- Show side effects before asking for approval — never surprise.19- Require explicit approval before every write, promotion, or announcement.20- Define the rollback path before the first irreversible step.2122## Runbook Structure2324### 1. Preparation25- List every system touched.26- State the exact intended change per system (e.g., "bump subscription plan from X to Y in billing API").27- Confirm credentials, access paths, and required permissions.28- Identify which steps are reversible and which are not.2930### 2. Sequence the rollout311. Config or billing prerequisites.322. Schema migrations or data backfills.333. Application deploy or feature promotion.344. Smoke checks and health validation.355. Stakeholder notifications.3637### 3. Approval checkpoint (required before every write)3839Use this exact format:4041```42NEXT ACTION: [exact command or API call]43SYSTEM: [target system / environment]44SIDE EFFECTS: [what changes, what is created, what is sent]45IRREVERSIBLE: yes/no — [why]46ROLLBACK: [exact steps to undo this if it fails]4748Approve? (yes to proceed)49```5051### 4. Execute one step at a time52- Run the approved action.53- Verify the outcome before moving to the next step.54- Stop immediately on any unexpected state or error.5556### 5. Closeout57```58COMPLETED: [timestamp]59CHANGES MADE: [summary of what changed per system]60FOLLOW-UP CHECKS: [monitoring, alerts, or manual verifications needed]61ROLLBACK STATUS: available / partially available / consumed62```6364## Rollback Plan Template6566Define this before step 1 of execution:6768```69IF [step N] fails:70 1. [immediate containment action]71 2. [system-specific undo command or API call]72 3. [verification that rollback succeeded]73 4. [notification to stakeholders]74```7576## Safety Constraints77- Do not proceed past an approval checkpoint without an explicit affirmative response from the user.78- Do not infer approval from silence, partial answers, or "looks good" statements — require a clear "yes".79- Do not skip the dry-run step for systems that support it.80- Do not perform rollback steps that were not defined in the pre-execution rollback plan.81- Do not make assumptions about current system state — inspect it before each step.8283## Validation / Done Criteria84- Rollback plan was defined and documented before the first irreversible step.85- Every approval checkpoint was acknowledged with an explicit user affirmative.86- Closeout block was produced: timestamp, per-system changes, follow-up checks, rollback status.87- No step was executed without a prior outcome verification of the previous step.8889## Typical Systems9091- Billing platforms (plan changes, entitlements)92- Databases (migrations, backfills)93- Application deploy targets (containers, serverless, CDN)94- Messaging or incident channels (Slack, PagerDuty, email)9596The specific vendor does not change the safety model.