Phase 7: Human Approval#
Final checkpoint before merging or deploying.
Approval Gates#
Before code can be merged, the following gates must pass:
Automated Gates (Must Pass)#
- ✅ All tests pass (
pytest) - ✅ Coverage ≥ 90% (
pytest --cov) - ✅ Ruff linting passes (
ruff check) - ✅ Formatting applied (
ruff format) - ✅ Pre-commit hooks pass
Documentation Gates (Must Complete)#
- ✅ Docstrings follow standards
- ✅ SPEC-CROSS-REFERENCE.md updated
- ✅ INDEX.md updated
- ✅ README files updated (if applicable)
Security Gates (Must Validate)#
- ✅ No hardcoded credentials
- ✅ CodeGuard rules applied
- ✅ Security tests pass
- ✅ Threat mitigations implemented
Human Review Gates (Must Approve)#
- ✅ Code review by peer or senior developer
- ✅ Specification requirements met
- ✅ Security review approved (for security-sensitive features)
Critical Rule#
❌ NEVER use --no-verify flag when committing
# ❌ WRONG - Bypasses quality checks
git commit --no-verify -m "Quick fix"
# ✅ CORRECT - Runs quality checks
git commit -m "Add plant search feature"
The --no-verify flag bypasses pre-commit hooks and can introduce broken or non-compliant code into the repository.
What Happens After Approval#
- Approved → Merge to main branch, proceed to next feature, or deploy to production
- Rejected → Loop back to Phase 5 (Implementation) with feedback and make necessary corrections
CI/CD Integration#
This project uses GitHub Actions for continuous integration:
.github/workflows/ci.yml- Lint, format check, tests.github/workflows/codeql.yml- CodeQL security scanning.github/workflows/security.yml- Additional security checks
All workflows must pass before merging to main branch.
Related Documentation#
Instructions & Guides#
- Master Workflow - Complete workflow overview (Stage 7)
- Quality Checklists - Pre-approval quality checks
- Security Checklist - Security verification before approval
Checklists#
- Pre-Push Checklist - Must complete before git push
- Security Checklist - Security validation checklist
CI/CD Workflows#
- CI Workflow - Automated lint, format, tests
- CodeQL Workflow - Security scanning
- Security Workflow - Additional security checks
Tutorials#
- Makefile Guide - Running final checks before commit
- Dependency Management - Managing dependencies with UV