Phase 5: Deploy¶
Pre-deployment verification using the deployment-orchestrator. Produces a Go/No-Go decision.
Command: /5-deploy [--env production] [--migration]
When to use¶
After the code review in Phase 4 passes. This is the final gate before code goes to production.
What happens¶
- Test gate verification -- Reads
.test-gate.mdand verifies:- File exists (if missing, deployment is blocked)
status: PASS(if FAIL, deployment is blocked)branchmatches the current branch (stale gates are rejected)
See Testing Procedures for the gate file format and how to generate it.
- Documentation build (when
docs/user-manual/exists) -- Runsmkdocs build --strictto verify the docs site builds without broken links or missing pages. Build failures block deployment. - Repo governance audit -- If
.repo-manifest.yamlexists, runs/repo-audit --ci-modeto verify zero context bleed and LFS compliance. Fails on any context artifacts in deployable paths. - Dependency security audit -- Runs
npm auditorbundle auditto find known vulnerabilities in dependencies. - Final security scan -- Last-pass review for anything missed in Phase 4.
- Migration safety -- If database migrations are pending, checks for zero-downtime compatibility, rollback capability, and data loss risks.
- Compliance verification -- GDPR data handling, SOC2 logging, PII protection, and audit trail completeness.
- Constitution compliance (when SpecKit active) -- Verifies all constitution principles are respected and reports spec coverage percentage.
Output¶
- Deployment report with check results for each category
- Go/No-Go decision with rationale
- Rollback plan (previous version, rollback command, monitoring targets)
- Post-deployment monitoring checklist
Next step¶
- If GO: Deploy via your CI/CD pipeline, then Phase 6: Operate
- If NO-GO: Fix blocking issues, then run
/5-deployagain.