# Stage 9: Deploy

## Purpose

Ship the approved, tested code to the target environment.

## Input

- PR that passed Test
- Deployment strategy from ADR (Planning 1)

## Composition

| Role                | Model  | Purpose                         |
| ------------------- | ------ | ------------------------------- |
| Infrastructure Lead | Sonnet | Handles deployment, smoke tests |

## Process

1. Merge PR to main
2. CI pipeline runs (Woodpecker)
3. Deploy to target environment (Docker Swarm on w-docker0)
4. Smoke tests in target environment
5. Verify service health

## Output

- Deployment record:
  - Commit SHA
  - Deploy timestamp
  - Environment
  - Smoke test results
  - Service health check

## Gate: deploy-complete

### Mechanical

- [ ] PR merged
- [ ] CI pipeline passed
- [ ] Deploy completed without errors
- [ ] Smoke tests pass
- [ ] Service health check green
- [ ] Documentation updated (API docs if endpoints changed, dev docs if architecture changed, user docs if UX changed)
- [ ] Changelog entry exists

### Gate Reviewer

- "Is the service actually working in production, or did deploy succeed but the feature is broken?"
