File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1+ # Production Runbook: Deployment Rollback & Hotfixes
2+
3+ ## 1. Trigger Criteria & Incident Severity
4+
5+ ### Severe Incidents (Triggers Rollback or Immediate Hotfix)
6+ - ** Financial/State Risk:** Vault balance accounting mismatch, unauthorized yield distribution, or smart contract logic flaw.
7+ - ** Service Outage:** Frontend or indexing API down/unresponsive post-deployment.
8+ - ** Security Vulnerability:** Exploitable entrypoint or leaked credentials/keys.
9+
10+ ### Incident Roles
11+ - ** Incident Commander (IC):** Leads response, authorizes pauses or rollbacks.
12+ - ** Lead Developer:** Drafts hotfix or executes rollback commands.
13+ - ** Verifier:** Runs post-deployment health checks before resolving incident.
14+
15+ ---
16+
17+ ## 2. Deployment Rollback Procedure
18+
19+ ### Phase A: Immediate Emergency Pause (Circuit Breaker)
20+ If the issue affects money movement or contract state, pause the contracts immediately.
21+
22+ 1 . ** Pause YieldVault Contracts:**
23+ ``` bash
24+ # Run pause script or call pause method via CLI
25+ cargo run -p scripts -- bin/pause_vault --network mainnet
You can’t perform that action at this time.
0 commit comments