This document describes the team’s development workflow, branching strategy, configuration management, and Definition of Done enforcement. It reflects the actual process used from Sprint 1 onward and is maintained as a living document.
The team uses a feature-branch workflow based on GitHub Flow. All work happens on short-lived feature branches that are merged into main via reviewed pull requests. The main branch is protected: direct pushes are not allowed and at least one approving review is required. Passing CI is expected but not currently enforced by branch protection (see CI Pipeline) — reviewers should confirm the checks are green before approving.
gitGraph
commit id: "initial commit"
branch 62-us-011-upload-photo
checkout 62-us-011-upload-photo
commit id: "add upload page"
commit id: "add OCR endpoint"
checkout main
merge 62-us-011-upload-photo id: "PR #101 merged"
branch 57-us-001-budget-filter
checkout 57-us-001-budget-filter
commit id: "implement budget filter"
checkout main
merge 57-us-001-budget-filter id: "PR #120 merged"
branch 223-setup-postgresql
checkout 223-setup-postgresql
commit id: "add models.py"
commit id: "add alembic migrations"
checkout main
merge 223-setup-postgresql id: "PR #232 merged"
commit id: "v0.3.0 – MVP v2" tag: "v0.3.0"
main following the naming convention below.Closes #223).All branches follow the convention:
<issue-number>-short-description
Examples:
223-setup-postgresql-database-and-sqlalchemy-models221-us-017-delete-account74-us-002-1-create-login-pageThis convention ensures every branch is traceable to a specific issue, makes the purpose of each branch immediately visible in the branch list, and avoids naming conflicts.
Every PR must:
Closes #<number> in the descriptionCHANGELOG.md for any user-visible changeCI checks are not currently required by branch protection (a PR can be merged even if they’re red or still running) — reviewers are responsible for checking their status manually before approving.
PRs that change architecture, deployment, or quality requirements must also update the relevant documentation in docs/.
Reviewers are expected to check:
main onceNo secrets, API keys, database URLs, or passwords are committed to the repository. The following environment variables are required for production and must be set in the Render dashboard:
| Service | Variable | Purpose |
|---|---|---|
| Recommender (team-24) | DATABASE_URL |
PostgreSQL connection string |
| Recommender (team-24) | JWT_SECRET_KEY |
Signing key for access/refresh tokens |
| Recommender (team-24) | OPENAI_API_KEY |
OpenAI API authentication |
| Recommender (team-24) | OPENAI_BASE_URL |
OpenAI API base URL |
| Recommender (team-24) | AI_BACKEND |
Set to openai in production |
| Recommender (team-24) | ALLOWED_ORIGINS |
Comma-separated list of allowed CORS origins |
| OCR (team-24-1) | ALLOWED_ORIGINS |
Comma-separated list of allowed CORS origins |
For local development, create a .env file (git-ignored) or export variables in the shell. Never commit .env files.
Schema changes require an Alembic migration:
# From src/db/ with DATABASE_URL set in the shell
alembic revision --autogenerate -m "describe the change"
alembic upgrade head
Migration files in src/db/alembic/versions/ are committed to the repository and reviewed in PRs like any other code change.
Backend dependencies are pinned in requirements.txt files:
src/backend/requirements.txtsrc/upload-menu-backend/requirements.txtFrontend dependencies are managed by npm and locked in package-lock.json.
The CI pipeline runs on every push and pull request via GitHub Actions. It includes:
| Check | What it verifies |
|---|---|
Unit tests (pytest, both backends) |
Business logic correctness, min. 30% coverage |
Security scan (bandit) |
Unsafe code patterns (not a dependency/CVE scanner) |
Link checking (lychee) |
No broken links in documentation |
There is no linter (flake8 or otherwise) and no dependency vulnerability scanner (e.g. pip-audit, Dependabot) configured yet — if the team wants those, they need to be added to .github/workflows/backend-ci.yml.
None of these checks are required by branch protection — a PR can currently be merged with failing or unfinished CI. The CI configuration lives in .github/workflows/.
The team follows Scrum with one-week Sprints.
| Event | When | Artifact |
|---|---|---|
| Sprint Planning | Start of Sprint | Sprint milestone, Sprint Backlog |
| Daily Standup | Each working day | Async updates in team channel |
| Sprint Review | End of Sprint | Customer demo, UAT results |
| Sprint Retrospective | After Sprint Review | reports/weekN/retrospective.md |
Sprint work is tracked on the GitHub Projects board. Issues are assigned to the Sprint milestone and move through columns: To Do → In Progress → In Review → Done.
A PBI is Done only when all conditions in docs/definition-of-done.md are satisfied. Key gates:
CHANGELOG.md updated for user-visible changes