Backy Feature Branch Workflow
Goal
Keep development, review, release notes, and versioning separated.
A branch is not allowed to become a release until:
- Release notes exist
- Code review passed
- Version bump succeeded
The final merge to main is always manual.
1. Create a feature branch
Always branch from the latest main.
git checkout main
git pull
git checkout -b feature-nameExamples:
git checkout -b offline-favorites
git checkout -b video_stop_on_background
git checkout -b camera_roll_counter_fixImplement the feature normally.
2. Sync with main before merge
Before starting the release process, bring the latest main into the feature branch.
git checkout feature-name
git merge mainResolve conflicts if needed.
At this point the branch should contain:
- the feature
- the latest main changes
3. Create Release Notes
Run:
create release notes using .ai/releaseNotes.mdAgent responsibilities:
- Determine affected component(s)
- Create an
Unreleasedentry - Attach the current branch name
- Generate user-facing highlights
Result:
releaseNotes.tscontains an Unreleased entry for the current branch.
4. Run Code Review
Run:
do code review using .ai/code-review/code_review.mdAgent responsibilities:
- Compare current branch against main
- Apply protected invariant checks
- Perform regression review
- Perform commit history review
- Update:
backy-office/lib/codeReviews.tsPossible outcomes:
PASSED
FAILED
NEEDS-APPROVAL
PENDINGThe branch is not allowed to continue unless:
PASSEDand
confidence != low5. Bump Version
Run:
do bump version using .ai/release/bump-version.mdAgent responsibilities:
- Verify current branch is NOT main
- Verify matching release note exists
- Verify matching code review exists
- Verify review status is PASSED
- Verify confidence is not low
Then:
Mobile
Update:
backy-android/app/build.gradle.ktsIncrement:
versionNameonly.
Do NOT change:
versionCodeDesktop
Update:
backy-desktop/version.goIncrement patch version only.
Release Notes
Promote:
Unreleasedto the newly generated version.
Set:
date = todayKeep:
highlights6. Final Validation
Review final branch contents.
git diff main...HEAD
git statusExpected changes:
- feature implementation
- release notes
- version bump
- code review metadata
Nothing else.
7. Manual Merge
Merge is always manual.
git checkout main
git merge feature-name
git pushNo agent is allowed to:
- merge
- push
- delete branches
- create tags
Those actions remain manual.
Summary
Feature Development
↓
Merge latest main into branch
↓
Create Release Notes
↓
Code Review
↓
PASSED
↓
Version Bump
↓
Manual Validation
↓
Manual Merge8. Build & Publish Release Artifacts
After the feature has been:
- merged into main
- pushed to GitHub
the actual release artifacts are generated.
Run:
.\build-downloads.ps1From PowerShell (sets JAVA_HOME and repo root):
$env:JAVA_HOME = "C:\Program Files\Android\Android Studio\jbr"; Set-Location "c:\Users\noamshe-dev\AndroidStudioProjects\Backy"; .\build-downloads.ps1Purpose:
- Build Android APK
- Build Desktop installer
- Update website version metadata
- Copy release artifacts into backy-web
- Stage release files for commit
What the script does
Android
Builds:
backy-android/app/build/outputs/apk/debug/app-debug.apkProduces:
backy.apkfor website download.
Desktop
Builds:
Backy-Desktop-Setup-*.exeProduces:
Backy-Desktop-Setup.exefor website download.
Website Version Sync
Reads versions from:
backy-android/app/build.gradle.kts
backy-desktop/version.goUpdates:
backy-web/client/src/versions.ts
backy-office/lib/versions.tsThis ensures:
- Website download page shows the correct Android version.
- Website download page shows the correct Desktop version.
- Backy Office shows the correct versions.
Downloads Folder
Copies release artifacts into:
backy-web/client/public/downloads/Files:
Backy-Desktop-Setup.exe
backy.apkGit Staging
Automatically stages:
backy-web/client/public/downloads/*
backy-web/client/src/versions.ts
backy-office/lib/versions.tsfor commit.
Final Release Commit
Review the generated files:
git status
git diffThen commit:
git add .
git commit -m "release: mobile X.Y.Z / desktop A.B.C"
git pushGitHub push triggers Vercel deployment.
Important
This step happens only after:
Feature branch
↓
Release notes
↓
Code review
↓
Version bump
↓
Merge to main
↓
Push main
↓
Build & Publish ArtifactsThe build script is the final release step that synchronizes:
- Android version
- Desktop version
- Website versions
- Backy Office versions
- Downloadable binaries
9. Cleanup After Release
Only after verifying deployment, delete the merged branch manually.
git branch -d feature-name
git push origin --delete feature-nameVerify deployment before deleting:
- Vercel deployment succeeded
- Website shows the new versions
- Downloads are reachable
No agent is allowed to delete branches — this remains a manual step.