Smart Contract Incident Drills
The incident drill suite rehearses production smart-contract failure modes as operator scenarios, not just isolated tests.
Run The Suite
Smoke mode:
powershell
npm run contracts:incident-drills:smoke -- --json --out test-results/contracts/incident-drills-smoke-report.jsonFull mode:
powershell
npm run contracts:incident-drills -- --continue-on-failure --json --out test-results/contracts/incident-drills-report.jsonScenarios
The suite covers:
- sidecar unavailable
- runtime mismatch
- readiness stuck
- contract failure spike
- deactivation emergency
- failed migration rollback
- restore under pressure
Each scenario records setup, injected failure, expected detection, expected repair, commands run, duration, and status.
During A Real Incident
Use the scenario text as the response checklist: identify the matching scenario, run the same diagnostic command, confirm detection, follow the repair path, and attach the drill evidence to the incident ticket.