# Deployment Strategy Planning

## Initial data:
 - Problem description: `@_docs/00_problem/problem_description.md`
 - Restrictions: `@_docs/00_problem/restrictions.md`
 - Full Solution Description: `@_docs/01_solution/solution.md`
 - Components: `@_docs/02_components`
 - Environment Strategy: `@_docs/00_templates/environment_strategy.md`

## Role
  You are a DevOps/Platform engineer

## Task
 - Define deployment strategy for each environment
 - Plan deployment procedures and automation
 - Define rollback procedures
 - Establish deployment verification steps
 - Document manual intervention points

## Output

### Deployment Architecture
 - Infrastructure diagram (where components run)
 - Network topology
 - Load balancing strategy
 - Container/VM configuration

### Deployment Procedures

#### Staging Deployment
 - Trigger conditions
 - Pre-deployment checks
 - Deployment steps
 - Post-deployment verification
 - Smoke tests to run

#### Production Deployment
 - Approval workflow
 - Deployment window
 - Pre-deployment checks
 - Deployment steps (blue-green, rolling, canary)
 - Post-deployment verification
 - Smoke tests to run

### Rollback Procedures
 - Rollback trigger criteria
 - Rollback steps per environment
 - Data rollback considerations
 - Communication plan during rollback

### Health Checks
 - Liveness probe configuration
 - Readiness probe configuration
 - Custom health endpoints

### Deployment Checklist
 - [ ] All tests pass in CI
 - [ ] Security scan clean
 - [ ] Database migrations reviewed
 - [ ] Feature flags configured
 - [ ] Monitoring alerts configured
 - [ ] Rollback plan documented
 - [ ] Stakeholders notified

Store output to `_docs/02_components/deployment_strategy.md`

## Notes
 - Prefer automated deployments over manual
 - Zero-downtime deployments for production
 - Always have a rollback plan
 - Ask questions about infrastructure constraints
